re PR lto/92674 (ICE in gimple_phi_arg, at gimple.h:4406 since r240291)
[gcc.git] / gcc / ChangeLog
1 2019-11-27 Richard Biener <rguenther@suse.de>
2
3 PR middle-end/92674
4 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
5 edges and instead record blocks in bitmap.
6 (gimple_expand_calls_inline): Adjust.
7 (fold_marked_statements): Delay EH cleanup until all folding is
8 done.
9 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
10 inlining finished.
11
12 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
13
14 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
15 LRA is enabled.
16 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
17 disabled.
18
19 2019-11-27 Jakub Jelinek <jakub@redhat.com>
20
21 PR debug/92664
22 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
23
24 2019-11-26 Martin Sebor <msebor@redhat.com>
25
26 PR tree-optimization/92683
27 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
28 inadvertently removed in a previous change. Rename local variable
29 for clarity.
30
31 2019-11-26 Richard Biener <rguenther@suse.de>
32
33 PR middle-end/92669
34 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
35 NULL pre_order.
36
37 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
38
39 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
40
41 2019-11-26 Jakub Jelinek <jakub@redhat.com>
42
43 PR tree-optimization/92644
44 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
45 next to INTEGER_CST checks.
46
47 2019-11-26 Richard Biener <rguenther@suse.de>
48
49 PR tree-optimization/92645
50 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
51 do not build the operation from scalars if the operand is.
52
53 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
54
55 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
56 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
57 definitions.
58
59 2019-11-25 Martin Liska <mliska@suse.cz>
60
61 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
62 up used dump message.
63
64 2019-11-25 Martin Liska <mliska@suse.cz>
65
66 PR bootstrap/92653
67 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
68 too strict checking assert.
69
70 2019-11-25 Joseph Myers <joseph@codesourcery.com>
71
72 PR c/91985
73 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
74 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
75 error_mark_node if corresponding global tree node is NULL.
76 * tree.c (build_common_tree_nodes): Do not initialize
77 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
78 decimal floating-point not supported.
79
80 2019-11-25 Joseph Myers <joseph@codesourcery.com>
81
82 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
83 types.
84
85 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
86
87 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
88 Replace code for non-CONST_INT constants with gcc_unreachable.
89 * config/m68k/m68k.md (cbranchdi): Don't generate individual
90 compare and test.
91 (CMPMODE): New mode_iterator.
92 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
93 cbranch<mode>4.
94 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
95 cstore<mode>4.
96 (cmp<mode>_68881): Remove 'F' constraint from first comparison
97 operand.
98 (bit test insns patterns): Use nonimmediate_operand, not
99 register_operand, for source operands that allow memory in
100 their constraints.
101 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
102 Use register_operand, not nonimmediate_operand, for the
103 destinations.
104 (DBCC): New mode_iterator.
105 (dbcc peepholes): Use it to reduce duplication.
106 (trap): Use const_true_rtx, not const1_rtx.
107 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
108 from m68k_subword_comparison_operand and changed to handle
109 SImode.
110
111 PR target/91851
112 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
113 declaration.
114 (m68k_init_cc): New declaration.
115 (m68k_output_compare_di, m68k_output_compare_si)
116 (m68k_output_compare_hi, m68k_output_compare_qi)
117 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
118 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
119 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
120 m68k_output_branch_float, m68k_output_branch_float_rev):
121 Likewise.
122 (valid_dbcc_comparison_p_2, flags_in_68881)
123 (output_btst): Remove declaration.
124 * config/m68k/m68k.c (INCLDUE_STRING): Define.
125 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
126 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
127 (flags_compare_op0, flags_compare_op1, flags_operand1,
128 flags_operand2, flags_valid): New static variables.
129 (m68k_find_flags_value, m68k_init_cc): New functions.
130 (handle_flags_for_move, m68k_asm_final_postscan_insn,
131 remember_compare_flags): New static functions.
132 (output_dbcc_and_branch): New argument CODE. Use it, and add
133 PLUS and MINUS to the possible codes. All callers changed.
134 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
135 and INSN arguments, add CODE arg. Return the comparison code
136 to use. All callers changed. Use CODE instead of
137 next_insn_tests_no_inequality, and replace cc_status management
138 with changing the return code.
139 (m68k_rtx_costs): Instead of testing for COMPARE, test for
140 RTX_COMPARE or RTX_COMM_COMPARE.
141 (output_move_simode, output_move_qimode): Call
142 handle_flags_for_move.
143 (notice_update_cc): Delete function.
144 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
145 m68k_output_compare_hi, m68k_output_compare_qi,
146 m68k_output_compare_fp, m68k_output_branch_integer,
147 m68k_output_branch_integer_rev, m68k_output_scc,
148 m68k_output_branch_float, m68k_output_branch_float_rev,
149 m68k_output_scc_float): New functions.
150 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
151 once at the start, and set flags_valid and flags_operand1 if the
152 flags are usable.
153 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
154 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
155 definitions.
156 (CC_STATUS_INIT): Define.
157 * config/m68k/m68k.md (flags_valid): New define_attr.
158 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
159 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
160 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
161 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
162 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
163 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
164 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
165 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
166 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
167 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
168 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
169 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
170 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
171 ctrapqi4, conditional_trap): Delete patterns.
172 (cbranchdi4_insn): New pattern.
173 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
174 test high part only. When testing EQ or NE, generate beq0_di
175 and bne0_di patterns directly.
176 (cstoredi4): When testing LT or GE, test high part only.
177 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
178 patterns.
179 (scc0_constraints, cmp1_constraints, cmp2_constraints,
180 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
181 cmp2_cf_predicate): New define_mode_attrs.
182 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
183 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
184 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
185 New patterns.
186 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
187 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
188 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
189 New patterns.
190 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
191 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
192 Likewise.
193 (BTST): New define_mode_iterator.
194 (btst_predicate, btst_constraint, btst_range): New
195 define_mode_attrs.
196 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
197 patterns.
198 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
199 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
200 patterns): Set attr "flags_valid".
201 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
202 management. Set attr "flags_valid".
203 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
204 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
205 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
206 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
207 manual CC_STATUS management.
208 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
209 unnamed strict_lowpart subhi and subqi patterns): Set attr
210 "flags_valid".
211 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
212 Remove code to operate on address regs and assert the case
213 does not occur.
214 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
215 manual CC_STATUS_INIT.
216 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
217 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
218 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
219 one_cmplqi2, unnamed strict_lowpart patterns
220 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
221 one_cmplhi and one_cmplqi): Set attr "flags_valid".
222 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
223 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
224 CC_STATUS_INIT.
225 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
226 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
227 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
228 unnamed strict_low_part patterns for HI and
229 QI versions): Set attr "flags_valid".
230 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
231 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
232 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
233 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
234 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
235 (various unnamed peepholes): Adjust compare/branch sequences
236 for new cbranch patterns.
237 (dbcc peepholes): Likewise, and output the comparison here
238 as well.
239 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
240 (fp_src_operand): Allow constant zero.
241 (address_reg_operand): New predicate.
242
243 * rtl.h (inequality_comparisons_p): Remove declaration.
244 * recog.h (next_insn_tests_no_inequality): Likewise.
245 * rtlanal.c (inequality_comparisons_p): Delete function.
246 * recog.c (next_insn_tests_no_inequality): Likewise.
247
248 2019-11-25 Richard Biener <rguenther@suse.de>
249
250 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
251 (vect_detect_hybrid_slp): Swap lane and instance iteration,
252 properly re-building the visited hash-map for each lane.
253
254 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
255
256 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
257 gcn_md_reorg): Remove unused variables.
258 (gcn_emutls_var_init): Add missing (but unreachable) return
259 to silence warning.
260 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
261 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
262 an uninitialized variable.
263
264 2019-11-25 Martin Jambor <mjambor@suse.cz>
265
266 PR ipa/92109
267 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
268 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
269 (cgraph_materialize_clone): Move removel from clone tree to the
270 the new method and use it instead.
271 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
272 bodies of clones, also remove it from the clone tree.
273
274 2019-11-25 Martin Jambor <mjambor@suse.cz>
275
276 PR ipa/91956
277 * ipa-sra.c (process_isra_node_results): Put the new node to the
278 same comdat group as the original node.
279
280 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
281
282 Build double32 / long-double32 multilibs if needed.
283
284 PR target/92055
285 * config/avr/t-avr:
286 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
287 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
288 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
289 tm_defines and pass to genmultilib.awk.
290 * config/avr/genmultilib.awk: Use these variables to add double32
291 and / or long-double32 multilib(s) as needed.
292 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
293
294 2019-11-25 Richard Biener <rguenther@suse.de>
295
296 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
297 loop body, defaulted to NULL.
298 (single_likely_exit): Add exit vector argument
299 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
300 (number_of_iterations_exit): Likewise.
301 (number_of_iterations_exit_assumptions): Likewise.
302 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
303 if not NULL.
304 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
305 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
306 Compute exit vector around call to single_likely_exit.
307 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
308 loop body to loop_only_exit_p.
309 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
310 caller.
311 (number_of_iterations_exit_assumptions): Get loop body from caller
312 if not NULL.
313 (number_of_iterations_exit): Pass through new loop body arg.
314 (infer_loop_bounds_from_undefined): Get loop body from caller.
315 (estimate_numbers_of_iterations): Compute loop body once.
316
317 2019-11-25 Richard Biener <rguenther@suse.de>
318
319 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
320 auto_bb_flag instead of an sbitmap for visited handling.
321
322 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
323
324 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
325 iterator.
326 (vector_fp_comparison_complex): Likewise.
327 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
328 define_and_split.
329 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
330 Likewise.
331 (vector_lt<mode> for VEC_F): Refactor with
332 vector_fp_comparison_simple.
333 (vector_le<mode> for VEC_F): Likewise.
334 (vector_unge<mode> for VEC_F): Likewise.
335 (vector_unle<mode> for VEC_F): Likewise.
336 (vector_ne<mode> for VEC_F): Likewise.
337 (vector_ungt<mode> for VEC_F): Likewise.
338 (vector_unlt<mode> for VEC_F): Likewise.
339 (vector_ltgt<mode> for VEC_F): Refactor with
340 vector_fp_comparison_complex.
341 (vector_ordered<mode> for VEC_F): Likewise.
342 (vector_uneq<mode> for VEC_F): Likewise.
343 (vector_unordered<mode> for VEC_F): Likewise.
344
345 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
346
347 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
348 COMPARE, representing an overflow detection.
349
350 * combine.c (combine_instructions): Record costs for jumps.
351
352 * combine.c (can_combine_p): Allow autoinc in jumps.
353
354 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
355
356 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
357 * doc/invoke.texi (max-inline-insns-single-O2,
358 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
359 early-inlining-insns-O2): Remove documentation.
360 * ipa-fnsummary.c (analyze_function_body,
361 compute_fn_summary): Use opt_for_fn when accessing parameters.
362 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
363 inline_insns_auto, can_inline_edge_by_limits_p,
364 want_early_inline_function_p, big_speedup_p,
365 want_inline_small_function_p, want_inline_self_recursive_call_p,
366 recursive_inlining, compute_max_insns, inline_small_functions):
367 Likewise.
368 * opts.c (default_options): Add -O3 defaults for
369 OPT__param_early_inlining_insns_,
370 OPT__param_inline_heuristics_hint_percent_,
371 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
372 * params.opt (-param=early-inlining-insns-O2=,
373 -param=inline-heuristics-hint-percent-O2=,
374 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
375 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
376 -param=inline-min-speedup=, -param=inline-unit-growth=,
377 -param=large-function-growth=, -param=large-stack-frame=,
378 -param=large-stack-frame-growth=, -param=large-unit-insns=,
379 -param=max-inline-insns-recursive=,
380 -param=max-inline-insns-recursive-auto=,
381 -param=max-inline-insns-single=,
382 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
383 -param=max-inline-recursive-depth=,
384 -param=max-inline-recursive-depth-auto=,
385 -param=min-inline-recursive-probability=,
386 -param=partial-inlining-entry-probability=,
387 -param=uninlined-function-insns=, -param=uninlined-function-time=,
388 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
389 Optimization.
390
391 2019-11-23 Jakub Jelinek <jakub@redhat.com>
392
393 * ipa-fnsummary.c: Fix comment typos.
394 * ipa-ref.h: Likewise.
395 * ipa-predicate.h: Likewise.
396 * ipa-split.c: Likewise.
397 * ipa-inline-analysis.c: Likewise.
398 * ipa-predicate.c: Likewise.
399 * ipa-devirt.c: Likewise.
400 * ipa-icf.h: Likewise.
401 * profile-count.c: Likewise.
402 * ipa-icf.c: Likewise.
403 (sem_function::equals_wpa): Fix typos in dump messages.
404 * ipa-icf-gimple.h: Fix comment typos.
405 * ipa-inline-transform.c: Likewise.
406 * ipa-polymorphic-call.c: Likewise.
407 * ipa-fnsummary.h: Likewise.
408 * ipa-inline.c: Likewise.
409 (dump_inline_stats): Fix typo in debug dump message.
410 * profile-count.h: Fix comment typos.
411
412 PR target/92615
413 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
414 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
415 register_operand, force x into register before storing it into dest.
416 Formatting fix.
417
418 PR middle-end/83859
419 * doc/extend.texi (attribute access): Fix a typo.
420
421 PR rtl-optimization/92610
422 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
423 cse_cfg_altered is set, even when tem is 0.
424 (rest_of_handle_cse_after_global_opts): Likewise.
425
426 2019-11-22 Jakub Jelinek <jakub@redhat.com>
427
428 PR c++/92458
429 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
430 tree_hash): Move to ...
431 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
432 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
433 types.
434 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
435
436 PR tree-optimization/92618
437 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
438 containing the auto_vec and a tree.
439 (undistribute_bitref_for_vector): Handle the case when element type
440 of vec is not the same as type of the BIT_FIELD_REF. Formatting
441 fixes.
442
443 2019-11-22 Martin Sebor <msebor@redhat.com>
444
445 PR middle-end/83859
446 * attribs.h (struct attr_access): New.
447 * attribs.c (decl_attributes): Add an informational note.
448 * builtins.c (check_access): Make extern. Consistently set no-warning
449 after issuing a warning. Handle calls through function pointers. Set
450 no-warning.
451 * builtins.h (check_access): Declare.
452 * calls.c (rdwr_access_hash): New type.
453 (rdwr_map): Same.
454 (init_attr_rdwr_indices): New function.
455 (maybe_warn_rdwr_sizes): Same.
456 (initialize_argument_information): Call init_attr_rdwr_indices.
457 Call maybe_warn_rdwr_sizes.
458 (get_size_range): Avoid null argument.
459 * doc/extend.texi (attribute access): Document new attribute.
460
461 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
462
463 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
464 (ACC_LDS_SIZE): Define.
465 (OTHER_LDS_SIZE): Define.
466 (LDS_SIZE): Redefine using above.
467 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
468
469 2019-11-22 Martin Sebor <msebor@redhat.com>
470
471 PR middle-end/88226
472 * builtins.c (check_nul_terminated_array): New function.
473 (fold_builtin_0): Remove declaration.
474 (fold_builtin_1): Same.
475 (fold_builtin_2): Same.
476 (fold_builtin_3): Same.
477 (fold_builtin_strpbrk): Add argument.
478 (fold_builtin_strspn): Same.
479 (fold_builtin_strcspn): Same.
480 (expand_builtin_strcat): Call it. Remove unused argument.
481 (expand_builtin_stpncpy): Same.
482 (expand_builtin_strncat): Same.
483 (expand_builtin_strncpy): Same. Adjust indentation.
484 (expand_builtin_strcmp): Same.
485 (expand_builtin_strncmp): Same.
486 (expand_builtin_fork_or_exec): Same.
487 (expand_builtin): Handle more built-ins.
488 (fold_builtin_2): Add argument.
489 (fold_builtin_n): Make static. Add argument.
490 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
491 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
492 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
493 (fold_call_stmt): Pass new argument to fold_builtin_n.
494 * builtins.h: Correct a comment.
495 * gimple-fold.c (gimple_fold_builtin_strchr): Call
496 check_nul_terminated_array.
497 * tree-ssa-strlen.c (handle_builtin_strlen): Call
498 check_nul_terminated_array.
499 (handle_builtin_strchr): Same.
500 (handle_builtin_string_cmp): Same.
501
502 2019-11-22 Martin Sebor <msebor@redhat.com>
503
504 PR tree-optimization/92501
505 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
506 handle unterminated arrays. Rename local variables for clarity.
507
508 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
509
510 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
511 granulated_sgprs according to architecture.
512
513 2019-11-22 Jan Hubicka <jh@suse.cz>
514
515 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
516 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
517 (memory_block_pool::reduce_free_list): ... this one.
518 (memory_block_pool::trim): New static function.
519 * memory-block.h (memory_block_pool::freelist_size): New constant
520 (memory_block_pool::clear_free_list): Rename to ...
521 (memory_block_pool::reduce_free_list): ... this one.
522 (memory_block_pool::trim): Declare.
523
524 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
525
526 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
527 vect_cost_for_stmt.
528 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
529 here rather than...
530 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
531
532 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
533
534 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
535 (bic_cmp0_noout): New pattern.
536 (bic_cmp0): Likewise.
537 (neg_scc_insn): Remove pattern.
538 (not_scc_insn): Likewise.
539
540 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
541
542 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
543
544 2019-11-21 Joseph Myers <joseph@codesourcery.com>
545
546 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
547 pedwarn instead of warning_at for fallthrough not preceding a case
548 or default label.
549
550 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
551
552 PR tree-optimization/92608
553 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
554 of dyn_cast.
555
556 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
557
558 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
559 New predicate.
560 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
561 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
562 special for FP comparisons that need a cror instruction eventually.
563 (rs6000_emit_fp_cror): New function.
564 (rs6000_emit_sCOND): Expand all floating point comparisons to one
565 instruction, for normal FP modes, with HONOR_NANS.
566 (rs6000_emit_cbranch): Reformat.
567 * config/rs6000/rs6000.md (fp_rev): New iterator.
568 (fp_two): New iterator.
569 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
570 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
571 *cbranch_2insn: New define_insn_and_split.
572
573 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
574
575 PR tree-optimization/92526
576 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
577 versioning for alignment if the accesses do not have a consistent
578 mask, rather than asserting that the masks are consistent.
579
580 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
581
582 PR tree-optimization/92595
583 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
584 check.
585 (vectorizable_store, vectorizable_load): Likewise.
586
587 2019-11-21 Jan Hubicka <jh@suse.cz>
588
589 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
590 (resolve_noninline_speculation, inline_small_functions): Avoid
591 redundant updates.
592
593 2019-11-21 Richard Biener <rguenther@suse.de>
594
595 * lra.c (lra_insn_recog_data_pool): New.
596 (free_insn_recog_data): Adjust.
597 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
598 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
599
600 2019-11-21 Richard Biener <rguenther@suse.de>
601
602 PR tree-optimization/92596
603 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
604
605 2019-11-21 Jan Hubicka <jh@suse.cz>
606
607 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
608 ready for some vectors to not be allocated.
609 (evaluate_properties_for_edge): Document better; make
610 known_vals and known_aggs caller allocated; avoid determining
611 values of parameters which are not used.
612 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
613 known_aggs.
614 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
615 (do_estimate_edge_size): Likewise.
616 (do_estimate_edge_hints): Likewise.
617 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
618 values are not known.
619 (ipa_release_agg_values): Add option to not release vector itself.
620 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
621
622 2019-11-21 Richard Biener <rguenther@suse.de>
623
624 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
625 (loop_iterator::to_visit): Use an auto_vec with internal storage.
626 (loop_iterator::loop_iterator): Adjust.
627 * cfganal.c (compute_dominance_frontiers_1): Fold into...
628 (compute_dominance_frontiers): ... this. Hoist invariant
629 get_immediate_dominator call.
630 (compute_idf): Use a work-set instead of a work-list for more
631 optimal iteration order and duplicate avoidance.
632 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
633 the vector all the time, instead pre-allocate the vector only
634 once.
635 (delete_update_ssa): Simplify.
636 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
637
638 2019-11-21 Jakub Jelinek <jakub@redhat.com>
639
640 PR tree-optimization/91355
641 * tree-ssa-sink.c (select_best_block): Use >= rather than >
642 for early_bb scaled count with best_bb count comparison.
643
644 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
645 preffer -> prefer.
646 * ipa-inline.c (edge_badness): Likewise.
647 * lto-streamer.h (class lto_location_cache): Likewise.
648 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
649 gratutious -> gratuitous.
650
651 2019-11-21 Richard Biener <rguenther@suse.de>
652
653 Revert
654 2019-09-17 Richard Biener <rguenther@suse.de>
655
656 PR tree-optimization/91790
657 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
658 use the correct DR for setting up realignment.
659
660 2019-11-21 Richard Biener <rguenther@suse.de>
661
662 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
663 (equiv_class_obstack): New.
664 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
665 (perform_var_substitution): Initialize equiv_class_obstack.
666 (free_var_substitution_info): Free equiv_class_obstack.
667
668 2019-11-20 Jan Hubicka <jh@suse.cz>
669
670 * ipa-inline.c (want_early_inline_function_p): Do not estimate
671 edge growth when callee function is very large.
672 * ipa-inline.h (estimate_min_edge_growth): New.
673
674 2019-11-20 Jan Hubicka <jh@suse.cz>
675
676 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
677 negative time in calls summary; correct roundoff errors
678 leading to negative times.
679 (ipa_merge_fn_summary_after_inlining): Update calls size time table
680 if present.
681 (ipa_update_overall_fn_summary): Add RESET parameter.
682 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
683 * ipa-inline-transform.c (inline_call): Enable incremental updates.
684
685 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
686
687 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
688 def types for two-operation SLP.
689
690 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
691
692 PR testsuite/92366
693 * doc/sourcebuild.texi (vect_char_add): Document.
694
695 2019-11-20 Alexandre Oliva <oliva@adacore.com>
696
697 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
698 * function.c (record_final_call): Record even calls that might
699 have been in the cgraph.
700 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
701 callees.
702
703 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
704
705 * configure.ac: Use https for gcc.gnu.org
706 * configure: Regenerated.
707 * doc/install.texi: Use https for gcc.gnu.org.
708 * doc/sourcebuild.texi: Likewise.
709
710 2019-11-20 Julian Brown <julian@codesourcery.com>
711
712 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
713
714 2019-11-20 Jan Hubicka <jh@suse.cz>
715
716 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
717 parameter and update call_size_time_table.
718 (ipa_fn_summary::max_size_time_table_size): New constant.
719 (estimate_calls_size_and_time_1): Break out from ...
720 (estimate_calls_size_and_time): ... here; implement summary production.
721 (summarize_calls_size_and_time): New function.
722 (ipa_call_context::estimate_size_and_time): Bypass
723 estimate_calls_size_and_time for leaf functions.
724 (ipa_update_overall_fn_summary): Likewise.
725 * ipa-fnsummary.h (call_size_time_table): New.
726 (ipa_fn_summary::account_size_time): Update prototype.
727
728 2019-11-20 Joseph Myers <joseph@codesourcery.com>
729
730 * doc/invoke.texi (-Wc11-c2x-compat): Document.
731
732 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
733
734 PR85678
735 * common.opt (fcommon): Change init to 1.
736 * doc/invoke.texi (-fcommon): Update documentation.
737
738 2019-11-20 Jan Hubicka <jh@suse.cz>
739
740 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
741 to ordinary array.
742
743 2019-11-20 Jan Hubicka <jh@suse.cz>
744
745 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
746 Add allocator parameter.
747 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
748 (fibonacci_heap<K,V>::m_allocator): New.
749 (fibonacci_heap<K,V>::m_own_allocator): New.
750 (fibonacci_heap<K,V>::insert): Use allocator.
751 (fibonacci_heap<K,V>::extract_min): Likewise.
752 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
753 allocator.
754 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
755 on stack.
756 * fibonacci_heap.c: Include alloc-pool
757 (test_empty_heap): Initialize allocator.
758 (test_union): Likewise.
759 * bb-reorder.c: Include alloc-pool.h.
760 * tracer.c: Inlclude alloc-pool.h.
761
762 2019-11-20 Jan Hubicka <jh@suse.cz>
763
764 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
765 Preallocate for 32 entries.
766 (DFS::worklist): Likewise.
767 (DFS::DFS): Do not initialize sccstack and worklist.
768 (DFS::~DFS): Do not release sccstack.
769
770 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
771
772 PR target/92573
773 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
774 Handle UNORDERED if !HONOR_NANS.
775
776 2019-11-20 Jan Hubicka <jh@suse.cz>
777
778 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
779 (edge_badness): ... here.
780 (inline_small_functions): Use monotonicity of badness calculation
781 to avoid redundant updates.
782
783 2019-11-20 Richard Biener <rguenther@suse.de>
784
785 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
786 constructors we are actually analyzing.
787 (vect_slp_check_for_constructors): Do not vectorize uniform
788 constuctors, do not dump here.
789
790 2019-11-20 Richard Biener <rguenther@suse.de>
791
792 PR tree-optimization/92537
793 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
794 vectorization validity check...
795 (vect_slp_analyze_operations): ... here.
796
797 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
798
799 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
800 (make_pass_arc_predicate_delay_insns): Likewise.
801 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
802 method, remove clone.
803 (class pass_arc_predicate_delay_insns): Likewise.
804 (arc_init): Remove registering of ARC specific passes.
805 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
806 * config/arc/arc-passes.def: New file.
807
808 2019-11-20 Jakub Jelinek <jakub@redhat.com>
809
810 PR middle-end/90840
811 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
812 and has a mode that doesn't have corresponding integral type.
813
814 PR target/90867
815 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
816 clear opts->x_ix86_isa_flags{,2} here...
817 (ix86_valid_target_attribute_inner_p): ... but here when seeing
818 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
819
820 PR c/90898
821 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
822 assertion.
823 (insert_clobbers_for_var): Fix a typo in function comment.
824
825 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
826 Jakub Jelinek <jakub@redhat.com>
827
828 PR middle-end/91195
829 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
830 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
831 load.
832
833 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
834
835 Make 0-series device specs work with older versions of avr-gcc.
836
837 PR target/92545
838 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
839 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
840 <*link_pm_base_address>: Don't write spec.
841 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
842
843 2019-11-20 Richard Biener <rguenther@suse.de>
844
845 PR c/92088
846 * builtins.c (compute_objsize): Deal with VLAs.
847
848 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
849
850 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
851 from common code.
852 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
853 call new function.
854 (power9_sched_reorder2): Call new function.
855 (rs6000_sched_reorder2): Likewise.
856
857 2019-11-18 Jan Hubicka <jh@suse.cz>
858
859 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
860 (estimate_calls_size_and_time): Update.
861
862 2019-11-18 Jan Hubicka <jh@suse.cz>
863
864 * ipa-inline.c (inlining_speedup): New function.
865 (edge_badness): Use it.
866
867 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
868 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
869
870 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
871 Mark as not having "likely" version.
872 * config/mips/mips.md (insn_count): The simd_div instruction with
873 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
874 (can_delay): Exclude simd_branch.
875 (defile_delay *): Add simd_branch instructions.
876 They have one regular delay slot.
877
878 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
879
880 Revert:
881 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
882
883 * cse.c (cse_insn): Delete no-op register moves too.
884 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
885 Take a second comparison to control the value for NE.
886 (mask_to_comparison): Handle unsigned comparisons.
887 (simplify_logical_relational_operation): Likewise. Update call
888 to comparison_to_mask. Handle AND if !HONOR_NANs.
889 (simplify_binary_operation_1): Call the above for AND too.
890
891 2019-11-19 Martin Liska <mliska@suse.cz>
892
893 * toplev.c (general_init): Move the call...
894 (toplev::main): ... here as we need init_options_struct
895 being called.
896
897 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
898
899 PR target/79262
900 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
901 vec_to_scalar_cost.
902
903 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
904
905 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
906 (armv7-a): Likewise.
907 (armv7ve): Likewise.
908
909 2019-11-19 Richard Biener <rguenther@suse.de>
910
911 PR tree-optimization/92581
912 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
913 condition reduction chains gather all conditions involved
914 for computing the index reduction vector.
915
916 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
917
918 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
919 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
920 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
921 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
922 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
923 (aarch64_init_memtag_builtins): New.
924 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
925 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
926 (aarch64_expand_builtin_memtag): New.
927 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
928 (AARCH64_BUILTIN_SUBCODE): New macro.
929 (aarch64_resolve_overloaded_memtag): New.
930 (aarch64_resolve_overloaded_builtin_general): New. Call
931 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
932 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
933 __ARM_FEATURE_MEMORY_TAGGING when enabled.
934 (aarch64_resolve_overloaded_builtin): Call
935 aarch64_resolve_overloaded_builtin_general.
936 * config/aarch64/aarch64-protos.h
937 (aarch64_resolve_overloaded_builtin_general): New declaration.
938 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
939 (TARGET_MEMTAG): Likewise.
940 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
941 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
942 (irg, gmi, subp, addg, ldg, stg): New instructions.
943 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
944 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
945 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
946 (__arm_mte_get_tag): Likewise.
947 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
948 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
949 * config/arm/types.md (memtag): New.
950 * doc/invoke.texi (-memtag): Update description.
951
952 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
953
954 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
955 to define __GCC_ASM_FLAG_OUTPUTS__.
956 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
957 (arm_option_params_internal): Swap out targetm.md_asm_adjust
958 depending on TARGET_THUMB1.
959 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
960
961 2019-11-19 Jakub Jelinek <jakub@redhat.com>
962
963 PR target/92549
964 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
965
966 PR middle-end/91450
967 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
968 operand is negative and one non-negative, compare the non-negative
969 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
970 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
971 and s2 == 0, unless one of them is known to be negative. Remove
972 tem2 variable, use tem where tem2 has been used before.
973
974 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
975
976 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
977
978 2019-11-19 Jakub Jelinek <jakub@redhat.com>
979
980 PR tree-optimization/92557
981 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
982 vmode rather than asserting it always is.
983
984 2019-11-19 Richard Biener <rguenther@suse.de>
985
986 PR tree-optimization/92554
987 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
988 for the actual condition stmt and deal with sign-changes.
989
990 2019-11-19 Richard Biener <rguenther@suse.de>
991
992 PR tree-optimization/92555
993 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
994 for non-SLP stmts.
995
996 2019-11-19 Martin Liska <mliska@suse.cz>
997
998 PR bootstrap/92540
999 * config/riscv/riscv.c (riscv_address_insns): Initialize
1000 addr in order to remove boostrap -Wmaybe-uninitialized
1001 error.
1002
1003 2019-11-18 Martin Sebor <msebor@redhat.com>
1004
1005 PR tree-optimization/92493
1006 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1007 assignment.
1008
1009 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1010
1011 * cfgloop.c (get_loop_body_in_custom_order): New.
1012 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1013 * tree-loop-distribution.c (class loop_distribution): New.
1014 (bb_top_order_cmp): Remove.
1015 (bb_top_order_cmp_r): New.
1016 (create_rdg_vertices): Move into class loop_distribution.
1017 (stmts_from_loop): Same as above.
1018 (update_for_merge): Same as above.
1019 (partition_merge_into): Same as above.
1020 (get_data_dependence): Same as above.
1021 (data_dep_in_cycle_p): Same as above.
1022 (update_type_for_merge): Same as above.
1023 (build_rdg_partition_for-vertex): Same as above.
1024 (classify_builtin_ldst): Same as above.
1025 (classify_partition): Same as above.
1026 (share_memory_accesses): Same as above.
1027 (rdg_build_partitions): Same as above.
1028 (pg_add_dependence_edges): Same as above.
1029 (build_partition_graph): Same as above.
1030 (merge_dep_scc_partitions): Same as above.
1031 (break_alias_scc_partitions): Same as above.
1032 (finalize_partitions): Same as above.
1033 (distribute_loop): Same as above.
1034 (bb_top_order_init): New method
1035 (bb_top_order_destroy): New method.
1036 (get_bb_top_order_index_size): New method.
1037 (get_bb_top_order_index_index): New method.
1038 (get_bb_top_order_index_index): New method.
1039 (loop_distribution::execute): New method.
1040 (pass_loop_distribution::execute): Instantiate loop_distribution.
1041
1042 2019-11-18 Jan Hubicka <jh@suse.cz>
1043
1044 PR ipa/92508
1045 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1046 caches.
1047 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1048
1049 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1050
1051 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1052 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1053 * doc/md.texi: Document them.
1054 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1055 internal functions.
1056 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1057 * internal-fn.c (check_ptrs_direct): New macro.
1058 (expand_check_ptrs_optab_fn): Likewise.
1059 (direct_check_ptrs_optab_supported_p): Likewise.
1060 (internal_check_ptrs_fn_supported_p): New fuction.
1061 * tree-data-ref.c: Include internal-fn.h.
1062 (create_ifn_alias_checks): New function.
1063 (create_intersect_range_checks): Use it.
1064 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1065 (optab, cmp_op): Handle it.
1066 (raw_war, unspec): New int attributes.
1067 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1068 constants.
1069 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1070 New predicate.
1071 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1072 expander.
1073 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1074 pattern.
1075
1076 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1077
1078 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1079 empty constructors.
1080
1081 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1082
1083 * cse.c (cse_insn): Delete no-op register moves too.
1084 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1085 Take a second comparison to control the value for NE.
1086 (mask_to_comparison): Handle unsigned comparisons.
1087 (simplify_logical_relational_operation): Likewise. Update call
1088 to comparison_to_mask. Handle AND if !HONOR_NANs.
1089 (simplify_binary_operation_1): Call the above for AND too.
1090
1091 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1092
1093 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1094 splitting the main code out into...
1095 (native_encode_vector_part): ...this new function.
1096 (native_decode_vector_tree): New function.
1097 (fold_view_convert_vector_encoding): Likewise.
1098 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1099 to VECTOR_TYPEs.
1100
1101 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1102
1103 * tree-data-ref.c (create_intersect_range_checks_index): If the
1104 alias pair describes simple WAW and WAR dependencies, just check
1105 whether the first B access overlaps later A accesses.
1106 (create_waw_or_war_checks): New function that performs the same
1107 optimization on addresses.
1108 (create_intersect_range_checks): Call it.
1109
1110 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1111
1112 * lra-constraints.c (valid_address_p): Take the operand and a
1113 constraint as argument. If the operand is a MEM and the constraint
1114 is a memory constraint, check whether the eliminated form of the
1115 MEM already satisfies the constraint.
1116 (process_address_1): Update calls accordingly.
1117
1118 2019-11-18 Tom Tromey <tromey@adacore.com>
1119
1120 * doc/tm.texi: Rebuild.
1121 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1122 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1123
1124 2019-11-18 Richard Biener <rguenther@suse.de>
1125
1126 PR tree-optimization/92516
1127 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1128 argument, hoist bst_map creation/destruction to ...
1129 (vect_analyze_slp): ... here, forming a true graph with
1130 SLP instances being the entries.
1131 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1132 (vect_detect_hybrid_slp): Use one visited set for all
1133 graph entries.
1134 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1135 to hash-sets of slp_tree.
1136 (vect_slp_analyze_operations): Likewise.
1137 (vect_bb_slp_scalar_cost): Remove wrapper.
1138 (vect_bb_vectorization_profitable_p): Use one visited set for
1139 all graph entries.
1140 (vect_schedule_slp_instance): Elide bst_map use.
1141 (vect_schedule_slp): Likewise.
1142
1143 2019-11-18 Richard Biener <rguenther@suse.de>
1144
1145 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1146 was vectorized with just external refs fail.
1147
1148 2019-11-18 Martin Liska <mliska@suse.cz>
1149
1150 PR ipa/92525
1151 * ipa-icf.c (sem_function::init): Unset m_checker
1152 at the end of the function.
1153
1154 2019-11-18 Richard Biener <rguenther@suse.de>
1155
1156 PR tree-optimization/92558
1157 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1158 reducting the width of a reduction vector def update new_phis.
1159
1160 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1161
1162 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1163 and s390*-*-linux-musl* targets.
1164 * configure: Regenerate.
1165
1166 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1167
1168 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1169 (MUSL_DYNAMIC_LINKER64): Define.
1170
1171 2019-11-18 Martin Liska <mliska@suse.cz>
1172
1173 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1174 message for an unknown counter.
1175 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1176 (dbg_cnt_process_opt): Remove unreachable code.
1177
1178 2019-11-18 Martin Liska <mliska@suse.cz>
1179
1180 PR ipa/92529
1181 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1182 Compare LHS types of NOP_EXPR.
1183
1184 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1185
1186 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1187 "initial_pass_name" argument -- by running "*clean_state" pass.
1188 Also free the "initial_pass_name" when done.
1189
1190 2019-11-18 Richard Biener <rguenther@suse.de>
1191
1192 PR rtl-optimization/92462
1193 * alias.c (find_base_term): Restrict the look through ANDs.
1194 (find_base_value): Likewise.
1195
1196 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1197
1198 Add support for AVR devices from the 0-series.
1199
1200 PR target/92545
1201 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1202 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1203 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1204 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1205 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1206 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1207 for spec definitions.
1208 * doc/avr-mmcu.texi: Regenerate.
1209
1210 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1211
1212 PR target/92448
1213 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1214 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1215 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1216 (ix86_reassociation_width): Ditto.
1217 * config/i386/i386-options.c (ix86_option_override_internal):
1218 Replace TARGET_AVX128_OPTIAML with
1219 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1220 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1221 (TARGET_AVX128_OPTIMAL): Deleted.
1222 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1223 DEF_TUNE.
1224
1225 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1226
1227 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1228 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1229 just SI.
1230 (cceq_rev_compare): Rename to...
1231 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1232 just SI.
1233 (define_split for <bd>tf_<mode>): Add SImode first argument to
1234 gen_cceq_ior_compare.
1235
1236 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1237
1238 * common/config/powerpcspe: Delete.
1239
1240 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1241
1242 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1243 output in UNSPEC_WRFFR.
1244
1245 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1246
1247 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1248 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1249
1250 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1251
1252 * tree-data-ref.c (create_intersect_range_checks_index)
1253 (create_intersect_range_checks): Print dump messages.
1254
1255 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1256
1257 * tree-data-ref.c (dump_alias_pair): New function.
1258 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1259
1260 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1261
1262 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1263 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1264 merging data references with different steps.
1265 (create_intersect_range_checks_index): Take a
1266 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1267 Bail out if DR_ALIAS_MIXED_STEPS is set.
1268 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1269 instead of two dr_with_seg_lens. Update call to
1270 create_intersect_range_checks_index.
1271 (create_runtime_alias_checks): Update call accordingly.
1272
1273 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1274
1275 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1276 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1277 (dr_with_seg_len_pair_t::sequencing): New enum.
1278 (dr_with_seg_len_pair_t::flags): New member variable.
1279 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1280 parameter and initialize the flags member variable.
1281 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1282 call accordingly.
1283 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1284 Ensure the two data references in an alias pair are in statement
1285 order, if there is a defined order.
1286 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1287 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1288 swapped the references in a dr_with_seg_len_pair_t. OR together
1289 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1290 try to restore the original dr_with_seg_len order, updating the
1291 flags if that fails.
1292
1293 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1294
1295 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1296 swapping the dr_as based on init values until we've decided
1297 whether to merge them.
1298
1299 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1300
1301 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1302 two accesses in each dr_with_seg_len_pair_t before trying to
1303 combine separate dr_with_seg_len_pair_ts.
1304 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1305 that here.
1306 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1307
1308 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1309
1310 * config/aarch64/aarch64-sve.md
1311 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1312 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1313 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1314 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1315 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1316 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1317 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1318 pattern.
1319 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1320 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1321 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1322 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1323
1324 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1325
1326 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1327 (SVE_4HSI): New mode iterators.
1328 (ANY_EXTEND2): New code iterator.
1329 * config/aarch64/aarch64-sve.md
1330 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1331 Extend to...
1332 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1333 ...this, handling extension to partial modes as well as full modes.
1334 Describe the extension as a predicated rather than unpredicated
1335 extension.
1336 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1337 Likewise extend to...
1338 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1339 ...this, making the same adjustments.
1340 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1341 Likewise extend to...
1342 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1343 ...this, making the same adjustments.
1344 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1345 Likewise extend to...
1346 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1347 ...this, making the same adjustments.
1348 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1349 New pattern.
1350 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1351 extension predicate.
1352 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1353 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1354 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1355 Describe the extension as a predicated rather than unpredicated
1356 extension.
1357 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1358 Likewise. Canonicalize to a constant extension predicate.
1359 * config/aarch64/aarch64-sve-builtins-base.cc
1360 (svld1_gather_extend_impl::expand): Add an extra predicate for
1361 the extension.
1362 (svldff1_gather_extend_impl::expand): Likewise.
1363
1364 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1365
1366 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1367 iterators.
1368 * config/aarch64/aarch64-sve.md
1369 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1370 (gather_load<SVE_24:mode><v_int_container>): ...this.
1371 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1372 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1373 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1374 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1375 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1376 New pattern.
1377 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1378 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1379 Allow the nominal extension predicate to be different from the
1380 load predicate.
1381 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1382 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1383
1384 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1385
1386 * config/aarch64/aarch64-sve.md
1387 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
1388 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
1389 function.
1390 (aarch64_sve_adjust_stmt_cost): Call it.
1391
1392 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1393
1394 * config/aarch64/aarch64-sve.md
1395 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
1396 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1397 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1398 Combine into...
1399 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1400 ...this new pattern, handling extension to partial modes as well
1401 as full modes. Describe the extension as a predicated rather than
1402 unpredicated extension.
1403 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
1404 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1405 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1406 Combine into...
1407 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1408 ...this new pattern, handling extension to partial modes as well
1409 as full modes. Describe the extension as a predicated rather than
1410 unpredicated extension.
1411 * config/aarch64/aarch64-sve-builtins.cc
1412 (function_expander::use_contiguous_load_insn): Add an extra
1413 predicate for extending loads.
1414 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
1415 (aarch64_sve_adjust_stmt_cost): Likewise.
1416 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
1417 the cost of SVE vector stmts.
1418
1419 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1420
1421 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
1422 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
1423 * config/aarch64/aarch64-sve.md
1424 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
1425 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
1426 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
1427 comment. Avoid new narrower_mask ambiguity.
1428 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1429 (*cond_uxt<mode>_2): Update comment.
1430 (*cond_uxt<mode>_any): Likewise.
1431
1432 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1433
1434 * config/aarch64/aarch64-modes.def: Define partial SVE vector
1435 float modes.
1436 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
1437 function.
1438 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
1439 new vector float modes.
1440 (aarch64_sve_container_bits): New function.
1441 (aarch64_sve_pred_mode): Likewise.
1442 (aarch64_get_mask_mode): Use it.
1443 (aarch64_sve_element_int_mode): Handle structure modes and partial
1444 modes.
1445 (aarch64_sve_container_int_mode): New function.
1446 (aarch64_vectorize_related_mode): Return SVE modes when given
1447 SVE modes. Handle partial modes, taking the preferred number
1448 of units from the size of the given mode.
1449 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
1450 in registers.
1451 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
1452 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
1453 (aarch64_split_sve_subreg_move): Use the mode form of
1454 aarch64_sve_pred_mode.
1455 (aarch64_secondary_reload): Handle partial modes in the same way
1456 as full big-endian vectors.
1457 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
1458 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
1459 merging with the Advanced SIMD modes. If two modes have the
1460 same size, try the Advanced SIMD mode first.
1461 (aarch64_simd_valid_immediate): Use the container rather than
1462 the element mode for INDEX constants.
1463 (aarch64_simd_vector_alignment): Make the alignment of partial
1464 SVE vector modes the same as their minimum size.
1465 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
1466 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
1467 (mov<SVE_ALL:mode>): ...this.
1468 (movmisalign<SVE_FULL:mode>): Extend to...
1469 (movmisalign<SVE_ALL:mode>): ...this.
1470 (*aarch64_sve_mov<mode>_le): Rename to...
1471 (*aarch64_sve_mov<mode>_ldr_str): ...this.
1472 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
1473 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
1474 partial modes regardless of endianness.
1475 (aarch64_sve_reload_be): Rename to...
1476 (aarch64_sve_reload_mem): ...this and enable for little-endian.
1477 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
1478 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
1479 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
1480 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
1481 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
1482 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1483 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1484 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1485 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1486 (maskload<SVE_FULL:mode><vpred>): Extend to...
1487 (maskload<SVE_ALL:mode><vpred>): ...this.
1488 (maskstore<SVE_FULL:mode><vpred>): Extend to...
1489 (maskstore<SVE_ALL:mode><vpred>): ...this.
1490 (vec_duplicate<SVE_FULL:mode>): Extend to...
1491 (vec_duplicate<SVE_ALL:mode>): ...this.
1492 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
1493 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
1494 (sve_ld1r<SVE_FULL:mode>): Extend to...
1495 (sve_ld1r<SVE_ALL:mode>): ...this.
1496 (vec_series<SVE_FULL_I:mode>): Extend to...
1497 (vec_series<SVE_I:mode>): ...this.
1498 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
1499 (*vec_series<SVE_I:mode>_plus): ...this.
1500 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
1501 new VPRED ambiguity.
1502 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1503 (add<SVE_FULL_I:mode>3): Extend to...
1504 (add<SVE_I:mode>3): ...this.
1505 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
1506 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
1507 (VPRED, vpred): Likewise.
1508 (Vctype): New iterator.
1509 (vw): Remove SVE modes.
1510
1511 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1512
1513 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
1514 (SVE_PARTIAL_I): ...this.
1515 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1516
1517 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1518
1519 * config/aarch64/iterators.md (SVE_ALL): Rename to...
1520 (SVE_FULL): ...this.
1521 (SVE_I): Rename to...
1522 (SVE_FULL_I): ...this.
1523 (SVE_F): Rename to...
1524 (SVE_FULL_F): ...this.
1525 (SVE_BHSI): Rename to...
1526 (SVE_FULL_BHSI): ...this.
1527 (SVE_HSD): Rename to...
1528 (SVE_FULL_HSD): ...this.
1529 (SVE_HSDI): Rename to...
1530 (SVE_FULL_HSDI): ...this.
1531 (SVE_HSF): Rename to...
1532 (SVE_FULL_HSF): ...this.
1533 (SVE_SD): Rename to...
1534 (SVE_FULL_SD): ...this.
1535 (SVE_SDI): Rename to...
1536 (SVE_FULL_SDI): ...this.
1537 (SVE_SDF): Rename to...
1538 (SVE_FULL_SDF): ...this.
1539 (SVE_S): Rename to...
1540 (SVE_FULL_S): ...this.
1541 (SVE_D): Rename to...
1542 (SVE_FULL_D): ...this.
1543 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1544 * config/aarch64/aarch64-sve2.md: Likewise.
1545
1546 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1547
1548 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
1549 New option.
1550 * doc/invoke.texi: Document it.
1551 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1552 By default, return VECT_COMPARE_COSTS for SVE.
1553
1554 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1555
1556 * target.h (VECT_COMPARE_COSTS): New constant.
1557 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
1558 * doc/tm.texi: Regenerate.
1559 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
1560 * targhooks.c (default_autovectorize_vector_modes): Likewise.
1561 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1562 Likewise.
1563 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
1564 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
1565 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
1566 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
1567 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
1568 (_loop_vec_info::vec_inside_cost): New member variables.
1569 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
1570 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
1571 (vect_analyze_loop): When autovectorize_vector_modes returns
1572 VECT_COMPARE_COSTS, try vectorizing the loop with each available
1573 vector mode and picking the one with the lowest cost.
1574 (vect_estimate_min_profitable_iters): Record the computed costs
1575 in the loop_vec_info.
1576
1577 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1578
1579 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
1580 element type rather than an element mode.
1581 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1582 Use get_vectype_for_scalar_type to query the natural types
1583 for a given element type rather than basing everything on
1584 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
1585 query to MAX_FIXED_MODE_SIZE.
1586 (duplicate_and_interleave): Update call accordingly.
1587 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1588
1589 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1590
1591 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
1592 optional maximum nunits.
1593 (get_vectype_for_scalar_type): Likewise. Also declare a form that
1594 takes an slp_tree.
1595 (get_mask_type_for_scalar_type): Take an optional slp_tree.
1596 (vect_get_mask_type_for_stmt): Likewise.
1597 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
1598 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
1599 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
1600 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
1601 to get an assumed vector type for data references.
1602 * tree-vect-slp.c (vect_update_shared_vectype): New function.
1603 (vect_update_all_shared_vectypes): Likewise.
1604 (vect_build_slp_tree_1): Pass the group size to
1605 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
1606 for BB vectorization.
1607 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
1608 before building the vectof from scalars.
1609 (vect_analyze_slp_instance): Pass the group size to
1610 get_vectype_for_scalar_type.
1611 (vect_slp_analyze_node_operations_1): Don't recompute the vector
1612 types for BB vectorization here; just handle the case in which
1613 we deferred the choice for booleans.
1614 (vect_get_constant_vectors): Pass the slp_tree to
1615 get_vectype_for_scalar_type.
1616 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
1617 (vectorizable_call): Likewise.
1618 (vectorizable_simd_clone_call): Likewise.
1619 (vectorizable_conversion): Likewise.
1620 (vectorizable_shift): Likewise.
1621 (vectorizable_operation): Likewise.
1622 (vectorizable_comparison): Likewise.
1623 (vect_is_simple_cond): Take the slp_tree as argument and
1624 pass it to get_vectype_for_scalar_type.
1625 (vectorizable_condition): Update call accordingly.
1626 (get_vectype_for_scalar_type): Take a group_size argument.
1627 For BB vectorization, limit the the vector to that number
1628 of elements. Also define an overload that takes an slp_tree.
1629 (get_mask_type_for_scalar_type): Add an slp_tree argument and
1630 pass it to get_vectype_for_scalar_type.
1631 (vect_get_vector_types_for_stmt): Add a group_size argument
1632 and pass it to get_vectype_for_scalar_type. Don't use the
1633 cached vector type for BB vectorization if a group size is given.
1634 Handle data references in that case.
1635 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
1636 pass it to get_mask_type_for_scalar_type.
1637
1638 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1639
1640 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
1641 parameter.
1642 (estimate_edge_time): Use it.
1643 * ipa-inline-analysis.c (do_estimate_edge_time): Add
1644 ret_nonspec_time parameter.
1645
1646 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
1647
1648 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
1649
1650 2019-11-15 Nick Clifton <nickc@redhat.com>
1651 Szabolcs Nagy <szabolcs.nagy@arm.com>
1652
1653 PR target/65649
1654 * config/microblaze/microblaze.c (print_operand): Print value as long.
1655
1656 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1657
1658 * ipa-inline.c (edge_badness, inline_small_functions): Revert
1659 accidental commit.
1660
1661 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1662
1663 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
1664 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
1665
1666 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1667
1668 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
1669 (gcn_conditional_register_usage): Use constants in place of hard-coded
1670 values.
1671 (gcn_hsa_declare_function_name): Set lower bound for number of
1672 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
1673 MAX_NORMAL_VGPR_COUNT.
1674
1675 2019-11-15 Martin Jambor <mjambor@suse.cz>
1676
1677 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
1678 declaration.
1679
1680 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1681
1682 * config/gcn/gcn.c (default_requested_args): New.
1683 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
1684 set with default_requested_args.
1685 (gcn_conditional_register_usage): Limit register usage of non-kernel
1686 functions. Reassign fixed registers if a non-standard set of args is
1687 requested.
1688 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
1689
1690 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
1691
1692 PR ipa/92528
1693 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
1694 aggregate jump function when inlined-to caller has no edge summary.
1695
1696 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1697
1698 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
1699
1700 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1701
1702 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
1703 prologue use of v0.
1704 (print_operand_address): Use v1 for zero vector offset.
1705
1706 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1707
1708 PR tree-optimization/92515
1709 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
1710 types when converting a vector/scalar shift into a vector/vector one,
1711 using tree_nop_conversion_p instead of useless_type_conversion_p.
1712 Move the conversion code to the transform block.
1713
1714 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1715
1716 * read-rtl-function.c
1717 (function_reader::add_fixup_source_location): Take additional
1718 parameter of a column.
1719 (function_reader::maybe_read_location): Optionally parse column
1720 information and pass to add_fixup_source_location.
1721
1722 2019-11-15 Richard Biener <rguenther@suse.de>
1723
1724 PR tree-optimization/92512
1725 * tree-vect-loop.c (check_reduction_path): Fix operand index
1726 computability check. Add check for second use in COND_EXPRs.
1727
1728 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1729
1730 PR target/92515
1731 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
1732 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
1733
1734 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1735
1736 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
1737 register class for VCC_LO and VCC_HI.
1738 (gcn_spill_class): Use SGPR_REGS to spill registers in
1739 VCC_CONDITIONAL_REG.
1740
1741 2019-11-15 Richard Biener <rguenther@suse.de>
1742
1743 PR tree-optimization/92324
1744 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1745 singedness of SLP reduction epilouge operations. Also reduce
1746 the vector width for SLP reductions before doing elementwise
1747 operations if possible.
1748
1749 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1750
1751 * passes.c (skip_pass): Set epilogue_completed if skipping the
1752 pro_and_epilogue pass.
1753
1754 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1755
1756 * passes.c (should_skip_pass_p): Always run "dfinish".
1757
1758 2019-11-15 Richard Biener <rguenther@suse.de>
1759
1760 * ipa-inline.c (inline_small_functions): Move assignment
1761 to next before call destroying edge.
1762
1763 2019-11-15 Richard Biener <rguenther@suse.de>
1764
1765 PR tree-optimization/92039
1766 PR tree-optimization/91975
1767 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
1768 previous change, treat invariants consistently as non-constant.
1769 (tree_estimate_loop_size): Ternary ops with just the first op
1770 constant are not optimized away.
1771
1772 2019-11-15 Jakub Jelinek <jakub@redhat.com>
1773
1774 * gimplify.c (gimplify_call_expr): Don't call
1775 omp_resolve_declare_variant after gimplification.
1776 * omp-general.c (omp_context_selector_matches): For isa that might
1777 match in some other function, defer if in declare simd function.
1778 (omp_context_compute_score): Don't look for " score" in construct
1779 trait set. Set *score to -1 if it can't ever match.
1780 (omp_resolve_declare_variant): If any variants need to be deferred,
1781 don't punt immediately, but compute scores of all variants and if
1782 ther eis a score winner that doesn't need to be deferred, return that.
1783
1784 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
1785
1786 * ipa-comdats.c: Fix comments typo.
1787 * ipa-profile.c: Fix comments typo.
1788 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
1789 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
1790 (gimple_gen_ic_func_profiler): Likewise.
1791 (pass_ipa_tree_profile::gate): Fix comments typo.
1792
1793 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
1794
1795 * ipa-inline.c (inline_small_functions): Update iterator of next.
1796
1797 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1798
1799 * lra-spills.c (assign_spill_hard_regs): Check that the spill
1800 register is suitable for the mode.
1801
1802 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1803
1804 * range-op.h (range_operator::fold_range): Return a bool.
1805 * range-op.cc (range_operator::wi_fold): Assert supported type.
1806 (range_operator::fold_range): Assert supported type and return true.
1807 (operator_equal::fold_range): Return true.
1808 (operator_not_equal::fold_range): Same.
1809 (operator_lt::fold_range): Same.
1810 (operator_le::fold_range): Same.
1811 (operator_gt::fold_range): Same.
1812 (operator_ge::fold_range): Same.
1813 (operator_plus::op1_range): Adjust call to fold_range.
1814 (operator_plus::op2_range): Same.
1815 (operator_minus::op1_range): Same.
1816 (operator_minus::op2_range): Same.
1817 (operator_exact_divide::op1_range): Same.
1818 (operator_lshift::fold_range): Return true and adjust fold_range call.
1819 (operator_rshift::fold_range): Same.
1820 (operator_cast::fold_range): Return true.
1821 (operator_logical_and::fold_range): Same.
1822 (operator_logical_or::fold_range): Same.
1823 (operator_logical_not::fold_range): Same.
1824 (operator_bitwise_not::fold_range): Adjust call to fold_range.
1825 (operator_bitwise_not::op1_range): Same.
1826 (operator_cst::fold_range): Return true.
1827 (operator_identity::fold_range): Return true.
1828 (operator_negate::fold_range): Return true and adjust fold_range call.
1829 (operator_addr_expr::fold_range): Return true.
1830 (operator_addr_expr::op1_range): Adjust call to fold_range.
1831 (range_cast): Same.
1832 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
1833 (range_fold_unary_symbolics_p): Same.
1834
1835 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1836
1837 PR tree-optimization/92506
1838 * range-op.cc (range_operator::fold_range): Start with range undefined.
1839 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
1840 overflow is varying.
1841
1842 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1843
1844 * range-op.cc (*operator*::*range): Remove calls to
1845 range_intersect, range_invert, and range_union in favor of calling
1846 the in-place API methods.
1847 (range_tests): Same.
1848 * range.cc (range_intersect): Remove.
1849 (range_union): Remove.
1850 (range_invert): Remove.
1851 * range.h (range_intersect): Remove.
1852 (range_union): Remove.
1853 (range_intersect): Remove.
1854
1855 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
1856
1857 PR rtl-optimization/92430
1858 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
1859 (pass_jump_after_combine::execute): Perform jump threading
1860 unconditionally.
1861
1862 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1863 Doug Rupp <rupp@adacore.com>
1864 Olivier Hainque <hainque@adacore.com>
1865
1866 * config.gcc: Collapse the arm-vxworks entries into
1867 a single arm-wrs-vxworks7* one, bpabi based. Update
1868 the default cpu from arm8 to armv7-a
1869 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
1870 we always use ARM_UNWIND_INFO.
1871 (DWARF2_UNWIND_INFO): Remove redefinition.
1872 (ARM_TARGET2_DWARF_FORMAT): Likewise.
1873 (VXWORKS_PERSONALITY): Define, to "llvm".
1874 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
1875
1876 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1877
1878 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
1879 _VX_CPU instead of CPU and handle arm_arch8.
1880
1881 2019-11-14 Doug Rupp <rupp@adacore.com>
1882 Olivier Hainque <hainque@adacore.com>
1883 Jerome Lambourg <lambourg@adacore.com>
1884
1885 * config.gcc: Handle aarch64*-wrs-vxworks7*.
1886 * config/aarch64/aarch64-vxworks.h: New file.
1887 * config/aarch64/t-aarch64-vxworks: New file.
1888
1889 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
1890 Olivier Hainque <hainque@adacore.com>
1891
1892 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
1893 definition, pointless with a VxWorks specific version
1894 of crtstuff.
1895 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
1896 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
1897 New local macros, controlling the addition of vxworks specific
1898 crtstuff objects depending on the EH mechanism and kind of
1899 module being linked.
1900 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
1901
1902 2019-11-06 Pat Bernardi <bernardi@adacore.com>
1903 Jerome Lambourg <lambourg@adacore.com>
1904 Olivier Hainque <hainque@adacore.com>
1905
1906 * config.gcc: Add comment to introduce the TARGET_VXWORKS
1907 common macro definitions, conveying VXWORKS7 or 64bit general
1908 variations. Add a block to set gcc_cv_initfini_array
1909 unconditionally to "yes" for VxWorks7.
1910 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
1911 by default. Update some comments.
1912 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
1913 default, to be added the end of VXWORKS_LIBS_RTP.
1914 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
1915 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
1916 redefine.
1917 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
1918 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
1919 to account for the now available TLS abilities.
1920 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
1921 (VXWORKS_HAVE_TLS): Likewise.
1922
1923 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1924
1925 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
1926 (vect_slp_convert_to_external): Likewise.
1927 (vect_slp_analyze_node_operations): If analysis fails, try building
1928 the node from scalars instead.
1929
1930 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1931
1932 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
1933 between vector types.
1934 * tree-vect-stmts.c (vectorizable_conversion): Extend the
1935 non-widening and non-narrowing path to handle standard
1936 conversion codes, if the target supports them.
1937 * expr.c (convert_move): Try using the extend and truncate optabs
1938 for vectors.
1939 * optabs-tree.c (supportable_convert_operation): Likewise.
1940 * config/aarch64/iterators.md (Vnarroqw): New iterator.
1941 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
1942 (trunc<mode><Vnarrowq>2): New patterns.
1943
1944 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1945
1946 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
1947 require vectype and nunits_vectype to have the same size;
1948 instead assert that nunits_vectype has at least as many
1949 elements as vectype. Don't compute a separate nunits_vectype
1950 if the scalar type is obviously the same as vectype's.
1951 Tweak dump messages.
1952
1953 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1954
1955 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
1956 function.
1957 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
1958 (TARGET_VECTORIZE_RELATED_MODE): Define.
1959
1960 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1961
1962 * tree-vectorizer.h (vec_info::mode_set): New typedef.
1963 (vec_info::used_vector_mode): New member variable.
1964 (vect_chooses_same_modes_p): Declare.
1965 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
1966 chosen vector mode in vec_info::used_vector_mode.
1967 (vect_chooses_same_modes_p): New function.
1968 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
1969 the same vector statements multiple times.
1970 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1971
1972 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1973
1974 * machmode.h (opt_machine_mode::operator==): New function.
1975 (opt_machine_mode::operator!=): Likewise.
1976 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
1977 (get_related_vectype_for_scalar_type): Delete.
1978 (get_vectype_for_scalar_type_and_size): Declare.
1979 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
1980 whether analysis passed or failed, and with what vector modes.
1981 Use related_vector_mode to check whether trying a particular
1982 vector mode would be redundant with the autodetected mode,
1983 and print a dump message if we decide to skip it.
1984 * tree-vect-loop.c (vect_analyze_loop): Likewise.
1985 (vect_create_epilog_for_reduction): Use
1986 get_related_vectype_for_scalar_type instead of
1987 get_vectype_for_scalar_type_and_size.
1988 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
1989 with...
1990 (get_related_vectype_for_scalar_type): ...this new function.
1991 Take a starting/"prevailing" vector mode rather than a vector size.
1992 Take an optional nunits argument, with the same meaning as for
1993 related_vector_mode. Use related_vector_mode when not
1994 auto-detecting a mode, falling back to mode_for_vector if no
1995 target mode exists.
1996 (get_vectype_for_scalar_type): Update accordingly.
1997 (get_same_sized_vectype): Likewise.
1998 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
1999
2000 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2001
2002 * tree-vect-stmts.c (vectorizable_call): Require the types
2003 to have the same size.
2004
2005 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2006
2007 * tree-vect-stmts.c (vectorizable_call): If an operand is
2008 constant or external, use get_vectype_for_scalar_type
2009 rather than get_same_sized_vectype to get its vector type.
2010 (vectorizable_conversion, vectorizable_shift): Likewise.
2011 (vectorizable_operation): Likewise.
2012
2013 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2014
2015 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2016 (vec_info::vector_mode): ...this new field.
2017 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2018 (vect_analyze_loop, vect_transform_loop): Likewise.
2019 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2020 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2021 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2022 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2023 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2024
2025 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2026
2027 * target.h (vector_sizes, auto_vector_sizes): Delete.
2028 (vector_modes, auto_vector_modes): New typedefs.
2029 * target.def (autovectorize_vector_sizes): Replace with...
2030 (autovectorize_vector_modes): ...this new hook.
2031 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2032 Replace with...
2033 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2034 * doc/tm.texi: Regenerate.
2035 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2036 (default_autovectorize_vector_modes): New function.
2037 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2038 (default_autovectorize_vector_modes): New function.
2039 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2040 of autovectorize_vector_sizes. Use the number of units in the mode
2041 to calculate the maximum VF.
2042 * omp-low.c (omp_clause_aligned_alignment): Use
2043 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2044 Use a loop based on related_mode to iterate through all supported
2045 vector modes for a given scalar mode.
2046 * optabs-query.c (can_vec_mask_load_store_p): Use
2047 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2048 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2049 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2050 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2051 Replace with...
2052 (aarch64_autovectorize_vector_modes): ...this new function.
2053 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2054 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2055 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2056 (arc_autovectorize_vector_modes): ...this new function.
2057 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2058 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2059 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2060 (arm_autovectorize_vector_modes): ...this new function.
2061 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2062 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2063 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2064 (ix86_autovectorize_vector_modes): ...this new function.
2065 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2066 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2067 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2068 (mips_autovectorize_vector_modes): ...this new function.
2069 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2070 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2071
2072 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2073
2074 * tree-vect-stmts.c (vectorizable_shift): Check the number
2075 of vector elements as well as the type mode when deciding
2076 whether an op1_vectype is compatible. Reuse the result of
2077 this check when generating vector statements.
2078
2079 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2080
2081 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2082 targetm.vectorize.preferred_simd_mode returns an integer mode,
2083 use mode_for_vector to decide what the vector type's mode
2084 should actually be. Use build_vector_type_for_mode instead
2085 of build_vector_type.
2086
2087 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2088
2089 * target.def (get_mask_mode): Take a vector mode itself as argument,
2090 instead of properties about the vector mode.
2091 * doc/tm.texi: Regenerate.
2092 * targhooks.h (default_get_mask_mode): Update to reflect new
2093 get_mode_mask interface.
2094 * targhooks.c (default_get_mask_mode): Likewise. Use
2095 related_int_vector_mode.
2096 * optabs-query.c (can_vec_mask_load_store_p): Update call
2097 to get_mask_mode.
2098 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2099 first that the original mode really is a vector.
2100 * tree.c (build_truth_vector_type_for): Likewise.
2101 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2102 get_mode_mask interface.
2103 (aarch64_expand_sve_vcond): Update call accordingly.
2104 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2105 get_mode_mask interface.
2106 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2107
2108 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2109
2110 * tree.h (build_truth_vector_type): Delete.
2111 (build_same_sized_truth_vector_type): Likewise.
2112 * tree.c (build_truth_vector_type): Rename to...
2113 (build_truth_vector_type_for): ...this. Make static and take
2114 a vector type as argument.
2115 (truth_type_for): Update accordingly.
2116 (build_same_sized_truth_vector_type): Delete.
2117 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2118 instead of build_same_sized_truth_vector_type.
2119 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2120 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2121 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2122 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2123 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2124 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2125 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2126 (vectorizable_store, vectorizable_condition): Likewise.
2127 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2128 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2129 build_truth_vector_type.
2130 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2131 Use truth_type_for instead of build_same_sized_truth_vector_type.
2132 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2133
2134 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2135
2136 * tree.h (build_truth_vector_type_for_mode): Declare.
2137 * tree.c (build_truth_vector_type_for_mode): New function,
2138 split out from...
2139 (build_truth_vector_type): ...here.
2140 (build_opaque_vector_type): Fix head comment.
2141 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2142 vec_info parameter.
2143 (vect_halve_mask_nunits): Replace vec_info parameter with the
2144 mode of the new vector.
2145 (vect_double_mask_nunits): Likewise.
2146 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2147 (vect_double_mask_nunits): Likewise.
2148 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2149 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2150 to vect_halve_mask_nunits, getting the required mode from the unpack
2151 patterns.
2152 (vect_set_loop_condition_masked): Update call accordingly.
2153 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2154 parameter and update call to vect_double_mask_nunits.
2155 (vectorizable_conversion): Update call accordingly.
2156 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2157 (vectorizable_call): Update call accordingly.
2158 (supportable_widening_operation): Update call to
2159 vect_halve_mask_nunits.
2160 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2161 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2162
2163 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2164
2165 * machmode.h (mode_for_int_vector): Delete.
2166 (related_int_vector_mode): Declare.
2167 * stor-layout.c (mode_for_int_vector): Delete.
2168 (related_int_vector_mode): New function.
2169 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2170 instead of mode_for_int_vector.
2171 (expand_vec_perm_const): Likewise.
2172 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2173 (aarch64_evpc_sve_tbl): Likewise.
2174 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2175 (s390_expand_vcond): Likewise.
2176
2177 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2178
2179 * target.def (related_mode): New hook.
2180 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2181 * doc/tm.texi: Regenerate.
2182 * targhooks.h (default_vectorize_related_mode): Declare.
2183 * targhooks.c (default_vectorize_related_mode): New function.
2184 * machmode.h (related_vector_mode): Declare.
2185 * stor-layout.c (related_vector_mode): New function.
2186 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2187 * optabs-query.c (qimode_for_vec_perm): Likewise.
2188 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2189 (vectorizable_store, vectorizable_load): Likewise
2190
2191 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2192
2193 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2194 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2195 * config/arm/arm-c.c (arm_cpu_builtins): Define
2196 __GCC_ASM_FLAG_OUTPUTS__.
2197 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2198 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2199 Define __GCC_ASM_FLAG_OUTPUTS__.
2200 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2201 * doc/extend.texi (FlagOutputOperands): Add documentation
2202 for ARM and AArch64.
2203
2204 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2205 * config/arm/predicates.md (nz_comparison_operator): Rename
2206 from noov_comparison_operator.
2207 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2208 (arm_gen_dicompare_reg): Likewise.
2209 (maybe_get_arm_condition_code): Likewise.
2210 (thumb1_final_prescan_insn): Likewise.
2211 (arm_emit_coreregs_64bit_shift): Likewise.
2212 * config/arm/arm.md (addsi3_compare0): Likewise.
2213 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2214 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2215 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2216 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2217 (*mulsi3addsi_compare0_scratch): Likewise.
2218 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2219 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2220 (*zeroextractsi_compare0_scratch): Likewise.
2221 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2222 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2223 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2224 (andsi_not_shiftsi_si_scc): Likewise.
2225 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2226 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2227 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2228 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2229 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2230 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2231 (return_addr_mask, *check_arch2): Likewise.
2232 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2233 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2234 (compare_scc splitters): Likewise.
2235 (movcond_addsi): Likewise.
2236 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2237 (*thumb2_addsi3_compare0_scratch): Likewise.
2238 (*thumb2_mulsi_short_compare0): Likewise.
2239 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2240 (compare peephole2s): Likewise.
2241 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2242 nz_comparison_operator names.
2243 (cbranchsi4_insn): Likewise.
2244
2245 * config/arm/constraints.md (c): Use cc_register predicate.
2246
2247 * config/aarch64/constraints.md (c): New constraint.
2248
2249 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2250
2251 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2252 ipa_merge_fn_summary_after_inlining): Micro optimize.
2253
2254 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2255
2256 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2257
2258 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2259
2260 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2261 (ipa_value_range_from_jfunc): New function.
2262 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2263 known_value_ranges parameter; use it to evalulate conditions.
2264 (evaluate_properties_for_edge): Compute known value ranges.
2265 (ipa_fn_summary_t::duplicate): Update use of
2266 evaluate_conditions_for_known_args.
2267 (estimate_ipcp_clone_size_and_time): Likewise.
2268 (ipa_merge_fn_summary_after_inlining): Likewise.
2269 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2270
2271 2019-11-14 Martin Liska <mliska@suse.cz>
2272
2273 * ipa-inline.c (want_inline_small_function_p): Use
2274 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2275 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2276
2277 2019-11-14 Martin Liska <mliska@suse.cz>
2278
2279 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2280 of a callee to get value of the param.
2281 * ipa-inline.c (inline_insns_auto): Use proper
2282 opt_for_fn.
2283 * opts.c (maybe_default_option): Do not overwrite param
2284 value if optimization level does not match. Note that
2285 params usually have default value set via Init() keyword.
2286 * params.opt: Remove -param=max-inline-insns-auto-O2.
2287 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2288 * doc/invoke.texi: Remove documentation of
2289 max-inline-insns-auto-O2.
2290
2291 2019-11-14 Martin Liska <mliska@suse.cz>
2292
2293 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2294 Do not initialize m_other_count.
2295 (switch_conversion::collect): Do not count m_default_count and
2296 m_other_count as we use frequencies for edges.
2297 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2298
2299 2019-11-14 Martin Liska <mliska@suse.cz>
2300
2301 PR other/92329
2302 * doc/invoke.texi: Document -fallocation-dce.
2303
2304 2019-11-14 Martin Liska <mliska@suse.cz>
2305
2306 PR target/92389
2307 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2308 PTA_ICELAKE_CLIENT which is later interited by
2309 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2310
2311 2019-11-14 Martin Liska <mliska@suse.cz>
2312
2313 * ipa-icf.c (sem_item_optimizer::execute): Save
2314 loaded_symbols.
2315 (sem_item_optimizer::parse_nonsingleton_classes):
2316 Return number of loaded symbols.
2317 (sem_item_optimizer::merge_classes): Print
2318 statistics about totally needed symbols.
2319 * ipa-icf.h (parse_nonsingleton_classes): Change return
2320 type.
2321 (merge_classes): Add one argument.
2322
2323 2019-11-14 Martin Liska <mliska@suse.cz>
2324
2325 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2326 func_checker::hash_operand by handling of FIELD_DECLs.
2327
2328 2019-11-14 Martin Liska <mliska@suse.cz>
2329
2330 * ipa-icf-gimple.h (func_checker::func_checker): Add
2331 default constructor.
2332 * ipa-icf.c (sem_function::init): Make operand_equal_p
2333 and hash_operand public.
2334 (sem_item::add_expr): Remove.
2335 (sem_item::add_type): Remove.
2336 (sem_function::hash_stmt): Use m_checker for hashing
2337 of GIMPLE statements.
2338 (sem_function::parse): Init with checker.
2339 (sem_variable::parse): Pass NULL as checker.
2340 (sem_item_optimizer::parse_funcs_and_vars):
2341 Pass checker to ::parse function.
2342 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2343 (sem_variable::parse): New function.
2344 (sem_variable::get_hash): Only return computed hash value.
2345 (sem_variable::init): Initialize hash of a variable.
2346 * ipa-icf.h: Remove add_expr, add_type and add func_checker
2347 to couple of functions as a new argument.
2348
2349 2019-11-14 Martin Liska <mliska@suse.cz>
2350
2351 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2352 bail out reason.
2353 (func_checker::compare_gimple_assign): Likewise.
2354
2355 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2356
2357 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2358 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2359 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2360
2361 * omp-general.c (omp_context_name_list_prop): New function.
2362 (omp_context_selector_matches): Use it. Return 0 if it returns
2363 NULL.
2364 (omp_context_selector_props_compare): Allow equivalency of an
2365 identifier and a string literal containing no embedded zeros.
2366
2367 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2368
2369 * range-op.cc (RANGE3): Remove.
2370 (range_tests): Remove all selftest that check for multi-ranges.
2371 Put tests in namespace selftest.
2372 * selftest.h: Move range_tests into namespace selftest.
2373 * value-range.h (class value_range): Unfriend range_tests.
2374
2375 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2376
2377 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2378 normalize_symbolics and normalize_addresses working in place.
2379 (range_fold_unary_symbolics_p): Same.
2380 (range_fold_unary_symbolics_p): Same.
2381 * value-range.cc (num_pairs): Same.
2382 (lower_bound): Same.
2383 (upper_bound): Same.
2384 (contains_p): Same.
2385 (normalize_addresses): Same.
2386 (normalize_symbolics): Same.
2387 * value-range.h (normalize_symbolics): Same.
2388 (normalize_addresses): Same.
2389
2390 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
2391
2392 PR ipa/91682
2393 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
2394 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
2395 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
2396 (ipa_agg_jump_function): Remove member function equal_to.
2397 (ipa_agg_jump_function_p): Remove typedef.
2398 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
2399 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
2400 information for aggregate jump function.
2401 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
2402 record last definition statement.
2403 (load_from_unmodified_param_or_agg): New function.
2404 (ipa_known_agg_contents_list): Add new field type and value, remove
2405 field constant.
2406 (build_agg_jump_func_from_list): Rename parameter const_count to
2407 value_count, build aggregate jump function from ipa_load_agg_data.
2408 (analyze_agg_content_value): New function.
2409 (extract_mem_content): Analyze memory store assignment to prepare
2410 information for aggregate jump function generation.
2411 (determine_known_aggregate_parts): Add new parameter fbi, remove
2412 parameter aa_walk_budeget_p.
2413 (update_jump_functions_after_inlining): Update aggregate jump function.
2414 (ipa_find_agg_cst_for_param): Change type of parameter agg.
2415 (try_make_edge_direct_simple_call): Add new parameter new_root.
2416 (try_make_edge_direct_virtual_call): Add new parameter new_root and
2417 new_root_info.
2418 (update_indirect_edges_after_inlining): Pass new argument to
2419 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
2420 (ipa_write_jump_function): Write aggregate jump function to file.
2421 (ipa_read_jump_function): Read aggregate jump function from file.
2422 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
2423 * ipa-cp.c (ipa_get_jf_arith_result): New function.
2424 (ipa_agg_value_from_node): Likewise.
2425 (ipa_agg_value_set_from_jfunc): Likewise.
2426 (propagate_vals_across_arith_jfunc): Likewise.
2427 (propagate_aggregate_lattice): Likewise.
2428 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
2429 (propagate_vals_across_pass_through): Call
2430 propagate_vals_across_arith_jfunc.
2431 (get_clone_agg_value): Move forward.
2432 (propagate_aggs_across_jump_function): Handle value propagation for
2433 aggregate jump function.
2434 (agg_jmp_p_vec_for_t_vec): Remove.
2435 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
2436 with vec<ipa_agg_value>.
2437 (copy_plats_to_inter, intersect_with_plats): Likewise.
2438 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
2439 (intersect_aggregate_with_edge): Likewise.
2440 (find_aggregate_values_for_callers_subset): Likewise.
2441 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
2442 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
2443 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2444 (gather_context_independent_values): Likewise.
2445 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
2446 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
2447 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2448 (evaluate_properties_for_edge): Likewise.
2449 (estimate_edge_devirt_benefit): Likewise.
2450 (estimate_edge_size_and_time): Likewise.
2451 (estimate_calls_size_and_time): Likewise.
2452 (ipa_call_context::ipa_call_context): Likewise.
2453 (estimate_ipcp_clone_size_and_time): Likewise.
2454 * ipa-fnsummary.h (ipa_call_context): Replace
2455 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2456 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
2457 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2458 (do_estimate_edge_size): Likewise.
2459 (do_estimate_edge_hints): Likewise.
2460
2461 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2462
2463 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
2464 binary operations.
2465
2466 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2467
2468 * ipa-profile.c (check_argument_count): Check properly that e_info
2469 is non-NULL; do not check descriptors.
2470
2471 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2472
2473 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
2474 check for ipa profiles.
2475
2476 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2477
2478 PR c++/92421
2479 * ipa-prop.c (update_indirect_edges_after_inlining):
2480 Mark parameter as used.
2481 * ipa-inline.c (recursive_inlining): Reset node cache
2482 after inlining.
2483 (inline_small_functions): Remove checking ifdef.
2484 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
2485 cache consistency.
2486
2487 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2488
2489 PR ipa/92498
2490 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
2491 is NULL.
2492 (ipa_profile): Fix reversed test.
2493
2494 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2495
2496 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
2497 (propagate_constants_topo): Fix typo.
2498
2499 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2500
2501 * Makefile.in (OBJS): Add value-range.o.
2502 (GTFILES): Add value-range.h.
2503 * gengtype.c (open_base_files): Add value-range.h to list of
2504 header files.
2505 * tree-vrp.c: Move the following value_range related functions:
2506 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
2507 constant_p, set_undefined, set_varying, may_contain_p,
2508 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
2509 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
2510 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
2511 value_inside_range, ranges_from_anti_range, union_ranges,
2512 intersect_ranges, intersect_helper, union_helper, union_,
2513 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
2514 upper_bound, contains_p, invert, intersect...
2515 * value-range.cc: ...to here.
2516 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
2517 associated inline methods from here...
2518 * value-range.h: ...to here.
2519
2520 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2521
2522 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
2523 instead of asserting its value.
2524
2525 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2526
2527 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
2528 constructors and set methods so value_range_kind is the last
2529 argument and defaults to VR_RANGE.
2530 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
2531 * ipa-cp.c (propagate_vr_across_jump_function): Same.
2532 * ipa-prop.c (ipa_get_value_range): Same.
2533 (ipa_compute_jump_functions_for_edge): Same.
2534 * range-op.cc (value_range_from_overflowed_bounds): Same.
2535 (operator_cast::op1_range): Same.
2536 (range_tests): Same.
2537 * range.cc (range_nonzero): Same.
2538 * tree-ssanames.c (get_range_info): Same.
2539 * tree-vrp.c (value_range_equiv::set): Same.
2540 (value_range::value_range): Same.
2541 (value_range_equiv::value_range_equiv): Same.
2542 (value_range_equiv::update): Same.
2543 (value_range_equiv::deep_copy): Same.
2544 (value_range_equiv::move): Same.
2545 (value_range_equiv::set_undefined): Same.
2546 (value_range::set): Same.
2547 (value_range::set_nonzero): Same.
2548 (ranges_from_anti_range): Same.
2549 (extract_range_from_plus_minus_expr): Same.
2550 (value_range::intersect_helper): Same.
2551 (value_range_equiv::intersect): Same.
2552 (value_range::union_helper): Same.
2553 (value_range_equiv::union_): Same.
2554 (value_range::normalize_symbolics): Same.
2555 (value_range::invert): Same.
2556 (determine_value_range_1): Same.
2557 * tree-vrp.h (class value_range): Same.
2558 (class value_range_equiv): Same.
2559 * vr-values.c (set_value_range_to_nonnegative): Same.
2560 (set_value_range_to_truthvalue): Same.
2561 (vr_values::update_value_range): Same.
2562 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2563 (vr_values::extract_range_from_binary_expr): Same.
2564 (vr_values::extract_range_from_comparison): Same.
2565 (vr_values::extract_range_basic): Same.
2566 (vr_values::adjust_range_with_scev): Same.
2567 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
2568 (vr_values::extract_range_from_phi_node): Same.
2569
2570 2019-11-13 Ulrich Drepper <drepper@redhat.com>
2571
2572 * tree-dump.c (dequeue_and_dump): Print first tree operand
2573 for VIEW_CONVERT_EXPR.
2574
2575 2019-11-13 Joseph Myers <joseph@codesourcery.com>
2576
2577 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
2578 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
2579 * real.c (get_max_float): Add norm_max argument.
2580 * real.h (get_max_float): Update prototype.
2581 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
2582 get_max_float.
2583
2584 2019-11-13 Martin Liska <mliska@suse.cz>
2585
2586 * dbgcnt.c (test_sorted_dbg_counters): New.
2587 (dbgcnt_c_tests): Likewise.
2588 * selftest-run-tests.c (selftest::run_tests): Likewise.
2589 * selftest.h (dbgcnt_c_tests): Likewise.
2590
2591 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2592 Martin Jambor <mjambor@suse.cz>
2593
2594 PR ipa/92454
2595 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
2596 (identify_dead_nodes): Likewise.
2597
2598 2019-11-13 Martin Liska <mliska@suse.cz>
2599
2600 * ipa-icf.c (sem_function::equals_private): Do not overuse
2601 push/pop_cfun functions.
2602
2603 2019-11-13 Martin Liska <mliska@suse.cz>
2604
2605 * common.opt: Document change of -fdbg-cnt option.
2606 * dbgcnt.c (DEBUG_COUNTER): Remove.
2607 (dbg_cnt_is_enabled): Remove.
2608 (dbg_cnt): Work with new intervals.
2609 (dbg_cnt_set_limit_by_index): Set to new
2610 list of intervals.
2611 (dbg_cnt_set_limit_by_name): Likewise.
2612 (dbg_cnt_process_single_pair): Process new format.
2613 (dbg_cnt_process_opt): Likewise.
2614 (dbg_cnt_list_all_counters): Likewise.
2615 * doc/invoke.texi: Document change of -fdbg-cnt option.
2616 (cmp_tuples): New.
2617
2618 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2619
2620 * ipa-inline.c (ipa_inline): Check that function is defined before
2621 flattening.
2622
2623 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2624 Julian Brown <julian@codesourcery.com>
2625
2626 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
2627 flag_worker_partitioning is not set.
2628 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
2629 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
2630
2631 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2632
2633 * config/gcn/gcn-run.c (heap_region): New global variable.
2634 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
2635 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
2636 (get_kernarg_region): Move contents to ....
2637 (get_memory_region): .... here.
2638 (get_heap_region): New function.
2639 (init_device): Initialize the heap_region.
2640 (device_malloc): Add region parameter.
2641 (struct kernargs): Move heap ....
2642 (heap): ... to global scope.
2643 (main): Allocate heap separate to kernargs.
2644
2645 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2646
2647 * ipa-prop.c (ipa_print_node_jump_functions,
2648 ipa_print_node_params): Print info about missing summaries.
2649
2650 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2651
2652 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
2653 the cost of generating loop masks.
2654
2655 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2656
2657 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
2658 New function.
2659 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
2660 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2661 (vect_transform_loop): Likewise.
2662 (vect_analyze_loop_costing): Don't take the cost of versioning
2663 into account for the static profitability threshold if it turns
2664 out that no versioning is needed.
2665
2666 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2667
2668 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
2669 and target_option_default_node to get -fprofile-generate ctors working
2670 right with LTO.
2671
2672 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2673
2674 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
2675 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
2676 (vectorizable_assignment): Don't add a cost for nop conversions.
2677 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2678 Likewise.
2679 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
2680
2681 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2682
2683 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
2684 number of ncopies as an additional argument.
2685 (vectorizable_conversion): Update call accordingly. Use "modifier"
2686 to check whether a conversion is between vectors with the same
2687 numbers of units.
2688
2689 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2690
2691 * config/aarch64/aarch64-sve-builtins-functions.h
2692 (unary_count::expand): Use aarch64_sve_int_mode instead of
2693 mode_for_int_vector.
2694
2695 2019-11-13 Martin Liska <mliska@suse.cz>
2696
2697 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
2698
2699 2019-11-13 Martin Liska <mliska@suse.cz>
2700
2701 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2702 Remove call to finalize_options_struct.
2703
2704 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
2705
2706 PR target/92055
2707 * config/avr/t-avr (avr-mcus): Do not depend on
2708 $(srcdir)/config/avr/t-multilib.
2709
2710 2019-11-13 Richard Biener <rguenther@suse.de>
2711
2712 PR tree-optimization/92473
2713 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
2714 direct optab reduction in the correct type.
2715
2716 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2717
2718 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
2719 hexadecimal literal.
2720
2721 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2722
2723 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
2724 UNORDERED if !HONOR_NANS (DFmode).
2725 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
2726 if !HONOR_NANS (<MODE>mode).
2727
2728 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2729
2730 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
2731 (ipcp_verify_propagated_values): Likewise.
2732 (propagate_constants_across_call): Likewise.
2733 (propagate_constants_topo): Likewise.
2734 (ipcp_propagate_stage): Likewise.
2735
2736 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2737
2738 PR ipa/92471
2739 * ipa-profile.c (check_argument_count): Break out from ...;
2740 watch for missing summaries.
2741 (ipa_profile): Here.
2742
2743 2019-11-12 Martin Sebor <msebor@redhat.com>
2744
2745 PR tree-optimization/92412
2746 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
2747 extern variables.
2748
2749 2019-11-12 Martin Sebor <msebor@redhat.com>
2750
2751 PR middle-end/83688
2752 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
2753 (directive::argno): New member.
2754 (format_result::aliases, format_result::alias_count): New data members.
2755 (format_result::append_alias): New member function.
2756 (fmtresult::dst_offset): New data member.
2757 (pass_sprintf_length::call_info::dst_origin): New data member.
2758 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
2759 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
2760 (get_origin_and_offset): Same.
2761 (format_string): Call it.
2762 (format_directive): Call append_alias and set directive argument
2763 number.
2764 (maybe_warn_overlap): New function.
2765 (pass_sprintf_length::compute_format_length): Call it.
2766 (pass_sprintf_length::handle_gimple_call): Initialize new members.
2767 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
2768
2769 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
2770
2771 PR rtl-optimization/92430
2772 * cfgcleanup.c (pass_jump_after_combine::execute): Free
2773 dominance info at the beginning.
2774
2775 2019-11-12 Richard Biener <rguenther@suse.de>
2776
2777 PR tree-optimization/92460
2778 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
2779 expression before gimplifying.
2780
2781 2019-11-12 Richard Biener <rguenther@suse.de>
2782
2783 PR tree-optimization/92461
2784 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
2785 stmt after propagation.
2786
2787 2019-11-12 Martin Liska <mliska@suse.cz>
2788
2789 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
2790 Use SET_OPTION_IF_UNSET.
2791 (ix86_option_override_internal): Likewise.
2792 * opts.c (default_options_optimization): Likewise.
2793 (finish_options): Likewise.
2794 (enable_fdo_optimizations): Likewise.
2795 (common_handle_option): Likewise.
2796
2797 2019-11-12 Martin Liska <mliska@suse.cz>
2798
2799 * common/common-target.def: Remove option_validate_param and
2800 option_default_params.
2801 * common/common-targhooks.c (default_option_validate_param):
2802 Remove.
2803 * common/common-targhooks.h (default_option_validate_param):
2804 Remove.
2805 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
2806 Remove usage of this.
2807 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
2808 (aarch64_option_validate_param): Likewise.
2809 (aarch64_option_default_params): Likewise
2810 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
2811 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2812 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2813 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2814 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2815 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2816 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2817 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2818 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2819 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2820 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
2821 guard_size here.
2822 * doc/tm.texi: Remove option_default_params and option_validate_param.
2823 * doc/tm.texi.in: Likewise.
2824
2825 2019-11-12 Martin Liska <mliska@suse.cz>
2826
2827 * common/common-target.def:
2828 Do not mention set_default_param_value
2829 and set_param_value.
2830 * doc/tm.texi: Likewise.
2831
2832 2019-11-12 Martin Liska <mliska@suse.cz>
2833
2834 * common.opt: Remove param_values.
2835 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
2836 Remove finalize_options_struct.
2837 * gcc.c (driver::decode_argv): Do not call global_init_params
2838 and finish_params.
2839 (driver::finalize): Do not call params_c_finalize
2840 and finalize_options_struct.
2841 * opt-suggestions.c (option_proposer::get_completions): Remove
2842 special casing of params.
2843 (option_proposer::find_param_completions): Remove.
2844 (test_completion_partial_match): Update expected output.
2845 * opt-suggestions.h: Remove find_param_completions.
2846 * opts-common.c (add_misspelling_candidates): Add
2847 --param with a space.
2848 * opts.c (handle_param): Remove.
2849 (init_options_struct):. Remove init_options_struct and
2850 similar calls.
2851 (finalize_options_struct): Remove.
2852 (common_handle_option): Use SET_OPTION_IF_UNSET.
2853 * opts.h (finalize_options_struct): Remove.
2854 * toplev.c (general_init): Do not call global_init_params.
2855 (toplev::finalize): Do not call params_c_finalize and
2856 finalize_options_struct.
2857
2858 2019-11-12 Martin Liska <mliska@suse.cz>
2859
2860 * Makefile.in: Remove PARAMS_H and params.list
2861 and params.options.
2862 * params-enum.h: Remove.
2863 * params-list.h: Remove.
2864 * params-options.h: Remove.
2865 * params.c: Remove.
2866 * params.def: Remove.
2867 * params.h: Remove.
2868 * asan.c: Do not include params.h.
2869 * auto-profile.c: Likewise.
2870 * bb-reorder.c: Likewise.
2871 * builtins.c: Likewise.
2872 * cfgcleanup.c: Likewise.
2873 * cfgexpand.c: Likewise.
2874 * cfgloopanal.c: Likewise.
2875 * cgraph.c: Likewise.
2876 * combine.c: Likewise.
2877 * common/config/aarch64/aarch64-common.c: Likewise.
2878 * common/config/gcn/gcn-common.c: Likewise.
2879 * common/config/ia64/ia64-common.c: Likewise.
2880 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
2881 * common/config/rs6000/rs6000-common.c: Likewise.
2882 * common/config/sh/sh-common.c: Likewise.
2883 * config/aarch64/aarch64.c: Likewise.
2884 * config/alpha/alpha.c: Likewise.
2885 * config/arm/arm.c: Likewise.
2886 * config/avr/avr.c: Likewise.
2887 * config/csky/csky.c: Likewise.
2888 * config/i386/i386-builtins.c: Likewise.
2889 * config/i386/i386-expand.c: Likewise.
2890 * config/i386/i386-features.c: Likewise.
2891 * config/i386/i386-options.c: Likewise.
2892 * config/i386/i386.c: Likewise.
2893 * config/ia64/ia64.c: Likewise.
2894 * config/rs6000/rs6000-logue.c: Likewise.
2895 * config/rs6000/rs6000.c: Likewise.
2896 * config/s390/s390.c: Likewise.
2897 * config/sparc/sparc.c: Likewise.
2898 * config/visium/visium.c: Likewise.
2899 * coverage.c: Likewise.
2900 * cprop.c: Likewise.
2901 * cse.c: Likewise.
2902 * cselib.c: Likewise.
2903 * dse.c: Likewise.
2904 * emit-rtl.c: Likewise.
2905 * explow.c: Likewise.
2906 * final.c: Likewise.
2907 * fold-const.c: Likewise.
2908 * gcc.c: Likewise.
2909 * gcse.c: Likewise.
2910 * ggc-common.c: Likewise.
2911 * ggc-page.c: Likewise.
2912 * gimple-loop-interchange.cc: Likewise.
2913 * gimple-loop-jam.c: Likewise.
2914 * gimple-loop-versioning.cc: Likewise.
2915 * gimple-ssa-split-paths.c: Likewise.
2916 * gimple-ssa-sprintf.c: Likewise.
2917 * gimple-ssa-store-merging.c: Likewise.
2918 * gimple-ssa-strength-reduction.c: Likewise.
2919 * gimple-ssa-warn-alloca.c: Likewise.
2920 * gimple-ssa-warn-restrict.c: Likewise.
2921 * graphite-isl-ast-to-gimple.c: Likewise.
2922 * graphite-optimize-isl.c: Likewise.
2923 * graphite-scop-detection.c: Likewise.
2924 * graphite-sese-to-poly.c: Likewise.
2925 * graphite.c: Likewise.
2926 * haifa-sched.c: Likewise.
2927 * hsa-gen.c: Likewise.
2928 * ifcvt.c: Likewise.
2929 * ipa-cp.c: Likewise.
2930 * ipa-fnsummary.c: Likewise.
2931 * ipa-inline-analysis.c: Likewise.
2932 * ipa-inline.c: Likewise.
2933 * ipa-polymorphic-call.c: Likewise.
2934 * ipa-profile.c: Likewise.
2935 * ipa-prop.c: Likewise.
2936 * ipa-split.c: Likewise.
2937 * ipa-sra.c: Likewise.
2938 * ira-build.c: Likewise.
2939 * ira-conflicts.c: Likewise.
2940 * loop-doloop.c: Likewise.
2941 * loop-invariant.c: Likewise.
2942 * loop-unroll.c: Likewise.
2943 * lra-assigns.c: Likewise.
2944 * lra-constraints.c: Likewise.
2945 * modulo-sched.c: Likewise.
2946 * opt-suggestions.c: Likewise.
2947 * opts.c: Likewise.
2948 * postreload-gcse.c: Likewise.
2949 * predict.c: Likewise.
2950 * reload.c: Likewise.
2951 * reorg.c: Likewise.
2952 * resource.c: Likewise.
2953 * sanopt.c: Likewise.
2954 * sched-deps.c: Likewise.
2955 * sched-ebb.c: Likewise.
2956 * sched-rgn.c: Likewise.
2957 * sel-sched-ir.c: Likewise.
2958 * sel-sched.c: Likewise.
2959 * shrink-wrap.c: Likewise.
2960 * stmt.c: Likewise.
2961 * targhooks.c: Likewise.
2962 * toplev.c: Likewise.
2963 * tracer.c: Likewise.
2964 * trans-mem.c: Likewise.
2965 * tree-chrec.c: Likewise.
2966 * tree-data-ref.c: Likewise.
2967 * tree-if-conv.c: Likewise.
2968 * tree-inline.c: Likewise.
2969 * tree-loop-distribution.c: Likewise.
2970 * tree-parloops.c: Likewise.
2971 * tree-predcom.c: Likewise.
2972 * tree-profile.c: Likewise.
2973 * tree-scalar-evolution.c: Likewise.
2974 * tree-sra.c: Likewise.
2975 * tree-ssa-ccp.c: Likewise.
2976 * tree-ssa-dom.c: Likewise.
2977 * tree-ssa-dse.c: Likewise.
2978 * tree-ssa-ifcombine.c: Likewise.
2979 * tree-ssa-loop-ch.c: Likewise.
2980 * tree-ssa-loop-im.c: Likewise.
2981 * tree-ssa-loop-ivcanon.c: Likewise.
2982 * tree-ssa-loop-ivopts.c: Likewise.
2983 * tree-ssa-loop-manip.c: Likewise.
2984 * tree-ssa-loop-niter.c: Likewise.
2985 * tree-ssa-loop-prefetch.c: Likewise.
2986 * tree-ssa-loop-unswitch.c: Likewise.
2987 * tree-ssa-math-opts.c: Likewise.
2988 * tree-ssa-phiopt.c: Likewise.
2989 * tree-ssa-pre.c: Likewise.
2990 * tree-ssa-reassoc.c: Likewise.
2991 * tree-ssa-sccvn.c: Likewise.
2992 * tree-ssa-scopedtables.c: Likewise.
2993 * tree-ssa-sink.c: Likewise.
2994 * tree-ssa-strlen.c: Likewise.
2995 * tree-ssa-structalias.c: Likewise.
2996 * tree-ssa-tail-merge.c: Likewise.
2997 * tree-ssa-threadbackward.c: Likewise.
2998 * tree-ssa-threadedge.c: Likewise.
2999 * tree-ssa-uninit.c: Likewise.
3000 * tree-switch-conversion.c: Likewise.
3001 * tree-vect-data-refs.c: Likewise.
3002 * tree-vect-loop.c: Likewise.
3003 * tree-vect-slp.c: Likewise.
3004 * tree-vrp.c: Likewise.
3005 * tree.c: Likewise.
3006 * value-prof.c: Likewise.
3007 * var-tracking.c: Likewise.
3008
3009 2019-11-12 Martin Liska <mliska@suse.cz>
3010
3011 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3012 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3013 macro.
3014 (asan_sanitize_allocas_p): Likewise.
3015 (asan_emit_stack_protection): Likewise.
3016 (asan_protect_global): Likewise.
3017 (instrument_derefs): Likewise.
3018 (instrument_builtin_call): Likewise.
3019 (asan_expand_mark_ifn): Likewise.
3020 * auto-profile.c (auto_profile): Likewise.
3021 * bb-reorder.c (copy_bb_p): Likewise.
3022 (duplicate_computed_gotos): Likewise.
3023 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3024 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3025 (try_crossjump_bb): Likewise.
3026 * cfgexpand.c (defer_stack_allocation): Likewise.
3027 (stack_protect_classify_type): Likewise.
3028 (pass_expand::execute): Likewise.
3029 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3030 (estimate_reg_pressure_cost): Likewise.
3031 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3032 * combine.c (combine_instructions): Likewise.
3033 (record_value_for_reg): Likewise.
3034 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3035 (aarch64_option_default_params): Likewise.
3036 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3037 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3038 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3039 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3040 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3041 (aarch64_allocate_and_probe_stack_space): Likewise.
3042 (aarch64_expand_epilogue): Likewise.
3043 (aarch64_override_options_internal): Likewise.
3044 * config/alpha/alpha.c (alpha_option_override): Likewise.
3045 * config/arm/arm.c (arm_option_override): Likewise.
3046 (arm_valid_target_attribute_p): Likewise.
3047 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3048 * config/i386/i386.c (get_probe_interval): Likewise.
3049 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3050 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3051 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3052 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3053 (get_stack_clash_protection_guard_size): Likewise.
3054 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3055 * config/s390/s390.c (allocate_stack_space): Likewise.
3056 (s390_emit_prologue): Likewise.
3057 (s390_option_override_internal): Likewise.
3058 * config/sparc/sparc.c (sparc_option_override): Likewise.
3059 * config/visium/visium.c (visium_option_override): Likewise.
3060 * coverage.c (get_coverage_counts): Likewise.
3061 (coverage_compute_profile_id): Likewise.
3062 (coverage_begin_function): Likewise.
3063 (coverage_end_function): Likewise.
3064 * cse.c (cse_find_path): Likewise.
3065 (cse_extended_basic_block): Likewise.
3066 (cse_main): Likewise.
3067 * cselib.c (cselib_invalidate_mem): Likewise.
3068 * dse.c (dse_step1): Likewise.
3069 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3070 (get_max_insn_count): Likewise.
3071 (make_debug_insn_raw): Likewise.
3072 (init_emit): Likewise.
3073 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3074 * final.c (compute_alignments): Likewise.
3075 * fold-const.c (fold_range_test): Likewise.
3076 (fold_truth_andor): Likewise.
3077 (tree_single_nonnegative_warnv_p): Likewise.
3078 (integer_valued_real_single_p): Likewise.
3079 * gcse.c (want_to_gcse_p): Likewise.
3080 (prune_insertions_deletions): Likewise.
3081 (hoist_code): Likewise.
3082 (gcse_or_cprop_is_too_expensive): Likewise.
3083 * ggc-common.c: Likewise.
3084 * ggc-page.c (ggc_collect): Likewise.
3085 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3086 (MAX_DATAREFS): Likewise.
3087 (OUTER_STRIDE_RATIO): Likewise.
3088 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3089 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3090 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3091 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3092 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3093 (imm_store_chain_info::output_merged_store): Likewise.
3094 (pass_store_merging::process_store): Likewise.
3095 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3096 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3097 (scop_to_isl_ast): Likewise.
3098 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3099 (optimize_isl): Likewise.
3100 * graphite-scop-detection.c (build_scops): Likewise.
3101 * haifa-sched.c (set_modulo_params): Likewise.
3102 (rank_for_schedule): Likewise.
3103 (model_add_to_worklist): Likewise.
3104 (model_promote_insn): Likewise.
3105 (model_choose_insn): Likewise.
3106 (queue_to_ready): Likewise.
3107 (autopref_multipass_dfa_lookahead_guard): Likewise.
3108 (schedule_block): Likewise.
3109 (sched_init): Likewise.
3110 * hsa-gen.c (init_prologue): Likewise.
3111 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3112 (cond_move_process_if_block): Likewise.
3113 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3114 (merge_agg_lats_step): Likewise.
3115 (devirtualization_time_bonus): Likewise.
3116 (hint_time_bonus): Likewise.
3117 (incorporate_penalties): Likewise.
3118 (good_cloning_opportunity_p): Likewise.
3119 (ipcp_propagate_stage): Likewise.
3120 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3121 (set_switch_stmt_execution_predicate): Likewise.
3122 (analyze_function_body): Likewise.
3123 (compute_fn_summary): Likewise.
3124 * ipa-inline-analysis.c (estimate_growth): Likewise.
3125 * ipa-inline.c (caller_growth_limits): Likewise.
3126 (inline_insns_single): Likewise.
3127 (inline_insns_auto): Likewise.
3128 (can_inline_edge_by_limits_p): Likewise.
3129 (want_early_inline_function_p): Likewise.
3130 (big_speedup_p): Likewise.
3131 (want_inline_small_function_p): Likewise.
3132 (want_inline_self_recursive_call_p): Likewise.
3133 (edge_badness): Likewise.
3134 (recursive_inlining): Likewise.
3135 (compute_max_insns): Likewise.
3136 (early_inliner): Likewise.
3137 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3138 * ipa-profile.c (ipa_profile): Likewise.
3139 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3140 (ipa_analyze_node): Likewise.
3141 (ipcp_transform_function): Likewise.
3142 * ipa-split.c (consider_split): Likewise.
3143 * ipa-sra.c (allocate_access): Likewise.
3144 (process_scan_results): Likewise.
3145 (ipa_sra_summarize_function): Likewise.
3146 (pull_accesses_from_callee): Likewise.
3147 * ira-build.c (loop_compare_func): Likewise.
3148 (mark_loops_for_removal): Likewise.
3149 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3150 * loop-doloop.c (doloop_optimize): Likewise.
3151 * loop-invariant.c (gain_for_invariant): Likewise.
3152 (move_loop_invariants): Likewise.
3153 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3154 (decide_unroll_runtime_iterations): Likewise.
3155 (decide_unroll_stupid): Likewise.
3156 (expand_var_during_unrolling): Likewise.
3157 * lra-assigns.c (spill_for): Likewise.
3158 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3159 * modulo-sched.c (sms_schedule): Likewise.
3160 (DFA_HISTORY): Likewise.
3161 * opts.c (default_options_optimization): Likewise.
3162 (finish_options): Likewise.
3163 (common_handle_option): Likewise.
3164 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3165 (if): Likewise.
3166 * predict.c (get_hot_bb_threshold): Likewise.
3167 (maybe_hot_count_p): Likewise.
3168 (probably_never_executed): Likewise.
3169 (predictable_edge_p): Likewise.
3170 (predict_loops): Likewise.
3171 (expr_expected_value_1): Likewise.
3172 (tree_predict_by_opcode): Likewise.
3173 (handle_missing_profiles): Likewise.
3174 * reload.c (find_equiv_reg): Likewise.
3175 * reorg.c (redundant_insn): Likewise.
3176 * resource.c (mark_target_live_regs): Likewise.
3177 (incr_ticks_for_insn): Likewise.
3178 * sanopt.c (pass_sanopt::execute): Likewise.
3179 * sched-deps.c (sched_analyze_1): Likewise.
3180 (sched_analyze_2): Likewise.
3181 (sched_analyze_insn): Likewise.
3182 (deps_analyze_insn): Likewise.
3183 * sched-ebb.c (schedule_ebbs): Likewise.
3184 * sched-rgn.c (find_single_block_region): Likewise.
3185 (too_large): Likewise.
3186 (haifa_find_rgns): Likewise.
3187 (extend_rgns): Likewise.
3188 (new_ready): Likewise.
3189 (schedule_region): Likewise.
3190 (sched_rgn_init): Likewise.
3191 * sel-sched-ir.c (make_region_from_loop): Likewise.
3192 * sel-sched-ir.h (MAX_WS): Likewise.
3193 * sel-sched.c (process_pipelined_exprs): Likewise.
3194 (sel_setup_region_sched_flags): Likewise.
3195 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3196 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3197 * toplev.c (print_version): Likewise.
3198 (process_options): Likewise.
3199 * tracer.c (tail_duplicate): Likewise.
3200 * trans-mem.c (tm_log_add): Likewise.
3201 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3202 * tree-data-ref.c (split_constant_offset): Likewise.
3203 (compute_all_dependences): Likewise.
3204 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3205 * tree-inline.c (remap_gimple_stmt): Likewise.
3206 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3207 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3208 (create_parallel_loop): Likewise.
3209 * tree-predcom.c (determine_unroll_factor): Likewise.
3210 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3211 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3212 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3213 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3214 (dse_optimize_redundant_stores): Likewise.
3215 (dse_classify_store): Likewise.
3216 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3217 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3218 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3219 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3220 (try_peel_loop): Likewise.
3221 (tree_unroll_loops_completely): Likewise.
3222 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3223 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3224 (MAX_CONSIDERED_GROUPS): Likewise.
3225 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3226 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3227 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3228 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3229 (L1_CACHE_SIZE_BYTES): Likewise.
3230 (L2_CACHE_SIZE_BYTES): Likewise.
3231 (should_issue_prefetch_p): Likewise.
3232 (schedule_prefetches): Likewise.
3233 (determine_unroll_factor): Likewise.
3234 (volume_of_references): Likewise.
3235 (add_subscript_strides): Likewise.
3236 (self_reuse_distance): Likewise.
3237 (mem_ref_count_reasonable_p): Likewise.
3238 (insn_to_prefetch_ratio_too_small_p): Likewise.
3239 (loop_prefetch_arrays): Likewise.
3240 (tree_ssa_prefetch_arrays): Likewise.
3241 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3242 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3243 (convert_mult_to_fma): Likewise.
3244 (math_opts_dom_walker::after_dom_children): Likewise.
3245 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3246 (hoist_adjacent_loads): Likewise.
3247 (gate_hoist_loads): Likewise.
3248 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3249 (compute_partial_antic_aux): Likewise.
3250 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3251 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3252 (vn_reference_lookup): Likewise.
3253 (do_rpo_vn): Likewise.
3254 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3255 * tree-ssa-sink.c (select_best_block): Likewise.
3256 * tree-ssa-strlen.c (new_stridx): Likewise.
3257 (new_addr_stridx): Likewise.
3258 (get_range_strlen_dynamic): Likewise.
3259 (class ssa_name_limit_t): Likewise.
3260 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3261 (create_variable_info_for_1): Likewise.
3262 (init_alias_vars): Likewise.
3263 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3264 (tail_merge_optimize): Likewise.
3265 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3266 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3267 (thread_jumps::find_jump_threads_backwards): Likewise.
3268 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3269 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3270 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3271 (jump_table_cluster::can_be_handled): Likewise.
3272 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3273 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3274 (param_switch_conversion_branch_ratio): Likewise.
3275 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3276 (vect_enhance_data_refs_alignment): Likewise.
3277 (vect_prune_runtime_alias_test_list): Likewise.
3278 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3279 (vect_get_datarefs_in_loop): Likewise.
3280 (vect_analyze_loop): Likewise.
3281 * tree-vect-slp.c (vect_slp_bb): Likewise.
3282 * tree-vectorizer.h: Likewise.
3283 * tree-vrp.c (find_switch_asserts): Likewise.
3284 (vrp_prop::check_mem_ref): Likewise.
3285 * tree.c (wide_int_to_tree_1): Likewise.
3286 (cache_integer_cst): Likewise.
3287 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3288 (reverse_op): Likewise.
3289 (vt_find_locations): Likewise.
3290
3291 2019-11-12 Martin Liska <mliska@suse.cz>
3292
3293 * Makefile.in: Include params.opt.
3294 * flag-types.h (enum parloops_schedule_type): Add
3295 parloops_schedule_type used in params.opt.
3296 * params.opt: New file.
3297
3298 2019-11-12 Martin Liska <mliska@suse.cz>
3299
3300 * common.opt: Remove --param and --param= options.
3301 * opt-functions.awk: Mark CL_PARAMS for options
3302 that have Param keyword.
3303 * opts-common.c (decode_cmdline_options_to_array):
3304 Replace --param key=value with --param=key=value.
3305 * opts.c (print_filtered_help): Remove special
3306 printing of params.
3307 (print_specific_help): Update title for params.
3308 (common_handle_option): Do not handle OPT__param.
3309 opts.h (SET_OPTION_IF_UNSET): New macro.
3310 * doc/options.texi: Document Param keyword.
3311
3312 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3313 Frederik Harwath <frederik@codesourcery.com>
3314 Thomas Schwinge <thomas@codesourcery.com>
3315
3316 gcc/
3317 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3318 enumeration constant.
3319 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3320 (is_gimple_omp_offloaded): Likewise.
3321 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3322 constant. Adjust the value of ORT_NONE accordingly.
3323 (is_gimple_stmt): Handle OACC_SERIAL.
3324 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3325 (gomp_needs_data_present): Likewise.
3326 (gimplify_adjust_omp_clauses): Likewise.
3327 (gimplify_omp_workshare): Handle OACC_SERIAL.
3328 (gimplify_expr): Likewise.
3329 * omp-expand.c (expand_omp_target):
3330 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3331 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3332 * omp-low.c (is_oacc_parallel): Rename function to...
3333 (is_oacc_parallel_or_serial): ... this.
3334 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3335 (scan_sharing_clauses): Adjust accordingly.
3336 (scan_omp_for): Likewise.
3337 (lower_oacc_head_mark): Likewise.
3338 (convert_from_firstprivate_int): Likewise.
3339 (lower_omp_target): Likewise.
3340 (check_omp_nesting_restrictions): Handle
3341 GF_OMP_TARGET_KIND_OACC_SERIAL.
3342 (lower_oacc_reductions): Likewise.
3343 (lower_omp_target): Likewise.
3344 * tree.def (OACC_SERIAL): New tree code.
3345 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3346
3347 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3348
3349 2019-11-12 Jakub Jelinek <jakub@redhat.com>
3350
3351 PR target/92449
3352 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3353 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
3354
3355 PR tree-optimization/92452
3356 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3357 into NULL_TREE, set up_bound to NULL_TREE instead of computing
3358 MINUS_EXPR on it.
3359
3360 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
3361
3362 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3363 safelen with 0.
3364
3365 2019-11-12 Alan Modra <amodra@gmail.com>
3366
3367 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3368 element of unspec vec.
3369 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3370 PC-relative TLS.
3371 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3372 (tls_gd_pcrel, tls_ld_pcrel): New insns.
3373 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3374 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3375
3376 2019-11-12 Alan Modra <amodra@gmail.com>
3377
3378 * config/rs6000/rs6000.opt (mtls-markers): Delete.
3379 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
3380 (IS_NOMARK_TLSGETADDR): Likewise.
3381 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
3382 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
3383 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
3384 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
3385 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
3386 (rs6000_indirect_call_template_1): Likewise.
3387 (rs6000_pltseq_template): Likewise.
3388 (rs6000_opt_vars): Remove "tls-markers" entry.
3389 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
3390 with TARGET_ELF.
3391 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
3392 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
3393 (pltseq_plt_pcrel<mode>): Likewise.
3394 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
3395 (call_value_local64): Likewise.
3396 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
3397 output and length attribute sub-expression.
3398 (call_value_nonlocal_sysv<mode>),
3399 (call_value_nonlocal_sysv_secure<mode>),
3400 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
3401 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
3402 (call_value_indirect_pcrel<mode>): Likewise.
3403 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
3404 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
3405 * configure: Regenerate.
3406 * config.in: Regenerate.
3407
3408 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
3409
3410 * config/rs6000/predicates.md (prefixed_memory): New predicate.
3411 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
3412 address being a prefixed load/store.
3413 (stack_protect_testdi): Deal with either address being a prefixed
3414 load.
3415
3416 2019-11-11 Jakub Jelinek <jakub@redhat.com>
3417
3418 PR bootstrap/92433
3419 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
3420 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
3421 std::swap.
3422
3423 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
3424
3425 PR tree-optimization/92420
3426 * tree-vect-stmts.c (get_negative_load_store_type): Move further
3427 up file.
3428 (get_group_load_store_type): Use it for reversed SLP accesses.
3429
3430 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
3431
3432 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
3433 summary.
3434 (ipcp_transformation_t::duplicate): Break out from ...
3435 (ipa_node_params_t::duplicate): ... here; add copying of agg
3436 replacements.
3437 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
3438 (ipcp_transformation_t): Add duplicate.
3439
3440 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
3441
3442 PR fortran/91828
3443 * doc/install.texi: Document that the minimum MPFR version is
3444 3.1.0.
3445
3446 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3447
3448 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
3449 use new register constraint letters.
3450
3451 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3452
3453 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
3454 as well, if interesting recover the symbol and re-legitimize the
3455 pic address.
3456
3457 2019-11-11 Martin Liska <mliska@suse.cz>
3458
3459 * dbgcnt.def (DEBUG_COUNTER): Sort counters
3460 alphabetically.
3461
3462 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
3463
3464 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
3465 account when checking if there are enough iterations to vectorize
3466 epilogue.
3467
3468 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
3469 Kwok Cheung Yeung <kcy@codesourcery.com>
3470
3471 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
3472 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
3473 (LANG_HOOKS_DECLS): Rename also here.
3474 * langhooks.h (lang_hooks_for_decls): Rename
3475 omp_is_optional_argument to omp_check_optional_argument; take
3476 additional bool argument.
3477 * omp-general.h (omp_check_optional_argument): Likewise.
3478 * omp-general.h (omp_check_optional_argument): Likewise.
3479 * omp-low.c (lower_omp_target): Update calls; handle absent
3480 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
3481
3482 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
3483
3484 PR target/87833
3485 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
3486 -fPIC and -shared the last to create offload image.
3487
3488 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
3489
3490 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
3491 of 'offset'.
3492
3493 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
3494 (config.status): Use/depend on it.
3495 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
3496 * configure: Regenerate.
3497
3498 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
3499
3500 PR tree-optimization/88760
3501 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
3502 * gcc/common/config/rs6000/rs6000-common.c
3503 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
3504 Turn on -funroll-loops and -munroll-only-small-loops.
3505 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
3506 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3507 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
3508 Turn off -munroll-only-small-loops for explicit -funroll-loops.
3509 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
3510 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
3511
3512 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
3513
3514 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3515 Make scalar_load, vector_load, unaligned_load and
3516 vector_gather_load cost more to conform hardware latency and
3517 insn cost settings.
3518
3519 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
3520
3521 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
3522 (MACHO_SYMBOL_LINKER_VIS_P): New.
3523
3524 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
3525
3526 * lra-spills.c (assign_spill_hard_regs): Do not spill into
3527 registers in eliminable_regset.
3528
3529 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3530
3531 * ipa-inline.c (compute_uninlined_call_time,
3532 compute_inlined_call_time): Take edge frequency as
3533 parameter rather than computing it by itself.
3534 (big_speedup_p, edge_badness): Manually CSE sreal
3535 frequency calculations.
3536
3537 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3538
3539 * profile-count.c (profile_count::to_sreal_scale): Short circuit
3540 case where profiles are same.
3541
3542 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3543
3544 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
3545
3546 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3547
3548 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
3549 args summaries of inlined edge unless it holds info about
3550 described reference.
3551
3552 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
3553
3554 * config/rs6000/rs6000.md (CC_any): New mode iterator.
3555 (*movcc_internal1): Rename to...
3556 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
3557
3558 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3559
3560 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
3561 (cgraph_node::create_virtual_clone): Copy it.
3562 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
3563 summaries.
3564 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
3565 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
3566 is disabled.
3567 (propagate_constants_across_call): If callee is not analyzed, give up.
3568 (propagate_constants_topo): Lower to bottom latties of all callees of
3569 functions with ipa-cp disabled.
3570 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
3571 (cgraph_edge_brings_value_p): Check for availability first.
3572 (create_specialized_node): Set ipcp_clone.
3573 (ipcp_store_bits_results): Check that info is present.
3574 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
3575 thunks.
3576 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
3577 conservative when callee summary is missing.
3578 (remap_edge_summaries): Lookup call summary only when needed.
3579 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
3580 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
3581 Use get_create.
3582 (ipa_analyze_node): Use get_create.
3583 (propagate_controlled_uses): Do not propagate when function is not
3584 analyzed.
3585 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
3586 (ipa_read_node_info): Use get_create.
3587 * ipa-prop.h (IPA_NODE_REF): Use get.
3588 (IPA_NODE_REF_GET_CREATE): New.
3589
3590 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3591
3592 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
3593 on function symbol.
3594
3595 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3596
3597 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
3598 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3599 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
3600 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3601
3602 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3603
3604 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
3605 capping the growth cumulated.
3606 (offline_size): Break out from ...
3607 (estimate_growth): ... here.
3608 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
3609 parameters.
3610 (growth_likely_positive): Turn to ...
3611 (growth_positive_p): Re-implement.
3612 * ipa-inline.h (growth_likely_positive): Remove.
3613 (growth_positive_p): Declare.
3614 * ipa-inline.c (want_inline_small_function_p): Use
3615 growth_positive_p.
3616 (want_inline_function_to_all_callers_p): Likewise.
3617
3618 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3619
3620 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
3621 calculation of min_size.
3622 (ipa_update_overall_fn_summary): Likewise.
3623
3624 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3625
3626 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
3627 estimate_edge_devirt_benefit when not computing hints;
3628 do not compute time when not asked for.
3629 (estimate_calls_size_and_time): Pass NULL hints and time when
3630 these are not computed; do not evaluate hint predicates when these are
3631 not computed.
3632 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
3633 frequency.
3634
3635 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3636
3637 PR tree-optimization/92401
3638 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
3639 if res_op->code is an expression with code length 1.
3640 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
3641 if res_op->code is an expression with code length 2.
3642 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
3643 if res_op->code is an expression with code length 3.
3644
3645 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
3646
3647 * config/darwin.c (machopic_mcount_stub_name): Validate the
3648 symbol stub name when it is created.
3649 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
3650 stub validation.
3651
3652 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3653
3654 * symtab.c: Fix comment typos.
3655 * cgraphunit.c: Likewise.
3656 * cgraph.h: Likewise.
3657 * cgraphclones.c: Likewise.
3658 * cgraph.c: Likewise.
3659 * varpool.c: Likewise.
3660 * tree-ssa-strlen.c: Likewise.
3661 * ipa-sra.c: Likewise.
3662 (scan_expr_access, check_all_callers_for_issues): Fix typo
3663 in a dump message.
3664
3665 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
3666
3667 * config/darwin-protos.h: Add include quard.
3668
3669 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
3670
3671 * range-op.h (range_operator::fold_range): Return result in a
3672 reference parameter instead of by value.
3673 (range_operator::wi_fold): Same.
3674 * range-op.cc (range_operator::wi_fold): Return result in a reference
3675 parameter instead of by value.
3676 (range_operator::fold_range): Same.
3677 (value_range_from_overflowed_bounds): Same.
3678 (value_range_with_overflow): Same
3679 (create_possibly_reversed_range): Same.
3680 (operator_equal::fold_range): Same.
3681 (operator_not_equal::fold_range): Same.
3682 (operator_lt::fold_range): Same.
3683 (operator_le::fold_range): Same.
3684 (operator_gt::fold_range): Same.
3685 (operator_ge::fold_range): Same.
3686 (operator_plus::wi_fold): Same.
3687 (operator_plus::op1_range): Change call to fold_range.
3688 (operator_plus::op2_range): Change call to fold_range.
3689 (operator_minus::wi_fold): Return result via reference parameter.
3690 (operator_minus::op1_range): Change call to fold_range.
3691 (operator_minus::op2_range): Change call to fold_range.
3692 (operator_min::wi_fold): Return result via reference parameter.
3693 (operator_max::wi_fold): Same.
3694 (cross_product_operator::wi_cross_product): Same.
3695 (operator_mult::wi_fold): Same.
3696 (operator_div::wi_fold): Same.
3697 (operator_div op_floor_div): Fix whitespace.
3698 (operator_exact_divide::op1_range): Change call to fold_range.
3699 (operator_lshift::fold_range): Return result via reference parameter.
3700 (operator_lshift::wi_fold): Same.
3701 (operator_rshift::fold_range): Same.
3702 (operator_rshift::wi_fold): Same.
3703 (operator_cast::fold_range): Same.
3704 (operator_cast::op1_range): Change calls to fold_range.
3705 (operator_logical_and::fold_range): Return result via reference.
3706 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
3707 (operator_bitwise_and::wi_fold): Return result via reference.
3708 (operator_logical_or::fold_range): Same.
3709 (operator_bitwise_or::wi_fold): Same.
3710 (operator_bitwise_xor::wi_fold): Same.
3711 (operator_trunc_mod::wi_fold): Same.
3712 (operator_logical_not::fold_range): Same.
3713 (operator_bitwise_not::fold_range): Same.
3714 (operator_bitwise_not::op1_range): Change call to fold_range.
3715 (operator_cst::fold_range): Return result via reference.
3716 (operator_identity::fold_range): Same.
3717 (operator_abs::wi_fold): Same.
3718 (operator_absu::wi_fold): Same.
3719 (operator_negate::fold_range): Same.
3720 (operator_negate::op1_range): Change call to fold_range.
3721 (operator_addr_expr::fold_range): Return result via reference.
3722 (operator_addr_expr::op1_range): Change call to fold_range.
3723 (operator_pointer_plus::wi_fold): Return result via reference.
3724 (operator_pointer_min_max::wi_fold): Same.
3725 (operator_pointer_and::wi_fold): Same.
3726 (operator_pointer_or::wi_fold): Same.
3727 (range_op_handler): Change call to fold_range.
3728 (range_cast): Same.
3729 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
3730 fold_range.
3731 (range_fold_unary_symbolics_p): Same.
3732 (range_fold_binary_expr): Same.
3733 (range_fold_unary_expr): Same.
3734
3735 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3736
3737 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
3738 vector type as an argument rather than reading it from the
3739 stmt_vec_info.
3740 (vect_create_epilog_for_reduction): Update accordingly.
3741 (vectorizable_reduction): Likewise.
3742 (vect_transform_cycle_phi): Likewise.
3743
3744 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
3745
3746 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
3747 the comparison codes that make sense for the mode used, and only the
3748 codes that can be done with a single branch instruction.
3749
3750 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3751
3752 PR tree-optimization/92351
3753 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
3754 peeling the main loop for alignment, make sure to set the misalignment
3755 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
3756
3757 2019-11-08 Richard Biener <rguenther@suse.de>
3758
3759 * dbgcnt.def (ivopts_loop): Add.
3760 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
3761 ivopts_loop before optimizing a loop.
3762
3763 2019-11-08 Richard Biener <rguenther@suse.de>
3764
3765 PR ipa/92409
3766 * tree-inline.c (declare_return_variable): Properly handle
3767 type mismatches for the return slot.
3768
3769 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
3770
3771 PR target/92095
3772 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
3773 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
3774 change.
3775 (got_helper_needed): New static variable.
3776 (output_load_pcrel_sym): New function.
3777 (get_pc_thunk_name): Remove after inlining...
3778 (load_got_register): ...here. Rework the initialization of the GOT
3779 register and of the GOT helper.
3780 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
3781 (sparc_file_end): Test got_helper_needed to decide whether the GOT
3782 helper must be emitted. Use output_asm_insn instead of fprintf.
3783 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
3784 if optimization is enabled.
3785 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
3786 by calling output_load_pcrel_sym.
3787
3788 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3789
3790 * tree-sra.c (create_access): Delay disqualifying the base
3791 for poly_int values until we know we have a base.
3792
3793 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3794
3795 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
3796 for loops with SIMDUID set. Enable epilogue vectorization for loops
3797 with SIMDLEN set after finding a main loop with a VF that matches it.
3798
3799 2019-11-08 Jakub Jelinek <jakub@redhat.com>
3800
3801 PR target/92038
3802 * gimple-ssa-store-merging.c (find_constituent_stores): For return
3803 value only, return non-NULL if there is a single non-clobber
3804 constituent store even if there are constituent clobbers and return
3805 one of clobber constituent stores if all constituent stores are
3806 clobbers.
3807 (split_group): Handle clobbers.
3808 (imm_store_chain_info::output_merged_store): When computing
3809 bzero_first, look after all clobbers at the start. Don't count
3810 clobber stmts in orig_num_stmts, except if the first orig store is
3811 a clobber covering the whole area and split_stores cover the whole
3812 area, consider equal number of stmts ok. Punt if split_stores
3813 contains only ->orig stores and their number plus number of original
3814 clobbers is equal to original number of stmts. For ->orig, look past
3815 clobbers in the constituent stores.
3816 (imm_store_chain_info::output_merged_stores): Don't remove clobber
3817 stmts.
3818 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
3819 rhs.
3820 (store_valid_for_store_merging_p): Allow clobber stmts.
3821 (verify_clear_bit_region_be): Fix up a thinko in function comment.
3822
3823 PR c++/92384
3824 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
3825 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
3826 slot.
3827 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
3828 force creation of a unique data.stack_parm slot.
3829
3830 2019-11-08 Richard Biener <rguenther@suse.de>
3831
3832 * genmatch.c (expr::gen_transform): Use the resimplify
3833 member function instead of hard-coding the gimple_resimplifyN variant.
3834 (dt_simplify::gen_1): Likewise.
3835
3836 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3837
3838 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3839 POLY_INT_CST.
3840
3841 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3842
3843 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
3844 instead of INTEGER_CST.
3845
3846 2019-11-08 Richard Biener <rguenther@suse.de>
3847
3848 PR tree-optimization/92324
3849 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3850 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
3851 sign-conversions as necessary.
3852 (vectorizable_reduction): Reject conversions in the chain
3853 that are not sign-conversions, base analysis on a non-converting
3854 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
3855 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
3856 for debug stmts.
3857 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
3858 (STMT_VINFO_REDUC_VECTYPE): Likewise.
3859
3860 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
3861
3862 PR target/92055
3863 * config/avr/avr.opt (-mdouble=, -mlong-double=):
3864 Fix a missing '-' when displaying these options in the
3865 help screen.
3866
3867 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3868
3869 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
3870
3871 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3872
3873 * config/aarch64/aarch64-builtins.c
3874 (aarch64_builtin_vectorized_function): Remove bswap handling.
3875
3876 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3877
3878 * tree-core.h (tree_type_common::indivisible_p): New member variable.
3879 * tree.h (TYPE_INDIVISIBLE_P): New macro.
3880 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3881 Treat the vector types as indivisible.
3882
3883 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3884
3885 * optabs.def (gather_load_optab, mask_gather_load_optab)
3886 (scatter_store_optab, mask_scatter_store_optab): Turn into
3887 conversion optabs, with the offset mode given explicitly.
3888 * doc/md.texi: Update accordingly.
3889 * config/aarch64/aarch64-sve-builtins-base.cc
3890 (svld1_gather_impl::expand): Likewise.
3891 (svst1_scatter_impl::expand): Likewise.
3892 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
3893 (expand_scatter_store_optab_fn): Likewise.
3894 (direct_gather_load_optab_supported_p): Likewise.
3895 (direct_scatter_store_optab_supported_p): Likewise.
3896 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
3897 to be argument 4.
3898 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
3899 (internal_gather_scatter_fn_supported_p): Replace the offset sign
3900 argument with the offset vector type. Require the two vector
3901 types to have the same number of elements but allow their element
3902 sizes to be different. Treat the optabs as conversion optabs.
3903 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
3904 prototype accordingly.
3905 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
3906 (supports_vec_convert_optab_p): ...this new function.
3907 (supports_vec_gather_load_p): Update accordingly.
3908 (supports_vec_scatter_store_p): Likewise.
3909 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
3910 Replace the offset sign and bits parameters with a scalar type tree.
3911 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
3912 Pass back the offset vector type instead of the scalar element type.
3913 Allow the offset to be wider than the memory elements. Search for
3914 an offset type that the target supports, stopping once we've
3915 reached the maximum of the element size and pointer size.
3916 Update call to internal_gather_scatter_fn_supported_p.
3917 (vect_check_gather_scatter): Update calls accordingly.
3918 When testing a new scale before knowing the final offset type,
3919 check whether the scale is supported for any signed or unsigned
3920 offset type. Check whether the target supports the source and
3921 target types of a conversion before deciding whether to look
3922 through the conversion. Record the chosen offset_vectype.
3923 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
3924 (vect_recog_gather_scatter_pattern): Get the scalar offset type
3925 directly from the gs_info's offset_vectype instead. Pass a zero
3926 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
3927 * tree-vect-stmts.c (check_load_store_masking): Update call to
3928 internal_gather_scatter_fn_supported_p, passing the offset vector
3929 type recorded in the gs_info.
3930 (vect_truncate_gather_scatter_offset): Update call to
3931 vect_check_gather_scatter, leaving it to search for a valid
3932 offset vector type.
3933 (vect_use_strided_gather_scatters_p): Convert the offset to the
3934 element type of the gs_info's offset_vectype.
3935 (vect_get_gather_scatter_ops): Get the offset vector type directly
3936 from the gs_info.
3937 (vect_get_strided_load_store_ops): Likewise.
3938 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
3939 and IFN_MASK_GATHER_LOAD.
3940 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
3941 (gather_load<mode><v_int_equiv>): ...this.
3942 (mask_gather_load<mode>): Rename to...
3943 (mask_gather_load<mode><v_int_equiv>): ...this.
3944 (scatter_store<mode>): Rename to...
3945 (scatter_store<mode><v_int_equiv>): ...this.
3946 (mask_scatter_store<mode>): Rename to...
3947 (mask_scatter_store<mode><v_int_equiv>): ...this.
3948
3949 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
3950
3951 PR target/92132
3952 * config/rs6000/predicates.md
3953 (signed_or_equality_comparison_operator): New predicate.
3954 (unsigned_or_equality_comparison_operator): Likewise.
3955 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
3956 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
3957 * config/rs6000/vector.md
3958 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
3959 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
3960 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
3961 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
3962 vector modes and same-size integer vector modes.
3963 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
3964 (vector_lt<mode> for VEC_F): New expand.
3965 (vector_le<mode> for VEC_F): Likewise.
3966 (vector_ne<mode> for VEC_F): Likewise.
3967 (vector_unge<mode> for VEC_F): Likewise.
3968 (vector_ungt<mode> for VEC_F): Likewise.
3969 (vector_unle<mode> for VEC_F): Likewise.
3970 (vector_unlt<mode> for VEC_F): Likewise.
3971 (vector_uneq<mode>): Expose name.
3972 (vector_ltgt<mode>): Likewise.
3973 (vector_unordered<mode>): Likewise.
3974 (vector_ordered<mode>): Likewise.
3975
3976 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
3977
3978 PR target/92295
3979 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
3980 Enhance ix86_expand_vector_init_concat.
3981
3982 2019-11-08 Joseph Myers <joseph@codesourcery.com>
3983
3984 * doc/invoke.texi (-Wold-style-definition): Document () not being
3985 considered an old-style definition for C2x.
3986
3987 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
3988
3989 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
3990 Enhance comment.
3991 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
3992 insn patterns using ldcw instruction.
3993 (memory_barrier): Remove insn pattern using sync instruction.
3994 * config/pa/pa.opt (coherent-ldcw): New option.
3995 (ordered): New option.
3996
3997 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3998
3999 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4000 valid conditions.
4001
4002 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4003
4004 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4005 typo - mistmatch -> mismatch.
4006 * ipa-profile.c (ipa_profile): Likewise.
4007 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4008 - mistmatch -> mismatch.
4009
4010 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4011
4012 * simplify-rtx.c (comparison_to_mask): New function.
4013 (mask_to_comparison): New function.
4014 (simplify_logical_relational_operation): New function.
4015 (simplify_binary_operation_1): Call
4016 simplify_logical_relational_operation.
4017
4018 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4019
4020 PR other/92090
4021 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4022 modes for integer constants.
4023
4024 2019-11-07 Jan Hubicka <jh@suse.cz>
4025
4026 PR ipa/92406
4027 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4028 summary.
4029
4030 2019-11-07 Jan Hubicka <jh@suse.cz>
4031
4032 * optc-save-gen.awk: Generate cl_target_option_free
4033 and cl_optimization_option_free.
4034 * opth-en.awk: Declare cl_target_option_free
4035 and cl_optimization_option_free.
4036 * tree.c (free_node): Use it.
4037
4038 2019-11-06 Jan Hubicka <jh@suse.cz>
4039
4040 * lto-streamer-in.c: Include alloc-pool.h.
4041 (freeing_string_slot_hasher): Remove.
4042 (string_slot_allocator): New object allocator.
4043 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4044 (file_name_obstack): New obstack.
4045 (canon_file_name): Allocate in obstack and allocator.
4046 (lto_reader_init): Initialize obstack and allocator.
4047 (lto_free_file_name_hash): New function.
4048 * lto-streamer.h (lto_free_file_name_hash): New.
4049
4050 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4051
4052 PR tree-optimization/89134
4053 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4054 * params.def: Add min-loop-cond-split-prob.
4055 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4056 outside checks on loop into the function.
4057 (split_info): New class.
4058 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4059 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4060 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4061 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4062 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4063 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4064 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4065 (split_loop_on_cond): Likewise.
4066 (tree_ssa_split_loops): Add loop split on conditional statement.
4067
4068 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4069
4070 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4071 pattern.
4072
4073 2019-11-07 Richard Biener <rguenther@suse.de>
4074
4075 PR tree-optimization/92405
4076 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4077 restrict lane-reducing ops to single stmt chains.
4078
4079 2019-11-07 Martin Jambor <mjambor@suse.cz>
4080
4081 PR lto/70929
4082 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4083 * cgraph.h (gimple_check_call_matching_types): Remove
4084 * cgraph.c (gimple_check_call_args): Likewise.
4085 (gimple_check_call_matching_types): Likewise.
4086 (symbol_table::create_edge): Do not call
4087 gimple_check_call_matching_types.
4088 (cgraph_edge::make_direct): Likewise.
4089 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4090 * value-prof.h (check_ic_target): Remove.
4091 * value-prof.c (check_ic_target): Remove.
4092 (gimple_ic_transform): Do nat call check_ic_target.
4093 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4094 (afdo_indirect_call): Likewise.
4095 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4096 gimple_check_call_matching_types.
4097 * ipa-inline.c (early_inliner): Likewise.
4098
4099 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4100
4101 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4102 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4103 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4104 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4105 * config/arm/iterators.md (USSAT16): New int_iterator.
4106 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4107 (sup): Likewise.
4108 * config/arm/predicates.md (ssat16_imm): New predicate.
4109 (usat16_imm): Likewise.
4110 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4111
4112 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4113
4114 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4115 New define_insns.
4116 (arm_<simd32_op>): New define_expands.
4117 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4118 __smuad, __smuadx): Define.
4119 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4120 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4121 (SIMD32_BINOP_Q): Likewise.
4122 (simd32_op): Handle the above.
4123 * config/arm/unspecs.md: Define unspecs for the above.
4124
4125 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4126
4127 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4128 * config/arm/arm.md (APSRGE_REGNUM): Define.
4129 (arm_<simd32_op>): New define_insn.
4130 (arm_sel): Likewise.
4131 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4132 (CALL_USED_REGISTERS): Likewise.
4133 (REG_ALLOC_ORDER): Likewise.
4134 (FIRST_PSEUDO_REGISTER): Update value.
4135 (ARM_GE_BITS_READ): Define.
4136 * config/arm/arm.c (arm_conditional_register_usage): Clear
4137 APSRGE_REGNUM from operand_reg_set.
4138 (arm_ge_bits_access): Define.
4139 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4140 ARM_BUIILTIN_sel.
4141 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4142 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4143 FAIL if ARM_GE_BITS_READ.
4144 (*arm_add<mode>3): New define_insn.
4145 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4146 (*arm_sub<mode>3): New define_insn.
4147 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4148 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4149 __usub16): Define.
4150 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4151 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4152 (simd32_op): Handle the above.
4153 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4154 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4155 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4156 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4157
4158 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4159
4160 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4161 (arm_smlabb): New define_expand.
4162 (*maddhisi4tb): Rename to...
4163 (maddhisi4tb): ... This.
4164 (*maddhisi4tt): Rename to...
4165 (maddhisi4tt): ... This.
4166 (arm_smlatb_setq): New define_insn.
4167 (arm_smlatb): New define_expand.
4168 (arm_smlatt_setq): New define_insn.
4169 (arm_smlatt): New define_expand.
4170 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4171 (arm_<smlaw_op>): New define_expand.
4172 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4173 __smlawb, __smlawt): Define.
4174 * config/arm_acle_builtins.def: Define builtins for the above.
4175 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4176 (slaw_op): New int_attribute.
4177 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4178
4179 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4180
4181 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4182 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4183 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4184 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4185 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4186 (ss_op): New code_attr.
4187
4188 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4189
4190 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4191 * config/arm/arm.md (APSRQ_REGNUM): Define.
4192 (add_setq): New define_subst.
4193 (add_clobber_q_name): New define_subst_attr.
4194 (add_clobber_q_pred): Likewise.
4195 (maddhisi4): Change to define_expand. Split into mult and add if
4196 ARM_Q_BIT_READ.
4197 (arm_maddhisi4): New define_insn.
4198 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4199 (*maddhisi4tt): Likewise.
4200 (arm_ssat): New define_expand.
4201 (arm_usat): Likewise.
4202 (arm_get_apsr): New define_insn.
4203 (arm_set_apsr): Likewise.
4204 (arm_saturation_occurred): New define_expand.
4205 (arm_set_saturation): Likewise.
4206 (*satsi_<SAT:code>): Rename to...
4207 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4208 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4209 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4210 (CALL_USED_REGISTERS): Mark apsrq.
4211 (FIRST_PSEUDO_REGISTER): Update value.
4212 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4213 (machine_function): Add q_bit_access.
4214 (ARM_Q_BIT_READ): Define.
4215 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4216 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4217 operand_reg_set.
4218 (arm_q_bit_access): Define.
4219 * config/arm/arm-builtins.c: Include stringpool.h.
4220 (arm_sat_binop_imm_qualifiers,
4221 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4222 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4223 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4224 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4225 SET_SAT_QUALIFIERS): Likewise.
4226 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4227 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4228 Handle 0 argument expander.
4229 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4230 (arm_check_builtin_call): Define.
4231 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4232 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4233 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4234 (arm_q_bit_access): Likewise.
4235 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4236 __saturation_occurred, __set_saturation_occurred): Define.
4237 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4238 saturation_occurred, set_saturation_occurred.
4239 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4240 (UNSPEC_APSR_READ): Likewise.
4241 (VUNSPEC_APSR_WRITE): Likewise.
4242 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4243 (*arm_ssadd<mode>3): New define_insn.
4244 (sssub<mode>3): Convert to define_expand.
4245 (*arm_sssub<mode>3): New define_insn.
4246 (ssmulsa3): Convert to define_expand.
4247 (*arm_ssmulsa3): New define_insn.
4248 (usmulusa3): Convert to define_expand.
4249 (*arm_usmulusa3): New define_insn.
4250 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4251 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4252 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4253
4254 2019-11-07 Martin Liska <mliska@suse.cz>
4255
4256 PR c++/92354
4257 * cgraph.c (delete_function_version): Clear global
4258 variable version_info_node if equal to deleted
4259 function.
4260
4261 2019-11-07 Martin Liska <mliska@suse.cz>
4262
4263 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4264 of CONSTRUCTOR_NO_CLEARING.
4265 (operand_compare::hash_operand): Likewise.
4266
4267 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4268
4269 Support 64-bit double and 64-bit long double configurations.
4270
4271 PR target/92055
4272 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4273 --with-long-double=.
4274 * config/avr/t-multilib: Remove.
4275 * config/avr/t-avr: Output of genmultilib.awk is now fully
4276 dynamically generated and no more part of the repo.
4277 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4278 Pass them down to...
4279 * config/avr/genmultilib.awk: ...here and handle them.
4280 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4281 (-mlong-double=, avr_long_double). New option and var.
4282 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4283 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4284 Set default as requested by --with-double=
4285 (TARGET_HANDLE_OPTION): Define to this...
4286 (avr_handle_option): ...new hook worker.
4287 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4288 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4289 (avr_double_lib): New proto for spec function.
4290 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4291 (DRIVER_SELF_SPECS): Call %:double-lib.
4292 * config/avr/avr.c (avr_option_override): Assert
4293 sizeof(long double) >= sizeof(double) for the target.
4294 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4295 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4296 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4297 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4298 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4299 New built-in define depending on --with-double=, --with-long-double=.
4300 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4301 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4302 * doc/install.texi (Cross-Compiler-Specific Options)
4303 <--with-double=, --with-long-double=>: Doc.
4304
4305 2019-11-07 Richard Biener <rguenther@suse.de>
4306
4307 * dbgcnt.def (gimple_unroll): New.
4308 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4309 gimple_unroll debug counter before applying transform.
4310 (try_peel_loop): Likewise.
4311
4312 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4313
4314 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4315 frame pointer in multiple registers.
4316 (ira_setup_eliminable_regset): Setup eliminable_regset,
4317 ira_no_alloc_regs and regs_ever_live for frame pointer in
4318 multiple registers.
4319
4320 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4321
4322 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4323 V2DI modes.
4324
4325 2019-11-06 Jan Hubicka <jh@suse.cz>
4326
4327 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4328 allocations.
4329 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4330 Do not silently ignore summary corruptions.
4331
4332 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4333
4334 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4335 the epilogue if there are peeled iterations for it to handle.
4336
4337 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4338
4339 * config/arc/arc.c (arc_split_ior): Add asserts.
4340 (arc_split_mov_const): Likewise.
4341 (arc_check_ior_const): Do not match known short immediate values.
4342 * config/arc/arc.md (movsi): Don't split predicated instructions
4343 (iorsi): Likewise.
4344
4345 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4346
4347 * config/arc/arc.opt (mea): Update help string.
4348 * doc/invoke.texi(ARC): Update mea option info.
4349
4350 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4351
4352 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4353 (zero_extendqisi2_ac): Likewise.
4354 (zero_extendhisi2_i): Likewise.
4355 (extendqihi2_i): Likewise.
4356 (extendqisi2_ac): Likewise.
4357 (extendhisi2_i): Likewise.
4358
4359 2019-11-06 Richard Biener <rguenther@suse.de>
4360
4361 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4362 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4363 Simplify single_defuse_cycle condition.
4364
4365 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4366
4367 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4368 epilogue loop, make sure that the VF is small enough or that
4369 the epilogue loop can be fully-masked.
4370
4371 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4372
4373 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4374 loop when we've finished, rather than returning directly from
4375 the loop. Use a local variable to track whether we're still
4376 searching for the preferred simdlen. Make vect_epilogues
4377 record whether the next iteration should try to treat the
4378 loop as an epilogue.
4379
4380 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
4381
4382 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
4383 __arc_hard_float__, __ARC_HARD_FLOAT__,
4384 __arc_soft_float__, __ARC_SOFT_FLOAT__
4385
4386 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4387
4388 PR tree-optimization/92317
4389 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
4390 update phi's with constant phi arguments.
4391
4392 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
4393 Alexandre Oliva <oliva@adacore.com>
4394
4395 * common.opt (-fcallgraph-info[=]): New option.
4396 * doc/invoke.texi (Developer options): Document it.
4397 * opts.c (common_handle_option): Handle it.
4398 * builtins.c (expand_builtin_alloca): Record allocation if
4399 -fcallgraph-info=da.
4400 * calls.c (expand_call): If -fcallgraph-info, record the call.
4401 (emit_library_call_value_1): Likewise.
4402 * flag-types.h (enum callgraph_info_type): New type.
4403 * explow.c: Include stringpool.h.
4404 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
4405 * function.c (allocate_stack_usage_info): New.
4406 (allocate_struct_function): Call it for -fcallgraph-info.
4407 (prepare_function_start): Call it otherwise.
4408 (record_final_call, record_dynamic_alloc): New.
4409 * function.h (struct callinfo_callee): New.
4410 (CALLEE_FROM_CGRAPH_P): New.
4411 (struct callinfo_dalloc): New.
4412 (struct stack_usage): Add callees and dallocs.
4413 (record_final_call, record_dynamic_alloc): Declare.
4414 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
4415 object if -fcallgraph-info=da.
4416 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
4417 * print-tree.h (print_decl_identifier): Declare.
4418 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
4419 * print-tree.c: Include print-tree.h.
4420 (print_decl_identifier): New function.
4421 * toplev.c: Include print-tree.h.
4422 (callgraph_info_file): New global variable.
4423 (callgraph_info_external_printed): Likewise.
4424 (output_stack_usage): Rename to...
4425 (output_stack_usage_1): ... this. Make it static, add cf
4426 parameter. If -fcallgraph-info=su, print stack usage to cf.
4427 If -fstack-usage, use print_decl_identifier for
4428 pretty-printing.
4429 (INDIRECT_CALL_NAME): New.
4430 (dump_final_node_vcg_start): New.
4431 (dump_final_callee_vcg, dump_final_node_vcg): New.
4432 (output_stack_usage): New.
4433 (lang_dependent_init): Open and start file if
4434 -fcallgraph-info. Allocated callgraph_info_external_printed.
4435 (finalize): If callgraph_info_file is not null, finish it,
4436 close it, and release callgraph_info_external_printed.
4437
4438 2019-11-06 Gergö Barany <gergo@codesourcery.com>
4439 Frederik Harwath <frederik@codesourcery.com>
4440 Thomas Schwinge <thomas@codesourcery.com>
4441
4442 * omp-low.c (struct omp_context): New fields
4443 local_reduction_clauses, outer_reduction_clauses.
4444 (new_omp_context): Initialize these.
4445 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
4446 (scan_omp_for): Check reduction clauses for incorrect nesting.
4447
4448 2019-11-06 Jakub Jelinek <jakub@redhat.com>
4449
4450 PR inline-asm/92352
4451 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
4452 operands with non-memory constraints.
4453
4454 2019-11-05 Martin Sebor <msebor@redhat.com>
4455
4456 PR tree-optimization/92373
4457 * tree.c (component_ref_size): Only consider initializers of objects
4458 of matching struct types.
4459 Return null for instances of interior zero-length arrays.
4460
4461 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
4462
4463 * doc/md.texi (Insn Splitting): Fix combiner documentation.
4464
4465 2019-11-05 Jason Merrill <jason@redhat.com>
4466
4467 PR tree-optimization/91825
4468 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
4469
4470 2019-11-05 Jim Wilson <jimw@sifive.com>
4471
4472 PR middle-end/92263
4473 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
4474 optimize_insn_for_speed_p is true.
4475
4476 2019-11-05 Martin Sebor <msebor@redhat.com>
4477
4478 PR middle-end/92333
4479 PR middle-end/82608
4480 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
4481 size.
4482 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
4483 name and location for a temporary variable.
4484
4485 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4486
4487 * tree-vrp.c (value_range::value_range): Fix whitespace.
4488 (defined_ranges_p): Same.
4489 (range_fold_binary_symbolics_p): Same.
4490 (value_range::intersect_helper): Same.
4491 (value_range::union_helper): Same.
4492 * tree-vrp.h (range_fold_binary_expr): Same.
4493
4494 2019-11-04 Martin Sebor <msebor@redhat.com>
4495
4496 PR middle-end/92341
4497 PR middle-end/82612
4498 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
4499 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
4500 of message printed in a warning for empty arrays.
4501 (vrp_prop::check_mem_ref): Also handle function parameters and
4502 empty arrays.
4503
4504 2019-11-05 Richard Biener <rguenther@suse.de>
4505
4506 PR tree-optimization/92371
4507 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
4508 on the original stmt of live stmts in the chain.
4509 (vectorizable_live_operation): Look at the original stmt when
4510 checking STMT_VINFO_REDUC_DEF.
4511
4512 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4513
4514 * gimple-fold.c, gimple-loop-versioning.cc,
4515 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
4516 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
4517 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
4518 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
4519 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
4520 value_range_equiv, and value_range_base to value_range.
4521
4522 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4523
4524 * expr.c (build_personality_function): Fix generated type to
4525 match actual personality functions.
4526
4527 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4528
4529 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
4530 enough bytes for the NULL character.
4531
4532 2019-11-05 Richard Biener <rguenther@suse.de>
4533
4534 PR tree-optimization/92280
4535 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
4536 had a single use do not create a new CTOR.
4537 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
4538 BIT_FIELD_REF of a CTOR via GENERIC.
4539
4540 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
4541
4542 * config/s390/s390.c (s390_vector_alignment): Check if the value
4543 fits into uhwi before using it.
4544
4545 2019-11-05 Martin Liska <mliska@suse.cz>
4546
4547 * symbol-summary.h: Use ggc_delete.
4548
4549 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4550
4551 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
4552 Change vec_perm field to 10.
4553
4554 2019-11-05 Arnaud Charlet <charlet@adacore.com>
4555
4556 * doc/install.texi: Further fix syntax for html generation.
4557
4558 2019-11-05 Martin Liska <mliska@suse.cz>
4559
4560 * symbol-summary.h: Rename allocator to m_allocator and
4561 add comment.
4562
4563 2019-11-05 Richard Biener <rguenther@suse.de>
4564
4565 PR tree-optimization/92324
4566 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
4567 all signed or unsigned operations.
4568
4569 2019-11-05 Jan Hubicka <jh@suse.cz>
4570
4571 * hsa-brig.c: Include alloc-pool.h
4572 * hsa-dump.c: Likewise.
4573 * hsa-gen.c: Likewise.
4574 * hse-regalloc.c: Likewise.
4575 * ipa-hsa.c: Likewise.
4576 * ipa-predicate.c: Likewise.
4577 * ipa-reference.c: Likewise.
4578 * ipa-sra.c: Likewise.
4579 * omp-expand.c: Likewise.
4580 * omp-general.c: Likewise.
4581 * omp-low.c: Likewise.
4582 * sumbol-summary.h (function_summary_base): Add allocator.
4583 (function_summary<T *>::function_summary): Update construction.
4584 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
4585 (call_summary_base): Add allcator.
4586 (call_summary<T *>::call_summary): Update construction.
4587 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
4588
4589 2019-11-05 Jakub Jelinek <jakub@redhat.com>
4590
4591 PR tree-optimization/91945
4592 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
4593 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
4594 Formatting fix.
4595
4596 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4597
4598 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
4599 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
4600 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
4601 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
4602 (vrp_set_zero_nonzero_bits): Move to...
4603 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
4604 (vr_values::simplify_bit_ops_using_ranges): Rename
4605 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
4606
4607 2019-11-05 Martin Liska <mliska@suse.cz>
4608
4609 PR c++/92339
4610 * fold-const.c (operand_compare::hash_operand): Remove
4611 FIELD_DECL handling.
4612
4613 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4614
4615 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
4616 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
4617 static.
4618
4619 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4620
4621 * tree-vrp.c (value_range_base::operator==): Use equal_p to
4622 properly handle symbolics.
4623 (range_compatible_p): Remove.
4624
4625 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
4626
4627 * common.opt (-fabi-version): Document =14.
4628 * doc/invoke.texi (C++ Dialect Options): Likewise.
4629
4630 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4631
4632 * tree-vrp.c (value_range_base::set): Do not special case pointers.
4633
4634 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4635
4636 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
4637 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4638 gcn_omp_device_kind_arch_isa.
4639 * config/gcn/t-omp-device: New file.
4640 * configure.ac: Support gcn for omp_device_property.
4641 * configure: Regenerate.
4642
4643 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4644
4645 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
4646 (vrp_val_max): Same.
4647 (vrp_val_is_min): Same.
4648 (vrp_val_is_max): Same.
4649 (value_range_base::nonzero_p): Remove last argument to
4650 vrp_val_is_max.
4651 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
4652 (vrp_val_max): Same.
4653 (vrp_val_is_min): Same.
4654 (vrp_val_is_max): Same.
4655 (value_range_base::set_varying): Remove last argument to vrp_val*.
4656 (value_range_base::dump): Same.
4657 (value_range_base::set): Same.
4658 (value_range_base::normalize_symbolics): Same.
4659 (value_range_base::num_pairs): Same.
4660 (value_range_base::lower_bound): Same.
4661 (value_range_base::upper_bound): Same.
4662 (ranges_from_anti_range): Remove handle_pointers argument.
4663 (value_range_base::singleton_p): Remove last argument to
4664 ranges_from_anti_range.
4665
4666 2019-11-04 Jan Hubicka <jh@suse.cz>
4667
4668 * ipa-reference.c (init_function_info): Initialize
4669 info->global.statics_read.
4670
4671 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4672
4673 * tree-vrp.c (value_range_base::invert): Use constructors to build
4674 range.
4675
4676 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4677
4678 * tree-vrp.c (range_int_cst_singleton_p): Remove.
4679 * tree-vrp.h (range_int_cst_singleton_p): Remove.
4680
4681 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4682
4683 * tree-vrp.c (value_range_base::normalize_addresses): Handle
4684 VR_UNDEFINED.
4685
4686 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4687
4688 * tree-vrp.c (dump_assert_info): New.
4689 (dump_asserts_info): New.
4690
4691 2019-11-04 Jan Hubicka <jh@suse.cz>
4692
4693 * ipa-inline-transform.c: Include ipa-utils.h
4694 (inline_call): Set thunk_expansion flag.
4695 * ipa-utils.h (thunk_expansion): Declare.
4696 * ipa-devirt.c (thunk_expansion): New global var.
4697 (devirt_node_removal_hook): Do not invalidate cache while
4698 doing thunk expansion.
4699
4700 2019-11-04 Tamar Christina <tamar.christina@arm.com>
4701
4702 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
4703
4704 2019-11-04 Martin Sebor <msebor@redhat.com>
4705
4706 PR tree-optimization/92349
4707 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
4708 memebers have constant sizes.
4709
4710 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
4711
4712 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
4713 parameter.
4714 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
4715 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
4716 vect_analyze_loop.
4717
4718 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
4719
4720 * expr.c (store_constructor): Modify to handle single element vectors.
4721 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
4722 constructors.
4723 (vect_slp_check_for_constructors): New function.
4724 (vect_slp_analyze_bb_1): Call new function to check for vector
4725 constructors.
4726 (vectorize_slp_instance_root_stmt): New function.
4727 (vect_schedule_slp): Call new function to vectorize root stmt of vector
4728 constructors.
4729 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
4730
4731 2019-11-04 Richard Biener <rguenther@suse.de>
4732
4733 PR tree-optimization/92345
4734 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
4735 we produced a reduction chain.
4736 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
4737 LOOP_VINFO_REDUCTIONS.
4738
4739 2019-11-04 Jan Hubicka <jh@suse.cz>
4740
4741 * cgraphclones.c (cgraph_node::create_version_clone): Do not
4742 duplicate summaries.
4743 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
4744 first.
4745 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
4746 access call summaries.
4747 (dump_ipa_call_summary): Be ready for missing edge summaries.
4748 (analyze_function_body): Use get instead of get_create to access
4749 edge summary.
4750 (estimate_calls_size_and_time): Do not access summaries of
4751 inlined edges; sanity check they are missing.
4752 (ipa_call_context::estimate_size_and_time): Use get instead
4753 of get_create to access node summary.
4754 (inline_update_callee_summaries): Do not update depth of
4755 inlined edge.
4756 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
4757 growth caches.
4758 (ipa_merge_fn_summary_after_inlining): Use get instead
4759 of get_create.
4760 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
4761 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
4762 fast summary.
4763 (initialize_growth_caches): Update.
4764 (do_estimate_edge_time): Remove redundant copy of context.
4765 (ipa_remove_from_growth_caches): New function.
4766 * ipa-inline.c (flatten_function): Update overall summary
4767 only when optimizing.
4768 (inline_to_all_callers): Update overall summary of function
4769 inlined to.
4770 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
4771 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
4772 to false.
4773
4774 2019-11-04 Richard Biener <rguenther@suse.de>
4775
4776 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
4777 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
4778
4779 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
4780
4781 * ggc-common.c: Include system.h before malloc.h.
4782
4783 2019-11-04 Alexandre Oliva <oliva@adacore.com>
4784
4785 * configure.ac: Pass --enable-obsolete=* and
4786 --enable-option-checking=* down to build configure, and fail
4787 if it fails. AC_SUBST HAVE_AUTO_BUILD.
4788 * configure: Rebuild.
4789 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
4790 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
4791
4792 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4793
4794 * config.in: Regenerate.
4795 * config/msp430/msp430.c (msp430_option_override): Emit an error if
4796 -mtiny-printf is used without GCC being configured with
4797 --enable-newlib-nano-formatted-io.
4798 * config/msp430/msp430.h (LINK_SPEC): Pass
4799 "--wrap puts --wrap printf" when -mtiny-printf is used.
4800 * config/msp430/msp430.opt: Document -mtiny-printf.
4801 * configure: Regenerate.
4802 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
4803 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
4804 --enable-newlib-nano-formatted-io is passed.
4805 * doc/invoke.texi: Document -mtiny-printf.
4806
4807 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4808
4809 * configure: Regenerate.
4810
4811 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4812
4813 * config/msp430/driver-msp430.c
4814 (msp430_get_linker_devices_include_path): New spec function.
4815 * config/msp430/msp430-devices.c (msp430_dirname): New function.
4816 (extract_devices_dir_from_exec_prefix): New function.
4817 (extract_devices_dir_from_collect_gcc): New function.
4818 (msp430_check_env_var_for_devices): New function.
4819 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
4820 (parse_devices_csv): Call msp430_check_env_var_for_devices if
4821 devices.csv was not found using other methods.
4822 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
4823 New prototype.
4824 (msp430_dirname): Likewise.
4825 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
4826 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
4827 msp430_get_linker_devices_include_path.
4828 (TARGET_EXTRA_PRE_INCLUDES): Define.
4829 * doc/invoke.texi: Document new ways of searching for support files.
4830
4831 2019-11-04 Richard Biener <rguenther@suse.de>
4832
4833 PR tree-optimization/92301
4834 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
4835 as required by epilogue generation
4836
4837 2019-11-04 Martin Liska <mliska@suse.cz>
4838
4839 PR ipa/92304
4840 * fold-const.c (operand_compare::hash_operand): Fix field
4841 hashing of CONSTRUCTOR.
4842
4843 2019-11-04 Martin Liska <mliska@suse.cz>
4844
4845 * ggc.h (ggc_delete): New function.
4846 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
4847 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
4848 (ipa_free_all_node_params): Likewise.
4849 * ipa-sra.c (ipa_sra_analysis): Likewise.
4850
4851 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4852
4853 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
4854 set_switch_stmt_execution_predicate, compute_bb_predicates,
4855 will_be_nonconstant_expr_predicate,
4856 phi_result_unknown_predicate,
4857 analyze_function_body): Pass arround params summary.
4858 (ipa_call_context::duplicate_from): New comment;
4859 only duplicate useful values.
4860 (ipa_call_context::equal_to): Only compare useful values.
4861 (remap_edge_summaries): Pass params_summary.
4862 (remap_hint_predicate): Likewise.
4863 (ipa_merge_fn_summary_after_inlining): Likewise.
4864 (inline_read_section): Initialize params summary used flags.
4865 * ipa-predicate.c (predicate::remap_after_inlining): Pass
4866 around param_summary.
4867 (add_condition): Initialized used params summary flags.
4868 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
4869 (inline_param_summary::useless_p): New predicate.
4870 (remap_after_inlining, add_condition): Update prototype
4871 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
4872 move_cost.
4873 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
4874 summaries.
4875 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
4876 (ipa_analyze_virtual_call_uses): Likewise.
4877 (update_indirect_edges_after_inlining): Update param summaries.
4878 (ipa_print_node_params): Print used flags.
4879 (ipa_read_indirect_edge_info): Update param summareis.
4880 * ipa-prop.h (ipa_param_descriptor): Add
4881 used_by_ipa_predicates, used_by_indirect_call
4882 and used_by_polymorphic_call.
4883 (ipa_set_param_used_by_ipa_predicates,
4884 ipa_set_param_used_by_indirect_call,
4885 ipa_set_param_used_by_polymorphic_call,
4886 ipa_is_param_used_by_ipa_predicates,
4887 ipa_is_param_used_by_indirect_call,
4888 ipa_is_param_used_by_polymorphic_call): New inline functions.
4889
4890 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4891
4892 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
4893 member function.
4894 (ipa_call_context::release): Add ALL parameter.
4895 (ipa_call_context::equal_to): New member function.
4896 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
4897 duplicate_form, release, equal_to and exists_p member functoins.
4898 * ipa-inline-analysis.c (node_context_cache_entry): New
4899 class.
4900 (node_context_summary): Likewise.
4901 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
4902 node_context_clear): New static vars.
4903 (initialize_growth_caches): New function.
4904 (free_growth_caches): Also delete node_context_cache; output stats.
4905 (do_estimate_edge_time): Cache contexts.
4906 (reset_node_cache): New function.
4907 * ipa-inline.c (reset_edge_caches): Reset also node cache.
4908 (inline_small_functions): Initialize growth caches.
4909 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
4910 Declare.
4911 * ipa-predicate.h (inline_param_summary::equal_to): New.
4912 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
4913 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
4914 (ipa_agg_jump_function): Implement equal_to member function.
4915
4916 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4917
4918 * ipa-fnsummary.c (inline_read_section): Set vector size
4919 ahead of time.
4920
4921 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4922
4923 * ipa-fnsummary.c (ipa_call_context): New constructor.
4924 (estimate_node_size_and_time): Turn to ...
4925 (ipa_call_context::estimate_size_and_time): ... this one.
4926 (ipa_call_context::release): New.
4927 * ipa-fnsummary.h (ipa_call_context): New class.
4928 (estimate_node_size_and_time): Remove.
4929 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
4930 do_estimate_edge_hints): Update.
4931
4932 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4933
4934 * config.in: Regenerate.
4935 * configure: Regenerate.
4936 * configure.ac: Check for mallinfo.
4937 * ggc-common.c: Include malloc.h if available;
4938 include options.h
4939 (report_heap_memory_use): New functoin.
4940 * ggc-page.c (ggc_grow): Do not print "start".
4941 * ggc.h (report_heap_memory_use): Declare.
4942 * pases.c (execute_one_pass): Report memory after IPA passes.
4943 (ipa_read_summaries_1): Likewise.
4944 (ipa_read_optimization_summaries_1): Likewise.
4945
4946 2019-11-02 Jakub Jelinek <jakub@redhat.com>
4947
4948 * gimplify.h (omp_construct_selector_matches): Change return
4949 type to int, add a new SCORES argument.
4950 * gimplify.c (omp_construct_selector_matches): Likewise. If
4951 SCORES is non-NULL, compute scores of each construct.
4952 * omp-general.h (omp_get_context_selector): Declare.
4953 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
4954 Adjust omp_construct_selector_matches callers.
4955 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
4956 (omp_context_compute_score): New function.
4957 (omp_resolve_declare_variant): Compute scores and decide based on
4958 that.
4959
4960 PR bootstrap/92314
4961 * configure.ac: Don't look for omp-device-properties files from
4962 installed offloading compilers. Instead add tmake_file snippets
4963 for configured offloading targets and use files they generate.
4964 * Makefile.in (install): Don't depend on
4965 install-omp-device-properties.
4966 (install-omp-device-properties): Remove goal.
4967 * config/i386/t-omp-device: New file.
4968 * config/i386/t-intelmic (omp-device-properties): Remove goal.
4969 * config/nvptx/t-omp-device: New file.
4970 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
4971 * configure: Regenerated.
4972
4973 * omp-general.h (omp_context_selector_set_compare): Declare.
4974 * omp-general.c (omp_construct_simd_compare,
4975 omp_context_selector_props_compare, omp_context_selector_set_compare,
4976 omp_context_selector_compare): New functions.
4977 (omp_resolve_declare_variant): Prune variants that are strict subset
4978 of another variant.
4979
4980 2019-11-01 Martin Sebor <msebor@redhat.com>
4981
4982 PR middle-end/91679
4983 PR middle-end/91647
4984 PR middle-end/91463
4985 PR middle-end/92312
4986 * doc/invoke.texi (-Wzero-length-bounds): Document.
4987 * gimple-match-head.c (try_conditional_simplification): Use memcpy
4988 instead of a hand-rolled loop to avoid PR 92323.
4989 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
4990 with initializers.
4991 (vrp_prop::check_mem_ref): Handle declared struct objects.
4992 * tree.c (last_field): New function.
4993 (array_at_struct_end_p): Handle MEM_REF.
4994 (get_initializer_for): New helper.
4995 (component_ref_size): Add argument. Rename locals. Call
4996 get_initializer_for instead of fold_ctor_reference. Correct handling
4997 of flexible array members.
4998 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
4999
5000 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5001
5002 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5003 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5004 UNSPEC_VSX_CVSPUXDS): Remove.
5005 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5006 (vsx_xvcvspdp_be): ... this. New. And...
5007 (vsx_xvcvspdp_le): ... this. New.
5008 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5009 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5010 (vsx_xvcv<su>xwdp_le): ... this. New.
5011 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5012 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5013 (vsx_xvcvsp<su>xds_le): ... this. New.
5014
5015 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5016
5017 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5018 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5019 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5020 UNSPEC_VSX_XVCVSPSXWS): Remove.
5021 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5022 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5023
5024 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5025
5026 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5027 (UNSPEC_VSX_XVCDPSP): Remove.
5028 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5029 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5030
5031 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5032
5033 * hooks.c (hook_tree_tree_bool_null): New.
5034 * hooks.h (hook_tree_tree_bool_null): Declare.
5035 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5036 (LANG_HOOKS_DECLS): Add it.
5037 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5038 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5039 (lower_omp_target): Handle Fortran array with descriptor in
5040 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5041
5042 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5043
5044 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5045 Assert that the type we store in abi_vector_types is its own
5046 main variant.
5047 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5048
5049 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5050
5051 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5052 from a CONST_INT address when TARGET_THUMB2.
5053
5054 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5055
5056 * config/arm/arm.md (add_not_cin): New insn.
5057 (add_not_shift_cin): Likewise.
5058
5059 2019-10-31 Martin Liska <mliska@suse.cz>
5060
5061 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5062 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5063 and compare_memory_operand.
5064
5065 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5066
5067 * configure.ac: Compute and substitute omp_device_properties and
5068 omp_device_property_deps.
5069 * Makefile.in (generated_files): Add omp-device-properties.h.
5070 (omp-general.o): Depend on omp-device-properties.h.
5071 (omp_device_properties): New make variable.
5072 (omp-device-properties.h, s-omp-device-properties-h,
5073 install-omp-device-properties): New goals.
5074 (install): Depend on install-omp-device-properties for accelerators.
5075 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5076 * target.h (enum omp_device_kind_arch_isa): New enum.
5077 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5078 documentation.
5079 * omp-general.c: Include omp-device-properties.h.
5080 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5081 colon instead of comma.
5082 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5083 functions.
5084 (omp_context_selector_matches): Implement device set arch/isa
5085 selectors, improve device set kind selector handling.
5086 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5087 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5088 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5089 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5090 ix86_omp_device_kind_arch_isa.
5091 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5092 definition from ix86_target_string to file scope.
5093 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5094 to file scope.
5095 (ix86_omp_device_kind_arch_isa): New function.
5096 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5097 isa_opts definitions to file scope.
5098 * config/i386/t-intelmic (omp-device-properties): New goal.
5099 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5100 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5101 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5102 nvptx_omp_device_kind_arch_isa.
5103 * configure: Regenerate.
5104 * doc/tm.texi: Regenerate.
5105
5106 PR middle-end/92231
5107 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5108 DECL_BUILT_IN in comment. Remove redundant ()s around return
5109 argument.
5110 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5111 before calling fndecl_built_in_p.
5112 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5113 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5114 fndecl_built_in_p on it.
5115
5116 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5117
5118 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5119
5120 2019-10-31 Martin Liska <mliska@suse.cz>
5121
5122 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5123 of cgraph_local_info and use local_info_node instead.
5124 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5125 (bfin_function_ok_for_sibcall): Likewise.
5126 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5127 (must_reload_pic_reg_p): Likewise.
5128
5129 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5130
5131 PR c++/90947
5132 * tree.h (type_initializer_zero_p): Remove.
5133 * tree.c (type_initializer_zero_p): Remove.
5134
5135 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5136
5137 * doc/invoke.texi (-Wshadow, -Wshadow=global
5138 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5139
5140 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5141
5142 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5143 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5144 and 'target exit data'.
5145
5146 2019-10-30 Martin Jambor <mjambor@suse.cz>
5147
5148 ipa/92278
5149 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5150 availability comparison.
5151
5152 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5153
5154 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5155 calls to __mspabi_mpy* functions.
5156 * config/msp430/msp430.md (mulhisi3): New define_expand.
5157 (umulhisi3): New define_expand.
5158 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5159 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5160
5161 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5162
5163 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5164 (msp430_check_plus_not_high_mem): New.
5165 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5166 might be in low memory.
5167 Indicate that a 16-bit absolute address is in lower memory.
5168
5169 2019-10-30 Martin Jambor <mjambor@suse.cz>
5170
5171 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5172 ultimate_alias_target.
5173
5174 2019-10-30 Richard Biener <rguenther@suse.de>
5175
5176 PR tree-optimization/92275
5177 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5178 Copy all loop-closed PHIs.
5179
5180 2019-10-30 Martin Liska <mliska@suse.cz>
5181
5182 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5183 const_tree as function argument.
5184 (func_checker::compare_decl): Likewise.
5185 (func_checker::operand_equal_p): Likewise.
5186 (func_checker::compare_variable_decl): Likewise.
5187 (func_checker::parse_labels): Likewise.
5188 * ipa-icf-gimple.h: Likewise.
5189
5190 2019-10-30 Martin Liska <mliska@suse.cz>
5191
5192 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5193 Do not compare alias sets. It's handled by operand_equal_p.
5194
5195 2019-10-30 Martin Liska <mliska@suse.cz>
5196
5197 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5198 initialize m_compare_polymorphic.
5199 (func_checker::compare_decl): Do not compare polymorphic types.
5200 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5201 * ipa-icf.c (sem_function::equals_private): Do not call
5202 compare_polymorphic_p.
5203
5204 2019-10-30 Martin Liska <mliska@suse.cz>
5205
5206 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5207 compare_operand.
5208 (func_checker::compare_memory_operand): Remove.
5209 (func_checker::compare_cst_or_decl): Remove.
5210 (func_checker::operand_equal_valueize): Do not handle
5211 FIELD_DECL.
5212 (func_checker::compare_gimple_call): Call compare_operand.
5213 (func_checker::compare_gimple_assign): Likewise.
5214 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5215 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5216 * ipa-icf.h (icf_handled_component_p): Remove.
5217
5218 2019-10-30 Martin Liska <mliska@suse.cz>
5219
5220 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5221 (func_checker::compare_cst_or_decl): Remove handling
5222 of FIELD_DECL.
5223 (func_checker::compare_operand): Transform to ...
5224 (func_checker::operand_equal_p): ... this.
5225 * ipa-icf-gimple.h (class func_checker): Add
5226 operand_equal_p and hash_operand.
5227 * ipa-icf.c (sem_function::equals_private): Fix
5228 pushing and popping of cfun.
5229
5230 2019-10-30 Martin Liska <mliska@suse.cz>
5231
5232 * fold-const.c (operand_equal_p): Move to ...
5233 (operand_compare::operand_equal_p): ... here.
5234 (operand_compare::verify_hash_value): New.
5235 (add_expr): Move to ...
5236 (operand_compare::hash_operand): ... here.
5237 * fold-const.h (operand_equal_p): Move to the class.
5238 (class operand_compare): New.
5239 * tree.c (add_expr): Remove.
5240
5241 2019-10-30 Martin Liska <mliska@suse.cz>
5242
5243 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5244 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5245
5246 2019-10-30 Martin Liska <mliska@suse.cz>
5247
5248 PR lto/91393
5249 PR lto/88220
5250 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5251 from a first_clone in order to get proper LTO section
5252 in LTO stream.
5253 (cgraph_node::get_untransformed_body):
5254 Use lto_get_section_data where symtab_node::order
5255 must be provided.
5256 * cgraphclones.c (cgraph_node::find_replacement):
5257 Update also symbol order.
5258 * ipa-fnsummary.c (ipa_fn_summary_read):
5259 Use new function lto_get_summary_section_data.
5260 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5261 * ipa-icf.c (sem_item_optimizer::read_summary):
5262 Likewise.
5263 * ipa-prop.c (ipa_prop_read_jump_functions):
5264 Likewise.
5265 (ipcp_read_transformation_summaries): Likewise.
5266 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5267 * lto-cgraph.c (input_node): Add also order_base.
5268 (input_varpool_node): Likewise.
5269 (input_cgraph_1): Assign the order_base.
5270 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5271 * lto-opts.c (lto_write_options): Pass new argument.
5272 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5273 (lto_get_summary_section_data): New.
5274 (lto_get_raw_section_data): Add order argument.
5275 (lto_create_simple_input_block): Likewise.
5276 * lto-section-out.c (lto_destroy_simple_output_block):
5277 Likewise.
5278 * lto-streamer-in.c (lto_input_toplevel_asms):
5279 Use lto_get_summary_section_data.
5280 (lto_input_mode_table): Likewise.
5281 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5282 (lto_output_toplevel_asms): Pass new argument.
5283 (copy_function_or_variable): Likewise.
5284 (produce_lto_section):Likewise.
5285 (produce_symtab): Likewise.
5286 (lto_write_mode_table): Likewise.
5287 (produce_asm_for_decls): Likewise.
5288 * lto-streamer.c (lto_get_section_name): Concat symbol name
5289 and symbol order.
5290 * lto-streamer.h (lto_get_section_data): Add order argument.
5291 (lto_get_summary_section_data): New.
5292 (lto_get_raw_section_data): Add order argument.
5293 (lto_get_section_name): Likewise.
5294 * varpool.c (varpool_node::get_constructor): Pass order argument.
5295
5296 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5297
5298 PR tree-optimization/92262
5299 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5300 ubase or cbase here.
5301 (remove_unused_ivs): Unshare comp before using it.
5302
5303 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5304
5305 * ipa-prop.c (update_jump_functions_after_inlining):
5306 Watch for missing summaries.
5307
5308 2019-10-30 Richard Biener <rguenther@suse.de>
5309
5310 PR tree-optimization/65930
5311 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5312 chains also allow a leading and trailing conversion.
5313 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5314 intermediate reduction chains.
5315 (vect_analyze_slp_instance): Likewise. Build a SLP
5316 node for a trailing conversion manually.
5317
5318 2019-10-30 Martin Liska <mliska@suse.cz>
5319
5320 * cgraph.c (cgraph_node::local_info): Transform to ...
5321 (cgraph_node::local_info_node): ... this.
5322 (cgraph_node::dump): Remove cgraph_local_info and
5323 put its fields directly into cgraph_node.
5324 (cgraph_node::get_availability): Likewise.
5325 (cgraph_node::make_local): Likewise.
5326 (cgraph_node::verify_node): Likewise.
5327 * cgraph.h (struct GTY): Likewise.
5328 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5329 (duplicate_thunk_for_node): Likewise.
5330 (cgraph_node::create_clone): Likewise.
5331 (cgraph_node::create_virtual_clone): Likewise.
5332 (cgraph_node::create_version_clone): Likewise.
5333 * cgraphunit.c (cgraph_node::reset): Likewise.
5334 (cgraph_node::finalize_function): Likewise.
5335 (cgraph_node::add_new_function): Likewise.
5336 (analyze_functions): Likewise.
5337 * combine.c (setup_incoming_promotions): Likewise.
5338 * config/i386/i386.c (ix86_function_regparm): Likewise.
5339 (ix86_function_sseregparm): Likewise.
5340 (init_cumulative_args): Likewise.
5341 * ipa-cp.c (determine_versionability): Likewise.
5342 (count_callers): Likewise.
5343 (set_single_call_flag): Likewise.
5344 (initialize_node_lattices): Likewise.
5345 (estimate_local_effects): Likewise.
5346 (create_specialized_node): Likewise.
5347 (identify_dead_nodes): Likewise.
5348 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5349 (ipa_fn_summary_generate): Likewise.
5350 * ipa-hsa.c (check_warn_node_versionable): Likewise.
5351 (process_hsa_functions): Likewise.
5352 * ipa-icf.c (set_local): Likewise.
5353 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5354 * ipa-inline.c (speculation_useful_p): Likewise.
5355 * ipa-profile.c (ipa_propagate_frequency): Likewise.
5356 (ipa_profile): Likewise.
5357 * ipa-split.c (split_function): Likewise.
5358 (execute_split_functions): Likewise.
5359 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5360 (ipa_sra_ipa_function_checks): Likewise.
5361 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5362 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5363 * lto-cgraph.c (lto_output_node): Likewise.
5364 (input_overwrite_node): Likewise.
5365 * multiple_target.c (expand_target_clones): Likewise.
5366 * omp-simd-clone.c (simd_clone_create): Likewise.
5367 * trans-mem.c (expand_call_tm): Likewise.
5368 (ipa_tm_mayenterirr_function): Likewise.
5369 (ipa_tm_diagnose_tm_safe): Likewise.
5370 (ipa_tm_diagnose_transaction): Likewise.
5371 (ipa_tm_create_version): Likewise.
5372 (ipa_tm_transform_calls_redirect): Likewise.
5373 (ipa_tm_execute): Likewise.
5374 * tree-inline.c (expand_call_inline): Likewise.
5375
5376 2019-10-29 Martin Liska <mliska@suse.cz>
5377
5378 * symbol-summary.h (function_summary): Pass memory location
5379 to underlaying hash_map (or vec).
5380 (V>::fast_function_summary): Likewise.
5381
5382 2019-10-29 Martin Liska <mliska@suse.cz>
5383
5384 * ggc.h (ggc_alloc_no_dtor): New function.
5385 * ipa-fnsummary.c (ipa_free_fn_summary): Call
5386 destructor and ggc_free.
5387 (ipa_free_size_summary): Call delete instead
5388 of release.
5389 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
5390 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
5391 (ipa_free_all_edge_args): Call destructor and ggc_free.
5392 (ipa_free_all_node_params): Likewise.
5393 (ipcp_free_transformation_sum): Likewise.
5394 * ipa-prop.h (ipa_check_create_node_params):
5395 Call new ggc_alloc_no_dtor.
5396 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
5397 (ipa_sra_analysis): Call destructor and ggc_free.
5398 Replace release with delete operator.
5399 * symbol-summary.h (release): Remove ..
5400 (V>::~fast_function_summary): and move logic here.
5401 Likewise for other classes.
5402
5403 2019-10-29 Richard Biener <rguenther@suse.de>
5404
5405 PR tree-optimization/92260
5406 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
5407 lane-reducing ops.
5408
5409 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
5410
5411 PR tree-optimization/88915
5412 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
5413 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
5414 and make the valueize function pointer also take a void pointer.
5415 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
5416 around vn_valueize, to call it without a context.
5417 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
5418 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
5419 (~_loop_vec_info): Release epilogue_vinfos.
5420 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
5421 number of iterations of epilogue.
5422 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
5423 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
5424 versioning threshold needed for main loop.
5425 (vect_analyze_loop): Likewise.
5426 (find_in_mapping): New helper function.
5427 (update_epilogue_loop_vinfo): New function.
5428 (vect_transform_loop): When vectorizing epilogues re-use analysis done
5429 on main loop and call update_epilogue_loop_vinfo to update it.
5430 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
5431 stmts on loop preheader edge.
5432 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
5433 we decided to vectorize epilogues. Update epilogues NITERS and
5434 construct ADVANCE to update epilogues data references where needed.
5435 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
5436 (vect_do_peeling, vect_update_inits_of_drs,
5437 determine_peel_for_niter, vect_analyze_loop): Add or update
5438 declarations.
5439 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
5440 created loop_vec_info's for epilogues when available. Otherwise analyse
5441 epilogue separately.
5442
5443 2019-10-29 Richard Biener <rguenther@suse.de>
5444
5445 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
5446 example.
5447
5448 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5449
5450 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
5451 index for the COND_EXPR from stmt_info rather than reduc_info.
5452
5453 2019-10-29 Richard Biener <rguenther@suse.de>
5454
5455 PR tree-optimization/65930
5456 * tree-vect-loop.c (check_reduction_path): Relax single-use
5457 check allowing out-of-loop uses.
5458 (vect_is_simple_reduction): SLP reduction chains cannot have
5459 intermediate stmts used outside of the loop.
5460 (vect_create_epilog_for_reduction): The adjustment might need
5461 to be converted.
5462 (vectorizable_reduction): Annotate live stmts of the reduction
5463 chain with STMT_VINFO_REDUC_DEF.
5464 * tree-vect-stms.c (process_use): Remove no longer true asserts.
5465
5466 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5467
5468 * calls.c (pass_by_reference): Leave the target to decide whether
5469 POLY_INT_CST-sized arguments should be passed by value or reference,
5470 rather than forcing them to be passed by reference.
5471 (must_pass_in_stack_var_size): Likewise.
5472 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
5473 V31_REGNUM to P15_REGNUM.
5474 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
5475 Take an extra "silent_p" parameter, defaulting to false.
5476 (aarch64_sve::svbool_type_p): Declare.
5477 (aarch64_sve::nvectors_if_data_type): Likewise.
5478 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
5479 (aarch64_frame::reg_offset): Turn into poly_int64s.
5480 (aarch64_frame::save_regs_size): Likewise.
5481 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
5482 (aarch64_frame::sve_callee_adjust): Likewise.
5483 (aarch64_frame::spare_reg_reg): Likewise.
5484 (ARM_PCS_SVE): New arm_pcs value.
5485 (CUMULATIVE_ARGS::aapcs_nprn): New field.
5486 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
5487 (CUMULATIVE_ARGS::silent_p): Likewise.
5488 (BITS_PER_SVE_PRED): New macro.
5489 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
5490 function. Reject aarch64_vector_pcs attributes on SVE functions.
5491 (aarch64_attribute_table): Use the above handler.
5492 (aarch64_sve_abi): New function.
5493 (aarch64_sve_argument_p): Likewise.
5494 (aarch64_returns_value_in_sve_regs_p): Likewise.
5495 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
5496 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
5497 descriptor for them.
5498 (aarch64_simd_decl_p): Delete.
5499 (aarch64_emit_cfi_for_reg_p): New function.
5500 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
5501 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
5502 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
5503 as partly clobbered for the SVE PCS.
5504 (aarch64_function_ok_for_sibcall): Check whether the two functions
5505 use the same ABI, rather than checking specifically for whether
5506 they're aarch64_vector_pcs functions.
5507 (aarch64_pass_by_reference): Raise an error for attempts to pass
5508 SVE arguments when SVE is disabled. Pass SVE arguments by reference
5509 if there are not enough free registers left, or if the argument is
5510 variadic.
5511 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
5512 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
5513 tuples in memory.
5514 (aarch64_layout_arg): Take a function_arg_info rather than
5515 individual properties. Handle SVE predicates, vectors and tuples.
5516 Raise an error if they are passed to unprototyped functions.
5517 (aarch64_function_arg): If the silent_p flag is set, suppress the
5518 usual error about using float registers without TARGET_FLOAT.
5519 (aarch64_init_cumulative_args): Take a silent_p parameter and store
5520 it in the cumulative_args structure. Initialize aapcs_nprn and
5521 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
5522 error about using float registers without TARGET_FLOAT.
5523 If the silent_p flag is not set, also raise an error about
5524 using SVE functions when SVE is disabled.
5525 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
5526 and call it for SVE functions too. Update aapcs_nprn similarly
5527 to the other register counts.
5528 (aarch64_layout_frame): If a big-endian function needs to save
5529 and restore Z8-Z15, search for a spare predicate that it can use.
5530 Store SVE predicates at the bottom of the register save area,
5531 followed by SVE vectors, then followed by the normal slots.
5532 Keep pointing the hard frame pointer at the base of the normal slots,
5533 above the SVE vectors. Update the various frame creation and
5534 tear-down strategies for the new layout, initializing the new
5535 sve_callee_adjust field. Add an additional layout for frames
5536 whose saved registers are all SVE registers.
5537 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
5538 (aarch64_return_address_signing_enabled): Likewise.
5539 (aarch64_push_regs, aarch64_pop_regs): Update calls to
5540 aarch64_reg_save_mode.
5541 (aarch64_adjust_sve_callee_save_base): New function.
5542 (aarch64_add_cfa_expression): Move earlier in file. Take the
5543 saved register as an rtx rather than a register number and use
5544 its mode for the MEM slot.
5545 (aarch64_save_callee_saves): Remove the mode argument and instead
5546 use aarch64_reg_save_mode to get the mode of each save slot.
5547 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
5548 offsets. Allow GP offsets to be saved at a VL-based offset from
5549 the stack, handling this case using the frame pointer if available
5550 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
5551 big-endian SVE functions; use normal moves for other SVE saves.
5552 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
5553 returns true. Add explicit CFA notes when not storing via the
5554 stack pointer. Do not try to pair SVE saves.
5555 (aarch64_restore_callee_saves): Cope with poly_int64 register
5556 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
5557 use normal moves for other SVE restores. Only add CFA restore notes
5558 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
5559 SVE restores.
5560 (aarch64_get_separate_components): Always keep the first SVE save
5561 in the prologue if we need to use it as a stack probe. Don't allow
5562 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
5563 Likewise the spare predicate register that they need. Update the
5564 offset calculation to account for the SVE save area. Use the
5565 appropriate range check for SVE LDR and STR instructions.
5566 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
5567 (aarch64_process_components): Likewise. Update the offset
5568 calculation to account for the SVE save area. Only mark the
5569 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
5570 Do not try to pair SVE saves.
5571 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
5572 reg_offsets. When handling the final allocation, expect the
5573 first SVE register save to be part of the initial allocation
5574 and for it to act as a probe at SP. Account for the SVE callee
5575 save area in the dump information.
5576 (aarch64_expand_prologue): Update the frame diagram. Fold the
5577 SVE callee allocation into the initial allocation if stack clash
5578 protection is enabled. Use new variables to track the offset
5579 of the frame chain (and hard frame pointer) from the current
5580 stack pointer, and likewise the offset of the bottom of the
5581 register save area. Update calls to aarch64_save_callee_saves
5582 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
5583 saving the FP&SIMD registers. Save the predicate registers.
5584 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
5585 into account when setting the stack pointer from the frame pointer,
5586 and when deciding whether we can inherit the initial adjustment
5587 amount from the prologue. Restore the predicate registers after
5588 the vector registers, then apply sve_callee_adjust, then restore
5589 the general registers.
5590 (aarch64_secondary_reload): Don't use secondary SVE reloads
5591 for VNx16BImode.
5592 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
5593 (aarch64_short_vector_p): Return false for SVE types.
5594 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
5595 at the start of the function. Return false for SVE types.
5596 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
5597 functions too.
5598 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
5599 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
5600 to big-endian targets for bytewise moves.
5601 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
5602
5603 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5604 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5605 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5606
5607 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
5608 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
5609 aarch64-sve-builtins-base.o to extra_objs. Add
5610 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
5611 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
5612 (aarch64-sve-builtins-shapes.o): Likewise.
5613 (aarch64-sve-builtins-base.o): New rules.
5614 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
5615 (aarch64_resolve_overloaded_builtin): Likewise.
5616 (aarch64_check_builtin_call): Likewise.
5617 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
5618 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
5619 pragma.
5620 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
5621 (aarch64_svprfop): New enum.
5622 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
5623 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
5624 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
5625 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5626 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
5627 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
5628 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
5629 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
5630 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
5631 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
5632 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
5633 (aarch64_sve::mangle_builtin_type): Likewise.
5634 (aarch64_sve::resolve_overloaded_builtin): Likewise.
5635 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
5636 (aarch64_sve::expand_builtin): Likewise.
5637 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
5638 (aarch64_sve_int_mode): Likewise.
5639 (aarch64_ptrue_all_mode): New function.
5640 (aarch64_convert_sve_data_to_pred): Make public.
5641 (svprfop_token): New function.
5642 (aarch64_output_sve_prefetch): Likewise.
5643 (aarch64_fold_sve_cnt_pat): Likewise.
5644 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5645 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
5646 instead of gen_while_ult.
5647 (aarch64_replace_reg_mode): Make public.
5648 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
5649 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
5650 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
5651 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
5652 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
5653 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
5654 (aarch64_sve_ptrue_svpattern_p): Likewise.
5655 (aarch64_sve_pred_valid_immediate): Check
5656 aarch64_sve_ptrue_svpattern_p.
5657 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
5658 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
5659 functions.
5660 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
5661 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
5662 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
5663 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
5664 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
5665 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
5666 New unspecs.
5667 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
5668 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
5669 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
5670 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
5671 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
5672 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
5673 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
5674 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
5675 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
5676 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
5677 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
5678 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
5679 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
5680 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
5681 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
5682 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
5683 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
5684 (Vesize): Handle partial vector modes.
5685 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
5686 mode attributes.
5687 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
5688 iterators.
5689 (s, paired_extend, inc_dec): New code attributes.
5690 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
5691 (SVE_INT_UNARY): Add UNSPEC_RBIT.
5692 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
5693 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
5694 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
5695 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5696 UNSPEC_COND_FMULX.
5697 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
5698 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
5699 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5700 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
5701 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
5702 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
5703 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
5704 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
5705 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
5706 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
5707 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
5708 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
5709 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
5710 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
5711 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
5712 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
5713 UNSPEC_COND_FSCALE.
5714 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5715 (binqops_op, binqops_op_rev, last_op): New int attributes.
5716 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
5717 (fn, ab): New int attributes.
5718 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
5719 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
5720 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
5721 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
5722 UNSPEC_RBIT.
5723 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
5724 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
5725 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
5726 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
5727 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5728 UNSPEC_COND_FMULX.
5729 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
5730 (brk_reg_con, brk_reg_opno): New int attributes.
5731 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
5732 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
5733 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
5734 UNSPEC_COND_FMIN.
5735 (max_elem_bits): New int attribute.
5736 (min_elem_bits): Handle UNSPEC_RBIT.
5737 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
5738 TRUNCATE as well as SUBREG.
5739 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
5740 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
5741 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
5742 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
5743 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
5744 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
5745 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
5746 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
5747 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
5748 (aarch64_gather_scale_operand_h): New predicates.
5749 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
5750 (vgd, vgh, vgw, vsQ, vsS): New constraints.
5751 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
5752 (*aarch64_sve_reinterpret<mode>): Allow any source register
5753 instead of requiring an exact match.
5754 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
5755 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
5756 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
5757 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
5758 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
5759 (aarch64_update_ffrt): New patterns.
5760 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5761 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5762 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5763 (@aarch64_ld<fn>f1<mode>): New patterns.
5764 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5765 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5766 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5767 (@aarch64_ldnt1<mode>): New patterns.
5768 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5769 the scalar part of the address.
5770 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
5771 scalar part of the addresse and add an alternative for handling
5772 nonzero offsets.
5773 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5774 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
5775 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5776 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5777 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5778 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5779 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
5780 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
5781 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5782 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5783 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5784 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5785 (@aarch64_sve_prefetch<mode>): New patterns.
5786 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
5787 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
5788 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
5789 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
5790 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
5791 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5792 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5793 (@aarch64_stnt1<mode>): New patterns.
5794 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5795 the scalar part of the address.
5796 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
5797 the scalar part of the addresse and add an alternative for handling
5798 nonzero offsets.
5799 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5800 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
5801 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5802 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5803 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
5804 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
5805 New patterns.
5806 (vec_duplicate<mode>): Use QI as the mode of the input operand.
5807 (extract_last_<mode>): Generalize to...
5808 (@extract_<LAST:last_op>_<mode>): ...this.
5809 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
5810 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
5811 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
5812 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
5813 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
5814 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
5815 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
5816 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
5817 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
5818 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
5819 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
5820 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
5821 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
5822 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
5823 (*aarch64_adr_uxtw_unspec): Likewise.
5824 (*aarch64_adr_uxtw): Rename to...
5825 (*aarch64_adr_uxtw_and): ...this.
5826 (@aarch64_adr<mode>_shift): New expander.
5827 (*aarch64_adr_shift_sxtw): New pattern.
5828 (aarch64_<su>abd<mode>_3): Rename to...
5829 (@aarch64_pred_<su>abd<mode>): ...this.
5830 (<su>abd<mode>_3): Update accordingly.
5831 (@aarch64_cond_<su>abd<mode>): New expander.
5832 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
5833 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
5834 (*<su>mul<mode>3_highpart): Rename to...
5835 (@aarch64_pred_<optab><mode>): ...this.
5836 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
5837 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
5838 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
5839 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
5840 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
5841 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
5842 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
5843 (*v<ASHIFT:optab><mode>3): Rename to...
5844 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
5845 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
5846 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
5847 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
5848 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
5849 (@cond_asrd<mode>): New expander.
5850 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
5851 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
5852 (*sdiv_pow2<mode>3): Delete.
5853 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
5854 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
5855 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
5856 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
5857 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
5858 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
5859 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
5860 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
5861 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
5862 (*add<SVE_F:mode>3): Rename to...
5863 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
5864 for SVE_STRICT_GP.
5865 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
5866 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
5867 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
5868 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
5869 (*sub<SVE_F:mode>3): Rename to...
5870 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
5871 for SVE_STRICT_GP.
5872 (@aarch64_pred_abd<SVE_F:mode>): New expander.
5873 (*fabd<SVE_F:mode>3): Rename to...
5874 (*aarch64_pred_abd<SVE_F:mode>): ...this.
5875 (@aarch64_cond_abd<SVE_F:mode>): New expander.
5876 (*mul<SVE_F:mode>3): Rename to...
5877 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
5878 for SVE_STRICT_GP.
5879 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
5880 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
5881 to...
5882 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
5883 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
5884 (*<nlogical><PRED_ALL:mode>3): Rename to...
5885 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
5886 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
5887 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
5888 (*<logical_nn><PRED_ALL:mode>3): Rename to...
5889 (aarch64_pred_<logical_nn><mode>_z): ...this.
5890 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
5891 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
5892 (*fma<SVE_I:mode>4): Rename to...
5893 (@aarch64_pred_fma<SVE_I:mode>): ...this.
5894 (*fnma<SVE_I:mode>4): Rename to...
5895 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
5896 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
5897 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
5898 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
5899 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
5900 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
5901 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
5902 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
5903 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
5904 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
5905 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
5906 (@aarch64_sve_tmad<mode>): Likewise.
5907 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
5908 (*aarch64_sel_dup<mode>): Rename to...
5909 (@aarch64_sel_dup<mode>): ...this.
5910 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
5911 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
5912 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
5913 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
5914 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
5915 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
5916 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
5917 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
5918 (*fcm<cmp_op><mode>): Rename to...
5919 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
5920 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5921 (*fcmuo<mode>): Rename to...
5922 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
5923 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5924 (@aarch64_pred_fac<cmp_op><mode>): New expander.
5925 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
5926 (fold_extract_last_<mode>): Generalize to...
5927 (@fold_extract_<last_op>_<mode>): ...this.
5928 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
5929 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
5930 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
5931 DImode result explicit.
5932 (reduc_plus_scal_<mode>): Update accordingly.
5933 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
5934 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
5935 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
5936 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
5937 (*aarch64_sve_tbl<mode>): Rename to...
5938 (@aarch64_sve_tbl<mode>): ...this.
5939 (@aarch64_sve_compact<mode>): New pattern.
5940 (*aarch64_sve_dup_lane<mode>): Rename to...
5941 (@aarch64_sve_dup_lane<mode>): ...this.
5942 (@aarch64_sve_dupq_lane<mode>): New pattern.
5943 (@aarch64_sve_splice<mode>): Likewise.
5944 (aarch64_sve_<perm_insn><mode>): Rename to...
5945 (@aarch64_sve_<perm_insn><mode>): ...this.
5946 (*aarch64_sve_ext<mode>): Rename to...
5947 (@aarch64_sve_ext<mode>): ...this.
5948 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
5949 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
5950 to...
5951 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
5952 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5953 Rename to...
5954 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5955 ...this.
5956 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
5957 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
5958 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
5959 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
5960 to...
5961 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
5962 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
5963 a "@" marker.
5964 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
5965 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
5966 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
5967 pattern.
5968 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
5969 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
5970 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
5971 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
5972 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
5973 "@" marker.
5974 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
5975 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
5976 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
5977 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
5978 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
5979 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
5980 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
5981 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
5982 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
5983 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
5984 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
5985 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
5986 (aarch64_sve_cnt_pat): Likewise.
5987 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5988 (*aarch64_sve_incsi_pat): Likewise.
5989 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5990 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5991 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5992 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5993 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5994 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5995 (*aarch64_sve_decsi_pat): Likewise.
5996 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5997 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5998 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5999 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6000 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6001 (@aarch64_pred_cntp<mode>): Likewise.
6002 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6003 New expander.
6004 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6005 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6006 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6007 New expander.
6008 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6009 New pattern.
6010 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6011 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6012 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6013 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6014 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6015 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6016 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6017 New expander.
6018 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6019 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6020 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6021 New expander.
6022 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6023 New pattern.
6024 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6025 expander.
6026 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6027 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6028 expander.
6029 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6030 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6031 expander.
6032 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6033 * config/aarch64/arm_sve.h: New file.
6034 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6035 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6036 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6037 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6038 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6039 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6040 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6041 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6042 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6043
6044 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6045
6046 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6047 New pattern.
6048 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6049 SVE modes.
6050
6051 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6052
6053 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6054 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6055 FFRT_REGNUM + 1.
6056 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6057 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6058 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6059 (aarch64_hard_regno_nregs): Handle the new register classes.
6060 (aarch64_hard_regno_mode_ok): Likewise.
6061 (aarch64_regno_regclass): Likewise.
6062 (aarch64_class_max_nregs): Likewise.
6063 (aarch64_register_move_cost): Likewise.
6064 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6065 as general register_operands.
6066
6067 2019-10-29 Martin Liska <mliska@suse.cz>
6068
6069 * ggc-common.c: One can't subtract unsigned types
6070 in compare function.
6071
6072 2019-10-29 Martin Liska <mliska@suse.cz>
6073
6074 * cgraphunit.c (symbol_table::compile): Pass
6075 title as dump_memory_report argument.
6076 * toplev.c (dump_memory_report): New argument.
6077 (finalize): Pass new argument.
6078 * toplev.h (dump_memory_report): Add argument.
6079
6080 2019-10-29 Martin Liska <mliska@suse.cz>
6081
6082 * ggc-common.c: Move Leak to the first column.
6083
6084 2019-10-29 Martin Liska <mliska@suse.cz>
6085
6086 * cgraphunit.c (symbol_table::compile): Remove argument
6087 for dump_memory_report.
6088 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6089 (compare_final): Remove in order to make report
6090 better readable.
6091 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6092 * mem-stats.h (mem_alloc_description::get_list):
6093 Do not pass cmp.
6094 (mem_alloc_description::dump): Likewise here.
6095 * toplev.c (dump_memory_report): Remove final
6096 argument.
6097 (finalize): Likewise.
6098 * toplev.h (dump_memory_report): Remove argument.
6099
6100 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6101
6102 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6103 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6104 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6105 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6106 accept "const".
6107
6108 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6109
6110 * coretypes.h (string_int_pair): New typedef.
6111 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6112 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6113 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6114
6115 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6116
6117 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6118 (simulate_builtin_function_decl): Declare.
6119 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6120 (LANG_HOOKS_INITIALIZER): Include it.
6121 * langhooks.c (add_builtin_function_common): Rename to...
6122 (build_builtin_function): ...this. Add a location parameter and use
6123 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6124 the decl instead.
6125 (add_builtin_function): Update accordingly, passing the returned
6126 decl to the lang hook.
6127 (add_builtin_function_ext_scope): Likewise
6128 (simulate_builtin_function_decl): New function.
6129
6130 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6131
6132 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6133 example, use actual names of supported offload targets.
6134
6135 PR target/92258
6136 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6137
6138 2019-10-28 Martin Sebor <msebor@redhat.com>
6139
6140 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6141 (handle_store): Pass argument to get_addr_stridx.
6142
6143 2019-10-28 Martin Sebor <msebor@redhat.com>
6144
6145 PR tree-optimization/92226
6146 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6147 the offset is in the open range outlined by SI's length.
6148
6149 2019-10-28 Martin Sebor <msebor@redhat.com>
6150
6151 PR c/66970
6152 * doc/cpp.texi (__has_builtin): Document.
6153 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6154
6155 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6156
6157 PR target/82981
6158 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6159 doubleword and low doubleword result of multiplication on
6160 MIPS64R6.
6161
6162 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6163 pure qualifier to the built-in.
6164 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6165 built-ins.
6166 (struct mips_builtin_description): Add is_pure flag.
6167 (mips_init_builtins): Mark built-in as pure if the flag in the
6168 corresponding mips_builtin_description struct is set.
6169
6170 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6171 alternative which covers the floating-point input value. Also
6172 forbid the split of insert.d pattern for floating-point values.
6173
6174 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6177 * config/riscv/riscv-sr.c: New file.
6178 * config/riscv/riscv.c (riscv_reorg): New function.
6179 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6180 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6181 (riscv_remove_unneeded_save_restore_calls): Declare.
6182 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6183
6184 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6185
6186 PR tree-optimization/92163
6187 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6188 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6189 before calling bitmap_set_bit.
6190 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6191 delete_dead_or_redundant_assignment.
6192 (dse_dom_walker::dse_optimize_stmt): Likewise.
6193 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6194
6195 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6196
6197 PR middle-end/91272
6198 * tree-vect-stmts.c (vectorizable_condition): Support
6199 EXTRACT_LAST_REDUCTION with fully-masked loops.
6200
6201 2019-10-28 Richard Biener <rguenther@suse.de>
6202
6203 PR tree-optimization/92252
6204 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6205 STMT_VINFO_REDUC_IDX when swapping operands.
6206
6207 2019-10-28 Richard Biener <rguenther@suse.de>
6208
6209 PR tree-optimization/92241
6210 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6211 we failed to update the reduction index do not use the pattern
6212 stmts for the reduction chain.
6213 (vectorizable_reduction): When the reduction chain is corrupt,
6214 fail.
6215 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6216 fail to update the reduction chain.
6217
6218 2019-10-28 Richard Biener <rguenther@suse.de>
6219
6220 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6221 STMT_VINFO_REDUC_IDX from the actual stmt.
6222 (vect_transform_reduction): Likewise.
6223 (vectorizable_reduction): Compute the reduction chain length,
6224 do not recompute the reduction operand index. Remove no longer
6225 necessary restriction for condition reduction chains.
6226
6227 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6228
6229 PR target/92225
6230 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6231 condition for V2DImode.
6232
6233 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6234
6235 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6236 Remove %k operand modifier.
6237 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6238
6239 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6240
6241 PR rtl-optimization/92007
6242 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6243 call it after reload if hot/cold partitioning has been done.
6244 (class pass_postreload_jump): Rename to
6245 pass_jump_after_combine.
6246 (make_pass_postreload_jump): Rename to
6247 make_pass_jump_after_combine.
6248 * passes.def(pass_postreload_jump): Move before reload, rename
6249 to pass_jump_after_combine.
6250 * tree-pass.h (make_pass_postreload_jump): Rename to
6251 make_pass_jump_after_combine.
6252
6253 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6254
6255 PR ipa/92242
6256 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6257 for missing EDGE_REF
6258 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6259
6260 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6261
6262 PR tree-optimization/88760
6263 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6264 Enable -funroll-loops for -O2 and above.
6265 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6266 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6267 do not turn on web and rngreg implicitly, if the unroller is not
6268 explicitly enabled.
6269
6270 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6271
6272 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6273 jump functions.
6274
6275 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6276
6277 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6278 * cgraph.h (cgraph_node::rtl_info): Likewise.
6279
6280 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6281
6282 * ipa-cp.c (propagate_constants_across_call): If args are not available
6283 just drop everything to varying.
6284 (find_aggregate_values_for_callers_subset): Watch for missing
6285 edge summary.
6286 (find_more_scalar_values_for_callers_subs): Likewise.
6287 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6288 update_jump_functions_after_inlining, propagate_controlled_uses):
6289 Watch for missing summaries.
6290 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6291 is finished.
6292 (ipa_write_node_info): Watch for missing summaries.
6293 (ipa_read_edge_info): Create new ref.
6294 (ipa_edge_args_sum_t): Add remove.
6295 (IPA_EDGE_REF_GET_CREATE): New macro.
6296 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6297 edge summary.
6298 (remap_edge_change_prob): Likewise.
6299
6300 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6301
6302 * ipa-inline-transform.c (inline_call): update function summaries
6303 after expanidng thunk.
6304
6305 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6306
6307 * ipa-icf.c (sem_function::merge): Update function summaries.
6308 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6309
6310 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6311
6312 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6313 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6314 operand already has scalar mode.
6315 (iptr): Remove SF/DF.
6316
6317 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6318
6319 PR target/91289
6320 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6321 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6322 this.
6323
6324 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6325
6326 * config/i386/sse.md
6327 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6328 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6329 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6330 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6331 <sse>_vmmaskcmp<mode>3):
6332 Change predicates from vector_operand to nonimmediate_operand,
6333 constraints xBm to xm, since scalar operations don't need
6334 memory address alignment.
6335 (avx512f_vmcmp<mode>3<round_saeonly_name>,
6336 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6337 round_saeonly_nimm_predicate with
6338 round_saeonly_nimm_scalar_predicate.
6339 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6340 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6341 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6342 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6343 avx512f_vmfmadd_<mode>_mask3<round_name>,
6344 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6345 *avx512f_vmfmsub_<mode>_mask<round_name>,
6346 avx512f_vmfmsub_<mode>_mask3<round_name>,
6347 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6348 *avx512f_vmfnmadd_<mode>_mask<round_name>,
6349 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6350 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6351 *avx512f_vmfnmsub_<mode>_mask<round_name>,
6352 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6353 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6354 cvtusi2<ssescalarmodesuffix>32<round_name>,
6355 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6356 round_nimm_predicate with round_nimm_scalr_predicate.
6357 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6358 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6359 avx512er_vmrcp28<mode><round_saeonly_name>,
6360 avx512er_vmrsqrt28<mode><round_saeonly_name>,
6361 ): Replace round_saeonly_nimm_predicate with
6362 round_saeonly_nimm_scalar_predicate.
6363 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6364 vector_operand with nonimmediate_operand.
6365 * config/i386/subst.md (round_scalar_nimm_predicate,
6366 round_saeonly_scalar_nimm_predicate): Replace
6367 vector_operand with nonimmediate_operand.
6368
6369 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6370
6371 PR target/89071
6372 * config/i386/i386.md (*rcpsf2_sse): Add
6373 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6374 (*rsqrtsf2_sse): Ditto.
6375 (*sqrt<mode>2_sse): Ditto.
6376 (sse4_1_round<mode>2): separate constraint vm, add
6377 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6378 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
6379 by pass rpad.
6380 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
6381 Ditto.
6382 (*sse_vmrsqrtv4sf2): Ditto.
6383 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
6384 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
6385 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
6386 <iptr> pointer size modifier since vround support memory operand.
6387
6388 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6389
6390 PR target/85969
6391 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
6392 static function.
6393
6394 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6395 Tobias Burnus <tobias@codesourcery.com>
6396
6397 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
6398 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
6399 common block decls.
6400
6401 2019-10-25 Richard Biener <rguenther@suse.de>
6402
6403 PR tree-optimization/92222
6404 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
6405 (_slp_oprnd_info::second_pattern): Likewise.
6406 (_slp_oprnd_info::any_pattern): New.
6407 (vect_create_oprnd_info): Adjust.
6408 (vect_get_and_check_slp_defs): Compute whether any stmt is
6409 in a pattern.
6410 (vect_build_slp_tree_2): Avoid building up a node from scalars
6411 if any of the operand defs, not just the first, is in a pattern.
6412
6413 2019-10-25 Richard Biener <rguenther@suse.de>
6414
6415 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
6416 swapping if we actually have to modify the IL on a shared stmt.
6417 (vect_build_slp_tree_2): Never fail swapping on shared stmts
6418 because we no longer modify the IL.
6419
6420 2019-10-25 Martin Liska <mliska@suse.cz>
6421
6422 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
6423
6424 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
6425
6426 * tree-vect-loop.c (vectorizable_reduction): Restrict the
6427 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
6428 handled by vect_transform_reduction. Allow fully-masked loops
6429 to be used with reduction chains.
6430 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
6431 operations in fully-masked loops.
6432 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
6433 operations in fully-masked loops.
6434
6435 2019-10-25 Richard Biener <rguenther@suse.de>
6436
6437 * tree-vect-loop.c (vectorizable_reduction): Verify
6438 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
6439 correctly.
6440 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
6441 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
6442 stmts.
6443
6444 2019-10-24 Jakub Jelinek <jakub@redhat.com>
6445
6446 * gimplify.h (omp_construct_selector_matches): Declare.
6447 * gimplify.c (struct gimplify_omp_ctx): Add code member.
6448 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
6449 called function if needed for flag_openmp.
6450 (gimplify_scan_omp_clauses): Set ctx->code.
6451 (omp_construct_selector_matches): New function.
6452 * omp-general.h (omp_constructor_traits_to_codes,
6453 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
6454 * omp-general.c (omp_constructor_traits_to_codes,
6455 omp_context_selector_matches, omp_resolve_declare_variant): New
6456 functions.
6457
6458 * config/arc/arc.c (hwloop_optimize): Add missing space in string
6459 literal.
6460 * config/rx/rx.c (rx_print_operand): Likewise.
6461 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6462 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6463 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
6464 Likewise.
6465 * genemit.c (emit_c_code): Likewise.
6466 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
6467
6468 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6469
6470 * symbols-summary.h (fast_function_summary<T *, V>::release,
6471 fast_call_summary<T *, V>::release): Free m_vector.
6472
6473 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6474
6475 * cgraphunit.c (symbol_table::process_new_functions): Call
6476 ipa_free_size_summary.
6477 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
6478 (devirtualization_time_bonus): Update.
6479 (ipcp_propagate_stage): Update.
6480 * ipa-fnsummary.c (ipa_size_summaries): New.
6481 (ipa_fn_summary_alloc): Alloc size summary.
6482 (dump_ipa_call_summary): Update.
6483 (ipa_dump_fn_summary): Update.
6484 (analyze_function_body): Update.
6485 (compute_fn_summary): Likewise.
6486 (ipa_get_stack_frame_offset): New function.
6487 (inline_update_callee_summaries): Do not update frame offsets.
6488 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
6489 remove call and function summary.
6490 (ipa_update_overall_fn_summary): Update.
6491 (inline_read_section): Update.
6492 (ipa_fn_summary_write): Update.
6493 (ipa_free_fn_summary): Do not remove summaries.
6494 (ipa_free_size_summary): New.
6495 (release summary pass): Also run at WPA.
6496 * ipa-fnsummary.h (ipa_size_summary): Declare.
6497 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
6498 estimated_self_stack_size.
6499 (ipa_size_summary_t): New type.
6500 (ipa_size_summaries): Declare.
6501 (ipa_free_size_summary): Declare.
6502 (ipa_get_stack_frame_offset): Declare.
6503 * ipa-icf.c (sem_function::merge): Update.
6504 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
6505 (estimate_growth): Update.
6506 (growth_likely_positive): Update.
6507 (clone_inlined_nodes): Update.
6508 (inline_call): Update.
6509 * ipa-inline.c (caller_growth_limits): Update.
6510 (edge_badness): Update.
6511 (recursive_inlining): Update.
6512 (inline_small_functions): Update.
6513 (inline_to_all_callers_1): Update.
6514 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
6515
6516 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
6517
6518 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
6519 (uavg<mode>3_ceil): ... This.
6520 (altivec_vavgs<VI_char>): Rename to...
6521 (avg<mode>3_ceil): ... This.
6522 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
6523 VAVGUW, VAVGSW): Adjust.
6524
6525 2019-10-24 Nathan Sidwell <nathan@acm.org>
6526
6527 * dumpfile.c (dump_begin): Reorder decls to use RAII.
6528
6529 2019-10-24 Martin Liska <mliska@suse.cz>
6530
6531 * symbol-summary.h (gt_pch_nx): Mark all functions
6532 with gcc_unreachable as we do not expect to be called.
6533
6534 2019-10-24 Richard Biener <rguenther@suse.de>
6535
6536 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
6537 chains try harder with operand swapping and instead of
6538 putting a shifted chain into the reduction operands put
6539 a repetition of the final reduction op there as if we'd
6540 reassociate the expression.
6541
6542 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6543
6544 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
6545 statics_not_read and statics_not_written to statics_read and
6546 statics_written respectively.
6547 (no_module_statics): New static var.
6548 (ipa_reference_get_not_read_global): Rename to ...
6549 (ipa_reference_get_read_global): ... this.
6550 (ipa_reference_get_not_written_global): Rename to ...
6551 (ipa_reference_get_written_global): ... this.
6552 (dump_static_vars_set_to_file): Dump no_module_statics.
6553 (copy_static_var_set): Add for propagation parameter.
6554 (ipa_init): Initialize no_module_statics.
6555 (ipa_ref_opt_summary_t::duplicate): Update.
6556 (ipa_ref_opt_summary_t::remove): Update.
6557 (propagate): Update.
6558 (write_node_summary_p): Look correctly for bitmap differences.
6559 (ipa_reference_write_optimization_summary): Update.
6560 (ipa_reference_read_optimization_summary): Update.
6561 * ipa-reference.h
6562 (ipa_reference_get_not_read_global): Rename to ...
6563 (ipa_reference_get_read_global): ... this.
6564 (ipa_reference_get_not_written_global): Rename to ...
6565 (ipa_reference_get_written_global): ... this.
6566 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
6567 (call_may_clobber_ref_p_1): Update.
6568
6569 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6570
6571 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
6572 and add comment.
6573 (msp430_hard_regno_nregs_with_padding): Remove.
6574
6575 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6576
6577 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
6578 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
6579 shift amount is between 1 and 4.
6580 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
6581 is between 1 and 4.
6582
6583 2019-10-24 Richard Biener <rguenther@suse.de>
6584
6585 PR tree-optimization/92205
6586 * tree-vect-loop.c (vectorizable_reduction): Restrict
6587 search for alternate vectype_in to lane-reducing patterns
6588 we support.
6589
6590 2019-10-24 Richard Biener <rguenther@suse.de>
6591
6592 PR tree-optimization/92203
6593 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
6594 Skip eliminating conversion stmts inserted by insertion.
6595
6596 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
6597
6598 * config/s390/s390.c (s390_get_thread_pointer): Use
6599 gen_get_thread_pointer.
6600 (s390_expand_split_stack_prologue): Likewise.
6601 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
6602 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
6603 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
6604 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
6605 parameterized name.
6606
6607 2019-10-24 Richard Biener <rguenther@suse.de>
6608
6609 * tree-vect-slp.c (vect_analyze_slp): When reduction group
6610 SLP discovery fails try to handle the reduction as part
6611 of SLP reduction discovery.
6612
6613 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
6614
6615 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
6616 declaration.
6617 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
6618 attribute if it exists, rather than the insn size. If we use the
6619 insn size, adjust the size to remove the extra size that prefixed
6620 instructions take.
6621 (rs6000_adjust_insn_length): New function.
6622 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
6623 update the instruction sized if prefixed instructions are used.
6624 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
6625 (non_prefixed_length attribute): Delete.
6626 (num_insns attribute): New insn attribute to return the number of
6627 instructions.
6628 (max_prefixed_insns attribute): New insn attribute to return the
6629 maximum number of prefixed instructions in an insn.
6630 (length attribute): Do not adjust for prefix instructions here,
6631 punt to ADJUST_INSN_LENGTH.
6632 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
6633 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
6634 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
6635 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
6636 max_prefixed_insns and num_insns.
6637
6638 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
6639 (movtd_64bit_nodm): Reformat.
6640 (mov<mode>_32bit): Reformat.
6641 (mov<mode>_softfloat): Reformat.
6642 (FMOVE128_GPR splitter): Reformat.
6643 (DIFD splitter): Reformat.
6644 (TI2 splitter): Reformat.
6645 * config/rs6000/predicates.md (lwa_operand): If the bottom two
6646 bits of the offset for the memory address are non-zero, use PLWA
6647 if prefixed instructions are available.
6648
6649 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6650
6651 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
6652
6653 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6654
6655 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
6656 previous patch.
6657
6658 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6659
6660 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
6661 (cmp_symbol_files): New.
6662 (lto_output): Copy sections in file order.
6663 * lto-streamer.h (lto_file_decl_data): Add field order.
6664
6665 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6666
6667 * ipa-reference.h (ipa_reference_var_uid): Move offline.
6668 * ipa-reference.c (reference_vars_map_t): new type.
6669 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
6670 (ipa_reference_var_uid): Implement.
6671 (varpool_node_hooks): New static var.
6672 (varpool_removal_hook): New function.
6673 (is_improper): Do not check bitmap for id==-1
6674 (get_static_name): Update.
6675 (ipa_init): Initialize new datastructures.
6676 (analyze_function): Do not recompute ids.
6677 (propagate): Free reference_vars_to_consider.
6678 (stream_out_bitmap): Update.
6679 (ipa_reference_read_optimization_summary): Update.
6680
6681 2019-10-23 qing zhao <qing.zhao@oracle.com>
6682
6683 PR gcov-profile/91971
6684 * coverage.c (coverage_init): Mangle the full path of filename when
6685 filename is a absolute path.
6686
6687 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6688
6689 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
6690 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
6691 (msp430_has_hwmult): New.
6692 (msp430_output_labelref):
6693 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
6694 * config/msp430/msp430.md (mulhisi3): Likewise.
6695 (umulhisi3): Likewise.
6696 (mulsidi3): Likewise.
6697 (umulsidi3): Likewise.
6698
6699 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6700
6701 PR ipa/92074
6702 * params.def (inline-heuristics-hint-percent): Set to 600.
6703
6704 2019-10-23 Richard Biener <rguenther@suse.de>
6705
6706 PR tree-optimization/65930
6707 * tree-vect-loop.c (check_reduction_path): Allow conversions
6708 that only change the sign.
6709 (vectorizable_reduction): Relax latch def stmts we handle further.
6710
6711 2019-10-23 Jakub Jelinek <jakub@redhat.com>
6712
6713 PR debug/90231
6714 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
6715 (remove_unused_ivs): Use it instead of get_computation_at. When
6716 choosing best candidate, only consider candidates where
6717 get_debug_computation_at actually returns non-NULL.
6718
6719 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
6720
6721 PR tree-optimization/92131
6722 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
6723 range would be symbolic, drop to varying for any explicit overflow
6724 in the constant part or if neither range is a singleton.
6725
6726 2019-10-23 Martin Liska <mliska@suse.cz>
6727
6728 PR middle-end/81669
6729 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
6730 Initialize m_data.
6731
6732 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
6733
6734 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
6735 int_mode_for_mode rather than mode_for_int_vector for scalars.
6736
6737 2019-10-23 Richard Biener <rguenther@suse.de>
6738
6739 PR tree-optimization/92179
6740 * tree-vect-stmts.c (vectorizable_shift): For shift args
6741 that are all the same remove type restriction in the SLP case.
6742 Adjust SLP code to handle converting of the shift arg to
6743 only apply in case the modes are different.
6744
6745 2019-10-23 Martin Liska <mliska@suse.cz>
6746
6747 PR ipa/91969
6748 * ipa-inline.c (recursive_inlining): Do not print
6749 when curr->count is not initialized.
6750
6751 2019-10-23 Richard Biener <rguenther@suse.de>
6752
6753 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
6754 op from scalars in case there's a constant operand in its
6755 definition.
6756
6757 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
6758
6759 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
6760 against out of range max skip or log values.
6761
6762 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
6763
6764 * cgraph.c (dump_graphviz): Change name to dump_name
6765
6766 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6767
6768 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
6769 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
6770 subtraction from a carry operation.
6771
6772 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6773
6774 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
6775
6776 2019-10-22 Richard Biener <rguenther@suse.de>
6777
6778 PR tree-optimization/92173
6779 * tree-vect-loop.c (vectorizable_reduction): If
6780 vect_transform_reduction cannot handle code-generation try without
6781 the single-def-use-cycle optimization. Pass optab_vector to
6782 optab_for_tree_code to get vector shifts as that's what we'd
6783 generate.
6784
6785 2019-10-22 Michael Matz <matz@suse.de>
6786
6787 PR middle-end/90796
6788 * gimple-loop-jam.c (any_access_function_variant_p): New function.
6789 (adjust_unroll_factor): Use it to constrain safety, new parameter.
6790 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
6791
6792 2019-10-22 Richard Biener <rguenther@suse.de>
6793
6794 PR tree-optimization/92173
6795 * tree-vect-loop.c (vectorizable_reduction): If
6796 vect_transform_reduction cannot handle code-generation try without
6797 the single-def-use-cycle optimization. Pass optab_vector to
6798 optab_for_tree_code to get vector shifts as that's what we'd
6799 generate.
6800
6801 2019-10-22 Martin Liska <mliska@suse.cz>
6802
6803 * diagnostic-format-json.cc (json_from_expanded_location):
6804 Use json::integer_number.
6805 * gcov.c (output_intermediate_json_line): Use new
6806 json::integer_number.
6807 (output_json_intermediate_file): Likewise.
6808 * json.cc (number::print): Move to ...
6809 (float_number::print): ... this.
6810 (integer_number::print): New.
6811 (test_writing_numbers): Move to ...
6812 (test_writing_float_numbers): ... this.
6813 (test_writing_integer_numbers): New.
6814 (json_cc_tests): Register test_writing_integer_numbers.
6815 * json.h (class value): Add forward declaration
6816 for float_number and integer_number.
6817 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
6818 (class number): Move to ...
6819 (class float_number): ... this.
6820 (class integer_number): New.
6821 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
6822 Use json::integer_number.
6823 (optrecord_json_writer::location_to_json): Likewise.
6824 (optrecord_json_writer::profile_count_to_json): Likewise.
6825 (optrecord_json_writer::pass_to_json): Likewise.
6826
6827 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
6828
6829 * tree-vect-slp.c (vect_slp_bb_region): Check whether
6830 autodetected_vector_size rather than vector_size is zero.
6831 * tree-vect-loop.c (vect_analyze_loop): Likewise.
6832 Set autodetected_vector_size immediately after calling
6833 vect_analyze_loop_2. Check for a fatal error before advancing
6834 next_size.
6835
6836 2019-10-21 Jason Merrill <jason@redhat.com>
6837
6838 * lock-and-run.sh: Check for process existence rather than timeout.
6839
6840 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6841
6842 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
6843 widening multiplication.
6844
6845 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
6846
6847 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
6848 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
6849 type attribute.
6850 (subsi3_carryin_shift): Separate into register and constant controlled
6851 alternatives. Use shift_amount_operand for operand 4. Set shift
6852 attribute and simplify type attribute.
6853 (subsi3_carryin_shift_alt): Likewise.
6854 (rsbsi3_carryin_shift): Likewise.
6855 (rsbsi3_carryin_shift_alt): Likewise.
6856 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
6857 and register controlled shifts into distinct alternatives.
6858 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
6859 (andsi_not_shiftsi_si_scc): Likewise.
6860 (arm_cmpsi_negshiftsi_si): Likewise.
6861 (not_shiftsi): Remove redundant M constraint from alternative 1.
6862 (not_shiftsi_compare0): Likewise.
6863 (arm_cmpsi_insn): Remove redundant alternative 2.
6864 (cmpsi_shift_swp): Likewise.
6865 (sub_shiftsi): Likewise.
6866 (sub_shiftsi_compare0_scratch): Likewise.
6867 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
6868 (thumb2_cmpsi_neg_shiftsi): Likewise.
6869
6870 2019-10-21 Richard Biener <rguenther@suse.de>
6871
6872 PR tree-optimization/92162
6873 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
6874 STMT_VINFO_REDUC_IDX in reduc_info.
6875 * tree-vect-stmts.c (vectorizable_condition): Likewise.
6876
6877 2019-10-21 Richard Biener <rguenther@suse.de>
6878
6879 * tree-vectorizer.h (_slp_tree::ops): New member.
6880 (SLP_TREE_SCALAR_OPS): New.
6881 (vect_get_slp_defs): Adjust prototype.
6882 * tree-vect-slp.c (vect_free_slp_tree): Release
6883 SLP_TREE_SCALAR_OPS.
6884 (vect_create_new_slp_node): Initialize it. New overload for
6885 initializing by an operands array.
6886 (_slp_oprnd_info::ops): New member.
6887 (vect_create_oprnd_info): Initialize it.
6888 (vect_free_oprnd_info): Release it.
6889 (vect_get_and_check_slp_defs): Populate the operands array.
6890 Do not swap operands in the IL when not necessary.
6891 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
6892 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
6893 swap operands in the operands array. Do not swap operands in
6894 the IL.
6895 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
6896 (vect_gather_slp_loads): Fix.
6897 (vect_detect_hybrid_slp_stmts): Likewise.
6898 (vect_slp_analyze_node_operations_1): Search for a internal
6899 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
6900 (vect_slp_analyze_node_operations): Skip ops-only stmts for
6901 the def-type push/pop dance.
6902 (vect_get_constant_vectors): Compute number_of_vectors here.
6903 Use SLP_TREE_SCALAR_OPS and simplify greatly.
6904 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
6905 (vect_get_slp_defs): Simplify greatly.
6906 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
6907 (vect_transform_reduction): Likewise.
6908 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
6909 (vectorizable_call): Likewise.
6910 (vectorizable_operation): Likewise.
6911 (vectorizable_load): Likewise.
6912 (vectorizable_condition): Likewise.
6913 (vectorizable_comparison): Likewise.
6914
6915 2019-10-21 Richard Biener <rguenther@suse.de>
6916
6917 PR tree-optimization/92161
6918 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
6919 for reductions.
6920
6921 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6922
6923 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
6924 (aarch64_rndr): New define_insn.
6925 (aarch64_rndrrs): Likewise.
6926 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
6927 (TARGET_RNG): Likewise.
6928 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
6929 argument.
6930 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
6931 Add fourth argument in prototype.
6932 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
6933 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
6934 (aarch64_init_rng_builtins): Define.
6935 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
6936 (aarch64_expand_rng_builtin): Define.
6937 (aarch64_general_expand_builtin): Use IGNORE argument, handle
6938 RNG builtins.
6939 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6940 __ARM_FEATURE_RNG when TARGET_RNG.
6941 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
6942
6943 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
6944
6945 * tree-vect-stmts (ensure_base_align): Only change alignment if new
6946 alignment is more restrictive.
6947
6948 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6949
6950 * tree-vectorizer.h (vec_info::vector_size): New member variable.
6951 (vect_update_max_nunits): Update comment.
6952 (current_vector_size): Delete.
6953 * tree-vect-stmts.c (current_vector_size): Likewise.
6954 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
6955 of current_vector_size.
6956 (get_mask_type_for_scalar_type): Likewise.
6957 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
6958 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
6959 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
6960 (vect_double_mask_nunits, vect_transform_loop): Likewise.
6961 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6962 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
6963
6964 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6965
6966 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
6967 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
6968 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
6969 accordingly.
6970
6971 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6972
6973 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
6974 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
6975 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
6976 call accordingly.
6977 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6978
6979 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6980
6981 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
6982 a loop_vec_info.
6983 (vect_set_loop_condition_masked): Update call accordingly.
6984
6985 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6986
6987 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
6988 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
6989 (simple_integer_narrowing): Update call accordingly.
6990 (vectorizable_conversion): Likewise.
6991
6992 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6993
6994 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
6995 (vectorizable_call): Update call accordingly.
6996
6997 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6998
6999 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7000 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7001 (duplicate_and_interleave): Update call accordingly.
7002 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7003
7004 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7005
7006 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7007 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7008 (vect_get_constant_vectors): Update call accordingly.
7009 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7010
7011 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7012
7013 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7014 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7015 (vect_prologue_cost_for_slp_op): Update call accordingly.
7016 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7017 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7018 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7019 (get_mask_type_for_scalar_type): Likewise.
7020 (vect_get_vector_types_for_stmt): Likewise.
7021 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7022 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7023 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7024 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7025 (vect_split_statement, vect_convert_input): Likewise.
7026 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7027 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7028 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7029 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7030 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7031 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7032 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7033 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7034 (vect_recog_mask_conversion_pattern): Likewise.
7035 (vect_add_conversion_to_pattern): Likewise.
7036 (vect_recog_gather_scatter_pattern): Likewise.
7037 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7038 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7039
7040 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7041
7042 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7043 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7044 (vect_check_load_store_mask): Update call accordingly.
7045 (vect_get_mask_type_for_stmt): Likewise.
7046 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7047 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7048 (vect_convert_mask_for_vectype): Likewise.
7049
7050 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7051
7052 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7053 a vec_info.
7054 (vect_recog_dot_prod_pattern): Update call accordingly.
7055 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7056 (vect_recog_widen_sum_pattern): Likewise.
7057
7058 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7059
7060 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7061 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7062 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7063 accordingly.
7064
7065 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7066
7067 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7068 get_vectype_for_scalar_type_and_size instead of
7069 get_vectype_for_scalar_type.
7070
7071 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7072
7073 * common.opt (-fcommon): Fix description.
7074
7075 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7076
7077 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7078 * config/i386/i386.c (ix86_pre_reload_split): New function.
7079 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7080 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7081 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7082 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7083 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7084 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7085 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7086 *<shift_insn><dwi>3_doubleword_mask,
7087 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7088 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7089 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7090 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7091 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7092 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7093 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7094 *avx2_<code>v8qiv8si2<mask_name>_2,
7095 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7096 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7097 *avx512f_<code>v8qiv8di2<mask_name>_2,
7098 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7099 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7100 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7101 sse4_2_pcmpistr): Likewise.
7102
7103 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7104
7105 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7106 now defaults to https.
7107
7108 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7109
7110 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7111 skip non-zero array accesses.
7112
7113 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7114
7115 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7116 and return a boolean success value. Move the allocation and
7117 initialization of the bb_vec_info to...
7118 (vect_slp_bb_region): ...here. Update call accordingly.
7119 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7120 than in vect_slp_analyze_bb_1.
7121
7122 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7123
7124 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7125 when processing the given datarefs for the first time and
7126 check_datarefs subsequently.
7127 (vect_slp_bb_region): New function, split out of...
7128 (vect_slp_bb): ...here. Don't recompute the region bounds and
7129 dataref sets when retrying with a different vector size.
7130
7131 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7132 Uroš Bizjak <ubizjak@gmail.com>
7133
7134 PR target/92140
7135 * config/i386/predicates.md (int_nonimmediate_operand): New special
7136 predicate.
7137 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7138 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7139 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7140 define_insn_and_split patterns.
7141
7142 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7143
7144 * config/rs6000/rs6000.md: Delete out--of-date comment about
7145 special-casing integer loads.
7146
7147 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7148
7149 * escaped_string.h (escaped_string): New header.
7150 * tree.c (escaped_string): Remove escaped_string class.
7151
7152 2019-10-18 Martin Sebor <msebor@redhat.com>
7153
7154 PR tree-optimization/92157
7155 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7156 compute_string_length to return a negative result.
7157
7158 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7159
7160 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7161 (negvsi3, negvdi3): Delete.
7162 (negdi2_compare): Delete.
7163
7164 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7165
7166 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7167 operations.
7168 (subdi3_compare1): Delete pattern.
7169 (subvsi3_borrow): New insn pattern.
7170 (subvsi3_borrow_imm): Likewise.
7171
7172 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7173
7174 * config/arm/arm.md (subv<mode>4): Delete.
7175 (subvdi4): New expander pattern.
7176 (subvsi4): Likewise. Handle some immediate values.
7177 (subvsi3_intmin): New insn pattern.
7178 (subvsi3): Likewise.
7179 (subvsi3_imm1): Likewise.
7180 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7181 idioms.
7182
7183 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7184
7185 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7186 incoming operands. Early split the calculation into SImode
7187 operations.
7188 (usubvsi3_borrow): New insn pattern.
7189 (usubvsi3_borrow_imm): Likewise.
7190
7191 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7192
7193 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7194 (usubvsi4): New pattern. Allow some immediate values for inputs.
7195 (usubvdi4): New pattern.
7196
7197 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7198
7199 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7200 or second operand of the PLUS inside a DImode equality test to be
7201 sign-extend when selecting CC_Vmode.
7202 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7203 instructions.
7204 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7205 expand patterns.
7206 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7207 (addsi3_cin_vout_0): Likewise.
7208 (adddi3_compareV): Delete.
7209
7210 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7211
7212 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7213 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7214 to transform this back into the summation version when that leads
7215 to smaller code.
7216
7217 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7218
7219 * config/arm/arm.md (addv<mode>4): Delete.
7220 (addvsi4): New pattern. Handle immediate values that the architecture
7221 supports.
7222 (addvdi4): New pattern.
7223 (addsi3_compareV): Rename to ...
7224 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7225 and use COMPARE rather than NE.
7226 (addsi3_compareV_imm): New pattern.
7227 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7228 a signed-overflow check.
7229
7230 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7231
7232 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7233 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7234 CC_ADCmode.
7235 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7236 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7237 with overflow.
7238 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7239 expand patterns.
7240 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7241 (addsi3_cin_cout_imm_insn): Likewise.
7242 (adddi3_compareC): Delete insn.
7243 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7244
7245 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7246
7247 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7248 * (uaddv<mode>4): Delete expansion pattern.
7249 (uaddvsi4): New pattern.
7250 (uaddvdi4): Likewise.
7251 (addsi3_compareC): Delete pattern, change callers to use
7252 addsi3_compare_op1.
7253 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7254 reduce the number of alternatives and re-work type attribute handling.
7255 (addsi3_compare_op2): Clean up constraints to reduce the number of
7256 alternatives and re-work type attribute handling.
7257 (compare_addsi2_op0): Likewise.
7258 (compare_addsi2_op1): Likewise.
7259
7260 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7261
7262 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7263 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7264 for DImode operands.
7265 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7266 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7267 CC_NCVmode.
7268 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7269 (arm_cmpdi_unsigned): Delete.
7270
7271 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7272
7273 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7274 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7275 unchanged only if that will be cheaper.
7276 (arm_select_cc_mode): Recognize a swapped comparison that will
7277 be regenerated using RSBS or RSCS. Relax restriction on selecting
7278 CC_RSBmode.
7279 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7280 a constant.
7281 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7282 is CC_RSBmode.
7283 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7284 as CCmode.
7285 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7286 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7287
7288 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7289
7290 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7291 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7292 need these modes.
7293 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7294 of EQ, NE, LT, GE, LTU and GEU.
7295 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7296 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7297 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7298 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7299 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7300
7301 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7302
7303 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7304 operand 2.
7305 (cstoredi4): Similarly, but for operand 3.
7306 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7307 canonicalization of unsigned compares with a constant on Arm.
7308 Prefer using const+1 and adjusting the comparison over swapping the
7309 operands whenever the original constant was not valid.
7310 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7311 register here.
7312 (arm_validize_comparison): Do not force invalid DImode operands to
7313 registers here.
7314
7315 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7316
7317 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7318 return CC_Zmode if comparing against a constant where one word is
7319 zero.
7320 (arm_gen_compare_reg): Split DImode handling to ...
7321 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7322 against simple constants.
7323 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7324
7325 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7326
7327 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7328 (rsbsi3_carryin_shift_alt): Likewise.
7329
7330 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7331
7332 * config/arm/arm.md (negscc_borrow): New pattern.
7333 (mov_negscc): Don't split if the insn would match negscc_borrow.
7334 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7335 (thumb2_mov_negscc_strict_it): Likewise.
7336
7337 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7338
7339 * config/arm/arm.c (arm_insn_cost): New function.
7340 (TARGET_INSN_COST): Override default definition.
7341
7342 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7343
7344 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7345 borrow operations.
7346
7347 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7348
7349 * config/arm/arm.c (strip_carry_operation): New function.
7350 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7351 for SImode.
7352
7353 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7354
7355 * config/arm/predicates.md (arm_carry_operation): New special
7356 predicate.
7357 * config/arm/iterators.md (LTUGEU): Delete iterator.
7358 (cnb): Delete code attribute.
7359 (optab): Delete ltu and geu elements.
7360 * config/arm/arm.md (addsi3_carryin): Renamed from
7361 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
7362 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7363 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7364 (addsi3_carryin_clobercc): Similarly.
7365 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
7366 Thumb2 state.
7367
7368 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7369
7370 * config/arm/arm.md (arm_subdi3): Delete insn.
7371 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7372
7373 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7374
7375 * config/arm/arm-modes.def (CC_RSB): New CC mode.
7376 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7377 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7378 return CC_RSBmode.
7379 (maybe_get_arm_condition_code): Handle CC_RSBmode.
7380 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
7381 expand.
7382 (subdi3): Rewrite to early-expand the sub-operations.
7383 (rsb_im_compare): New pattern.
7384 (negdi2): Delete.
7385 (negdi2_insn): Delete.
7386 (arm_negsi2): Correct type attribute to alu_imm.
7387 (negsi2_0compare): New insn pattern.
7388 (negsi2_carryin): New insn pattern.
7389
7390 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7391
7392 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
7393 operand 2.
7394
7395 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7396
7397 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
7398 to match canonical form.
7399
7400 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7401
7402 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
7403 (extend<mode>di2): Likewise.
7404
7405 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7406
7407 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
7408 * config/arm/arm.c (arm_decompose_di_binop): New function.
7409 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
7410 If not generating Thumb-1 code, decompose the operation into 32-bit
7411 pieces.
7412 * add0si_carryin_<optab>: New pattern.
7413
7414 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7415
7416 * arm.md (adddi3): Only accept register operands.
7417 (arm_adddi3): Convert to simple insn with no split. Do not accept
7418 constants.
7419 (adddi_sesidi_di): Delete patern.
7420 (adddi_zesidi_di): Likewise.
7421 (uaddv<mode>4): Use LTU as condition for branch.
7422 (adddi3_compareV): Convert to simple insn with no split.
7423 (addsi3_compareV_upper): Delete pattern.
7424 (adddi3_compareC): Convert to simple insn with no split. Correct
7425 flags setting expression.
7426 (addsi3_compareC_upper): Delete pattern.
7427 (addsi3_compareC): Correct flags setting expression.
7428 (subdi3_compare1): Convert to simple insn with no split.
7429 (subsi3_carryin_compare): Delete pattern.
7430 (arm_subdi3): Convert to simple insn with no split.
7431 (subdi_zesidi): Delete pattern.
7432 (subdi_di_sesidi): Delete pattern.
7433 (subdi_zesidi_di): Delete pattern.
7434 (subdi_sesidi_di): Delete pattern.
7435 (subdi_zesidi_zesidi): Delete pattern.
7436 (negvdi3): Use s_register_operand.
7437 (negdi2_compare): Convert to simple insn with no split.
7438 (negdi2_insn): Likewise.
7439 (negsi2_carryin_compare): Delete pattern.
7440 (negdi_zero_extendsidi): Delete pattern.
7441 (arm_cmpdi_insn): Convert to simple insn with no split.
7442 (negdi2): Don't call gen_negdi2_neon.
7443 * config/arm/neon.md (adddi3_neon): Delete pattern.
7444 (subdi3_neon): Delete pattern.
7445 (negdi2_neon): Delete pattern.
7446 (splits for negdi2_neon): Delete splits.
7447
7448 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7449
7450 PR middle-end/92153
7451 * ggc-page.c (release_pages): Read g->alloc_size before free rather
7452 than after it.
7453
7454 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
7455
7456 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
7457 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
7458 new multilib variants and new mappings.
7459
7460 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7461
7462 PR target/86040
7463 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
7464
7465 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7466 Richard Sandiford <richard.sandiford@arm.com>
7467
7468 PR target/86753
7469 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
7470 and define hashmap traits for it.
7471 (loop_vec_info::scalar_cond_masked_set): New member.
7472 (vect_record_loop_mask): Adjust prototype.
7473 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
7474 Implement method.
7475 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
7476 vect_record_loop_mask.
7477 (vectorizable_live_operation): Likewise.
7478 (vect_record_loop_mask): New param scalar_mask. Add entry
7479 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
7480 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
7481 Pass it as last arg to vect_record_loop_mask.
7482 (vectorizable_call): Pass scalar_mask as last arg to
7483 vect_record_loop_mask.
7484 (vectorizable_store): Likewise.
7485 (vectorizable_load): Likewise.
7486 (vectorizable_condition): Check if another part of vectorized code
7487 applies loop_mask to condition or to it's inverse, and if yes,
7488 apply loop_mask to result of vector comparison.
7489
7490 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
7491
7492 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
7493
7494 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7495
7496 PR tree-optimization/92056
7497 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
7498 before calling compute_builtin_object_size.
7499
7500 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
7501
7502 PR target/65342
7503 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
7504 (movdi_low_st): Delete.
7505 * config/rs6000/rs6000.c
7506 (darwin_rs6000_legitimate_lo_sum_const_p): New.
7507 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
7508 * config/rs6000/rs6000.md (movsi_low): Delete.
7509
7510 2019-10-17 Jason Merrill <jason@redhat.com>
7511
7512 * gimplify.h (get_initialized_tmp_var): Add default argument to
7513 post_p.
7514 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
7515 NULL post_p argument.
7516 * targhooks (std_gimplify_va_arg_expr): Likewise.
7517
7518 2019-10-17 Richard Biener <rguenther@suse.de>
7519
7520 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
7521 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
7522 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
7523 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
7524 * tree-vect-loop.c (vect_is_simple_reduction): Set
7525 STMT_VINFO_REDUC_CODE.
7526 (vectorizable_reduction): Remove dead and redundant code, use
7527 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
7528
7529 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
7530
7531 Fix breakage introduced by r276985.
7532
7533 * config/avr/avr.c (avr_option_override): Remove set of
7534 PARAM_ALLOW_STORE_DATA_RACES.
7535 * common/config/avr/avr-common.c (avr_option_optimization_table)
7536 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
7537
7538 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
7539
7540 * config/i386/i386.h (processor_costs): Add clear_ratio.
7541 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
7542 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
7543 of 6 and move_ratio in all cost models.
7544
7545 2019-10-17 Richard Biener <rguenther@suse.de>
7546
7547 * tree-vect-loop.c (check_reduction_path): Compute reduction
7548 operation here.
7549 (vect_is_simple_reduction): Remove special-case of single-stmt
7550 reduction path detection.
7551
7552 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
7553
7554 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
7555
7556 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
7557
7558 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
7559 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
7560 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
7561 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
7562 New combine patterns.
7563 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
7564 above.
7565 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
7566
7567 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
7568
7569 * tree-vrp.c (value_range_base::dump): Display +INF for both
7570 pointers and integers when appropriate.
7571
7572 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7573
7574 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
7575 when to use versioning threshold.
7576
7577 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7578
7579 * tree-vect-loop.c (determine_peel_for_niter): New function contained
7580 outlined code from ...
7581 (vect_analyze_loop_2): ... here.
7582
7583 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7584
7585 * tree-vect-loop.c (vect_transform_loop): Move code from here...
7586 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
7587 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
7588
7589 2019-10-17 Richard Biener <rguenther@suse.de>
7590
7591 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
7592 (vect_is_simple_reduction): Move all validity checks ...
7593 (vectorizable_reduction): ... here. Compute whether we
7594 need a fold-left reduction here.
7595 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
7596 both overloads, check needs_fold_left_reduction_p directly.
7597 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
7598
7599 2019-10-17 Richard Biener <rguenther@suse.de>
7600
7601 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
7602 TARGET_MEM_REF creation.
7603
7604 2019-10-17 Richard Biener <rguenther@suse.de>
7605
7606 PR tree-optimization/92129
7607 * tree-vect-loop.c (vectorizable_reduction): Also fail
7608 on GIMPLE_SINGLE_RHS.
7609
7610 2019-10-17 Jakub Jelinek <jakub@redhat.com>
7611
7612 PR tree-optimization/92056
7613 * tree-object-size.c (cond_expr_object_size): Return early if then_
7614 processing resulted in unknown size.
7615
7616 PR tree-optimization/92115
7617 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
7618 temporary if it could trap.
7619
7620 2019-10-17 Richard Biener <rguenther@suse.de>
7621
7622 PR debug/91887
7623 * dwarf2out.c (gen_formal_parameter_die): Also try to match
7624 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
7625
7626 2019-10-16 Jakub Jelinek <jakub@redhat.com>
7627
7628 * tree-ssa-strlen.c (maybe_invalidate): Use
7629 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
7630
7631 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
7632 Jim Wilson <jimw@sifive.com>
7633
7634 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
7635 regs to SIBCALL_REGS.
7636 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
7637 passing regs to SIBCALL_REGS.
7638
7639 2019-10-16 Martin Sebor <msebor@redhat.com>
7640
7641 PR tree-optimization/83821
7642 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
7643 the length of a string when available.
7644 (handle_builtin_memset) Add argument.
7645 (handle_store, strlen_check_and_optimize_call): Same.
7646 (check_and_optimize_stmt): Same. Pass it to callees.
7647
7648 2019-10-16 Martin Sebor <msebor@redhat.com>
7649
7650 PR tree-optimization/91996
7651 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
7652 information.
7653 (compare_nonzero_chars): Add an overload.
7654 (count_nonzero_bytes): Add an argument. Call overload above.
7655 Handle non-constant lengths in some range.
7656 (handle_store): Add an argument.
7657 (check_and_optimize_stmt): Pass an argument to handle_store.
7658
7659 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
7660
7661 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
7662
7663 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7664
7665 * config/mips/mips.c (mips_expand_builtin_insn): Force the
7666 operands which correspond to the same input-output register to
7667 have the same pseudo assigned to them.
7668
7669 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
7670
7671 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
7672
7673 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
7674
7675 * config/aarch64/aarch64.c (aarch64_classify_symbol):
7676 Apply reasonable limit to symbol offsets.
7677
7678 2019-10-16 Richard Biener <rguenther@suse.de>
7679
7680 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
7681 (vect_is_simple_reduction): Delay checking to
7682 vectorizable_reduction and relax the checking.
7683 (vectorizable_reduction): Check we have a simple use. Check
7684 for bogus condition reductions.
7685 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
7686 are looking at the last stmt in a pattern sequence when
7687 filling in backedge PHI values.
7688
7689 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
7690 Jiufu Guo <guojiufu@linux.ibm.com>
7691
7692 PR target/70010
7693 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
7694 the callee explicitly disables some isa_flags the caller is using.
7695
7696 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7697
7698 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
7699
7700 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7701
7702 * genmodes.c (mode_data::order): New field.
7703 (blank_mode): Update accordingly.
7704 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
7705 (make_vector_modes): Likewise.
7706 (VECTOR_MODES): Update use accordingly.
7707 (cmp_modes): Sort by the new order field ahead of sorting by size.
7708 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
7709 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
7710 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
7711 (aarch64_classify_vector_mode): Handle the new partial modes.
7712 (aarch64_vl_bytes): New function.
7713 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
7714 when counting the number of registers in an SVE mode.
7715 (aarch64_class_max_nregs): Likewise.
7716 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
7717 in registers yet.
7718 (aarch64_classify_address): Treat partial vectors analogously
7719 to full vectors.
7720 (aarch64_print_address_internal): Consolidate the printing of
7721 MUL VL addresses, using aarch64_vl_bytes as the number of
7722 bytes represented by "VL".
7723 (aarch64_vector_mode_supported_p): Reject partial vector modes.
7724
7725 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7726
7727 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
7728 rather than known_lt when choosing frame layouts.
7729
7730 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7731
7732 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
7733 that all the adjustments add up to the full frame size.
7734 Use crtl->outgoing_args_size directly as the final adjustment
7735 where appropriate.
7736
7737 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7738
7739 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
7740 "frame" reference instead of always referring directly to
7741 "cfun->machine->frame".
7742
7743 2019-10-16 Richard Biener <rguenther@suse.de>
7744
7745 PR tree-optimization/92119
7746 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
7747 against missing bswap lhs.
7748
7749 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7750
7751 PR middle-end/92033
7752 * poly-int.h (constant_lower_bound_with_limit): New function.
7753 (constant_upper_bound_with_limit): Likewise.
7754 * doc/poly-int.texi: Document them.
7755 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
7756 into the worst-case INTEGER_CST bounds.
7757
7758 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
7759
7760 PR ipa/91088
7761 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
7762 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
7763 * ipa-predicat.h (struct expr_eval_op): New struct.
7764 (expr_eval_ops): New typedef.
7765 (struct condition): Add type and param_ops fields, remove size field.
7766 (add_condition): Replace size parameter with type parameter, add
7767 param_ops parameter.
7768 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
7769 (predicate::add_clause): Add comparisons on type and param_ops.
7770 (dump_condition): Add debug dump for param_ops.
7771 (remap_after_inlining): Adjust call arguments to add_condition.
7772 (add_condition): Replace size parameter with type parameter, add
7773 param_ops parameter. Unshare constant value used in conditions.
7774 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
7775 parameter expressions using param_ops.
7776 (decompose_param_expr): New function.
7777 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
7778 to replace call to unmodified_parm_or_parm_agg_item.
7779 (set_switch_stmt_execution_predicate): Likewise.
7780 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
7781 with type.
7782 (inline_read_section): Read param_ops from summary stream.
7783 (ipa_fn_summary_write): Write param_ops to summary stream.
7784
7785 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
7786
7787 PR rtl-optimization/92107
7788 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
7789 expression written.
7790
7791 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7792
7793 * config/darwin.c: Update description of fix and continue.
7794
7795 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7796
7797 * config/darwin.c (darwin_binds_local_p): Update to call
7798 default_binds_local_p_3 () directly. amend comments.
7799
7800 2019-10-15 Richard Biener <rguenther@suse.de>
7801
7802 * lto-streamer-out.c (lto_variably_modified_type_p): New.
7803 (tree_is_indexable): Use it.
7804 * tree-streamer-out.c (pack_ts_type_common_value_fields):
7805 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
7806 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
7807
7808 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7809
7810 * config/msp430/msp430.md (zero_extendqipsi2): New.
7811 (zero_extendqisi2): Optimize case where src register and base dst
7812 register are the same.
7813 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
7814 (zero_extendpsisi2): Optimize r->m case.
7815 Add unnamed insn patterns to catch insns combine searches for when
7816 optimizing pointer manipulation.
7817
7818 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7819
7820 * config/msp430/msp430.md: Group zero_extend* insns together.
7821
7822 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7823
7824 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
7825 constraint.
7826 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
7827 POST_INC.
7828 (msp430_subreg): Likewise.
7829 (msp430_split_addsi): Likewise.
7830 (msp430_print_operand_addr): Likewise.
7831 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
7832 (USE_STORE_POST_INCREMENT): Define.
7833 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
7834 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
7835 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
7836 (msp430_general_dst_operand): New.
7837 (msp430_general_dst_nonv_operand): New.
7838 (msp430_nonsubreg_operand): Remove.
7839 (msp430_nonsubreg_dst_operand): New.
7840 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
7841 of defunct msp430_nonsubreg_operand.
7842 (msp430_nonsubregnonpostinc_or_imm_operand): New.
7843
7844 2019-10-15 Richard Biener <rguenther@suse.de>
7845
7846 PR tree-optimization/91929
7847 * tree-ssa-pre.c (pre_expr_d::loc): New member.
7848 (get_or_alloc_expr_for_name): Initialize it.
7849 (get_or_alloc_expr_for_constant): Likewise.
7850 (phi_translate_1): Copy it.
7851 (create_expression_by_pieces): Use the original location
7852 of the expression for the inserted stmt.
7853 (compute_avail): Record the location of the stmt for the
7854 expressions created.
7855
7856 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
7857
7858 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
7859 before using tree_to_uhwi.
7860
7861 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
7862
7863 * config/s390/s390.md: Run %a0:DI splitters only after reload.
7864
7865 2019-10-15 Richard Biener <rguenther@suse.de>
7866
7867 PR tree-optimization/92094
7868 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
7869 do not adjust the reduction definition def type.
7870 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
7871 defines the latch argument of the PHI.
7872
7873 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
7874
7875 PR target/92035
7876 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
7877 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
7878 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
7879 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
7880 _mm_maskz_roundscale_round_sd): New intrinsics.
7881 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
7882 __builtin_ia32_rndscales?_mask_round builtins instead of
7883 __builtin_ia32_rndscales?_round.
7884 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
7885 __builtin_ia32_rndscalesd_round): Remove.
7886 (__builtin_ia32_rndscaless_mask_round,
7887 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
7888 * config/i386/sse.md
7889 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
7890 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
7891 ... this, adjust and add subst atrributes to make it maskable.
7892
7893 2019-10-15 Richard Biener <rguenther@suse.de>
7894
7895 PR middle-end/92046
7896 * common.opt (fallow-store-data-races): New.
7897 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
7898 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
7899 * doc/invoke.texi (fallow-store-data-races): Document.
7900 (--param allow-store-data-races): Remove docs.
7901 * opts.c (default_options_table): Enable -fallow-store-data-races
7902 at -Ofast.
7903 (default_options_optimization): Do not enable --param
7904 allow-store-data-races at -Ofast.
7905 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
7906 instead of PARAM_ALLOW_STORE_DATA_RACES.
7907 * tree-ssa-loop-im.c (execute_sm): Likewise.
7908
7909 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7910
7911 PR tree-optimization/92085
7912 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
7913 instead of calling it unconditionally after
7914 delete_dead_or_redundant_assignment and fix indentation.
7915
7916 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7917
7918 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
7919 TARGET_VFP_DOUBLE.
7920 (*fmsub<SDF:mode>4): Likewise.
7921 *fnmsub<SDF:mode>4): Likewise.
7922 (*fnmadd<SDF:mode>4): Likewise.
7923
7924 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
7925
7926 * doc/tree-ssa.texi: Update renamed macro name.
7927
7928 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7929
7930 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
7931 vector constants.
7932
7933 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
7934
7935 * config/darwin.c: Use unsigned ints for the picbase label
7936 counters, initialise the vars explicitly.
7937 (update_pic_label_number_if_needed): Move a variable declaration
7938 to where it's needed.
7939 (machopic_output_function_base_name): Use a more strict checking
7940 assert, and and unsigned int for the picbase label counter.
7941 (machopic_get_function_picbase): Likewise.
7942
7943 2019-10-14 Richard Biener <rguenther@suse.de>
7944
7945 PR middle-end/92046
7946 * dse.c (scan_insn): Use param max_active_local_stores.
7947 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
7948 based on optimization level.
7949 * loop-invariant.c (move_loop_invariants): Adjust
7950 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
7951 * opts.c (default_options_optimization): Do not adjust
7952 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
7953 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
7954
7955 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7956
7957 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
7958
7959 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7960
7961 * config/arm/arm.c (arm_option_override): Don't override sched
7962 pressure algorithm.
7963
7964 2019-10-14 Richard Biener <rguenther@suse.de>
7965
7966 PR tree-optimization/92069
7967 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
7968 cycles do not set vect_nested_cycle on the latch definition.
7969
7970 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
7971
7972 * function-abi.h (expr_callee_abi): Declare.
7973 * function-abi.cc (expr_callee_abi): New function.
7974
7975 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
7976
7977 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
7978 into [1,MAX].
7979 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
7980 non-zero being represented as [1,MAX].
7981
7982 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7983
7984 * tree-sra.c (dump_access): Add missing braces.
7985
7986 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7987
7988 * config/darwin.c (machopic_indirection_name): Rework the
7989 function to emit linker-visible symbols only for indirections
7990 in the data section. Clean up the code and update comments.
7991
7992 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7993
7994 * config/darwin.c (machopic_indirect_data_reference): Remove
7995 redundant code.
7996
7997 2019-10-13 Nathan Sidwell <nathan@acm.org>
7998
7999 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8000
8001 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8002
8003 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8004 c99_runtime.
8005
8006 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8007
8008 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8009 so non-virutal are before virutals.
8010 (output_function): Avoid body modifications.
8011
8012 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8013
8014 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8015 %r22. Load function address before global pointer.
8016 (pa_attr_length_indirect_call): Adjust length of inline versions of
8017 $$dyncall.
8018 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8019 before normal cases. Update inline $$dyncall sequences to preserve
8020 function descriptor address in register %r22.
8021 (TRAMPOLINE_CODE_SIZE): Adjust.
8022 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8023 register %r22 contains trampoline address.
8024 (pa_trampoline_init): Adjust offsets.
8025 (pa_trampoline_adjust_address): Likewise.
8026 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8027
8028 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8029
8030 PR target/67183
8031 * config/darwin.c (machopic_indirection): New field to flag
8032 non-lazy-symbol-pointers in the data section.
8033 (machopic_indirection_name): Compute if an indirection should
8034 appear in the data section.
8035 (machopic_output_data_section_indirection): New callback split
8036 from machopic_output_indirection.
8037 (machopic_output_stub_indirection): Likewise.
8038 (machopic_output_indirection): Retain the code for non-lazy
8039 symbol pointers in their regular section.
8040 (machopic_finish): Use the new callbacks to order the indirection
8041 output.
8042
8043 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8044
8045 * config/darwin-protos.h (machopic_finish): Delete.
8046 * config/darwin.c (machopic_finish): Make static.
8047
8048 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8049
8050 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8051 sections when building kernel extension code.
8052
8053 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8054
8055 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8056 later standard."
8057
8058 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8059
8060 * config/pa/pa.c (pa_option_override): Remove trailing comma
8061 from warning.
8062
8063 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8064
8065 PR middle-end/92063
8066 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8067 <case VEC_COND_EXPR>: Return false with *handled = false.
8068 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8069 recursing on the first operand.
8070 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8071 instead of tree_could_trap_p.
8072 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8073
8074 2019-10-11 Jim Wilson <jimw@sifive.com>
8075
8076 PR rtl-optimization/91860
8077 * combine.c (subst): If new_rtx is a constant, also check for
8078 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8079
8080 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8081
8082 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8083 INTVAL when calling store_bit_field.
8084
8085 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8086
8087 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8088 size.
8089
8090 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8091
8092 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8093 vectorizable_live_operation.
8094 (vectorizable_live_operation): Adjust parameters.
8095 * tree-vect-stmts.c (vect_init_vector,
8096 vect_gen_widened_results_half): Fix typo in function comment.
8097 (can_vectorize_live_stmts): Adjust function comment.
8098 Adjust parameters. Adjust call to vectorizable_live_operation.
8099 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8100 (vect_transform_stmt): Adjust function comment. Adjust call to
8101 can_vectorize_live_stmts.
8102 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8103
8104 2019-10-11 Richard Biener <rguenther@suse.de>
8105
8106 PR tree-optimization/90883
8107 PR tree-optimization/91091
8108 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8109 alias-sets both for recording VN table entries and continuing
8110 walking after translating through copies. Handle same-sized
8111 reads from SSA names by returning the plain SSA name.
8112 (eliminate_dom_walker::eliminate_stmt): Properly handle
8113 non-size precision stores in redundant store elimination.
8114
8115 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8116
8117 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8118 (ggc_collect): Dump later to not interfere with release_page dump.
8119 (ggc_trim): New function.
8120 * ggc-none.c (ggc_trim): New.
8121 * ggc.h (ggc_trim): Declare.
8122
8123 2019-10-11 Richard Biener <rguenther@suse.de>
8124
8125 PR tree-optimization/92066
8126 PR tree-optimization/92046
8127 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8128 Fix bogus cost model check.
8129
8130 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8131
8132 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8133 (LANG_HOOKS_DECLS): Add it.
8134 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8135 update comment for omp_is_optional_argument.
8136 * omp-general.c (omp_is_allocatable_or_ptr): New.
8137 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8138 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8139 Fortran's optional arguments and allocatable/pointer scalars
8140 with use_device_addr.
8141
8142 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8143
8144 PR target/77918
8145 * config/s390/2827.md: Add new opcodes.
8146 * config/s390/2964.md: Likewise.
8147 * config/s390/3906.md: Likewise.
8148 * config/s390/8561.md: Likewise.
8149 * config/s390/s390-builtins.def (s390_vfchesb): Use
8150 the new vec_cmpgev4sf_quiet_nocc.
8151 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8152 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8153 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8154 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8155 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8156 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8157 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8158 * config/s390/s390-modes.def (CCSFPS): New mode.
8159 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8160 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8161 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8162 (s390_expand_vec_compare): Use non-signaling patterns where
8163 necessary.
8164 (s390_reverse_condition): Support CCSFPS.
8165 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8166 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8167 (asm_fcmp_op): Likewise.
8168 (*smaxv2df3_vx): Use pattern for quiet comparison.
8169 (*sminv2df3_vx): Likewise.
8170 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8171 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8172 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8173 (vec_cmplt<mode>_quiet_nocc): New expander.
8174 (vec_cmpge<mode>_quiet_nocc): New pattern.
8175 (vec_cmple<mode>_quiet_nocc): New expander.
8176 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8177 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8178 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8179 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8180 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8181 (vec_cmpungt<mode>): New expander.
8182 (vec_cmpunge<mode>): Likewise.
8183 (vec_cmpuneq<mode>): Use quiet patterns.
8184 (vec_cmpltgt<mode>): Allow only on z14+.
8185 (vec_cmpordered<mode>): Use quiet patterns.
8186 (vec_cmpunordered<mode>): Likewise.
8187 (VEC_CMP_EXPAND): Add ungt and unge.
8188
8189 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8190
8191 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8192 parameter.
8193 * lto-streamer-out.c: Include tree-dfa.h.
8194 (output_cfg): Do not use cfun.
8195 (lto_prepare_function_for_streaming): New.
8196 (output_function): Do not push cfun; do not initialize loop optimizer.
8197 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8198 * passes.c (ipa_write_summaries): Use it.
8199 (ipa_write_optimization_summaries): Do not modify bodies.
8200 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8201 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8202 * tree-ssa-dse.c (pass_dse::execute): Update use of
8203 renumber_gimple_stmt_uids.
8204 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8205
8206 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8207
8208 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8209 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8210
8211 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8212
8213 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8214 macros.
8215 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8216 Also define DFP macros for these conditions.
8217 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8218 DEC128_SUBNORMAL_MIN): Do not define.
8219 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8220 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8221
8222 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8223 Sandra Loosemore <sandra@codesourcery.com>
8224
8225 PR middle-end/26241
8226 * doc/lto.texi (IPA): Reference to the IPA passes.
8227 * doc/passes.texi (Pass manager): Add node IPA passes and
8228 description for each IPA pass.
8229
8230 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8231
8232 * ipa-reference.c: Do not include splay-tree.h
8233 (reference_vars_to_consider): Turn to hash map.
8234 (get_static_name, ipa_init, analyze_function, propagate,
8235 stream_out_bitmap, ipa_reference_write_optimization_summary,
8236 ipa_reference_write_optimization_summary): Update.
8237
8238 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8239
8240 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8241
8242 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8243
8244 * config/darwin.c: Lookup Objective C metadata and force indirection
8245 for IVAR refs.
8246
8247 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8248
8249 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8250 addresses.
8251 (mem_operand_gpr): Add check for prefixed addresses.
8252 (mem_operand_ds_form): Add check for prefixed addresses.
8253 (rs6000_legitimate_offset_address_p): If we support prefixed
8254 addresses, check for a 34-bit offset instead of 16-bit.
8255 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8256 Do not allow load/store with update if the address is prefixed.
8257 (rs6000_mode_dependent_address): If we support prefixed
8258 addresses, check for a 34-bit offset instead of 16-bit.
8259
8260 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8261
8262 PR target/77918
8263 * config/s390/vector.md (vcond_comparison_operator): New
8264 predicate.
8265 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8266
8267 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8268
8269 PR 87488
8270 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8271 -D.
8272 * configure.ac (--with-documentation-root-url): New option.
8273 * configure: Regenerate.
8274 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8275 option URL, add it as a new string field of the diagnostic option.
8276 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8277 (print_option_information): If get_option_url is non-NULL, call
8278 it, and if the result is non-NULL, potentially emit an escape
8279 sequence to markup the option text with the resulting URL.
8280 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8281 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8282 example of JSON output.
8283 * opts-diagnostic.h (get_option_url): New decl.
8284 * opts.c (get_option_url): New function.
8285 * toplev.c (general_init): Initialize the get_option_url callback.
8286
8287 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8288
8289 PR 87488
8290 * common.opt (fdiagnostics-urls=): New option.
8291 (diagnostic-url.h): Add SourceInclude.
8292 (diagnostic_url_rule): New enum.
8293 * diagnostic-color.c: Include "diagnostic-url.h".
8294 (diagnostic_urls_enabled_p): New function.
8295 * diagnostic-url.h: New file.
8296 * diagnostic.c: Include "diagnostic-url.h".
8297 (diagnostic_urls_init): New function.
8298 * diagnostic.h (diagnostic_urls_init): New decl.
8299 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8300 -fdiagnostics-urls to the list.
8301 (-fdiagnostics-urls): New option.
8302 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8303 (driver::global_initializations): Call diagnostic_urls_init.
8304 * opts-global.c (init_options_once): Likewise.
8305 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8306 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8307 show_urls.
8308 (pp_begin_url): New function.
8309 (pp_end_url): New function.
8310 (selftest::test_urls): New selftest.
8311 (selftest::pretty_print_c_tests): Call it.
8312 * pretty-print.h (pretty_printer::show_urls): New field.
8313 (pp_begin_url): New decl.
8314 (pp_end_url): New decl.
8315
8316 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8317
8318 PR target/92022
8319 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8320
8321 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8322
8323 PR target/88630
8324 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8325 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8326 also for TARGET_FPU_SH4_300.
8327 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8328 TARGET_SH4_300.
8329 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8330 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8331 (*negsf2_i): Split into ...
8332 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8333 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8334 (**abssf2_i): Split into ...
8335 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8336 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8337 (*negdf2_i): Split into ...
8338 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8339 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8340 (**abssf2_i): Split into ...
8341 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8342
8343 2019-10-10 Richard Biener <rguenther@suse.de>
8344
8345 PR middle-end/92046
8346 * opts.c (finish_options): Do not influence global --params
8347 from options that are adjustable per function.
8348 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8349 Apply --param adjustment based on active cost-model.
8350 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8351 further store-sinking when vectorization or if-conversion
8352 are not enabled.
8353
8354 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8355
8356 PR middle-end/92037
8357 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8358 rather than ggc_alloc_cleared to alloc symbol table.
8359 * toplev.c (general_init): Likewise.
8360 * cgraph.h (symbol_table): Explicitly construct every field.
8361
8362 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8363
8364 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8365 (PF_Z15): ... this.
8366 * config.gcc: Add z15 as option for --with-arch and --with-tune
8367 configure switches.
8368 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8369 error reporting for unsupported builtins.
8370 * config/s390/s390-opts.h (enum processor_type): Rename
8371 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8372 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8373 * config/s390/driver-native.c (s390_host_detect_local_cpu):
8374 Likewise.
8375 * config/s390/s390-builtins.def: Likewise.
8376 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8377 (s390_expand_builtin): Add missing check for unsupported builtins.
8378 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
8379 (s390_rtx_costs): Likewise.
8380 (s390_get_sched_attrmask): Rename arch13 to z15.
8381 (s390_get_unit_mask): Likewise.
8382 (s390_is_fpd): Likewise.
8383 (s390_is_fxd): Likewise.
8384 * config/s390/s390.h (enum processor_flags): Likewise.
8385 * config/s390/s390.md: Likewise.
8386 * config/s390/vector.md: Likewise.
8387 * config/s390/vx-builtins.md: Likewise.
8388 * config/s390/s390.opt: Add z15 to processor_type value.
8389
8390 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8391
8392 PR target/91035
8393 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
8394 prototype.
8395 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
8396 ("split_stack_data", "split_stack_call")
8397 ("split_stack_call_<mode>", "split_stack_cond_call")
8398 ("split_stack_cond_call_<mode>"): Remove.
8399 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
8400 insn definition.
8401 * config/s390/s390.c (s390_output_split_stack_data): New function.
8402 (s390_expand_split_stack_prologue): Use the merged expander.
8403
8404 2019-10-09 Martin Sebor <msebor@redhat.com>
8405
8406 PR tree-optimization/90879
8407 * builtins.c (check_access): Avoid using maxbound when null.
8408 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
8409 * doc/invoke.texi (-Wstring-compare): Document new warning option.
8410 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
8411 conditional.
8412 (get_range_strlen): Overwrite initial maxbound when non-null.
8413 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
8414 changes.
8415 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
8416 (used_only_for_zero_equality): New function.
8417 (handle_builtin_memcmp): Call it.
8418 (determine_min_objsize): Return an integer instead of tree.
8419 (get_len_or_size, strxcmp_eqz_result): New functions.
8420 (maybe_warn_pointless_strcmp): New function.
8421 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
8422 between a longer string and a smaller array.
8423 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
8424
8425 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8426
8427 * config/darwin.c (darwin_override_options): Make the check for
8428 Objective-C ABI version more specific for 64bit code.
8429
8430 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8431
8432 * config/darwin.c (machopic_indirect_data_reference): Set flag to
8433 indicate that the new symbol is an indirection.
8434 (machopic_indirect_call_target): Likewise.
8435 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
8436 (MACHO_SYMBOL_INDIRECTION_P): New.
8437 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
8438
8439 2019-10-08 Jason Merrill <jason@redhat.com>
8440
8441 * doc/invoke.texi: Document -fconcepts-ts.
8442
8443 2019-10-09 Richard Biener <rguenther@suse.de>
8444
8445 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
8446 allow stmts other than GIMPLE_ASSIGN in nested cycles.
8447
8448 2019-10-08 Richard Biener <rguenther@suse.de>
8449
8450 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
8451 (_stmt_vec_info::force_single_cycle): Likewise.
8452 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
8453 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
8454 * tree-vect-loop.c (vectorizable_reduction): Set
8455 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
8456 (vect_transform_reduction): Use them to remove redundant code.
8457 (vect_transform_cycle_phi): Likewise.
8458
8459 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
8460
8461 PR tree-optimization/90836
8462 * match.pd (popcount): New pattern.
8463
8464 2019-10-08 Martin Sebor <msebor@redhat.com>
8465
8466 PR middle-end/92026
8467 PR middle-end/92014
8468 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
8469 again once nbytes has been set. Set the access size when not yet set.
8470
8471 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8472
8473 * config/darwin.c (machopic_select_section): Remove dead code for
8474 old Objective-C section selection method, replace with unreachable.
8475
8476 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8477
8478 * config/darwin.c (machopic_indirect_data_reference): Check for
8479 required indirections before making direct access to defined
8480 values.
8481 (machopic_output_indirection): Place the indirected pointes for
8482 required indirections into the non-lazy symbol pointers section.
8483 (darwin_encode_section_info):
8484 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
8485 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
8486
8487 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
8488
8489 PR target/91994
8490 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
8491 instead of ALL_SSE_REG to check if function call preserves some
8492 256-bit SSE registers.
8493
8494 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8495
8496 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
8497 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
8498 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
8499
8500 2019-10-08 Richard Biener <rguenther@suse.de>
8501
8502 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
8503 (_stmt_vec_info::is_reduc_info): Add.
8504 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
8505 (vectorizable_condition): Remove.
8506 (vectorizable_shift): Likewise.
8507 (vectorizable_reduction): Adjust.
8508 (info_for_reduction): New.
8509 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
8510 (vect_analyze_scalar_cycles_1): ... here.
8511 (vect_analyze_loop_operations): Adjust.
8512 (needs_fold_left_reduction_p): Simplify for single caller.
8513 (vect_is_simple_reduction): Likewise. Remove stmt restriction
8514 for nested cycles not part of double reductions.
8515 (vect_model_reduction_cost): Pass in the reduction type.
8516 (info_for_reduction): New function.
8517 (vect_create_epilog_for_reduction): Use it, access reduction
8518 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
8519 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8520 (vectorize_fold_left_reduction): Remove pointless assert.
8521 (vectorizable_reduction): Analyze the full reduction when
8522 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
8523 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
8524 stmt code-generation to vectorizable_* in most cases. Verify
8525 code-generation only for cases handled by
8526 vect_transform_reductuon.
8527 (vect_transform_reduction): Use info_for_reduction to get at
8528 reduction meta. Simplify.
8529 (vect_transform_cycle_phi): Likewise.
8530 (vectorizable_live_operation): Likewise.
8531 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
8532 at the PHI node for STMT_VINFO_REDUC_TYPE.
8533 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
8534 longer necessary code.
8535 * tree-vect-stmts.c (vectorizable_shift): Make static again.
8536 (vectorizable_condition): Likewise. Get at reduction related
8537 info via info_for_reduction.
8538 (vect_analyze_stmt): Adjust.
8539 (vect_transform_stmt): Likewise.
8540 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8541 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8542
8543 2019-10-08 Joseph Myers <joseph@codesourcery.com>
8544
8545 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
8546 -fno-fp-int-builtin-inexact default for C2X.
8547
8548 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8549 Richard Biener <rguenther@suse.de>
8550
8551 PR tree-optimization/91532
8552 * tree-if-conv.c: Include tree-ssa-dse.h.
8553 (ifcvt_local_dce): Change param from bb to loop,
8554 and call dse_classify_store.
8555 (tree_if_conversion): Pass loop instead of loop->header as arg
8556 to ifcvt_local_dce.
8557 * tree-ssa-dse.c: Include tree-ssa-dse.h.
8558 (delete_dead_or_redundant_assignment): Remove static qualifier from
8559 declaration, and add prototype in tree-ssa-dse.h.
8560 (dse_store_status): Move to tree-ssa-dse.h.
8561 (dse_classify_store): Remove static qualifier and add new tree param
8562 stop_at_vuse, and add prototype in tree-ssa-dse.h.
8563 * tree-ssa-dse.h: New header.
8564
8565 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8566
8567 * config/darwin.c (machopic_output_indirection): Don't put
8568 hidden symbol indirections into the .data section, use the
8569 non-lazy symbol pointers section as normal.
8570 (darwin_encode_section_info): Record if a symbol is hidden.
8571 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
8572 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
8573
8574 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8575
8576 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
8577 predicates instead of accessing bits directly.
8578 (machopic_indirect_call_target): Likewise.
8579 (machopic_output_indirection): Likewise.
8580 (darwin_encode_section_info): Improve description. Use renamed
8581 symbol flags. Use predicate macros for variables and functions.
8582 * config/darwin.h:
8583 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
8584 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
8585 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
8586 (MACHO_SYMBOL_VARIABLE_P): New.
8587 (MACHO_SYMBOL_DEFINED_P):New.
8588 (MACHO_SYMBOL_STATIC_P): New.
8589 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
8590 (SYMBOL_FLAG_SUBT_DEP): New.
8591 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
8592
8593 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8594
8595 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
8596 (msp430_expand_epilogue): Likewise.
8597 * config/msp430/predicates.md: Likewise.
8598 * config/msp430/msp430.md: Likewise.
8599 Replace blocks of 8 spaces with tabs.
8600
8601 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8602
8603 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
8604 * config/msp430/msp430.c (msp430_split_addsi): New.
8605 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
8606 a block of C code for splitting addsi.
8607
8608 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
8609
8610 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
8611 ix86_expand_rounddf_32): Reorder functions.
8612 * config/i386/i386-protos.h: Update.
8613
8614 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8615
8616 * config.in: Regenerate.
8617 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
8618 Add new "Yx" constraint.
8619 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
8620 function.
8621 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
8622 prototype.
8623 * config/msp430/msp430.c (msp430_option_override): Allow the lower
8624 code/data region to be selected in the small memory model.
8625 (msp430_section_attr): Don't warn if the "section" and "lower"
8626 attributes are used together.
8627 (msp430_handle_generic_attribute): Likewise.
8628 (msp430_var_in_low_mem): New function.
8629 (TARGET_ENCODE_SECTION_INFO): Define.
8630 (msp430_encode_section_info): New function.
8631 (gen_prefix): Return early in the small memory model.
8632 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
8633 ".lower" prefix if -m{code,data}-region=lower have been passed.
8634 (msp430_output_aligned_decl_common): Emit common symbols when
8635 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
8636 set.
8637 (TARGET_ASM_FILE_END): Define.
8638 (msp430_file_end): New function.
8639 (msp430_do_not_relax_short_jumps): Allow relaxation when
8640 function will be in the lower region.
8641 (msp430_op_not_in_high_mem): New function.
8642 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
8643 the 'X' operand selector.
8644 Clarify comment for 'x' operand selector.
8645 * config/msp430/msp430.h (LINK_SPEC): Propagate
8646 -m{code,data}-region to the linker via spec function
8647 msp430_propagate_region_opt.
8648 (msp430_propagate_region_opt): New prototype.
8649 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
8650 (SYMBOL_FLAG_LOW_MEM): Define.
8651 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
8652 selector.
8653 (zero_extendqihi2): Fix operand number used by "%X" selector.
8654 (zero_extendqisi2): Likewise.
8655 (zero_extendhisi2): Likewise.
8656 (movqi): Use "Yx" constraint in place of "%X" operand selector.
8657 (movhi): Likewise.
8658 (addqi3): Likewise.
8659 (addhi3): Likewise.
8660 (addsi3): Likewise.
8661 (addhi3_cy): Likewise.
8662 (addchi4_cy): Likewise.
8663 (subqi3): Likewise.
8664 (subhi3): Likewise.
8665 (subsi3): Likewise.
8666 (bic<mode>3): Likewise.
8667 (and<mode>3): Likewise.
8668 (ior<mode>3): Likewise.
8669 (xor<mode>3): Likewise.
8670 (slli_1): Add missing "%X" operand selector.
8671 (slll_1): Likewise.
8672 (slll_2): Likewise.
8673 (srai_1): Likewise.
8674 (sral_1): Likewise.
8675 (sral_2): Likewise.
8676 (srli_1): Likewise.
8677 (srll_1): Likewise.
8678 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
8679 selector.
8680 (cbranchhi4_real): Likewise.
8681 (cbranchqi4_reversed): Likewise.
8682 (cbranchhi4_reversed): Likewise.
8683 (*bitbranch<mode>4): Likewise.
8684 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
8685 * config/msp430/msp430.opt (mcode-region=): Set default to
8686 MSP430_REGION_LOWER. Improve docstring.
8687 (mdata-region=): Likewise.
8688 (muse-lower-region-prefix): New option.
8689 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
8690 mdata-region=none multilib.
8691 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
8692 mdata-region=none multilib.
8693 MULTILIB_EXCEPTIONS: Remove.
8694 MULTILIB_REQUIRED: Define.
8695 * configure: Regenerate.
8696 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
8697 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
8698 * doc/extend.texi: Clarify comment for {upper,lower,either}
8699 function attributes.
8700 Add separate description for "lower" variable attribute.
8701
8702 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8703
8704 PR target/77918
8705 * optabs-tree.c (vcond_icode_p): New function.
8706 (vcond_eq_icode_p): Likewise.
8707 (expand_vec_cond_expr_p): Use vcond_icode_p and
8708 vcond_eq_icode_p.
8709 * optabs.c (can_vcond_compare_p): New function.
8710 * optabs.h (can_vcond_compare_p): Likewise.
8711
8712 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8713
8714 PR target/77918
8715 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
8716 caller passes a non-trapping condition.
8717 (is_gimple_condexpr): Allow trapping conditions.
8718 (is_gimple_condexpr_1): New helper function.
8719 (is_gimple_condexpr_for_cond): New function, acts like old
8720 is_gimple_condexpr.
8721 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
8722 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
8723 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
8724 * gimplify.c (gimplify_cond_expr): Use
8725 is_gimple_condexpr_for_cond.
8726 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
8727 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
8728 VEC_COND_EXPR.
8729 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
8730 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
8731 is_gimple_condexpr_for_cond, remove pointless tmp check
8732 (forward_propagate_into_cond): Remove pointless tmp check.
8733
8734 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8735
8736 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
8737 match that of other gsi_next_* functions. Adjust the comment.
8738 (gsi_start_nonvirtual_phis): New function.
8739 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
8740 gsi_next_nonvirtual_phi accordingly. (No functional change.)
8741
8742 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8743
8744 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
8745 setjmp situation here. Fix a verb's ending: "the exact variables or
8746 elements for which there are warnings depends" -> "... depend".
8747
8748 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8749
8750 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
8751
8752 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8753
8754 * ipa-prop.c (ipa_vr::nonzero_p): New.
8755 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
8756 non-zero range.
8757 * ipa-prop.h (class ipa_vr): Add nonzero_p.
8758 * tree-vrp.c (range_has_numeric_bounds_p): New.
8759 (range_int_cst_p): Use range_has_numeric_bounds_p.
8760 (get_range_op_handler): New.
8761 (supported_types_p): New.
8762 (defined_ranges_p): New.
8763 (drop_undefines_to_varying): New.
8764 (range_fold_binary_symbolics_p): New.
8765 (range_fold_unary_symbolics_p): New.
8766 (range_fold_unary_expr): Extract out into above functions.
8767 (range_fold_binary_expr): Same.
8768 (value_range_base::normalize_addresses): New.
8769 (value_range_base::normalize_symbolics): Normalize addresses.
8770 * tree-vrp.h (class value_range_base): Add normalize_addresses.
8771
8772 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8773
8774 * tree-vrp.c (value_range_base::singleton_p): Use
8775 value_range_base::num_pairs instead of vrp_val_is* to check
8776 if a range has one sub-range.
8777
8778 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8779
8780 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
8781 DEF is not a true earlyclobber but is tied to a specific input
8782 operand, and so is effectively earlyclobber wrt inputs that have
8783 different values.
8784 (make_early_clobber_and_input_conflicts): Pass this case to the above.
8785
8786 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8787
8788 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
8789 (pod_mode): Mark operators likewise.
8790 (scalar_int_mode): Mark non-default constructors and
8791 operators with CONSTEXPR.
8792 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
8793 (fixed_size_mode): Likewise.
8794
8795 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8796
8797 PR target/91994
8798 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
8799 and wrap the unspec_volatile in a parallel.
8800 (*avx_vzeroupper): New define_insn. Use a match_parallel around
8801 the unspec_volatile.
8802 * config/i386/predicates.md (vzeroupper_pattern): Expect the
8803 unspec_volatile to be wrapped in a parallel.
8804 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
8805 (ix86_add_reg_usage_to_vzerouppers): New functions.
8806 (rest_of_handle_insert_vzeroupper): Use them to add register
8807 usage information to the vzeroupper instructions.
8808
8809 2019-10-07 Richard Biener <rguenther@suse.de>
8810
8811 PR tree-optimization/91975
8812 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
8813 handle invariants.
8814
8815 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
8816
8817 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
8818 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
8819
8820 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
8821
8822 * config/darwin.c (darwin_override_options): Adjust objective-c
8823 ABI version error messages to avoid punctuation and contracted
8824 negations.
8825
8826 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
8827
8828 * ipa-inline.c: Fix type; compute size rather than self_size
8829 for size of caller function.
8830
8831 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
8832
8833 PR target/59888
8834 * config/darwin.c (darwin_rodata_section): Add relocation flag,
8835 choose const_data section for constants with relocations.
8836 (machopic_select_section): Pass relocation flag to
8837 darwin_rodata_section ().
8838
8839 2019-10-05 Jakub Jelinek <jakub@redhat.com>
8840
8841 PR tree-optimization/91734
8842 * generic-match-head.c: Include fold-const-call.h.
8843 * match.pd (sqrt(x) cmp c): Check the boundary value and
8844 in case inexact computation of c*c affects comparison of the boundary,
8845 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
8846 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
8847 for -frounding-math. For c2, try the next smaller or larger floating
8848 point constant depending on comparison code and if it has the same
8849 sqrt as c2, use it instead of c2.
8850
8851 2019-10-04 Martin Sebor <msebor@redhat.com>
8852
8853 PR middle-end/91977
8854 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
8855 MEM_REF right operand. Avoid failing for MEM_REF assignments from
8856 uninitialized objects.
8857
8858 2019-10-04 Martin Sebor <msebor@redhat.com>
8859
8860 * builtins.c (compute_objsize): Add an argument.
8861 * tree-object-size.c (addr_object_size): Same.
8862 (compute_builtin_object_size): Same.
8863 * tree-object-size.h (compute_builtin_object): Same.
8864
8865 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
8866
8867 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
8868
8869 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
8870
8871 * match.pd (sinh (x) / cosh (x)): New simplification rule.
8872
8873 2019-10-04 Martin Jambor <mjambor@suse.cz>
8874
8875 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
8876 fntype when switching to calling memcpy instead of memset.
8877
8878 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8879
8880 * hash-table.h (hash_table::empty_slow): Don't assign
8881 size_t values to int variables.
8882
8883 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8884
8885 * expr.c (convert_mode_scalar): Remove shadowing local var.
8886 (emit_block_move): Rename local vars.
8887 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
8888 (emit_push_insn): Rename local vars.
8889 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
8890 shadowing local vars.
8891 (store_constructor): Remove shadowing local vars. Rename local var.
8892 (store_field, expand_cond_expr_using_cmove,
8893 expand_expr_real_2): Remove shadowing local vars.
8894 (expand_expr_real_1,
8895 do_store_flag): Remove shadowing local vars. Rename local vars.
8896
8897 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8898
8899 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
8900
8901 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8902
8903 * genmatch.c (commutate): Rename local var.
8904 (lower_cond): Reuse local var.
8905 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
8906 dt_operand::gen, dt_operand::gen_gimple_expr,
8907 dt_simplify::gen): Add a param. Rename generated vars.
8908 (decision_tree::insert_operand,
8909 (capture_info::walk_match, capture_info::walk_result,
8910 capture_info::walk_c_expr): Rename local vars.
8911 (expr::gen_transform): Rename generated vars.
8912 Use snprintf. Rename local vars.
8913 (capture::gen_transform, dt_operand::get_name,
8914 dt_operand::gen_opname): Rename generated vars.
8915 (write_predicate): Adjust call to gen_kids.
8916 (parser::get_internal_capture_id): Rename generated vars.
8917 (parser::parse_expr): Rename local vars.
8918 (parser::parse_if): Remove local var.
8919 (parser::parse_pattern, add_operator): Rename local vars.
8920
8921 2019-10-04 Joseph Myers <joseph@codesourcery.com>
8922
8923 * builtins.def (DEF_C2X_BUILTIN): New macro.
8924 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
8925 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
8926 (strndup): Use DEF_C2X_BUILTIN.
8927 * coretypes.h (enum function_class): Add function_c2x_misc.
8928
8929 2019-10-04 Maya Rashish <coypu@sdf.org>
8930
8931 * ira-color.c (update_costs_from_allocno): Call
8932 ira_init_register_move_cost_if_necessary.
8933
8934 2019-10-04 Jeff Law <law@redhat.com>
8935
8936 * config/h8300/h8300.md (cpymemsi): Disable.
8937 (movmd, movmd_internal_<mode>, movstr, movsd):
8938 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
8939 (movmd splitter, movsd splitter): Likewise.
8940
8941 * range-op.cc (range_tests): Avoid two tests when ints and
8942 shorts are the same size.
8943
8944 2019-10-04 Richard Biener <rguenther@suse.de>
8945
8946 PR lto/91968
8947 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
8948 BLOCK_VARS.
8949
8950 2019-10-04 Richard Biener <rguenther@suse.de>
8951
8952 PR tree-optimization/91982
8953 * tree-vect-loop.c (vectorizable_live_operation): Also guard
8954 against EXTRACT_LAST_REDUCTION.
8955 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
8956
8957 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
8958
8959 * range-op.o (value_range_from_overflowed_bounds): Rename from
8960 adjust_overflow_bound.
8961 (value_range_with_overflow): Rename from
8962 create_range_with_overflow.
8963 (create_possibly_reversed_range): Adjusted for above renames.
8964 (operator_*::wi_fold): Same.
8965 (cross_product_operator::wi_cross_productor): Same.
8966
8967 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8968
8969 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
8970 -Wshadow=compatible-local): Fix description.
8971 Add an example where -Wshadow=compatible-local does not
8972 warn.
8973
8974 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
8975
8976 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
8977
8978 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
8979 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
8980
8981 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8982
8983 * expr.c (emit_block_move_hints): Slightly cleaner fix to
8984 can_move_by_pieces issue.
8985
8986 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
8987
8988 PR target/87243
8989 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
8990 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
8991 is available and the user has not set one on the command line.
8992
8993 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8994
8995 PR target/91769
8996 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
8997 instead of REGNO equality check on addr.reg.
8998
8999 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9000
9001 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9002 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9003 * doc/invoke.texi (inline-heuristics-hint-percent,
9004 inline-heuristics-hint-percent-O2): Document.
9005 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9006 hint attribute.
9007 (can_inline_edge_by_limits_p): Use it.
9008
9009 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9010
9011 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9012 to print CONST_DOUBLEs.
9013
9014 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9015
9016 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9017 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9018 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9019
9020 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9021
9022 * Makefile.in (OBJS): Add range.o and range-op.o.
9023 Remove wide-int-range.o.
9024 * function-tests.c (test_ranges): New.
9025 (function_tests_c_tests): Call test_ranges.
9026 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9027 range_fold_unary_expr instead of extract_range_from_unary_expr.
9028 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9029 * range-op.cc: New file.
9030 * range-op.h: New file.
9031 * range.cc: New file.
9032 * range.h: New file.
9033 * selftest.h (range_tests): New prototype.
9034 * ssa.h: Include range.h.
9035 * tree-vrp.c (value_range_base::value_range_base): New
9036 constructors.
9037 (value_range_base::singleton_p): Do not call
9038 ranges_from_anti_range until sure we will need to.
9039 (value_range_base::type): Rename gcc_assert to
9040 gcc_checking_assert.
9041 (vrp_val_is_max): New argument.
9042 (vrp_val_is_min): Same.
9043 (wide_int_range_set_zero_nonzero_bits): Move from
9044 wide-int-range.cc.
9045 (extract_range_into_wide_ints): Remove.
9046 (extract_range_from_multiplicative_op): Remove.
9047 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9048 from extract_range_from_binary_expr.
9049 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9050 from extract_range_from_binary_expr.
9051 (extract_range_from_binary_expr): Remove.
9052 (normalize_for_range_ops): New.
9053 (range_fold_binary_expr): New.
9054 (range_fold_unary_expr): New.
9055 (value_range_base::num_pairs): New.
9056 (value_range_base::lower_bound): New.
9057 (value_range_base::upper_bound): New.
9058 (value_range_base::upper_bound): New.
9059 (value_range_base::contains_p): New.
9060 (value_range_base::invert): New.
9061 (value_range_base::union_): New.
9062 (value_range_base::intersect): New.
9063 (range_compatible_p): New.
9064 (value_range_base::operator==): New.
9065 (determine_value_range_1): Call range_fold_*expr instead of
9066 extract_range_from_*expr.
9067 * tree-vrp.h (class value_range_base): Add new constructors.
9068 Add methods for union_, intersect, operator==, contains_p,
9069 num_pairs, lower_bound, upper_bound, invert.
9070 (vrp_val_is_min): Add handle_pointers argument.
9071 (vrp_val_is_max): Same.
9072 (extract_range_from_unary_expr): Remove.
9073 (extract_range_from_binary_expr): Remove.
9074 (range_fold_unary_expr): New.
9075 (range_fold_binary_expr): New.
9076 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9077 range_fold_binary_expr instead of extract_range_from_binary_expr.
9078 (vr_values::extract_range_basic): Same.
9079 (vr_values::extract_range_from_unary_expr): Call
9080 range_fold_unary_expr instead of extract_range_from_unary_expr.
9081 * wide-int-range.cc: Remove.
9082 * wide-int-range.h: Remove.
9083
9084 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9085
9086 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9087 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9088 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9089 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9090 macro.
9091
9092 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9093
9094 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9095 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9096 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9097 * glimits.h: Likewise.
9098
9099 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9100
9101 PR rtl-optimization/91976
9102 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9103 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9104 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9105
9106 2019-10-02 Martin Sebor <msebor@redhat.com>
9107
9108 PR tree-optimization/80936
9109 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9110
9111 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9112
9113 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9114 instead of reg_class_contents[ALL_REGS].
9115
9116 2019-09-30 Jason Merrill <jason@redhat.com>
9117
9118 Add some hash_map_safe_* functions like vec_safe_*.
9119 * hash-map.h (default_hash_map_size): New variable.
9120 (create_ggc): Use it as default argument.
9121 (hash_map_maybe_create, hash_map_safe_get)
9122 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9123
9124 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9125
9126 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9127 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9128 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9129 (can_inline_edge_by_limits_p): Use it.
9130 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9131 (want_inline_small_function_p): Use O2 bounds.
9132 (edge_badness): LIkewise.
9133 * opts.c (default_options): Add OPT_finline_functions.
9134 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9135 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9136 New parameters.
9137 * doc/invoke.texi (-finline-functions): Update documentation.
9138 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9139 inline-min-speedup-O2): Document.
9140 (early-inlining-insns-O2): Simplify docs.
9141
9142 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9143
9144 PR rtl-optimization/87047
9145 * ifcvt.c (average_cost): New static function. Use it...
9146 (noce_process_if_block): ... here.
9147
9148 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9149
9150 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9151 * config/rs6000/rs6000-string.c (expand_block_move): Add
9152 might_overlap parm.
9153 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9154 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9155
9156 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9157
9158 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9159 (expand_builtin_memcpy): Use might_overlap parm.
9160 (expand_builtin_mempcpy_args): Use might_overlap parm.
9161 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9162 (expand_builtin_memory_copy_args): Add might_overlap parm.
9163 * expr.c (emit_block_move_via_cpymem): Rename to
9164 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9165 or movmem optab as appropriate.
9166 (emit_block_move_hints): Add might_overlap parm, do the right
9167 thing for might_overlap==true.
9168 * expr.h (emit_block_move_hints): Update prototype.
9169
9170 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9171
9172 * tree-eh.h (unsplit_eh_edges): Declare.
9173 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9174 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9175 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9176 (struct store_immediate_info): Add lp_nr field.
9177 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9178 initialize lp_nr with it.
9179 (struct merged_store_group): Add lp_nr and only_constants fields.
9180 (merged_store_group::merged_store_group): Initialize them.
9181 (merged_store_group::can_be_merged_into): Deal with them.
9182 (pass_store_merging): Rename terminate_and_release_chain into
9183 terminate_and_process_chain.
9184 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9185 renaming and remove useless assertions.
9186 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9187 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9188 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9189 instead of always recomputing it and compare lp_nr.
9190 (imm_store_chain_info::output_merged_store): If the group is in an
9191 active EH region, register new stores if they can throw. Moreover,
9192 if the insertion has created new basic blocks, adjust the PHI nodes
9193 of the post landing pad.
9194 (imm_store_chain_info::output_merged_stores): If the original stores
9195 are in an active EH region, deregister them.
9196 (lhs_valid_for_store_merging_p): Prettify.
9197 (adjust_bit_pos): New function extracted from...
9198 (mem_valid_for_store_merging): ...here. Use it for the base address
9199 and also for the offset if it is the addition of a constant.
9200 (lp_nr_for_store): New function.
9201 (pass_store_merging::process_store): Change return type to bool.
9202 Call lp_nr_for_store to initialize the store info. Propagate the
9203 return status of various called functions to the return value.
9204 (store_valid_for_store_merging_p): New predicate.
9205 (enum basic_block_status): New enumeration.
9206 (get_status_for_store_merging): New function.
9207 (pass_store_merging::execute): If the function can throw and catch
9208 non-call exceptions, unsplit the EH edges on entry and clean up the
9209 CFG on exit if something changed. Call get_status_for_store_merging
9210 for every basic block and keep the chains open across basic blocks
9211 when possible. Terminate and process open chains at the end, if any.
9212
9213 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9214
9215 * reginfo.c (globalize_reg): Fix shadowed variable in
9216 function_abis walk.
9217
9218 2019-10-02 Martin Jambor <mjambor@suse.cz>
9219
9220 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9221 do not compute some stuff when set.
9222 (cgraph_node::create_edge): Likewise.
9223 (cgraph_node::create_indirect_edge): Renamed last parameter to
9224 coning_p and flipped its meaning, don't even calculate
9225 inline_failed when set.
9226 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9227 (symbol_table::::create_edge): Likewise.
9228 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9229 the default value.
9230 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9231 call graph edge creating functions.
9232
9233 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9234
9235 PR c++/91222
9236 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9237 namespace types.
9238
9239 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9240
9241 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9242
9243 2019-10-02 Richard Biener <rguenther@suse.de>
9244
9245 * tree-vectorizer.h (vect_transform_reduction): Declare.
9246 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9247 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9248 stmt transform to ...
9249 (vect_transform_reduction): ... this.
9250
9251 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9252
9253 * omp-low.c (lower_omp_target): Dereference optional argument
9254 to work with the right pointer.
9255
9256 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9257
9258 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9259 false.
9260 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9261 * langhooks.h (omp_is_optional_argument): New hook.
9262 * omp-general.c (omp_is_optional_argument): New.
9263 * omp-general.h (omp_is_optional_argument): New declaration.
9264 * omp-low.c (lower_omp_target): Create temporary for received value
9265 and take the address for new_var if the original variable was a
9266 DECL_BY_REFERENCE. Use size of referenced object when a
9267 pass-by-reference optional argument used as argument to firstprivate.
9268
9269 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9270
9271 PR tree-optimization/91940
9272 * tree-vect-patterns.c: Include tree-vector-builder.h and
9273 vec-perm-indices.h.
9274 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9275 unpromoting the argument back to uint16_t, or by converting into a
9276 rotate, or into shifts plus ior.
9277
9278 2019-10-02 Richard Biener <rguenther@suse.de>
9279
9280 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9281 New.
9282 (vect_transform_cycle_phi): Declare.
9283 * tree-vect-stmts.c (vect_transform_stmt): Call
9284 vect_transform_cycle_phi.
9285 * tree-vect-loop.c (vectorizable_reduction): Split out
9286 PHI transformation stage to ...
9287 (vect_transform_cycle_phi): ... here.
9288
9289 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9290
9291 PR middle-end/91957
9292 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9293 eliminable registers.
9294 (make_hard_regno_live): Likewise, and don't make them live.
9295
9296 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9297
9298 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9299 Call pp_emit_prefix.
9300 (layout::print_source_line): Likewise.
9301 (layout::start_annotation_line): Likewise.
9302 (diagnostic_show_locus): Remove call to temporarily clear the
9303 prefix.
9304 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9305 interaction of pp_set_prefix with rulers and fix-it hints.
9306 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9307 prefix when calling diagnostic_show_locus, rather than destroying
9308 it afterwards.
9309 (print_parseable_fixits): Temporarily clear prefix.
9310 * pretty-print.c (pp_format): Save and restore line_length, rather
9311 than assuming it is zero.
9312 (pp_output_formatted_text): Remove assertion that line_length is
9313 zero.
9314
9315 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9316
9317 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9318 Rename to ...
9319 (nonoverlapping_refs_since_match_p): ... this; handle also
9320 ARRAY_REFs.
9321 (alias_stats): Update stats.
9322 (dump_alias_stats): Likewise.
9323 (cheap_array_ref_low_bound): New function.
9324 (aliasing_matching_component_refs_p): Add partial_overlap
9325 argument;
9326 pass it to nonoverlapping_refs_since_match_p.
9327 (aliasing_component_refs_walk): Update call of
9328 aliasing_matching_component_refs_p
9329 (nonoverlapping_array_refs_p): New function.
9330 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9331 indirect_refs_may_alias_p): Update calls of
9332 nonoverlapping_refs_since_match_p.
9333
9334 2019-10-01 Maya Rashish <coypu@sdf.org>
9335
9336 PR target/85401
9337 * ira-color.c (allocno_copy_cost_saving): Call
9338 ira_init_register_move_cost_if_necessary.
9339
9340 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
9341
9342 * Makefile.in (gnat_install_lib): New variable.
9343 * configure.ac: Substitute it.
9344 * configure: Regenerate.
9345
9346 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9347
9348 PR lto/91222
9349 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9350 is matched with non-C++ type
9351
9352 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9353
9354 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9355 after local CSE.
9356
9357 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9358
9359 * doc/invoke.texi (early-inlining-insns-O2): Document.
9360 (early-inlining-insns): Update.
9361 * params.def (early-inlining-insns-O2): New bound.
9362 (early-inlining-insns): Update docs.
9363 * ipa-inline.c (want_early_inline_function_p): Use new bound.
9364
9365 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9366
9367 PR target/88562
9368 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9369 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9370 a memory access insn.
9371
9372 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
9373
9374 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9375 vpmsumd.
9376
9377 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9378
9379 PR target/77918
9380 * config/s390/s390.c (s390_expand_vec_compare): Use
9381 gen_vec_cmpordered and gen_vec_cmpunordered.
9382 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
9383 vec_unordered): Delete.
9384 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
9385 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
9386 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
9387 (vec_cmp<code>): Generic dispatcher.
9388
9389 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9390
9391 PR target/77918
9392 * config/s390/vector.md (V_HW): Add V1TI in order to make
9393 vcond$a$b generate vcondv1tiv1tf.
9394
9395 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9396
9397 PR rtl-optimization/91948
9398 * ira-build.c (ira_create_allocno): Initialize
9399 ALLOCNO_CROSSED_CALLS_ABIS.
9400 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
9401 than regno to ira_need_caller_save_p.
9402
9403 2019-10-01 Alexandre Oliva <oliva@adacore.com>
9404
9405 * config/i386/i386-options.c
9406 (ix86_recompute_optlev_based_flags): New, moved out of...
9407 (ix86_option_override_internal): ... this. Call it.
9408 (ix86_override_options_after_change): Call it here too.
9409
9410 PR debug/91507
9411 * dwarf2out.c (override_type_for_decl_p): New.
9412 (gen_variable_die): Use it.
9413
9414 2019-10-01 Richard Biener <rguenther@suse.de>
9415
9416 * tree-vect-loop.c (vectorizable_reduction): Move variables
9417 to where they are used.
9418
9419 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9420
9421 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
9422 (build_def_use): Use PC instead of CC0 in a comment.
9423
9424 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9425
9426 * rtl.def (CLOBBER_HIGH): Delete.
9427 * doc/rtl.texi (clobber_high): Remove documentation.
9428 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
9429 (reg_is_clobbered_by_clobber_high): Delete.
9430 (gen_hard_reg_clobber_high): Likewise.
9431 * alias.c (record_set): Remove CLOBBER_HIGH handling.
9432 * cfgexpand.c (expand_gimple_stmt): Likewise.
9433 * combine-stack-adj.c (single_set_for_csa): Likewise.
9434 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
9435 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
9436 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
9437 * cse.c (invalidate_reg): Remove clobber_high parameter.
9438 (invalidate): Update call accordingly.
9439 (canonicalize_insn): Remove CLOBBER_HIGH handling.
9440 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
9441 (count_reg_usage, insn_live_p): Likewise.
9442 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
9443 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
9444 (cselib_invalidate_rtx_note_stores): Update call accordingly.
9445 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
9446 (cselib_invalidate_regno, cselib_process_insn): Likewise.
9447 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
9448 (mark_nonreg_stores_2): Likewise.
9449 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
9450 (df_get_call_refs): Likewise.
9451 * dwarf2out.c (mem_loc_descriptor): Likewise.
9452 * emit-rtl.c (verify_rtx_sharing): Likewise.
9453 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
9454 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
9455 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
9456 * genemit.c (gen_exp, gen_insn): Likewise.
9457 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
9458 * haifa-sched.c (haifa_classify_rtx): Likewise.
9459 * ira-build.c (create_insn_allocnos): Likewise.
9460 * ira-costs.c (scan_one_insn): Likewise.
9461 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
9462 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
9463 * jump.c (mark_jump_label_1): Likewise.
9464 * lra-int.h (lra_insn_reg::clobber_high): Delete.
9465 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
9466 handling.
9467 (mark_not_eliminable): Likewise.
9468 * lra-lives.c (process_bb_lives): Likewise.
9469 * lra.c (new_insn_reg): Remove clobber_high parameter.
9470 (collect_non_operand_hard_regs): Likewise. Update call to new
9471 insn_reg. Remove CLOBBER_HIGH handling.
9472 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
9473 to collect_non_operand_hard_regs.
9474 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
9475 Update call to new_insn_reg.
9476 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
9477 * postreload.c (reload_cse_simplify, reload_combine_note_use)
9478 (move2add_note_store): Likewise.
9479 * print-rtl.c (print_pattern): Likewise.
9480 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
9481 (if_test_bypass_p): Likewise.
9482 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
9483 * reginfo.c (reg_scan_mark_refs): Likewise.
9484 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
9485 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
9486 (forget_old_reloads_1): Likewise.
9487 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
9488 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
9489 (dbr_schedule): Likewise.
9490 * resource.c (update_live_status, mark_referenced_resources)
9491 (mark_set_resources): Likewise.
9492 * rtl.c (copy_rtx): Likewise.
9493 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
9494 (note_pattern_stores): Likewise.
9495 (reg_is_clobbered_by_clobber_high): Delete.
9496 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
9497 CLOBBER_HIGH handling.
9498
9499 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9500
9501 PR target/91452
9502 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
9503 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
9504 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9505 Handle ARM_PCS_TLSDESC.
9506 (aarch64_tlsdesc_abi_id): New function.
9507 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
9508 rtx instead of a list of clobbers and clobber_highs.
9509 (tlsdesc_small_<mode>): Update accordingly.
9510
9511 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9512
9513 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
9514 extra callee_abi argument.
9515 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
9516 Insert a CALLEE_ABI unspec into the call pattern as the second
9517 element in the PARALLEL.
9518 (aarch64_simd_call_p): Delete.
9519 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
9520 the new CALLEE_ABI element of the PARALLEL.
9521 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
9522 from the function type, if given.
9523 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
9524 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
9525 when passed the function_arg_info end marker.
9526 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
9527 final argument of gen_sibcall.
9528 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
9529 (call): Make operand 2 a const_int_operand and pass it to expand_call.
9530 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
9531 pattern.
9532 (call_value): Likewise operand 3.
9533 (sibcall): Likewise operand 2. Place the unspec before rather than
9534 after the return.
9535 (sibcall_value): Likewise operand 3.
9536 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
9537 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
9538 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
9539 constraint strings.
9540 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
9541
9542 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9543
9544 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
9545 choose_hard_reg_mode.
9546 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9547
9548 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9549
9550 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
9551 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
9552 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
9553
9554 2019-09-30 David Malcolm <dmalcolm@redhat.com>
9555
9556 * diagnostic-show-locus.c (line_label::line_label): Initialize
9557 m_has_vbar.
9558 (line_label::comparator): Reverse the sort order by m_state_idx,
9559 so that when the list is walked backwards the labels appear in
9560 order of insertion into the rich_location.
9561 (line_label::m_has_vbar): New field.
9562 (layout::print_any_labels): When dealing with multiple labels at
9563 the same line and column, only print vertical bars for the one
9564 with the highest label_line.
9565 (selftest::test_one_liner_labels): Update test for multiple labels
9566 to expect the labels to be in the order of insertion into the
9567 rich_location. Add a test for many such labels, where the column
9568 numbers are out-of-order relative to the insertion order.
9569
9570 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9571
9572 * config/i386/i386.h (ix86_frame::expensive_p): New field.
9573 (ix86_frame::expensive_count): Likewise.
9574 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
9575 of use_fast_prologue_epilogue robust against incidental changes
9576 in function size.
9577
9578 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9579
9580 PR target/77918
9581 * config/s390/vector.md (vec_unordered<mode>): Call
9582 gen_vec_ordered<mode>.
9583
9584 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
9585
9586 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
9587 New pattern for ASRD.
9588 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
9589 * internal-fn.def (IFN_DIV_POW2): New internal function.
9590 * optabs.def (sdiv_pow2_optab): New optab.
9591 * tree-vect-patterns.c (vect_recog_divmod_pattern):
9592 Modify pattern to support new operation.
9593 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
9594 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
9595 Document new target selector.
9596
9597 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9598
9599 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
9600 to test whether we're compiling a vector PCS function and to test
9601 whether the function needs to save a particular register.
9602 Remove the vector PCS handling of df_set_regs_ever_live.
9603 (aarch64_components_for_bb): Use crtl->abi to test whether
9604 the function needs to save a particular register.
9605 (aarch64_process_components): Use crtl->abi to test whether
9606 we're compiling a vector PCS function.
9607 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
9608 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
9609
9610 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9611
9612 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
9613 Delete.
9614 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
9615 whether the block calls a function that clobbers more registers
9616 than the current function is allowed to.
9617 (aarch64_use_simple_return_insn_p): Delete.
9618 * config/aarch64/aarch64.md (simple_return): Remove condition.
9619
9620 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9621
9622 * function-abi.h (function_abi_aggregator): New class.
9623 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
9624 function.
9625 * ira.c (update_equiv_regs_prescan): New function. Call
9626 set_paradoxical_subreg here rather than...
9627 (update_equiv_regs): ...here.
9628 (ira): Call update_equiv_regs_prescan.
9629
9630 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9631
9632 * hard-reg-set.h (regs_invalidated_by_call): Only define if
9633 IN_TARGET_CODE.
9634 (call_used_or_fixed_regs): Likewise.
9635 (call_used_or_fixed_reg_p): Likewise.
9636 * reginfo.c (regs_invalidated_by_call): New macro.
9637
9638 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9639
9640 * shrink-wrap.c: Include function-abi.h.
9641 (requires_stack_frame_p): Use crtl->abi to test whether the
9642 current function can use a register without saving it first.
9643
9644 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9645
9646 * sel-sched-ir.h (_def::crosses_call): Replace with...
9647 (_def::crossed_call_abis): ..this new field.
9648 (def_list_add): Take a mask of ABIs instead of a crosses_call
9649 boolean.
9650 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
9651 of _def accordingly.
9652 * sel-sched.c: Include function-abi.h.
9653 (hard_regs_data::regs_for_call_clobbered): Delete.
9654 (reg_rename::crosses_call): Replace with...
9655 (reg_rename::crossed_call_abis): ...this new field.
9656 (fur_static_params::crosses_call): Replace with...
9657 (fur_static_params::crossed_call_abis): ...this new field.
9658 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
9659 (init_hard_regs_data): Use crtl->abi to test which registers the
9660 current function would need to save before it uses them.
9661 (mark_unavailable_hard_regs): Update handling of call-clobbered
9662 registers, using call_clobbers_in_region to find out which registers
9663 might be call-clobbered (but without taking -fipa-ra into account
9664 for now). Remove separate handling of partially call-clobbered
9665 registers.
9666 (verify_target_availability): Use crossed_call_abis instead of
9667 crosses_call.
9668 (get_spec_check_type_for_insn, find_used_regs): Likewise.
9669 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
9670
9671 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9672
9673 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
9674 function to test whether a register is fully or partly clobbered.
9675
9676 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9677
9678 * rtlanal.c: Include function-abi.h.
9679 (reg_set_p): Use insn_callee_abi to get the ABI of the called
9680 function and clobbers_reg_p to test whether the register
9681 is call-clobbered.
9682 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
9683 to get the ABI of the called function and full_reg_clobbers to
9684 get the set of fully call-clobbered registers. Warn about the
9685 pitfalls of using this mode.
9686
9687 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9688
9689 * reload.c: Include function-abi.h.
9690 (find_equiv_reg): Use clobbers_reg_p to test whether either
9691 of the equivalent registers is clobbered by a call.
9692 * reload1.c: Include function-abi.h.
9693 (reg_reloaded_call_part_clobbered): Delete.
9694 (reload): Use crtl->abi to test which registers would need
9695 saving in the prologue before use.
9696 (find_reg): Likewise.
9697 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
9698 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
9699 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
9700
9701 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9702
9703 * regrename.h (du_head::call_clobber_mask): New field.
9704 (du_head::need_caller_save_reg): Replace with...
9705 (du_head::call_abis): ...this new field.
9706 * regrename.c: Include function-abi.h.
9707 (call_clobbered_in_chain_p): New function.
9708 (check_new_reg_p): Use crtl->abi when deciding whether a register
9709 is free for use after RA. Use call_clobbered_in_chain_p to test
9710 whether a candidate register would be clobbered by a call.
9711 (find_rename_reg): Don't add call-clobber conflicts here.
9712 (rename_chains): Check call_abis instead of need_caller_save_reg.
9713 (merge_chains): Update for changes to du_head.
9714 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
9715 target. Record the ABI identifier in call_abis and the set of
9716 fully or partially clobbered registers in call_clobber_mask.
9717 Add fully-clobbered registers to hard_conflicts here rather
9718 than in find_rename_reg.
9719 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
9720 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
9721 * config/aarch64/falkor-tag-collision-avoidance.c: Include
9722 function-abi.h.
9723 * config/c6x/c6x.c: Likewise.
9724
9725 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9726
9727 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
9728 mode of the register when deciding whether it is no longer
9729 available after a call.
9730
9731 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9732
9733 * recog.c: Include function-abi.h.
9734 (peep2_find_free_register): Use crtl->abi when deciding whether
9735 a register is free for use after RA.
9736
9737 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9738
9739 * postreload-gcse.c: Include regs.h and function-abi.h.
9740 (record_opr_changes): Use insn_callee_abi to get the ABI of the
9741 call insn target. Conservatively assume that partially-clobbered
9742 registers are altered.
9743
9744 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9745
9746 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
9747 when deciding whether a register is free for use after RA.
9748 (reload_combine): Remove unnecessary use of fixed_reg_set.
9749 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
9750 call insn target. Use reg_mode when testing whether a register
9751 is no longer available.
9752
9753 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9754
9755 * target.def (return_call_with_max_clobbers): Delete.
9756 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9757 * doc/tm.texi: Regenerate.
9758 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
9759 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9760 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
9761 (lra_reg::call_insn): Delete.
9762 * lra.c: Include function-abi.h.
9763 (initialize_lra_reg_info_element): Don't initialize the fields above.
9764 (lra): Use crtl->abi to test whether the current function needs to
9765 save a register in the prologue. Remove special pre-inheritance
9766 lra_create_live_ranges pass for flag_ipa_ra.
9767 * lra-assigns.c: Include function-abi.h
9768 (find_hard_regno_for_1): Use crtl->abi to test whether the current
9769 function needs to save a register in the prologue.
9770 (lra_assign): Assert that registers aren't allocated to a
9771 conflicting register, rather than checking only for overlaps
9772 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
9773 and for registers that are not live across a call.
9774 * lra-constraints.c (last_call_for_abi): New variable.
9775 (full_and_partial_call_clobbers): Likewise.
9776 (setup_next_usage_insn): Remove the register from
9777 full_and_partial_call_clobbers.
9778 (need_for_call_save_p): Use call_clobbered_in_region_p to test
9779 whether the register needs a caller save.
9780 (need_for_split_p): Use full_and_partial_reg_clobbers instead
9781 of call_used_or_fixed_regs.
9782 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
9783 full_and_partial_call_clobbers.
9784 * lra-lives.c (check_pseudos_live_through_calls): Replace
9785 last_call_used_reg_set and call_insn arguments with an abi argument.
9786 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
9787 as the set of conflicting registers.
9788 (calls_have_same_clobbers_p): Delete.
9789 (process_bb_lives): Track the ABI of the last call instead of an
9790 insn/HARD_REG_SET pair. Update calls to
9791 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
9792 the set of registers that could be clobbered by an EH edge.
9793 Include partially-clobbered as well as fully-clobbered registers.
9794 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
9795 * lra-remat.c: Include function-abi.h.
9796 (call_used_regs_arr_len, call_used_regs_arr): Delete.
9797 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
9798 registers and bitmap_view to combine them into dead_regs.
9799 (call_used_input_regno_present_p): Take a function_abi argument
9800 and use it to test whether a register is call-clobbered.
9801 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
9802 call insn target. Update tje call to call_used_input_regno_present_p.
9803 (do_remat): Likewise.
9804 (lra_remat): Remove the initialization of call_used_regs_arr_len
9805 and call_used_regs_arr.
9806
9807 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9808
9809 * loop-iv.c: Include regs.h and function-abi.h.
9810 (simplify_using_initial_values): Use insn_callee_abi to get the
9811 ABI of the call insn target. Conservatively assume that
9812 partially-clobbered registers are altered.
9813
9814 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9815
9816 * function-abi.h (call_clobbers_in_region): Declare.
9817 (call_clobbered_in_region_p): New function.
9818 * function-abi.cc (call_clobbers_in_region): Likewise.
9819 * ira-int.h: Include function-abi.h.
9820 (ira_allocno::crossed_calls_abis): New field.
9821 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
9822 (ira_need_caller_save_regs): New function.
9823 (ira_need_caller_save_p): Likewise.
9824 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
9825 of call_used_or_fixed_regs.
9826 (do_reload): Use crtl->abi to test whether the current function
9827 needs to save a register in the prologue. Count registers that
9828 need to be saved rather than registers that don't.
9829 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
9830 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9831 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
9832 (propagate_some_info_from_allocno): Likewise.
9833 (copy_info_to_removed_store_destinations): Likewise.
9834 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
9835 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
9836 (ira_build): Use ira_need_caller_save_regs instead of
9837 call_used_or_fixed_regs.
9838 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
9839 whether the current function would need to save a register
9840 before using it.
9841 (calculate_spill_cost): Likewise.
9842 (allocno_reload_assign): Use ira_need_caller_save_regs and
9843 ira_need_caller_save_p instead of call_used_or_fixed_regs.
9844 * ira-conflicts.c (ira_build_conflicts): Use
9845 ira_need_caller_save_regs rather than call_used_or_fixed_regs
9846 as the set of call-clobbered registers. Remove the
9847 call_used_or_fixed_regs mask from the calculation of
9848 temp_hard_reg_set and mask its use instead. Remove special
9849 handling of partially-clobbered registers.
9850 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
9851 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
9852 calculate the set of conflicting registers for calls that
9853 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
9854 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
9855 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9856 Use eh_edge_abi to calculate the set of registers that could
9857 be clobbered by an EH edge. Include partially-clobbered as
9858 well as fully-clobbered registers.
9859
9860 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9861
9862 * haifa-sched.c: Include function-abi.h.
9863 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
9864 the function would need to save a register before using it.
9865
9866 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9867
9868 * gcse.c: Include function-abi.h.
9869 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
9870 the call insn target. Invalidate partially call-clobbered
9871 registers as well as fully call-clobbered ones.
9872
9873 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9874
9875 * function.c (aggregate_value_p): Work out which ABI the
9876 function is using before testing which registers are at least
9877 partly preserved by a call.
9878
9879 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9880
9881 * early-remat.c: Include regs.h and function-abi.h.
9882 (early_remat::maybe_add_candidate): Don't check for call-clobbered
9883 registers here.
9884 (early_remat::restrict_remat_for_unavail_regs): New function.
9885 (early_remat::restrict_remat_for_call): Likewise.
9886 (early_remat::process_block): Before calling emit_remat_insns
9887 for a previous call in the block, invalidate any candidates
9888 that would clobber call-preserved registers.
9889 (early_remat::emit_remat_insns_for_block): Likewise for the
9890 final call in a block. Do the same thing for live-in registers
9891 when calling emit_remat_insns at the head of a block.
9892
9893 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9894
9895 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
9896 whether the current function needs to save at least part of a
9897 register before using it.
9898 (df_get_exit_block_use_set): Likewise for epilogue restores.
9899
9900 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9901
9902 * df-problems.c: Include regs.h and function-abi.h.
9903 (df_rd_problem_data): Rename sparse_invalidated_by_call to
9904 sparse_invalidated_by_eh and dense_invalidated_by_call to
9905 dense_invalidated_by_eh.
9906 (df_print_bb_index): Update accordingly.
9907 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
9908 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
9909 that are clobbered by an EH edge. Clobber partially-clobbered
9910 registers as well as fully-clobbered ones.
9911 (df_md_confluence_n): Likewise.
9912 (df_rd_local_compute): Likewise. Update for changes to
9913 df_rd_problem_data.
9914 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
9915 of registers that are clobbered by an EH edge. Includde partially-
9916 clobbered registers as well as fully-clobbered ones.
9917
9918 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9919
9920 * cselib.c (cselib_process_insn): If we know what mode a
9921 register was set in, check whether it is clobbered in that
9922 mode by a call. Only fall back to reg_raw_mode if that fails.
9923
9924 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9925
9926 * cse.c: Include regs.h and function-abi.h.
9927 (invalidate_for_call): Take the call insn as an argument.
9928 Use insn_callee_abi to get the ABI of the call and invalidate
9929 partially clobbered registers as well as fully clobbered ones.
9930 (cse_insn): Update call accordingly.
9931
9932 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9933
9934 * combine.c: Include function-abi.h.
9935 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
9936 of the target of call insns. Invalidate partially-clobbered
9937 registers as well as fully-clobbered ones.
9938
9939 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9940
9941 * cfgloopanal.c: Include regs.h and function-abi.h.
9942 (init_set_costs): Use default_function_abi to test whether
9943 a general register is call-clobbered.
9944
9945 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9946
9947 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
9948 instead of the call-clobbered sets.
9949
9950 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9951
9952 * caller-save.c (setup_save_areas): Remove redundant |s of
9953 fixed_reg_set.
9954 (save_call_clobbered_regs): Likewise. Use the call ABI rather
9955 than call_used_or_fixed_regs to decide whether a REG_RETURNED
9956 value is useful.
9957
9958 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9959
9960 * rtl.h (predefined_function_abi): Declare.
9961 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9962 instead of a boolean call_save flag.
9963 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
9964 accordingly.
9965 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9966 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9967 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
9968 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9969 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9970 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
9971 * reginfo.c (init_reg_modes_target): Likewise.
9972 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9973 instead of a boolean call_save flag.
9974 * targhooks.c: Include function-abi.h.
9975 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
9976 using eh_edge_abi to choose the mode.
9977
9978 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9979
9980 * target.def (hard_regno_call_part_clobbered): Take an ABI
9981 identifier instead of an rtx_insn.
9982 * doc/tm.texi: Regenerate.
9983 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
9984 (hook_bool_uint_uint_mode_false): New function.
9985 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
9986 (hook_bool_uint_uint_mode_false): New function.
9987 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9988 Take an ABI identifier instead of an rtx_insn.
9989 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
9990 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
9991 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
9992 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
9993 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
9994 Likewise.
9995 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
9996 * cselib.c: Include function-abi.h.
9997 (cselib_process_insn): Update call to
9998 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9999 to get the appropriate ABI identifier.
10000 * function-abi.cc (predefined_function_abi::initialize): Update call
10001 to targetm.hard_regno_call_part_clobbered.
10002 * ira-conflicts.c (ira_build_conflicts): Likewise.
10003 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10004 * lra-constraints.c: Include function-abi.h.
10005 (need_for_call_save_p): Update call to
10006 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10007 to get the appropriate ABI identifier.
10008 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10009 * regcprop.c (copyprop_hardreg_forward_1): Update call
10010 to targetm.hard_regno_call_part_clobbered.
10011 * reginfo.c (choose_hard_reg_mode): Likewise.
10012 * regrename.c (check_new_reg_p): Likewise.
10013 * reload.c (find_equiv_reg): Likewise.
10014 * reload1.c (emit_reload_insns): Likewise.
10015 * sched-deps.c: Include function-abi.h.
10016 (deps_analyze_insn): Update call to
10017 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10018 to get the appropriate ABI identifier.
10019 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10020 call to targetm.hard_regno_call_part_clobbered.
10021 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10022
10023 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10024
10025 * config/i386/i386.c: Include function-abi.h.
10026 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10027 if they preserve some 256-bit or 512-bit SSE registers.
10028
10029 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10030
10031 * target.def (insn_callee_abi): New hook.
10032 (remove_extra_call_preserved_regs): Delete.
10033 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10034 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10035 * doc/tm.texi: Regenerate.
10036 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10037 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10038 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10039 insn argument.
10040 (aarch64_remove_extra_call_preserved_regs): Delete.
10041 (aarch64_insn_callee_abi): New function.
10042 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10043 (TARGET_INSN_CALLEE_ABI): New macro.
10044 * rtl.h (get_call_fndecl): Declare.
10045 (cgraph_rtl_info): Fix formatting. Tweak comment for
10046 function_used_regs. Remove function_used_regs_valid.
10047 * rtlanal.c (get_call_fndecl): Moved from final.c
10048 * function-abi.h (insn_callee_abi): Declare.
10049 (target_function_abi_info): Mention insn_callee_abi.
10050 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10051 way to get_call_reg_set_usage did.
10052 (insn_callee_abi): New function.
10053 * regs.h (get_call_reg_set_usage): Delete.
10054 * final.c: Include function-abi.h.
10055 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10056 function_used_regs before the main loop rather than afterwards.
10057 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10058 if function_used_regs ends up not being useful.
10059 (get_call_fndecl): Move to rtlanal.c
10060 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10061 * caller-save.c: Include function-abi.h.
10062 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10063 instead of get_call_reg_set_usage.
10064 * cfgcleanup.c: Include function-abi.h.
10065 (old_insns_match_p): Use insn_callee_abi instead of
10066 get_call_reg_set_usage.
10067 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10068 a tree.
10069 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10070 function_used_regs.
10071 * df-scan.c: Include function-abi.h.
10072 (df_get_call_refs): Use insn_callee_abi instead of
10073 get_call_reg_set_usage.
10074 * ira-lives.c: Include function-abi.h.
10075 (process_bb_node_lives): Use insn_callee_abi instead of
10076 get_call_reg_set_usage.
10077 * lra-lives.c: Include function-abi.h.
10078 (process_bb_lives): Use insn_callee_abi instead of
10079 get_call_reg_set_usage.
10080 * postreload.c: Include function-abi.h.
10081 (reload_combine): Use insn_callee_abi instead of
10082 get_call_reg_set_usage.
10083 * regcprop.c: Include function-abi.h.
10084 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10085 get_call_reg_set_usage.
10086 * resource.c: Include function-abi.h.
10087 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10088 instead of get_call_reg_set_usage.
10089 * var-tracking.c: Include function-abi.h.
10090 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10091 get_call_reg_set_usage.
10092
10093 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10094
10095 * target.def (fntype_abi): New target hook.
10096 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10097 * doc/tm.texi: Regenerate.
10098 * target.h (predefined_function_abi): Declare.
10099 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10100 if defined.
10101 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10102 * config/aarch64/aarch64.c: Include function-abi.h.
10103 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10104 (TARGET_FNTYPE_ABI): Define.
10105
10106 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10107
10108 * Makefile.in (OBJS): Add function-abi.o.
10109 (GTFILES): Add function-abi.h.
10110 * function-abi.cc: New file.
10111 * function-abi.h: Likewise.
10112 * emit-rtl.h (rtl_data::abi): New field.
10113 * function.c: Include function-abi.h.
10114 (prepare_function_start): Initialize crtl->abi.
10115 * read-rtl-function.c: Include regs.h and function-abi.h.
10116 (read_rtl_function_body): Initialize crtl->abi.
10117 (read_rtl_function_body_from_file_range): Likewise.
10118 * reginfo.c: Include function-abi.h.
10119 (init_reg_sets_1): Initialize default_function_abi.
10120 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10121 when making a register global.
10122 * target-globals.h (this_target_function_abi_info): Declare.
10123 (target_globals::function_abi_info): New field.
10124 (restore_target_globals): Copy it.
10125 * target-globals.c: Include function-abi.h.
10126 (default_target_globals): Initialize the function_abi_info field.
10127 (target_globals): Allocate it.
10128 (save_target_globals): Free it.
10129
10130 2019-09-30 Nick Clifton <nickc@redhat.com>
10131
10132 PR target/85978
10133 * config/frv/frv.c (frv_register_move_cost): Add break statements
10134 to avoid falling through to the wrong cases. Tidy code.
10135
10136 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10137
10138 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10139 For multi-registers modes, test how big each register part is.
10140
10141 2019-09-30 Nick Clifton <nickc@redhat.com>
10142
10143 PR target/59205
10144 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10145 (TARGET_ASM_SELECT_SECTION): Remove definition.
10146 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10147
10148 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10149
10150 * emit-rtl.c (init_raw_REG): New function.
10151 (gen_raw_REG): Use init_raw_REG.
10152 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10153 macros.
10154 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10155 * rtl.h (rtx_init): New function.
10156 (rtx_alloca): New function.
10157 (init_raw_REG): New function.
10158 (alloca_raw_REG): New macro.
10159
10160 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10161
10162 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10163 (pcrel_local_address): Replace pcrel_address predicate, use the
10164 new function address_to_insn_form.
10165 (pcrel_external_address): Replace with new implementation using
10166 address_to_insn_form..
10167 (prefixed_mem_operand): Delete predicate which is now unused.
10168 (pcrel_external_mem_operand): Delete predicate which is now
10169 unused.
10170 * config/rs6000/rs6000-protos.h (enum insn_form): New
10171 enumeration.
10172 (enum non_prefixed_form): New enumeration.
10173 (address_to_insn_form): New declaration.
10174 (prefixed_load_p): New declaration.
10175 (prefixed_store_p): New declaration.
10176 (prefixed_paddi_p): New declaration.
10177 (rs6000_asm_output_opcode): New declaration.
10178 (rs6000_final_prescan_insn): Move declaration and update calling
10179 signature.
10180 (address_is_prefixed): New helper inline function.
10181 * config/rs6000/rs6000.c(print_operand_address): Check for either
10182 PC-relative local symbols or PC-relative external symbols.
10183 (rs6000_emit_move): Support loading PC-relative addresses.
10184 (mode_supports_prefixed_address_p): Delete, no longer used.
10185 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10186 (address_to_insn_form): New function to decode an address format.
10187 (reg_to_non_prefixed): New function to identify what the
10188 non-prefixed memory instruction format is for a register.
10189 (prefixed_load_p): New function to identify prefixed loads.
10190 (prefixed_store_p): New function to identify prefixed stores.
10191 (prefixed_paddi_p): New function to identify prefixed load
10192 immediates.
10193 (next_insn_prefixed_p): New static state variable.
10194 (rs6000_final_prescan_insn): New function to determine if an insn
10195 uses a prefixed instruction.
10196 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10197 prefixed instruction.
10198 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10199 (ASM_OUTPUT_OPCODE): New target hook.
10200 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10201 prefixed instructions.
10202 (prefixed_length): New insn attribute for the size of prefixed
10203 instructions.
10204 (non_prefixed_length): New insn attribute for the size of
10205 non-prefixed instructions.
10206 (pcrel_local_addr): New insn to load up a local PC-relative
10207 address.
10208 (pcrel_extern_addr): New insn to load up an external PC-relative
10209 address.
10210 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10211 GPR and loading a 128-bit floating point type to a GPR.
10212
10213 2019-09-30 Richard Biener <rguenther@suse.de>
10214
10215 * gimple.c (gimple_get_lhs): For PHIs return the result.
10216 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10217 SLP instance as argument.
10218 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10219 double-reduction PHIs with vectorizable_lc_phi.
10220 (vect_analyze_loop_operations): Adjust.
10221 (vect_create_epilog_for_reduction): Remove all code not dealing
10222 with reduction LC PHI or epilogue generation.
10223 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10224 for live stmts of reductions.
10225 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10226 do not handle defs that are not vect_internal_def.
10227 (can_vectorize_live_stmts): Adjust.
10228 (vect_analyze_stmt): When the vectorized stmt defined a value
10229 used on backedges adjust the backedge uses of vectorized PHIs.
10230
10231 2019-09-30 Martin Jambor <mjambor@suse.cz>
10232
10233 PR ipa/91853
10234 * tree-inline.c (force_value_to_type): New function.
10235 (setup_one_parameter): Use force_value_to_type to convert type.
10236 * tree-inline.c (force_value_to_type): Declare.
10237 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10238 with register type mismatches.
10239
10240 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10241
10242 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10243 32-bit PowerPC.
10244 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10245 * config/rs6000/t-freebsd64: Make use of the above define and build
10246 the 32-bit libraries with secure-plt.
10247
10248 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10249
10250 PR target/91931
10251 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10252 gen_int_mode instead of GEN_INT.
10253
10254 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10255
10256 * config/darwin.c (gen_macho_low): Amend to include the mode
10257 argument.
10258 (machopic_indirect_data_reference): Amend gen_macho_low call
10259 to include mode argument
10260 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10261 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10262 the macho_high expander and two define_insn entries.
10263
10264 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10265
10266 PR bootstrap/90543
10267 * optc-save-gen.awk: Fix up printing string option differences.
10268
10269 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10270
10271 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10272 vec_perm cost to 1 for non-Power7 VSX architectures.
10273
10274 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10275
10276 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10277 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10278 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10279
10280 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10281
10282 * config/darwin.c (gen_macho_high): Amend to include the mode
10283 argument.
10284 (machopic_indirect_data_reference): Amend gen_macho_high call
10285 to include mode argument.
10286 (machopic_legitimize_pic_address): Likewise.
10287 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10288 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10289 the macho_high expander and two define_insn entries.
10290
10291 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10292
10293 PR target/86805
10294 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10295
10296 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10297
10298 PR target/80672
10299 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10300 std::string::compare instead of std::string::find.
10301
10302 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10303
10304 * configure: Regenerate.
10305
10306 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10307
10308 PR middle-end/91920
10309 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10310 variables as shared.
10311
10312 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10313
10314 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10315 replaces the expander and two define_insn entries.
10316 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10317 call.
10318 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10319
10320 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10321
10322 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10323 (fibonacci_heap::nodes): Likewise.
10324 (fibonacci_heap::min_key): Likewise.
10325 (fibonacci_heap::min): Likewise.
10326
10327 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10328
10329 * cgraph.c (cgraph_node::get_fun): Make const.
10330 * cgraph.h (cgraph_node::get_fun): Likewise.
10331
10332 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10333
10334 PR target/91919
10335 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10336 of SImode MULT.
10337
10338 2019-09-27 Richard Biener <rguenther@suse.de>
10339
10340 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10341 (STMT_VINFO_REDUC_FN): Likewise.
10342 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10343 STMT_VINFO_REDUC_FN.
10344 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10345 for condition reductions.
10346 (vect_create_epilog_for_reduction): Compute all required state
10347 from the stmt to be vectorized.
10348 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10349 invocation and remove then dead code. For single def-use chains
10350 record only a single vector stmt.
10351
10352 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10353
10354 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10355 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10356 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10357 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10358 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10359 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10360 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10361 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10362 (aarch64_general_builtin_rsqrt): Declare.
10363 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10364 New function.
10365 (aarch64_mangle_builtin_type): Rename to...
10366 (aarch64_general_mangle_builtin_type): ...this.
10367 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10368 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10369 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10370 aarch64_general_add_builtin instead of add_builtin_function.
10371 (aarch64_init_builtins): Rename to...
10372 (aarch64_general_init_builtins): ...this. Use
10373 aarch64_general_add_builtin instead of add_builtin_function.
10374 (aarch64_builtin_decl): Rename to...
10375 (aarch64_general_builtin_decl): ...this and remove the unused
10376 arguments.
10377 (aarch64_expand_builtin): Rename to...
10378 (aarch64_general_expand_builtin): ...this and remove the unused
10379 arguments.
10380 (aarch64_builtin_rsqrt): Rename to...
10381 (aarch64_general_builtin_rsqrt): ...this.
10382 (aarch64_fold_builtin): Rename to...
10383 (aarch64_general_fold_builtin): ...this. Take the function subcode
10384 and return type as arguments. Remove the "ignored" argument.
10385 (aarch64_gimple_fold_builtin): Rename to...
10386 (aarch64_general_gimple_fold_builtin): ...this. Take the function
10387 subcode and gcall as arguments, and return the new function call.
10388 * config/aarch64/aarch64.c (aarch64_init_builtins)
10389 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
10390 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
10391 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
10392 instead of aarch64_builtin_rsqrt.
10393 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
10394 instead of aarch64_mangle_builtin_type.
10395
10396 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10397
10398 * target.def (check_builtin_call): New target hook.
10399 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
10400 * doc/tm.texi: Regenerate.
10401
10402 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10403
10404 PR tree-optimization/91909
10405 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
10406 reduc_index parameter. When handling COND_REDUCTION, make sure
10407 that the reduction phi operand is in the correct arm of the
10408 VEC_COND_EXPR.
10409 (vectorizable_reduction): Pass reduc_index to the above.
10410
10411 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
10412
10413 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
10414 New combine pattern.
10415
10416 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
10417
10418 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
10419 loop instruction into new basic block before the loop when basic
10420 block that precedes the loop is empty.
10421
10422 2019-09-26 Jakub Jelinek <jakub@redhat.com>
10423
10424 * function.c (gimplify_parameters): Use build_clobber function.
10425 * tree-ssa.c (execute_update_addresses_taken): Likewise.
10426 * tree-inline.c (expand_call_inline): Likewise.
10427 * tree-sra.c (clobber_subtree): Likewise.
10428 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
10429 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
10430 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
10431 lower_omp_target): Likewise.
10432 * omp-expand.c (expand_omp_for_generic): Likewise.
10433 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
10434
10435 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
10436
10437 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
10438 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
10439 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
10440 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
10441 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
10442 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
10443 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
10444 LD_ELEMREV_V16QI): Use the PURE attribute.
10445
10446 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
10447
10448 * config/rs6000/darwin.md: Replace the expanders for
10449 load_macho_picbase and reload_macho_picbase with use of '@'
10450 and <mode> in their respective define_insns.
10451 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
10452 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
10453 Pmode to gen_load_macho_picbase.
10454 * config/rs6000/rs6000.md: Likewise.
10455
10456 2019-09-25 Richard Biener <rguenther@suse.de>
10457
10458 PR tree-optimization/91896
10459 * tree-vect-loop.c (vectorizable_reduction): The single
10460 def-use cycle optimization cannot apply when there's more
10461 than one pattern stmt involved.
10462
10463 2019-09-26 Richard Biener <rguenther@suse.de>
10464
10465 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
10466 loop-closed PHIs that are vect_internal_def.
10467 (vect_create_epilog_for_reduction): Exit early for nested cycles.
10468 Simplify.
10469 (vectorizable_lc_phi): New.
10470 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
10471 (vect_transform_stmt): Likewise.
10472 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
10473 (vectorizable_lc_phi): Declare.
10474
10475 2019-09-26 Richard Biener <rguenther@suse.de>
10476
10477 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
10478 vectorizable_reduction for vect_double_reduction_def.
10479 (vect_transform_loop): Likewise.
10480 (vect_create_epilog_for_reduction): Move double-reduction
10481 PHI creation and preheader argument setting of PHIs ...
10482 (vectorizable_reduction): ... here. Also process
10483 vect_double_reduction_def PHIs, creating the vectorized
10484 PHI nodes, remembering the scalar adjustment computed for
10485 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
10486 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
10487 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
10488 Initialize STMT_VINFO_REDUC_CODE.
10489 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
10490 (_stmt_vec_info::reduc_code): Likewise.
10491 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
10492 (STMT_VINFO_REDUC_CODE): Likewise.
10493
10494 2019-09-26 Matt Turner <mattst88@gmail.com>
10495
10496 PR driver/69471
10497 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
10498 (mtune=): Add Negative(mtune=).
10499 (mcpu=): Add Negative(mcpu=).
10500 * config/arm/arm.opt: Likewise.
10501
10502 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10503
10504 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10505 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
10506 Define.
10507 * config/arm/arm_acle.h: Define builtins for the above.
10508 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
10509 (simd32_op): Handle the above.
10510 * config/arm/unspecs.md: Define unspecs for the above.
10511
10512 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10513
10514 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10515 (arm_<sup>xtb16): Likewise.
10516 (arm_usada8): Likewise.
10517 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
10518 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
10519 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
10520 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
10521 __sxtb16, __uxtab16, __uxtb16): Define.
10522 * config/arm/arm_acle_builtins.def: Define builtins for the above.
10523 * config/arm/unspecs.md: Define unspecs for the above.
10524 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
10525 (USXTB16): Likewise.
10526 (simd32_op): New int_attribute.
10527 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
10528 * doc/sourcebuild.exp (arm_simd32_ok): Document.
10529
10530 2019-09-26 Martin Jambor <mjambor@suse.cz>
10531
10532 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
10533 internal_error.
10534
10535 2019-09-26 Martin Jambor <mjambor@suse.cz>
10536
10537 * ipa-sra.c (process_scan_results): Fix continue condition.
10538
10539 2019-09-26 Martin Liska <mliska@suse.cz>
10540
10541 PR tree-optimization/91885
10542 * tree-vectorizer.c (try_vectorize_loop_1): Add
10543 TODO_update_ssa_only_virtuals similarly to what slp pass does.
10544
10545 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
10546
10547 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
10548 aarch64_plus_immediate rather than aarch64_uimm12_shift
10549 to test for valid PLUS immediates.
10550
10551 2019-09-25 Martin Jambor <mjambor@suse.cz>
10552
10553 * tree-sra.c (no_accesses_p): Remove.
10554 (no_accesses_representant): Likewise.
10555
10556 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10557
10558 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
10559 consistenly.
10560 (vaba_s16): Likewise.
10561 (vaba_s32): Likewise.
10562 (vaba_u8): Likewise.
10563 (vaba_u16): Likewise.
10564 (vaba_u32): Likewise.
10565 (vabal_high_s8): Likewise.
10566 (vabal_high_s16): Likewise.
10567 (vabal_high_s32): Likewise.
10568 (vabal_high_u8): Likewise.
10569 (vabal_high_u16): Likewise.
10570 (vabal_high_u32): Likewise.
10571 (vabal_s8): Likewise.
10572 (vabal_s16): Likewise.
10573 (vabal_s32): Likewise.
10574 (vabal_u8): Likewise.
10575 (vabal_u16): Likewise.
10576 (vabal_u32): Likewise.
10577 (vabaq_s8): Likewise.
10578 (vabaq_s16): Likewise.
10579 (vabaq_s32): Likewise.
10580 (vabaq_u8): Likewise.
10581 (vabaq_u16): Likewise.
10582 (vabaq_u32): Likewise.
10583 (vabd_s8): Likewise.
10584 (vabd_s16): Likewise.
10585 (vabd_s32): Likewise.
10586 (vabd_u8): Likewise.
10587 (vabd_u16): Likewise.
10588 (vabd_u32): Likewise.
10589 (vabdl_high_s8): Likewise.
10590 (vabdl_high_s16): Likewise.
10591 (vabdl_high_s32): Likewise.
10592 (vabdl_high_u8): Likewise.
10593 (vabdl_high_u16): Likewise.
10594 (vabdl_high_u32): Likewise.
10595 (vabdl_s8): Likewise.
10596 (vabdl_s16): Likewise.
10597 (vabdl_s32): Likewise.
10598 (vabdl_u8): Likewise.
10599 (vabdl_u16): Likewise.
10600 (vabdl_u32): Likewise.
10601 (vabdq_s8): Likewise.
10602 (vabdq_s16): Likewise.
10603 (vabdq_s32): Likewise.
10604 (vabdq_u8): Likewise.
10605 (vabdq_u16): Likewise.
10606 (vabdq_u32): Likewise.
10607 (vaddlv_s8): Likewise.
10608 (vaddlv_s16): Likewise.
10609 (vaddlv_u8): Likewise.
10610 (vaddlv_u16): Likewise.
10611 (vaddlvq_s8): Likewise.
10612 (vaddlvq_s16): Likewise.
10613 (vaddlvq_s32): Likewise.
10614 (vaddlvq_u8): Likewise.
10615 (vaddlvq_u16): Likewise.
10616 (vaddlvq_u32): Likewise.
10617 (vcvtx_f32_f64): Likewise.
10618 (vcvtx_high_f32_f64): Likewise.
10619 (vcvtxd_f32_f64): Likewise.
10620 (vmla_n_f32): Likewise.
10621 (vmla_n_s16): Likewise.
10622 (vmla_n_s32): Likewise.
10623 (vmla_n_u16): Likewise.
10624 (vmla_n_u32): Likewise.
10625 (vmla_s8): Likewise.
10626 (vmla_s16): Likewise.
10627 (vmla_s32): Likewise.
10628 (vmla_u8): Likewise.
10629 (vmla_u16): Likewise.
10630 (vmla_u32): Likewise.
10631 (vmlal_high_n_s16): Likewise.
10632 (vmlal_high_n_s32): Likewise.
10633 (vmlal_high_n_u16): Likewise.
10634 (vmlal_high_n_u32): Likewise.
10635 (vmlal_high_s8): Likewise.
10636 (vmlal_high_s16): Likewise.
10637 (vmlal_high_s32): Likewise.
10638 (vmlal_high_u8): Likewise.
10639 (vmlal_high_u16): Likewise.
10640 (vmlal_high_u32): Likewise.
10641 (vmlal_n_s16): Likewise.
10642 (vmlal_n_s32): Likewise.
10643 (vmlal_n_u16): Likewise.
10644 (vmlal_n_u32): Likewise.
10645 (vmlal_s8): Likewise.
10646 (vmlal_s16): Likewise.
10647 (vmlal_s32): Likewise.
10648 (vmlal_u8): Likewise.
10649 (vmlal_u16): Likewise.
10650 (vmlal_u32): Likewise.
10651 (vmlaq_n_f32): Likewise.
10652 (vmlaq_n_s16): Likewise.
10653 (vmlaq_n_s32): Likewise.
10654 (vmlaq_n_u16): Likewise.
10655 (vmlaq_n_u32): Likewise.
10656 (vmlaq_s8): Likewise.
10657 (vmlaq_s16): Likewise.
10658 (vmlaq_s32): Likewise.
10659 (vmlaq_u8): Likewise.
10660 (vmlaq_u16): Likewise.
10661 (vmlaq_u32): Likewise.
10662 (vmls_n_f32): Likewise.
10663 (vmls_n_s16): Likewise.
10664 (vmls_n_s32): Likewise.
10665 (vmls_n_u16): Likewise.
10666 (vmls_n_u32): Likewise.
10667 (vmls_s8): Likewise.
10668 (vmls_s16): Likewise.
10669 (vmls_s32): Likewise.
10670 (vmls_u8): Likewise.
10671 (vmls_u16): Likewise.
10672 (vmls_u32): Likewise.
10673 (vmlsl_high_n_s16): Likewise.
10674 (vmlsl_high_n_s32): Likewise.
10675 (vmlsl_high_n_u16): Likewise.
10676 (vmlsl_high_n_u32): Likewise.
10677 (vmlsl_high_s8): Likewise.
10678 (vmlsl_high_s16): Likewise.
10679 (vmlsl_high_s32): Likewise.
10680 (vmlsl_high_u8): Likewise.
10681 (vmlsl_high_u16): Likewise.
10682 (vmlsl_high_u32): Likewise.
10683 (vmlsl_n_s16): Likewise.
10684 (vmlsl_n_s32): Likewise.
10685 (vmlsl_n_u16): Likewise.
10686 (vmlsl_n_u32): Likewise.
10687 (vmlsl_s8): Likewise.
10688 (vmlsl_s16): Likewise.
10689 (vmlsl_s32): Likewise.
10690 (vmlsl_u8): Likewise.
10691 (vmlsl_u16): Likewise.
10692 (vmlsl_u32): Likewise.
10693 (vmlsq_n_f32): Likewise.
10694 (vmlsq_n_s16): Likewise.
10695 (vmlsq_n_s32): Likewise.
10696 (vmlsq_n_u16): Likewise.
10697 (vmlsq_n_u32): Likewise.
10698 (vmlsq_s8): Likewise.
10699 (vmlsq_s16): Likewise.
10700 (vmlsq_s32): Likewise.
10701 (vmlsq_u8): Likewise.
10702 (vmlsq_u16): Likewise.
10703 (vmlsq_u32): Likewise.
10704 (vmovl_high_s8): Likewise.
10705 (vmovl_high_s16): Likewise.
10706 (vmovl_high_s32): Likewise.
10707 (vmovl_high_u8): Likewise.
10708 (vmovl_high_u16): Likewise.
10709 (vmovl_high_u32): Likewise.
10710 (vmovl_s8): Likewise.
10711 (vmovl_s16): Likewise.
10712 (vmovl_s32): Likewise.
10713 (vmovl_u8): Likewise.
10714 (vmovl_u16): Likewise.
10715 (vmovl_u32): Likewise.
10716 (vmovn_high_s16): Likewise.
10717 (vmovn_high_s32): Likewise.
10718 (vmovn_high_s64): Likewise.
10719 (vmovn_high_u16): Likewise.
10720 (vmovn_high_u32): Likewise.
10721 (vmovn_high_u64): Likewise.
10722 (vmovn_s16): Likewise.
10723 (vmovn_s32): Likewise.
10724 (vmovn_s64): Likewise.
10725 (vmovn_u16): Likewise.
10726 (vmovn_u32): Likewise.
10727 (vmovn_u64): Likewise.
10728 (vmull_high_n_s16): Likewise.
10729 (vmull_high_n_s32): Likewise.
10730 (vmull_high_n_u16): Likewise.
10731 (vmull_high_n_u32): Likewise.
10732 (vmull_high_p8): Likewise.
10733 (vmull_high_s8): Likewise.
10734 (vmull_high_s16): Likewise.
10735 (vmull_high_s32): Likewise.
10736 (vmull_high_u8): Likewise.
10737 (vmull_high_u16): Likewise.
10738 (vmull_high_u32): Likewise.
10739 (vmull_n_s16): Likewise.
10740 (vmull_n_s32): Likewise.
10741 (vmull_n_u16): Likewise.
10742 (vmull_n_u32): Likewise.
10743 (vmull_p8): Likewise.
10744 (vmull_s8): Likewise.
10745 (vmull_s16): Likewise.
10746 (vmull_s32): Likewise.
10747 (vmull_u8): Likewise.
10748 (vmull_u16): Likewise.
10749 (vmull_u32): Likewise.
10750 (vpadal_s8): Likewise.
10751 (vpadal_s16): Likewise.
10752 (vpadal_s32): Likewise.
10753 (vpadal_u8): Likewise.
10754 (vpadal_u16): Likewise.
10755 (vpadal_u32): Likewise.
10756 (vpadalq_s8): Likewise.
10757 (vpadalq_s16): Likewise.
10758 (vpadalq_s32): Likewise.
10759 (vpadalq_u8): Likewise.
10760 (vpadalq_u16): Likewise.
10761 (vpadalq_u32): Likewise.
10762 (vpaddl_s8): Likewise.
10763 (vpaddl_s16): Likewise.
10764 (vpaddl_s32): Likewise.
10765 (vpaddl_u8): Likewise.
10766 (vpaddl_u16): Likewise.
10767 (vpaddl_u32): Likewise.
10768 (vpaddlq_s8): Likewise.
10769 (vpaddlq_s16): Likewise.
10770 (vpaddlq_s32): Likewise.
10771 (vpaddlq_u8): Likewise.
10772 (vpaddlq_u16): Likewise.
10773 (vpaddlq_u32): Likewise.
10774 (vpaddq_s8): Likewise.
10775 (vpaddq_s16): Likewise.
10776 (vpaddq_s32): Likewise.
10777 (vpaddq_s64): Likewise.
10778 (vpaddq_u8): Likewise.
10779 (vpaddq_u16): Likewise.
10780 (vpaddq_u32): Likewise.
10781 (vpaddq_u64): Likewise.
10782 (vqdmulh_n_s16): Likewise.
10783 (vqdmulh_n_s32): Likewise.
10784 (vqdmulhq_n_s16): Likewise.
10785 (vqdmulhq_n_s32): Likewise.
10786 (vqmovn_high_s16): Likewise.
10787 (vqmovn_high_s32): Likewise.
10788 (vqmovn_high_s64): Likewise.
10789 (vqmovn_high_u16): Likewise.
10790 (vqmovn_high_u32): Likewise.
10791 (vqmovn_high_u64): Likewise.
10792 (vqmovun_high_s16): Likewise.
10793 (vqmovun_high_s32): Likewise.
10794 (vqmovun_high_s64): Likewise.
10795 (vqrdmulh_n_s16): Likewise.
10796 (vqrdmulh_n_s32): Likewise.
10797 (vqrdmulhq_n_s16): Likewise.
10798 (vqrdmulhq_n_s32): Likewise.
10799 (vrsqrte_u32): Likewise.
10800 (vrsqrteq_u32): Likewise.
10801 (vtst_p8): Likewise.
10802 (vtst_p16): Likewise.
10803 (vtst_p64): Likewise.
10804 (vtstq_p8): Likewise.
10805 (vtstq_p16): Likewise.
10806 (vtstq_p64): Likewise.
10807 (vaddlv_s32): Likewise.
10808 (vaddlv_u32): Likewise.
10809 (vqtbl1_p8): Likewise.
10810 (vqtbl1_s8): Likewise.
10811 (vqtbl1_u8): Likewise.
10812 (vqtbl1q_p8): Likewise.
10813 (vqtbl1q_s8): Likewise.
10814 (vqtbl1q_u8): Likewise.
10815 (vqtbx1_s8): Likewise.
10816 (vqtbx1_u8): Likewise.
10817 (vqtbx1_p8): Likewise.
10818 (vqtbx1q_s8): Likewise.
10819 (vqtbx1q_u8): Likewise.
10820 (vqtbx1q_p8): Likewise.
10821 (vtbl1_s8): Likewise.
10822 (vtbl1_u8): Likewise.
10823 (vtbl1_p8): Likewise.
10824 (vtbl2_s8): Likewise.
10825 (vtbl2_u8): Likewise.
10826 (vtbl2_p8): Likewise.
10827 (vtbl3_s8): Likewise.
10828 (vtbl3_u8): Likewise.
10829 (vtbl3_p8): Likewise.
10830 (vtbl4_s8): Likewise.
10831 (vtbl4_u8): Likewise.
10832 (vtbl4_p8): Likewise.
10833 (vtbx2_s8): Likewise.
10834 (vtbx2_u8): Likewise.
10835 (vtbx2_p8): Likewise.
10836 (vld1_f32): Likewise.
10837 (vld1_f64): Likewise.
10838 (vld1_p8): Likewise.
10839 (vld1_p16): Likewise.
10840 (vld1_p64): Likewise.
10841 (vld1_s8): Likewise.
10842 (vld1_s16): Likewise.
10843 (vld1_s32): Likewise.
10844 (vld1_s64): Likewise.
10845 (vld1_u8): Likewise.
10846 (vld1_u16): Likewise.
10847 (vld1_u32): Likewise.
10848 (vld1_u64): Likewise.
10849 (vld1q_f32): Likewise.
10850 (vld1q_f64): Likewise.
10851 (vld1q_p8): Likewise.
10852 (vld1q_p16): Likewise.
10853 (vld1q_p64): Likewise.
10854 (vld1q_s8): Likewise.
10855 (vld1q_s16): Likewise.
10856 (vld1q_s32): Likewise.
10857 (vld1q_s64): Likewise.
10858 (vld1q_u8): Likewise.
10859 (vld1q_u16): Likewise.
10860 (vld1q_u32): Likewise.
10861 (vld1q_u64): Likewise.
10862 (vpmax_s8): Likewise.
10863 (vpmax_s16): Likewise.
10864 (vpmax_s32): Likewise.
10865 (vpmax_u8): Likewise.
10866 (vpmax_u16): Likewise.
10867 (vpmax_u32): Likewise.
10868 (vpmaxq_s8): Likewise.
10869 (vpmaxq_s16): Likewise.
10870 (vpmaxq_s32): Likewise.
10871 (vpmaxq_u8): Likewise.
10872 (vpmaxq_u16): Likewise.
10873 (vpmaxq_u32): Likewise.
10874 (vpmax_f32): Likewise.
10875 (vpmaxq_f32): Likewise.
10876 (vpmaxq_f64): Likewise.
10877 (vpmaxqd_f64): Likewise.
10878 (vpmaxs_f32): Likewise.
10879 (vpmaxnm_f32): Likewise.
10880 (vpmaxnmq_f32): Likewise.
10881 (vpmaxnmq_f64): Likewise.
10882 (vpmaxnmqd_f64): Likewise.
10883 (vpmaxnms_f32): Likewise.
10884 (vpmin_s8): Likewise.
10885 (vpmin_s16): Likewise.
10886 (vpmin_s32): Likewise.
10887 (vpmin_u8): Likewise.
10888 (vpmin_u16): Likewise.
10889 (vpmin_u32): Likewise.
10890 (vpminq_s8): Likewise.
10891 (vpminq_s16): Likewise.
10892 (vpminq_s32): Likewise.
10893 (vpminq_u8): Likewise.
10894 (vpminq_u16): Likewise.
10895 (vpminq_u32): Likewise.
10896 (vpmin_f32): Likewise.
10897 (vpminq_f32): Likewise.
10898 (vpminq_f64): Likewise.
10899 (vpminqd_f64): Likewise.
10900 (vpmins_f32): Likewise.
10901 (vpminnm_f32): Likewise.
10902 (vpminnmq_f32): Likewise.
10903 (vpminnmq_f64): Likewise.
10904 (vpminnmqd_f64): Likewise.
10905 (vpminnms_f32): Likewise.
10906 (vmla_f32): Likewise.
10907 (vmlaq_f32): Likewise.
10908 (vmlaq_f64): Likewise.
10909 (vmls_f32): Likewise.
10910 (vmlsq_f32): Likewise.
10911 (vmlsq_f64): Likewise.
10912 (vqtbl2_s8): Likewise.
10913 (vqtbl2_u8): Likewise.
10914 (vqtbl2_p8): Likewise.
10915 (vqtbl2q_s8): Likewise.
10916 (vqtbl2q_u8): Likewise.
10917 (vqtbl2q_p8): Likewise.
10918 (vqtbl3_s8): Likewise.
10919 (vqtbl3_u8): Likewise.
10920 (vqtbl3_p8): Likewise.
10921 (vqtbl3q_s8): Likewise.
10922 (vqtbl3q_u8): Likewise.
10923 (vqtbl3q_p8): Likewise.
10924 (vqtbl4_s8): Likewise.
10925 (vqtbl4_u8): Likewise.
10926 (vqtbl4_p8): Likewise.
10927 (vqtbl4q_s8): Likewise.
10928 (vqtbl4q_u8): Likewise.
10929 (vqtbl4q_p8): Likewise.
10930 (vqtbx2_s8): Likewise.
10931 (vqtbx2_u8): Likewise.
10932 (vqtbx2_p8): Likewise.
10933 (vqtbx2q_s8): Likewise.
10934 (vqtbx2q_u8): Likewise.
10935 (vqtbx2q_p8): Likewise.
10936 (vqtbx3_s8): Likewise.
10937 (vqtbx3_u8): Likewise.
10938 (vqtbx3_p8): Likewise.
10939 (vqtbx3q_s8): Likewise.
10940 (vqtbx3q_u8): Likewise.
10941 (vqtbx3q_p8): Likewise.
10942 (vqtbx4_s8): Likewise.
10943 (vqtbx4_u8): Likewise.
10944 (vqtbx4_p8): Likewise.
10945 (vqtbx4q_s8): Likewise.
10946 (vqtbx4q_u8): Likewise.
10947 (vqtbx4q_p8): Likewise.
10948 (vrev16_p8): Likewise.
10949 (vrev16_s8): Likewise.
10950 (vrev16_u8): Likewise.
10951 (vrev16q_p8): Likewise.
10952 (vrev16q_s8): Likewise.
10953 (vrev16q_u8): Likewise.
10954 (vrev32_p8): Likewise.
10955 (vrev32_p16): Likewise.
10956 (vrev32_s8): Likewise.
10957 (vrev32_s16): Likewise.
10958 (vrev32_u8): Likewise.
10959 (vrev32_u16): Likewise.
10960 (vrev32q_p8): Likewise.
10961 (vrev32q_p16): Likewise.
10962 (vrev32q_s8): Likewise.
10963 (vrev32q_s16): Likewise.
10964 (vrev32q_u8): Likewise.
10965 (vrev32q_u16): Likewise.
10966 (vrev64_f32): Likewise.
10967 (vrev64_p8): Likewise.
10968 (vrev64_p16): Likewise.
10969 (vrev64_s8): Likewise.
10970 (vrev64_s16): Likewise.
10971 (vrev64_s32): Likewise.
10972 (vrev64_u8): Likewise.
10973 (vrev64_u16): Likewise.
10974 (vrev64_u32): Likewise.
10975 (vrev64q_f32): Likewise.
10976 (vrev64q_p8): Likewise.
10977 (vrev64q_p16): Likewise.
10978 (vrev64q_s8): Likewise.
10979 (vrev64q_s16): Likewise.
10980 (vrev64q_s32): Likewise.
10981 (vrev64q_u8): Likewise.
10982 (vrev64q_u16): Likewise.
10983 (vrev64q_u32): Likewise.
10984 (vsha1cq_u32): Likewise.
10985 (vsha1mq_u32): Likewise.
10986 (vsha1pq_u32): Likewise.
10987 (vsha1h_u32): Likewise.
10988 (vsha1su0q_u32): Likewise.
10989 (vsha1su1q_u32): Likewise.
10990 (vsha256hq_u32): Likewise.
10991 (vsha256h2q_u32): Likewise.
10992 (vsha256su0q_u32): Likewise.
10993 (vsha256su1q_u32): Likewise.
10994 (vmull_p64): Likewise.
10995 (vmull_high_p64): Likewise.
10996 (vsqrt_f32): Likewise.
10997 (vsqrtq_f32): Likewise.
10998 (vsqrt_f64): Likewise.
10999 (vsqrtq_f64): Likewise.
11000 (vst1_f32): Likewise.
11001 (vst1_f64): Likewise.
11002 (vst1_p8): Likewise.
11003 (vst1_p16): Likewise.
11004 (vst1_p64): Likewise.
11005 (vst1_s8): Likewise.
11006 (vst1_s16): Likewise.
11007 (vst1_s32): Likewise.
11008 (vst1_s64): Likewise.
11009 (vst1_u8): Likewise.
11010 (vst1_u16): Likewise.
11011 (vst1_u32): Likewise.
11012 (vst1_u64): Likewise.
11013 (vst1q_f32): Likewise.
11014 (vst1q_f64): Likewise.
11015 (vst1q_p8): Likewise.
11016 (vst1q_p16): Likewise.
11017 (vst1q_p64): Likewise.
11018 (vst1q_s8): Likewise.
11019 (vst1q_s16): Likewise.
11020 (vst1q_s32): Likewise.
11021 (vst1q_s64): Likewise.
11022 (vst1q_u8): Likewise.
11023 (vst1q_u16): Likewise.
11024 (vst1q_u32): Likewise.
11025 (vst1q_u64): Likewise.
11026 (vst1_s64_x2): Likewise.
11027 (vst1_u64_x2): Likewise.
11028 (vst1_f64_x2): Likewise.
11029 (vst1_s8_x2): Likewise.
11030 (vst1_p8_x2): Likewise.
11031 (vst1_s16_x2): Likewise.
11032 (vst1_p16_x2): Likewise.
11033 (vst1_s32_x2): Likewise.
11034 (vst1_u8_x2): Likewise.
11035 (vst1_u16_x2): Likewise.
11036 (vst1_u32_x2): Likewise.
11037 (vst1_f16_x2): Likewise.
11038 (vst1_f32_x2): Likewise.
11039 (vst1_p64_x2): Likewise.
11040 (vst1q_s8_x2): Likewise.
11041 (vst1q_p8_x2): Likewise.
11042 (vst1q_s16_x2): Likewise.
11043 (vst1q_p16_x2): Likewise.
11044 (vst1q_s32_x2): Likewise.
11045 (vst1q_s64_x2): Likewise.
11046 (vst1q_u8_x2): Likewise.
11047 (vst1q_u16_x2): Likewise.
11048 (vst1q_u32_x2): Likewise.
11049 (vst1q_u64_x2): Likewise.
11050 (vst1q_f16_x2): Likewise.
11051 (vst1q_f32_x2): Likewise.
11052 (vst1q_f64_x2): Likewise.
11053 (vst1q_p64_x2): Likewise.
11054 (vst1_s64_x3): Likewise.
11055 (vst1_u64_x3): Likewise.
11056 (vst1_f64_x3): Likewise.
11057 (vst1_s8_x3): Likewise.
11058 (vst1_p8_x3): Likewise.
11059 (vst1_s16_x3): Likewise.
11060 (vst1_p16_x3): Likewise.
11061 (vst1_s32_x3): Likewise.
11062 (vst1_u8_x3): Likewise.
11063 (vst1_u16_x3): Likewise.
11064 (vst1_u32_x3): Likewise.
11065 (vst1_f16_x3): Likewise.
11066 (vst1_f32_x3): Likewise.
11067 (vst1_p64_x3): Likewise.
11068 (vst1q_s8_x3): Likewise.
11069 (vst1q_p8_x3): Likewise.
11070 (vst1q_s16_x3): Likewise.
11071 (vst1q_p16_x3): Likewise.
11072 (vst1q_s32_x3): Likewise.
11073 (vst1q_s64_x3): Likewise.
11074 (vst1q_u8_x3): Likewise.
11075 (vst1q_u16_x3): Likewise.
11076 (vst1q_u32_x3): Likewise.
11077 (vst1q_u64_x3): Likewise.
11078 (vst1q_f16_x3): Likewise.
11079 (vst1q_f32_x3): Likewise.
11080 (vst1q_f64_x3): Likewise.
11081 (vst1q_p64_x3): Likewise.
11082 (vst2_s64): Likewise.
11083 (vst2_u64): Likewise.
11084 (vst2_f64): Likewise.
11085 (vst2_s8): Likewise.
11086 (vst2_p8): Likewise.
11087 (vst2_s16): Likewise.
11088 (vst2_p16): Likewise.
11089 (vst2_s32): Likewise.
11090 (vst2_u8): Likewise.
11091 (vst2_u16): Likewise.
11092 (vst2_u32): Likewise.
11093 (vst2_f16): Likewise.
11094 (vst2_f32): Likewise.
11095 (vst2_p64): Likewise.
11096 (vst2q_s8): Likewise.
11097 (vst2q_p8): Likewise.
11098 (vst2q_s16): Likewise.
11099 (vst2q_p16): Likewise.
11100 (vst2q_s32): Likewise.
11101 (vst2q_s64): Likewise.
11102 (vst2q_u8): Likewise.
11103 (vst2q_u16): Likewise.
11104 (vst2q_u32): Likewise.
11105 (vst2q_u64): Likewise.
11106 (vst2q_f16): Likewise.
11107 (vst2q_f32): Likewise.
11108 (vst2q_f64): Likewise.
11109 (vst2q_p64): Likewise.
11110 (vst3_s64): Likewise.
11111 (vst3_u64): Likewise.
11112 (vst3_f64): Likewise.
11113 (vst3_s8): Likewise.
11114 (vst3_p8): Likewise.
11115 (vst3_s16): Likewise.
11116 (vst3_p16): Likewise.
11117 (vst3_s32): Likewise.
11118 (vst3_u8): Likewise.
11119 (vst3_u16): Likewise.
11120 (vst3_u32): Likewise.
11121 (vst3_f16): Likewise.
11122 (vst3_f32): Likewise.
11123 (vst3_p64): Likewise.
11124 (vst3q_s8): Likewise.
11125 (vst3q_p8): Likewise.
11126 (vst3q_s16): Likewise.
11127 (vst3q_p16): Likewise.
11128 (vst3q_s32): Likewise.
11129 (vst3q_s64): Likewise.
11130 (vst3q_u8): Likewise.
11131 (vst3q_u16): Likewise.
11132 (vst3q_u32): Likewise.
11133 (vst3q_u64): Likewise.
11134 (vst3q_f16): Likewise.
11135 (vst3q_f32): Likewise.
11136 (vst3q_f64): Likewise.
11137 (vst3q_p64): Likewise.
11138 (vst4_s64): Likewise.
11139 (vst4_u64): Likewise.
11140 (vst4_f64): Likewise.
11141 (vst4_s8): Likewise.
11142 (vst4_p8): Likewise.
11143 (vst4_s16): Likewise.
11144 (vst4_p16): Likewise.
11145 (vst4_s32): Likewise.
11146 (vst4_u8): Likewise.
11147 (vst4_u16): Likewise.
11148 (vst4_u32): Likewise.
11149 (vst4_f16): Likewise.
11150 (vst4_f32): Likewise.
11151 (vst4_p64): Likewise.
11152 (vst4q_s8): Likewise.
11153 (vst4q_p8): Likewise.
11154 (vst4q_s16): Likewise.
11155 (vst4q_p16): Likewise.
11156 (vst4q_s32): Likewise.
11157 (vst4q_s64): Likewise.
11158 (vst4q_u8): Likewise.
11159 (vst4q_u16): Likewise.
11160 (vst4q_u32): Likewise.
11161 (vst4q_u64): Likewise.
11162 (vst4q_f16): Likewise.
11163 (vst4q_f32): Likewise.
11164 (vst4q_f64): Likewise.
11165 (vst4q_p64): Likewise.
11166 (vtbx4_s8): Likewise.
11167 (vtbx4_u8): Likewise.
11168 (vtbx4_p8): Likewise.
11169 (vtrn_f32): Likewise.
11170 (vtrn_p8): Likewise.
11171 (vtrn_p16): Likewise.
11172 (vtrn_s8): Likewise.
11173 (vtrn_s16): Likewise.
11174 (vtrn_s32): Likewise.
11175 (vtrn_u8): Likewise.
11176 (vtrn_u16): Likewise.
11177 (vtrn_u32): Likewise.
11178 (vtrnq_f32): Likewise.
11179 (vtrnq_p8): Likewise.
11180 (vtrnq_p16): Likewise.
11181 (vtrnq_s8): Likewise.
11182 (vtrnq_s16): Likewise.
11183 (vtrnq_s32): Likewise.
11184 (vtrnq_u8): Likewise.
11185 (vtrnq_u16): Likewise.
11186 (vtrnq_u32): Likewise.
11187 (vrsqrte_f16): Likewise.
11188 (vrsqrteq_f16): Likewise.
11189 (vsqrt_f16): Likewise.
11190 (vsqrtq_f16): Likewise.
11191 (vabd_f16): Likewise.
11192 (vabdq_f16): Likewise.
11193 (vpadd_f16): Likewise.
11194 (vpaddq_f16): Likewise.
11195 (vpmax_f16): Likewise.
11196 (vpmaxq_f16): Likewise.
11197 (vpmaxnm_f16): Likewise.
11198 (vpmaxnmq_f16): Likewise.
11199 (vpmin_f16): Likewise.
11200 (vpminq_f16): Likewise.
11201 (vpminnm_f16): Likewise.
11202 (vpminnmq_f16): Likewise.
11203 (vrsqrts_f16): Likewise.
11204 (vrsqrtsq_f16): Likewise.
11205
11206 2019-09-25 Richard Biener <rguenther@suse.de>
11207
11208 PR tree-optimization/91896
11209 * tree-vect-loop.c (vectorizable_reduction): The single
11210 def-use cycle optimization cannot apply when there's more
11211 than one pattern stmt involved.
11212
11213 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11214
11215 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11216 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11217 (reload_macho_picbase_<mode>): Likewise.
11218
11219 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11220
11221 * config/rs6000/rs6000.md: Move darwin.md include until
11222 after the definition of the mode iterators.
11223
11224 2019-09-23 Martin Sebor <msebor@redhat.com>
11225
11226 PR tree-optimization/91570
11227 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11228 non-constant minlen, maxlen and maxbound.
11229
11230 2019-09-24 Richard Biener <rguenther@suse.de>
11231
11232 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11233 Rename to...
11234 (_stmt_vec_info::cond_reduc_code): ... this.
11235 (_stmt_vec_info::induc_cond_initial_val): Add.
11236 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11237 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11238 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11239 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11240 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11241 the reduction code.
11242 (vect_create_epilog_for_reduction): Drop special
11243 induction condition reduction params, pass in reduction code
11244 and simplify.
11245 (vectorizable_reduction): Perform condition reduction kind
11246 selection only at analysis time. Adjust passing on state.
11247
11248 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11249
11250 * config/aarch64/aarch64.md (mov<mode>): Don't call
11251 aarch64_split_dimode_const_store on volatile MEM.
11252
11253 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11254
11255 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11256 Update hwcap string for fp16fml.
11257
11258 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11259
11260 PR middle-end/91866
11261 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11262 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11263
11264 2019-09-24 Martin Liska <mliska@suse.cz>
11265
11266 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11267 instead of if-elseif-elseif-...
11268 * gimple-expr.c (extract_ops_from_tree): Likewise.
11269 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11270 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11271
11272 2019-09-24 Martin Jambor <mjambor@suse.cz>
11273
11274 PR ipa/91831
11275 * ipa-param-manipulation.c (carry_over_param): Make a method of
11276 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11277 in case of a context mismatch.
11278 (ipa_param_body_adjustments::common_initialization): Adjust call to
11279 carry_over_param.
11280 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11281 private method carry_over_param.
11282
11283 2019-09-24 Martin Jambor <mjambor@suse.cz>
11284
11285 PR ipa/91832
11286 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11287
11288 2019-09-24 Richard Biener <rguenther@suse.de>
11289
11290 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11291 base.
11292
11293 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11294
11295 * config/arm/t-arm (arm-builtins.o): Add dependency on
11296 arm_acle_builtins.def.
11297
11298 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11299
11300 PR target/91823
11301 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11302 canonical CONST_INTs. Use gen_rtvec.
11303
11304 2019-09-23 Richard Biener <rguenther@suse.de>
11305
11306 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11307 avoid adjusting by + 0 or * 1.
11308 (vect_create_epilog_for_reduction): Get reduction code only
11309 when necessary. Deal with adjustment_def only when necessary.
11310
11311 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11312
11313 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11314 memmodel index.
11315
11316 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11317
11318 PR ipa/91835
11319 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11320 "ipa-sra".
11321
11322 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11323
11324 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11325 code. Merge code blocks with common conditionals. Use declared
11326 macro instead of a magic number for PIC level.
11327
11328 2019-09-21 Martin Sebor <msebor@redhat.com>
11329
11330 PR middle-end/91830
11331 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11332 Simplify computation of the offset of the referenced subobject.
11333
11334 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
11335
11336 * config/darwin.c (machopic_legitimize_pic_address): Check
11337 for lra not reload.
11338
11339 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11340
11341 * ira-conflicts.c (can_use_same_reg_p): New function.
11342 (process_reg_shuffles): Take an insn parameter. Ignore cases
11343 in which input operand op_num could seemingly never be allocated
11344 to the same register as the destination.
11345 (add_insn_allocno_copies): Update call to process_reg_shuffles.
11346
11347 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11348
11349 * simplify-rtx.c (neg_const_int): Replace with...
11350 (neg_poly_int_rtx): ...this new function.
11351 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11352 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11353 (simplify_plus_minus): Likewise for constant terms here.
11354
11355 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
11356
11357 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11358 HOST_WIDE_PRINT_UNSIGNED.
11359
11360 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
11361
11362 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11363 character.
11364
11365 2019-09-20 Maya Rashish <coypu@sdf.org>
11366
11367 PR target/86811
11368 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11369 Define to speculation_safe_value_not_needed.
11370
11371 2019-09-20 Richard Biener <rguenther@suse.de>
11372 Uros Bizjak <ubizjak@gmail.com>
11373
11374 PR target/91814
11375 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11376 previous change.
11377 (general_scalar_chain::convert_op): Force not suitable memory
11378 operands to a register.
11379
11380 2019-09-20 Richard Biener <rguenther@suse.de>
11381
11382 PR tree-optimization/91821
11383 * tree-vect-loop.c (check_reduction_path): Check we can compute
11384 reduc_idx.
11385 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
11386 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
11387 operands in canonical order.
11388 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11389 STMT_VINFO_REDUC_IDX.
11390 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
11391 (STMT_VINFO_REDUC_IDX): Likewise.
11392
11393 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
11394
11395 PR target/91269
11396 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11397
11398 2019-09-20 Richard Biener <rguenther@suse.de>
11399
11400 PR tree-optimization/91822
11401 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
11402 parameter.
11403 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
11404 for reduc_index in nested cycles, adjust vectorizable_condition
11405 calls.
11406 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
11407 parameter.
11408 (vect_analyze_stmt): Adjust.
11409 (vect_transform_stmt): Likewise.
11410
11411 2019-09-20 Richard Biener <rguenther@suse.de>
11412
11413 PR target/91767
11414 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
11415 Ensure there's a sequence point between allocating the new register
11416 and passing a reference to a reg via regno_reg_rtx.
11417
11418 2019-09-20 Martin Jambor <mjambor@suse.cz>
11419
11420 * coretypes.h (cgraph_edge): Declare.
11421 * ipa-param-manipulation.c: Rewrite.
11422 * ipa-param-manipulation.h: Likewise.
11423 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
11424 (OBJS): Added ipa-sra.o.
11425 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
11426 and ref_p, added fields param_adjustments and performed_splits.
11427 (struct cgraph_clone_info): Remove ags_to_skip and
11428 combined_args_to_skip, new field param_adjustments.
11429 (cgraph_node::create_clone): Changed parameters to use
11430 ipa_param_adjustments.
11431 (cgraph_node::create_virtual_clone): Likewise.
11432 (cgraph_node::create_virtual_clone_with_body): Likewise.
11433 (tree_function_versioning): Likewise.
11434 (cgraph_build_function_type_skip_args): Removed.
11435 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
11436 using ipa_param_adjustments.
11437 (clone_of_p): Likewise.
11438 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
11439 (build_function_decl_skip_args): Likewise.
11440 (duplicate_thunk_for_node): Adjust parameters using
11441 ipa_param_body_adjustments, copy param_adjustments instead of
11442 args_to_skip.
11443 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
11444 (cgraph_node::create_virtual_clone): Likewise.
11445 (cgraph_node::create_version_clone_with_body): Likewise.
11446 (cgraph_materialize_clone): Likewise.
11447 (symbol_table::materialize_all_clones): Likewise.
11448 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
11449 ipa_replace_map check.
11450 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
11451 (initialize_node_lattices): Make aware that some parameters might have
11452 already been removed.
11453 (want_remove_some_param_p): New function.
11454 (create_specialized_node): Convert to using ipa_param_adjustments and
11455 deal with possibly pre-existing adjustments.
11456 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
11457 (output_node_opt_summary): Do not stream removed fields. Stream
11458 parameter adjustments instead of argumetns to skip.
11459 (input_node_opt_summary): Likewise.
11460 (input_node_opt_summary): Likewise.
11461 * lto-section-in.c (lto_section_name): Added ipa-sra section.
11462 * lto-streamer.h (lto_section_type): Likewise.
11463 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
11464 param_body_adjs.
11465 (copy_decl_to_var): Declare.
11466 * tree-inline.c (update_clone_info): Do not remap old_tree.
11467 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
11468 statements, walk all extra generated statements and remap their
11469 operands.
11470 (redirect_all_calls): Add killed SSA names to a hash set.
11471 (remap_ssa_name): Do not remap killed SSA names.
11472 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
11473 half of functionality moved to ipa_param_body_adjustments.
11474 (copy_decl_to_var): Make exported.
11475 (copy_body): Destroy killed_new_ssa_names hash set.
11476 (expand_call_inline): Remap performed splits.
11477 (update_clone_info): Likewise.
11478 (tree_function_versioning): Simplify tree_map processing. Updated to
11479 accept ipa_param_adjustments and use ipa_param_body_adjustments.
11480 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
11481 for the new interface.
11482 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
11483 (simd_clone_compute_base_data_type): Likewise.
11484 (simd_clone_init_simd_arrays): Adjust for the new interface.
11485 (simd_clone_adjust_argument_types): Likewise.
11486 (struct modify_stmt_info): Likewise.
11487 (ipa_simd_modify_stmt_ops): Likewise.
11488 (ipa_simd_modify_function_body): Likewise.
11489 (simd_clone_adjust): Likewise.
11490 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
11491 (type_internals_preclude_sra_p): Make public.
11492 * tree-sra.h: New file.
11493 * ipa-inline-transform.c (save_inline_function_body): Update to
11494 refelct new tree_function_versioning signature.
11495 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
11496 ipa_param_adjustments to get current parameter indices.
11497 (ipcp_modif_dom_walker::before_dom_children): Likewise.
11498 (ipcp_update_bits): Likewise.
11499 (ipcp_update_vr): Likewise.
11500 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
11501 * ipa-sra.c: New file.
11502 * multiple_target.c (create_target_clone): Update to reflet new type
11503 of create_version_clone_with_body.
11504 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
11505 tree_function_versioning.
11506 (modify_function): Update to reflect new type of
11507 tree_function_versioning.
11508 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
11509 * passes.def: Remove old IPA-SRA and add new one.
11510 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
11511 (make_pass_ipa_sra): Declare.
11512 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
11513 ipa_sra_retvalues.
11514 * doc/invoke.texi (ipa-sra-max-replacements): New.
11515
11516 2019-09-19 Martin Sebor <msebor@redhat.com>
11517
11518 PR middle-end/91631
11519 * builtins.c (component_size): Correct trailing array computation,
11520 rename to component_ref_size and move...
11521 (compute_objsize): Adjust.
11522 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
11523 (builtin_access::strict): Do not consider memmove.
11524 (builtin_access::write_off): New function.
11525 (builtin_memref::builtin_memref): Initialize refsize.
11526 (builtin_memref::set_base_and_offset): Adjust refoff and compute
11527 refsize.
11528 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
11529 Handle refsize.
11530 (builtin_access::builtin_access): Initialize dstoff to destination
11531 refeence offset here instead of in maybe_diag_overlap. Adjust
11532 referencess even to unrelated objects. Adjust sizrange of bounded
11533 string functions to reflect bound. For strcat, adjust destination
11534 sizrange by that of source.
11535 (builtin_access::strcat_overlap): Adjust offsets and sizes
11536 to reflect the increase in destination sizrange above.
11537 (builtin_access::overlap): Do not set dstoff here but instead
11538 in builtin_access::builtin_access.
11539 (check_bounds_or_overlap): Use builtin_access::write_off.
11540 (maybe_diag_access_bounds): Add argument. Add informational notes.
11541 (dump_builtin_memref, dump_builtin_access): New functions.
11542 * tree.c (component_ref_size): ...to here.
11543 * tree.h (component_ref_size): Declare.
11544 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
11545 nul in the size of the source string.
11546
11547 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
11548
11549 PR c/67224
11550 * doc/cpp.texi: Document support for extended characters in
11551 identifiers.
11552 * doc/cppopts.texi: Likewise.
11553
11554 2019-09-19 Richard Biener <rguenther@suse.de>
11555
11556 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
11557 (check_reduction_path): New overload having the path as result.
11558 (vect_is_simple_reduction): From the detected reduction
11559 path build a SLP reduction chain if possible.
11560
11561 2019-09-19 Richard Biener <rguenther@suse.de>
11562
11563 PR target/91814
11564 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
11565 Force operand to a register if it isn't nonimmediate_operand.
11566
11567 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
11568
11569 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
11570 * config/arm/iterators.md (optab): Add and, ior, xor entries.
11571 (logical_op): Remove code attribute.
11572 (logical_OP): Likewise.
11573
11574 2019-09-19 Martin Liska <mliska@suse.cz>
11575
11576 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
11577 Use proper casting.
11578
11579 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
11580
11581 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
11582 registers with %R.
11583
11584 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
11585 for NE comparison of TImode values.
11586 (aarch64_emit_load_exclusive): Add support for TImode.
11587 (aarch64_emit_store_exclusive): Likewise.
11588 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
11589 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
11590 Change iterator from ALLI to ALLI_TI.
11591 (@atomic_compare_and_swap<JUST_TI>): New.
11592 (@atomic_compare_and_swap<JUST_TI>_lse): New.
11593 (aarch64_load_exclusive_pair): New.
11594 (aarch64_store_exclusive_pair): New.
11595 * config/aarch64/iterators.md (JUST_TI): New.
11596
11597 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
11598 strong_zero_p for aarch64_track_speculation; unify some code paths;
11599 use aarch64_gen_compare_reg instead of open-coding.
11600
11601 * config/aarch64/aarch64.opt (-moutline-atomics): New.
11602 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
11603 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
11604 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
11605 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
11606 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
11607 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
11608 (atomic_<atomic_op><ALLI>): Likewise.
11609 (atomic_fetch_<atomic_op><ALLI>): Likewise.
11610 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
11611 * doc/invoke.texi: Document -moutline-atomics.
11612
11613 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
11614
11615 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
11616 trivial predicate for condition branch.
11617 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
11618 for switch case.
11619 (compute_bb_predicates): Update predicate based on post-dominating
11620 relationship.
11621 (analyze_function_body): Calculate post-dominating information.
11622
11623 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11624
11625 * tree-vectorizer.h (vectorizable_condition): Take an int
11626 reduction index instead of a boolean flag.
11627 * tree-vect-stmts.c (vectorizable_condition): Likewise.
11628 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
11629 reductions if the reduction accumulator is the "then" rather
11630 than the "else" value.
11631 (vect_analyze_stmt): Update call accordingly.
11632 (vect_transform_stmt): Likewise.
11633 * tree-vect-loop.c (vectorizable_reduction): Likewise,
11634 asserting that the index is > 0.
11635
11636 2019-09-19 Martin Liska <mliska@suse.cz>
11637
11638 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
11639 (sort_congruence_classes_by_decl_uid): Likewise.
11640 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
11641 easier sorting.
11642 (sem_item_optimizer::merge_classes): Likewise.
11643
11644 2019-09-19 Richard Biener <rguenther@suse.de>
11645
11646 PR tree-optimization/91812
11647 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
11648 volatile loads.
11649
11650 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11651
11652 * defaults.h (TARGET_UNIT): New macro.
11653 (target_unit): New type.
11654 * rtl.h (native_encode_rtx, native_decode_rtx)
11655 (native_decode_vector_rtx, subreg_size_lsb): Declare.
11656 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
11657 * rtlanal.c (subreg_lsb_1): Delete.
11658 (subreg_size_lsb): New function.
11659 * simplify-rtx.c: Include rtx-vector-builder.h
11660 (simplify_immed_subreg): Delete.
11661 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
11662 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
11663 functions.
11664 (simplify_subreg): Use them.
11665 (test_vector_subregs_modes, test_vector_subregs_repeating)
11666 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
11667 (test_vector_subregs): New functions.
11668 (test_vector_ops): Call test_vector_subregs for integer vector
11669 modes with at least 2 elements.
11670
11671 2019-09-19 Richard Biener <rguenther@suse.de>
11672
11673 * tree-parloops.c (parloops_is_slp_reduction): Do not set
11674 LOOP_VINFO_OPERANDS_SWAPPED.
11675 (parloops_is_simple_reduction): Likewise.
11676 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
11677 initialize operands_swapped.
11678 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
11679 (vect_is_slp_reduction): Do not swap operands.
11680 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
11681 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
11682
11683 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
11684
11685 PR target/87007
11686 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
11687 Add avx_partial_xmm_update.
11688
11689 2019-09-18 Jim Wilson <jimw@sifive.com>
11690
11691 PR target/91683
11692 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
11693 (riscv_move_integer): Likewise.
11694 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
11695 riscv_move_integer arg.
11696 (riscv_legitimize_move): Likewise.
11697 (riscv_force_temporary): New parameter in_splitter. Don't call
11698 force_reg if true.
11699 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
11700 arg.
11701 (riscv_add_offset): Likewise.
11702 (riscv_split_symbol): New parameter in_splitter. Pass to
11703 riscv_force_temporary.
11704 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
11705 arg.
11706 (riscv_move_integer): New parameter in_splitter. New local
11707 can_create_psuedo. Don't call riscv_split_integer or force_reg when
11708 in_splitter TRUE.
11709 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
11710 riscv_split_symbol, and riscv_force_temporary args.
11711 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
11712 riscv_move_integer arg.
11713 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
11714
11715 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11716
11717 PR target/90878
11718 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
11719 hard register store cost to 6.
11720
11721 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11722
11723 PR target/91446
11724 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
11725 pseudo register store cost from 3 to 6 to make it the same as
11726 QImode and HImode.
11727
11728 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11729
11730 PR target/91738
11731 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
11732 (one_cmpldi2): Likewise.
11733 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
11734 of the constant parts is simple.
11735 * config/arm/iterators.md (LOGICAL): Add new code iterator.
11736 (logical_op): Add new code attribute.
11737 (logical_OP): Likewise.
11738 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
11739 (arm_iordi_operand): Add predicate.
11740 (arm_xordi_operand): Add predicate.
11741
11742 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11743
11744 * config/arm/arm.md (maddsidi4): Remove expander.
11745 (mulsidi3adddi): Remove pattern.
11746 (mulsidi3adddi_v6): Likewise.
11747 (mulsidi3_nov6): Likewise.
11748 (mulsidi3_v6): Likewise.
11749 (umulsidi3): Remove expander.
11750 (umulsidi3_nov6): Remove pattern.
11751 (umulsidi3_v6): Likewise.
11752 (umulsidi3adddi): Likewise.
11753 (umulsidi3adddi_v6): Likewise.
11754 (<Us>mulsidi3): Add combined expander.
11755 (<Us>maddsidi4): Likewise.
11756 (<US>mull): Add combined umull and smull pattern.
11757 (<US>mlal): Likewise.
11758 * config/arm/iterators.md (Us): Add new iterator.
11759
11760 2019-09-18 Richard Biener <rguenther@suse.de>
11761
11762 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
11763 swapping.
11764 (vectorize_fold_left_reduction): Remove assert.
11765 (vectorizable_reduction): Also expect COND_EXPR non-reduction
11766 operand in position 2. Remove assert.
11767
11768 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11769
11770 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
11771 (smulsi3_highpart_nov6): Remove pattern.
11772 (smulsi3_highpart_v6): Likewise.
11773 (umulsi3_highpart): Likewise.
11774 (umulsi3_highpart_nov6): Likewise.
11775 (umulsi3_highpart_v6): Likewise.
11776 (<US>mull_high): Add new combined multiply pattern.
11777
11778 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11779
11780 * config/arm/arm.md (arm_mulsi3): Remove pattern.
11781 (arm_mulsi3_v6): Likewise.
11782 (mulsi3addsi_v6): Likewise.
11783 (mulsi3subsi): Likewise.
11784 (mul): Add new multiply pattern.
11785 (mla): Likewise.
11786 (mls): Likewise.
11787
11788 2019-09-18 Richard Biener <rguenther@suse.de>
11789
11790 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
11791 (parloops_valid_reduction_input_p): Copy from
11792 valid_reduction_input_p.
11793 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
11794 (parloops_needs_fold_left_reduction_p): Copy from
11795 needs_fold_left_reduction_p.
11796 (parloops_is_simple_reduction): Copy from
11797 vect_is_simple_reduction.
11798 (parloops_force_simple_reduction): Copy from
11799 vect_force_simple_reduction.
11800 (gather_scalar_reductions): Adjust.
11801 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
11802 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
11803
11804 2019-09-18 Richard Biener <rguenther@suse.de>
11805
11806 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
11807 * tree-vect-loop.c (get_initial_def_for_reduction): Make
11808 static.
11809 (vect_create_epilog_for_reduction): Remove dead code.
11810
11811 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11812
11813 * varasm.c (assemble_real): Generate canonical const_ints.
11814
11815 2019-09-18 Richard Biener <rguenther@suse.de>
11816
11817 PR lto/91763
11818 * lto-streamer-in.c (input_eh_regions): Move EH init to
11819 lto_materialize_function.
11820 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
11821 Likewise.
11822
11823 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11824
11825 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
11826 are INTEGER_CSTs.
11827
11828 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11829
11830 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
11831 of checking specifically for INTEGER_CST.
11832
11833 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11834
11835 * stor-layout.c (compute_record_mode): Operate on poly_uint64
11836 sizes instead of uhwi sizes.
11837
11838 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11839
11840 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
11841 (add_const_value_attribute): Handle CONST_POLY_INT.
11842
11843 2019-09-18 Martin Liska <mliska@suse.cz>
11844
11845 * dbgcnt.def (store_merging): New counter.
11846 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
11847 Use it in store merging.
11848
11849 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11850
11851 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
11852 function.
11853 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11854 * config/arm/arm.c (arm_sched_variable_issue): New function.
11855 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11856
11857 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11858
11859 * config/arm/types.md (no_reservation): New reservation.
11860 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
11861 no_insn here.
11862 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
11863 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
11864 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
11865 * config/arm/arm1020e.md (1020alu_op): Likewise.
11866 * config/arm/arm1026ejs.md (alu_op): Likewise.
11867 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11868 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11869 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11870 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
11871 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11872 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11873 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
11874 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
11875 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11876 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11877 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11878 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
11879 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
11880 * config/arm/fa526.md (526_alu_op): Likewise.
11881 * config/arm/fa606te.md (606te_alu_op): Likewise.
11882 * config/arm/fa626te.md (626te_alu_op): Likewise.
11883 * config/arm/fa726te.md (726te_alu_op): Likewise.
11884 * config/arm/xgene1.md (xgene1_nop): Likewise.
11885
11886 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11887
11888 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
11889 "no_insn" to "branch".
11890
11891 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11892
11893 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
11894
11895 2019-09-17 Richard Biener <rguenther@suse.de>
11896
11897 PR debug/91772
11898 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
11899 was missing generate locations only once.
11900
11901 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
11902
11903 PR ipa/91089
11904 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
11905 option.
11906 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
11907 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
11908 for switch default case using range analysis information.
11909
11910 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
11911
11912 PR target/91749
11913 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
11914 mode attributed is supported by FDPIC.
11915
11916 2019-09-17 Richard Biener <rguenther@suse.de>
11917
11918 PR tree-optimization/91790
11919 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
11920 use the correct DR for setting up realignment.
11921
11922 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
11923
11924 PR target/91719
11925 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
11926 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
11927 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
11928 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11929
11930 2019-09-16 Jason Merrill <jason@redhat.com>
11931
11932 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
11933
11934 2019-09-16 Martin Liska <mliska@suse.cz>
11935
11936 * gimple-fold.c (or_comparisons_1): Remove rules moved
11937 to ...
11938 * match.pd: ... here.
11939
11940 2019-09-16 Martin Liska <mliska@suse.cz>
11941
11942 * gimple-fold.c (or_comparisons_1): Remove rules
11943 moved to ...
11944 * match.pd: ... here.
11945
11946 2019-09-16 Martin Liska <mliska@suse.cz>
11947
11948 * genmatch.c (dt_node::append_simplify): Do not print
11949 warning when we have duplicate patterns belonging
11950 to a same simplify rule.
11951 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
11952 (maybe_fold_comparisons_from_match_pd): Handle
11953 tcc_comparison as a results.
11954 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
11955
11956 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11957 Qi Feng <ffengqi@linux.ibm.com>
11958
11959 PR middle-end/88784
11960 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
11961 (x > y && x == XXX_MIN): Optimize into 'false'.
11962 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
11963 (x < y && x != XXX_MAX): Optimize into 'x < y'.
11964 (x < y && x == XXX_MAX): Optimize into 'false'.
11965 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
11966 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
11967 (x <= y || x != XXX_MIN): Optimize into 'true'.
11968 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
11969 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
11970 (x >= y || x != XXX_MAX): Optimize into 'true'.
11971 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
11972
11973 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11974 Martin Liska <mliska@suse.cz>
11975
11976 * gimple-fold.c (and_comparisons_1): Add type as first
11977 argument.
11978 (and_var_with_comparison): Likewise.
11979 (and_var_with_comparison_1): Likewise.
11980 (or_comparisons_1): Likewise.
11981 (or_var_with_comparison): Likewise.
11982 (or_var_with_comparison_1): Likewise.
11983 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
11984 (maybe_fold_or_comparisons): Likewise.
11985 (maybe_fold_comparisons_from_match_pd): New.
11986 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
11987 (maybe_fold_or_comparisons): Likewise.
11988 * gimple.c (gimple_size): Make it public and add num_ops argument.
11989 (gimple_init): New function.
11990 (gimple_alloc): Call gimple_init.
11991 * gimple.h (gimple_size): New.
11992 (gimple_init): Likewise.
11993 * tree-if-conv.c (fold_or_predicates): Pass type.
11994 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11995 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
11996 (optimize_vec_cond_expr): Likewise.
11997 (ovce_extract_ops): Return type of conditional expression.
11998 * tree-ssanames.c (init_ssa_name_imm_use): New.
11999 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12000 * tree-ssanames.h (init_ssa_name_imm_use): New.
12001
12002 2019-09-16 Richard Biener <rguenther@suse.de>
12003
12004 PR tree-optimization/91756
12005 PR tree-optimization/87132
12006 * tree-ssa-alias.h (enum translate_flags): New.
12007 (get_continuation_for_phi): Use it instead of simple bool flag.
12008 (walk_non_aliased_vuses): Likewise.
12009 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12010 (get_continuation_for_phi): When looking across backedges only
12011 disallow valueization.
12012 (walk_non_aliased_vuses): Adjust.
12013 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12014 if requested.
12015
12016 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12017
12018 PR middle-end/80791
12019 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12020 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12021 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12022 * target.def (have_count_reg_decr_p): New hook.
12023 (doloop_cost_for_generic): Likewise.
12024 (doloop_cost_for_address): Likewise.
12025 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12026 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12027 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12028 * doc/tm.texi: Regenerate.
12029 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12030 addend.
12031 (record_group): Init doloop_p.
12032 (add_candidate_1): Add optional argument doloop, change the handlings
12033 accordingly.
12034 (add_candidate): Likewise.
12035 (generic_predict_doloop_p): Update attribute.
12036 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12037 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12038 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12039 MIN_EXPR.
12040 (get_computation_cost): Update for doloop IV cand extra cost.
12041 (determine_group_iv_cost_cond): Update for doloop IV cand.
12042 (determine_iv_cost): Likewise.
12043 (ivopts_estimate_reg_pressure): Likewise.
12044 (may_eliminate_iv): Update handlings for doloop IV cand.
12045 (add_iv_candidate_for_doloop): New function.
12046 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12047 (iv_ca_set_no_cp): Update for doloop IV cand.
12048 (iv_ca_set_cp): Likewise.
12049 (iv_ca_dump): Dump register cost.
12050 (find_doloop_use): New function.
12051 (analyze_and_mark_doloop_use): Likewise.
12052 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12053
12054 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12055
12056 PR middle-end/91708
12057 * cse.c (cse_insn): Do not replace anything with a
12058 MEM.
12059
12060 2019-09-13 Ian Lance Taylor <iant@golang.org>
12061
12062 * doc/invoke.texi (Optimize Options): Fix typo.
12063
12064 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12065
12066 PR tree-optimization/89386
12067 * config/i386/sse.md (smulhrs<mode>3): New expander.
12068 (smulhrsv4hi3): Ditto.
12069
12070 2019-09-12 Richard Biener <rguenther@suse.de>
12071
12072 PR tree-optimization/91750
12073 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12074 in the type of the evolution.
12075
12076 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12077
12078 PR tree-optimization/89386
12079 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12080 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12081 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12082 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12083 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12084 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12085 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12086 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12087 (su, r): Handle the unspecs above.
12088 (bt): New int attribute.
12089 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12090 * internal-fn.c (first_commutative_argument): Commutativity info for
12091 above.
12092 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12093 (umulhrs_optab): New optabs.
12094 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12095 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12096 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12097 function.
12098 (vect_vect_recog_func_ptrs): Add it.
12099
12100 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12101
12102 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12103 code.
12104
12105 2019-09-11 Nathan Sidwell <nathan@acm.org>
12106
12107 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12108 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12109
12110 2019-09-11 Richard Biener <rguenther@suse.de>
12111
12112 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12113 * lto-wrapper.c (merge_and_complain): Pick up -g.
12114 (append_compiler_options): Likewise.
12115 (run_gcc): Re-instantiate handling -g0 at link-time.
12116 * doc/invoke.texi (flto): Document debug info generation.
12117
12118 2019-09-11 Richard Biener <rguenther@suse.de>
12119
12120 PR tree-optimization/90387
12121 * vr-values.c (vr_values::extract_range_basic): After inlining
12122 simplify non-constant __builtin_constant_p to false.
12123
12124 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12125
12126 PR rtl-optimization/89795
12127 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12128 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12129
12130 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12131
12132 PR tree-optimization/91723
12133 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12134 instead of pointer equality when checking if argument vectypes are
12135 the same.
12136
12137 PR middle-end/91725
12138 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12139 of get_nonzero_bits, only call it for integral types.
12140
12141 2019-09-11 Richard Biener <rguenther@suse.de>
12142
12143 Revert
12144 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12145
12146 * match.pd: Add flag_unsafe_math_optimizations check
12147 before deciding on the widest type in a binary math operation.
12148
12149 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12150
12151 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12152 and CALL_REALLY_USED_REGISTERS must be defined, and that
12153 CALL_REALLY_USED_REGISTERS is preferred.
12154 * doc/tm.texi: Regenerate.
12155 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12156 (call_really_used_regs): Likewise.
12157 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12158 CALL_REALLY_USED_REGISTERS are defined.
12159 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12160 initial value if defined.
12161 (initial_call_really_used_regs): Delete.
12162 (saved_call_really_used_regs): Likewise.
12163 (CALL_REALLY_USED_REGNO_P): Likewise.
12164 (init_reg_sets): Remove handling of call_really_used_regs.
12165 (save_register_info, restore_register_info, globalize_reg): Likewise.
12166 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12167 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12168 outside operand_reg_set.
12169 (fix_register): Don't change call_used_regs if
12170 CALL_REALLY_USED_REGISTERS is defined.
12171 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12172 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12173 instead of call_really_used_regs.
12174 (csky_conditional_register_usage): Remove the old handling of
12175 call_used_regs and change the handling of call_really_used_regs
12176 to use call_used_regs instead.
12177 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12178 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12179 making a register fixed.
12180 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12181 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12182 instead of call_really_used_regs.
12183 (m32r_conditional_register_usage): Don't set call_used_regs when
12184 making a register fixed.
12185 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12186 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12187 instead of call_really_used_regs.
12188 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12189 (mips_cfun_call_saved_reg_p): Likewise.
12190 (mips_swap_registers): Remove the old handling of call_used_regs
12191 and change the handling of call_really_used_regs to use call_used_regs
12192 instead.
12193 (mips_conditional_register_usage): Likewise.
12194 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12195 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12196 instead of call_really_used_regs.
12197 (mn10300_get_live_callee_saved_regs): Likewise.
12198 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12199 (mn10300_conditional_register_usage): Don't set call_used_regs when
12200 making a register fixed.
12201 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12202 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12203 Remove the old handling of call_used_regs and change the handling
12204 of call_really_used_regs to use call_used_regs instead.
12205 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12206 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12207 instead of call_really_used_regs.
12208 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12209 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12210 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12211 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12212 (s390_conditional_register_usage): Remove the old handling of
12213 call_used_regs and change the handling of call_really_used_regs
12214 to use call_used_regs instead.
12215 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12216 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12217 (sh_fix_range, reg_unused_after): Likewise.
12218 (sh_conditional_register_usage): Remove the old handling of
12219 call_used_regs and change the handling of call_really_used_regs
12220 to use call_used_regs instead.
12221 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12222 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12223 call_used_regs when making a register fixed.
12224 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12225 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12226 call_used_regs when making a register fixed.
12227 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12228 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12229 set call_used_regs when making a register fixed.
12230 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12231 * config/visium/visium.c (visium_conditional_register_usage): Remove
12232 the old handling of call_used_regs and change the handling of
12233 call_really_used_regs to use call_used_regs instead.
12234
12235 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12236
12237 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12238 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12239 * reginfo.c (call_used_regs): New macro.
12240
12241 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12242
12243 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12244 fixed_regs test.
12245 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12246 (bpf_expand_epilogue): Likewise.
12247 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12248 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12249 (ft32_expand_epilogue): Likewise.
12250 * config/i386/i386.c (ix86_save_reg): Likewise.
12251 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12252 (moxie_expand_epilogue): Likewise.
12253 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12254 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12255 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12256
12257 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12258
12259 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12260 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12261 instead of testing call_used_regs directly.
12262 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12263 (aarch64_components_for_bb): Likewise.
12264 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12265 * config/arc/arc.c (arc_must_save_register): Likewise.
12266 (arc_epilogue_uses): Likewise.
12267 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12268 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12269 (arm_compute_save_reg0_reg12_mask): Likewise.
12270 (arm_compute_save_core_reg_mask): Likewise.
12271 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12272 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12273 (cmse_nonsecure_entry_clear_before_return): Likewise.
12274 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12275 (arm_expand_epilogue): Likewise.
12276 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12277 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12278 (_reg_unused_after): Likewise.
12279 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12280 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12281 (add_to_reg, hwloop_optimize): Likewise.
12282 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12283 (bpf_expand_epilogue): Likewise.
12284 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12285 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12286 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12287 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12288 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12289 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12290 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12291 * config/frv/frv.c (frv_stack_info): Likewise.
12292 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12293 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12294 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12295 (move_callee_saved_registers): Likewise.
12296 * config/h8300/h8300.c (byte_reg): Likewise.
12297 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12298 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12299 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12300 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12301 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12302 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12303 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12304 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12305 * config/m32c/m32c.c (need_to_save): Likewise.
12306 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12307 * config/mcore/mcore.c (calc_live_regs): Likewise.
12308 * config/microblaze/microblaze.c (microblaze_must_save_register):
12309 Likewise.
12310 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12311 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12312 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12313 (mmix_expand_epilogue): Likewise.
12314 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12315 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12316 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12317 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12318 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12319 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12320 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12321 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12322 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12323 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12324 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12325 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12326 * config/rl78/rl78.c (need_to_save): Likewise.
12327 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12328 (rs6000_stack_info, generate_set_vrsave): Likewise.
12329 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12330 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12331 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12332 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12333 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12334 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12335 (save_local_or_in_reg_p): Likewise.
12336 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12337 (xstormy16_epilogue_uses): Likewise.
12338 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12339 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12340 * config/v850/v850.c (compute_register_save_size): Likewise.
12341 * config/vax/vax.c (vax_expand_prologue): Likewise.
12342 * config/visium/visium.c (visium_save_reg_p): Likewise.
12343 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12344 * cselib.c (cselib_process_insn): Likewise.
12345 * df-scan.c (df_get_entry_block_def_set): Likewise.
12346 * function.c (aggregate_value_p): Likewise.
12347 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12348 * ira-lives.c (process_bb_node_lives): Likewise.
12349 * ira.c (do_reload): Likewise.
12350 * lra-lives.c (process_bb_lives): Likewise.
12351 * lra-remat.c (lra_remat): Likewise.
12352 * lra.c (lra): Likewise.
12353 * postreload.c (reload_combine_recognize_pattern): Likewise.
12354 (reload_cse_move2add): Likewise.
12355 * recog.c (peep2_find_free_register): Likewise.
12356 * regrename.c (check_new_reg_p): Likewise.
12357 * reload.c (find_equiv_reg): Likewise.
12358 * reload1.c (reload, find_reg): Likewise.
12359 * sel-sched.c (init_hard_regs_data): Likewise.
12360
12361 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12362
12363 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12364 regs_invalidated_by_call & ~fixed_reg_set instead of
12365 call_used_or_fixed_regs & ~fixed_reg_set.
12366 * config/sh/sh.c (output_stack_adjust): Likewise.
12367
12368 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12369
12370 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12371 (call_used_reg_set): Delete.
12372 (call_used_or_fixed_regs): New macro.
12373 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12374 of call_used_reg_set.
12375 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12376 instead of call_used_regs.
12377 (save_call_clobbered_regs): Likewise.
12378 * cfgcleanup.c (old_insns_match_p): Likewise.
12379 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
12380 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12381 Likewise.
12382 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12383 * config/sh/sh.c (output_stack_adjust): Likewise.
12384 * final.c (collect_fn_hard_reg_usage): Likewise.
12385 * ira-build.c (ira_build): Likewise.
12386 * ira-color.c (calculate_saved_nregs): Likewise.
12387 (allocno_reload_assign, calculate_spill_cost): Likewise.
12388 * ira-conflicts.c (ira_build_conflicts): Likewise.
12389 * ira-costs.c (ira_tune_allocno_costs): Likewise.
12390 * ira-lives.c (process_bb_node_lives): Likewise.
12391 * ira.c (setup_reg_renumber): Likewise.
12392 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
12393 * lra-constraints.c (need_for_call_save_p): Likewise.
12394 (need_for_split_p, inherit_in_ebb): Likewise.
12395 * lra-lives.c (process_bb_lives): Likewise.
12396 * lra-remat.c (call_used_input_regno_present_p): Likewise.
12397 * postreload.c (reload_combine): Likewise.
12398 * regrename.c (find_rename_reg): Likewise.
12399 * reload1.c (reload_as_needed): Likewise.
12400 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12401 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12402 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12403
12404 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12405
12406 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
12407 (no_caller_save_reg_set): Delete.
12408 * caller-save.c (init_caller_save): Don't initialize it.
12409 * ira-conflicts.c (ira_build_conflicts): Calculate
12410 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
12411
12412 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12413
12414 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
12415 (target_hard_regs::x_savable_regs): New field.
12416 (call_fixed_reg_set): Delete.
12417 (savable_regs): New macro,
12418 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
12419 (init_reg_sets_1): Likewise. Initialize savable_regs.
12420 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
12421 for all registers. Set savable_regs instead of call_fixed_reg_set.
12422 (setup_save_areas, save_call_clobbered_regs): Replace uses of
12423 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
12424 * config/sh/sh.c (output_stack_adjust): Likewise.
12425
12426 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12427
12428 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
12429 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
12430 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
12431
12432 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12433
12434 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
12435 * rtlanal.c (get_call_rtx_from): Likewise.
12436 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
12437 than the pattern to get_call_rtx_from.
12438 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
12439 an rtx_insn * instead of an rtx.
12440 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
12441
12442 2019-09-10 Martin Liska <mliska@suse.cz>
12443
12444 * common.opt: Use newly added WarnRemoved.
12445 * config/aarch64/aarch64.opt: Likewise.
12446 * config/arm/arm.opt: Likewise.
12447 * config/i386/i386.opt: Likewise.
12448 * config/ia64/ia64.opt: Likewise.
12449 * config/rs6000/rs6000.opt: Likewise.
12450 * doc/options.texi: Document WarnRemoved properly.
12451 * dwarf2out.c (gen_producer_string): Handle renamed
12452 OPT_SPECIAL_warn_removed.
12453 * lto-opts.c (lto_write_options): Likewise.
12454 * lto-wrapper.c (merge_and_complain): Likewise.
12455 * opts-common.c (decode_cmdline_option): Likewise.
12456 (prune_options): Likewise.
12457 (read_cmdline_option): Likewise.
12458 (control_warning_option): Likewise.
12459 * opts.c (print_filtered_help): Likewise.
12460 * optc-gen.awk: Parse for WarnRemoved and make usage
12461 of Deprecated an error.
12462 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
12463
12464 2019-09-10 Arnaud Charlet <charlet@adacore.com>
12465
12466 * doc/install.texi: Fix syntax for html generation.
12467
12468 2019-09-10 Jakub Jelinek <jakub@redhat.com>
12469
12470 PR middle-end/91680
12471 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
12472 the shift type to type.
12473
12474 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12475
12476 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
12477 FDPIC mode.
12478 (stack_protect_combined_test_insn): Likewise.
12479
12480 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12481 Mickaël Guêné <mickael.guene@st.com>
12482
12483 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
12484 * config/arm/arm.md (FDPIC_REGNUM): New constant.
12485 (load_tp_soft_fdpic): New pattern.
12486 (load_tp_soft): Disable in FDPIC mode.
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 (tls_reloc): Add TLS_GD32_FDPIC,
12492 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
12493 (arm_call_tls_get_addr): Add FDPIC support.
12494 (legitimize_tls_address): Likewise.
12495 (arm_emit_tls_decoration): Likewise.
12496
12497 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12498 Mickaël Guêné <mickael.guene@st.com>
12499
12500 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
12501 support.
12502 (arm_trampoline_init): Likewise.
12503 (arm_trampoline_adjust_address): Likewise.
12504 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
12505
12506 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12507 Mickaël Guêné <mickael.guene@st.com>
12508
12509 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
12510 (legitimize_pic_address): Enforce binding rules on function
12511 pointers in FDPIC mode.
12512 (arm_assemble_integer): Likewise.
12513
12514 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12515 Mickaël Guêné <mickael.guene@st.com>
12516
12517 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
12518 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
12519 FDPIC.
12520
12521 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12522 Mickaël Guêné <mickael.guene@st.com>
12523
12524 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
12525 field.
12526
12527 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12528 Mickaël Guêné <mickael.guene@st.com>
12529
12530 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
12531 in FDPIC mode.
12532 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
12533 new function.
12534 * config/arm/arm.c (arm_option_override): Define pic register to
12535 FDPIC_REGNUM.
12536 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
12537 have no decl or go through PLT.
12538 (calculate_pic_address_constant): New function.
12539 (legitimize_pic_address): Call calculate_pic_address_constant.
12540 (arm_load_pic_register): Handle TARGET_FDPIC.
12541 (arm_is_segment_info_known): New function.
12542 (arm_pic_static_addr): Add support for FDPIC.
12543 (arm_load_function_descriptor): New function.
12544 (arm_emit_call_insn): Add support for FDPIC.
12545 (arm_assemble_integer): Add support for FDPIC.
12546 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
12547 Define. (FDPIC_REGNUM): New define.
12548 * config/arm/arm.md (call): Add support for FDPIC.
12549 (call_value): Likewise.
12550 (restore_pic_register_after_call): New pattern.
12551 (untyped_call): Disable if FDPIC.
12552 (untyped_return): Likewise.
12553 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
12554
12555 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12556 Mickaël Guêné <mickael.guene@st.com>
12557
12558 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
12559 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
12560 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
12561 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
12562 (CC1_SPEC): Use FDPIC_CC1_SPEC.
12563 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
12564 * config/arm/uclinuxfdpiceabi.h: New file.
12565
12566 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12567
12568 * config.gcc: Handle *-*-uclinuxfdpiceabi.
12569
12570 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12571 Mickaël Guêné <mickael.guene@st.com>
12572
12573 * config/arm/arm.opt: Add -mfdpic option.
12574 * doc/invoke.texi: Add documentation for -mfdpic.
12575
12576 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12577
12578 * expmed.c (extract_bit_field): Update function comment
12579 regarding alt_rtl.
12580 * expr.c (expand_expr_real): Update function comment
12581 regarding alt_rtl.
12582 (expand_misaligned_mem_ref): New helper function.
12583 (expand_expr_real_2): Use expand_misaligned_mem_ref.
12584 Remove duplicate assignment to "base" at case MEM_REF.
12585 Remove a shadowed variable "unsignedp" at case VCE.
12586
12587 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12588
12589 * regset.h (regs_invalidated_by_call_regset): Delete.
12590 (fixed_reg_set_regset): Likewise.
12591 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
12592 (fixed_reg_set_regset, persistent_obstack): Likewise.
12593 (init_reg_sets_1, globalize_reg): Update accordingly.
12594 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
12595 instead of a bitmap.
12596 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
12597 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
12598 instead of regs_invalidated_by_call_regset.
12599 (df_lr_confluence_n, df_md_confluence_n): Likewise.
12600 * df-scan.c (df_scan_start_dump): Likewise.
12601 * dse.c (copy_fixed_regs): Likewise.
12602 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
12603
12604 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12605
12606 * array-traits.h: New file.
12607 * coretypes.h (array_traits, bitmap_view): New types.
12608 * bitmap.h: Include "array-traits.h"
12609 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12610 (base_bitmap_view, bitmap_view): New classes.
12611 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12612 * hard-reg-set.h: Include array-traits.h.
12613 (array_traits<HARD_REG_SET>): New struct.
12614 * regset.h (IOR_REG_SET_HRS): New macro.
12615 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
12616 rather than iterating over each hard register.
12617 * sched-deps.c (sched_analyze_insn): Likewise.
12618 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
12619
12620 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12621
12622 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
12623 instead of a HARD_REG_SET *.
12624 * ira-build.c (ior_hard_reg_conflicts): Likewise.
12625 (ira_build): Update call accordingly.
12626 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
12627
12628 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12629
12630 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
12631 (HARD_REG_SET::operator!=): Likewise.
12632 (hard_reg_set_equal_p): Delete.
12633 * cfgcleanup.c (old_insns_match_p): Use == instead of
12634 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
12635 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
12636 (add_allocno_hard_regs_to_forest): Likewise.
12637 (setup_allocno_available_regs_num): Likewise.
12638 * ira.c (setup_pressure_classes): Likewise.
12639 (setup_allocno_and_important_classes): Likewise.
12640 (setup_reg_class_relations): Likewise.
12641 * lra-lives.c (process_bb_lives): Likewise.
12642 * reg-stack.c (change_stack, convert_regs_1): Likewise.
12643
12644 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12645
12646 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
12647 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
12648 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
12649 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
12650 Likewise.
12651 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
12652 * ira.c (setup_reg_renumber): Likewise.
12653 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12654 * regrename.c (regrename_find_superclass): Likewise.
12655 * reload1.c (find_reg): Likewise.
12656
12657 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12658
12659 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
12660 * caller-save.c (setup_save_areas): Use "&~" instead of
12661 AND_COMPL_HARD_REG_SET.
12662 (save_call_clobbered_regs): Likewise.
12663 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12664 Likewise.
12665 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12666 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12667 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
12668 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12669 (mips_conditional_register_usage): Likewise.
12670 * config/sh/sh.c (output_stack_adjust): Likewise.
12671 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
12672 (setup_profitable_hard_regs): Likewise.
12673 (get_conflict_and_start_profitable_regs): Likewise.
12674 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12675 (ira_build_conflicts): Likewise.
12676 * ira-costs.c (restrict_cost_classes): Likewise.
12677 (setup_regno_cost_classes_by_aclass): Likewise.
12678 * ira-lives.c (process_bb_node_lives): Likewise.
12679 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
12680 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
12681 (setup_allocno_and_important_classes, setup_class_translate_array)
12682 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
12683 Likewise.
12684 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12685 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12686 (process_alt_operands, inherit_in_ebb): Likewise.
12687 * lra-eliminations.c (update_reg_eliminate): Likewise.
12688 * lra-lives.c (process_bb_lives): Likewise.
12689 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
12690 * resource.c (find_dead_or_set_registers): Likewise.
12691 (mark_target_live_regs): Likewise.
12692 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
12693 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12694 (implicit_clobber_conflict_p): Likewise.
12695 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12696 (try_shrink_wrapping): Likewise.
12697
12698 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12699
12700 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
12701 (HARD_REG_SET::operator|=): Likewise.
12702 (IOR_HARD_REG_SET): Delete.
12703 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
12704 IOR_HARD_REG_SET.
12705 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12706 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
12707 * final.c (collect_fn_hard_reg_usage): Likewise.
12708 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
12709 * ira-build.c (merge_hard_reg_conflicts): Likewise.
12710 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
12711 (propagate_some_info_from_allocno): Likewise.
12712 (copy_info_to_removed_store_destinations): Likewise.
12713 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
12714 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
12715 (fast_allocation): Likewise.
12716 * ira-conflicts.c (ira_build_conflicts): Likewise.
12717 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
12718 (process_bb_node_lives): Likewise.
12719 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
12720 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12721 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12722 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
12723 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
12724 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
12725 (process_bb_lives): Likewise.
12726 * lra-spills.c (assign_spill_hard_regs): Likewise.
12727 * postreload.c (reload_combine): Likewise.
12728 * reginfo.c (init_reg_sets_1): Likewise.
12729 * regrename.c (merge_overlapping_regs, find_rename_reg)
12730 (merge_chains): Likewise.
12731 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
12732 (find_reload_regs, finish_spills, choose_reload_regs_init)
12733 (emit_reload_insns): Likewise.
12734 * reorg.c (redundant_insn): Likewise.
12735 * resource.c (find_dead_or_set_registers, mark_set_resources)
12736 (mark_target_live_regs): Likewise.
12737 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12738 * sched-deps.c (sched_analyze_insn): Likewise.
12739 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12740 (find_best_reg_for_expr): Likewise.
12741 * shrink-wrap.c (try_shrink_wrapping): Likewise.
12742
12743 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12744
12745 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
12746 (HARD_REG_SET::operator&): Likewise.
12747 (AND_HARD_REG_SET): Delete.
12748 * caller-save.c (setup_save_areas): Use "&" instead of
12749 AND_HARD_REG_SET.
12750 (save_call_clobbered_regs): Likewise.
12751 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12752 * config/m32c/m32c.c (reduce_class): Likewise.
12753 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12754 * final.c (get_call_reg_set_usage): Likewise.
12755 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
12756 (setup_left_conflict_sizes_p): Likewise.
12757 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12758 (ira_build_conflicts): Likewise.
12759 * ira-costs.c (restrict_cost_classes): Likewise.
12760 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
12761 (setup_reg_class_relations): Likewise.
12762 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
12763 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
12764 * resource.c (find_dead_or_set_registers): Likewise.
12765 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12766
12767 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12768
12769 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
12770 (COMPL_HARD_REG_SET): Delete.
12771 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
12772 of COMPL_HARD_REG_SET.
12773 (try_rename_operands): Likewise.
12774 * config/sh/sh.c (push_regs): Likewise.
12775 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12776 * lra-constraints.c (contains_reg_p): Likewise.
12777 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
12778
12779 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12780
12781 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
12782 * caller-save.c (save_call_clobbered_regs): Use assignment instead
12783 of COPY_HARD_REG_SET.
12784 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
12785 (epiphany_conditional_register_usage): Likewise.
12786 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12787 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12788 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12789 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12790 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
12791 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12792 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
12793 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12794 * config/sh/sh.c (output_stack_adjust): Likewise.
12795 * final.c (collect_fn_hard_reg_usage): Likewise.
12796 (get_call_reg_set_usage): Likewise.
12797 * ira-build.c (ira_create_object, remove_low_level_allocnos)
12798 (ira_flattening): Likewise.
12799 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
12800 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
12801 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
12802 (ira_reassign_pseudos): Likewise.
12803 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12804 (ira_build_conflicts): Likewise.
12805 * ira-costs.c (restrict_cost_classes): Likewise.
12806 (setup_regno_cost_classes_by_aclass): Likewise.
12807 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
12808 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
12809 (setup_stack_reg_pressure_class, setup_pressure_classes)
12810 (setup_allocno_and_important_classes, setup_class_translate_array)
12811 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
12812 (ira_setup_eliminable_regset): Likewise.
12813 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12814 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12815 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12816 (process_alt_operands, inherit_in_ebb): Likewise.
12817 * lra-lives.c (process_bb_lives): Likewise.
12818 * lra-spills.c (assign_spill_hard_regs): Likewise.
12819 * lra.c (lra): Likewise.
12820 * mode-switching.c (new_seginfo): Likewise.
12821 * postreload.c (reload_combine): Likewise.
12822 * reg-stack.c (straighten_stack): Likewise.
12823 * reginfo.c (save_register_info, restore_register_info): Likewise.
12824 (init_reg_sets_1, record_subregs_of_mode): Likewise
12825 * regrename.c (create_new_chain, rename_chains): Likewise.
12826 * reload1.c (order_regs_for_reload, find_reg): Likewise.
12827 (find_reload_regs): Likewise.
12828 * resource.c (find_dead_or_set_registers): Likewise.
12829 (mark_target_live_regs): Likewise.
12830 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12831
12832 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12833
12834 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
12835 (note_pattern_stores): Declare.
12836 (note_stores): Take an rtx_insn *.
12837 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
12838 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
12839 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
12840 (note_stores): Take an rtx_insn * as argument and process
12841 CALL_INSN_FUNCTION_USAGE. Rename old function to...
12842 (note_pattern_stores): ...this.
12843 (find_first_parameter_load): Pass the insn rather than
12844 its pattern to note_stores.
12845 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
12846 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
12847 (insert_one_insn): Likewise.
12848 * combine.c (combine_instructions): Likewise.
12849 (likely_spilled_retval_p): Likewise.
12850 (try_combine): Use note_pattern_stores instead of note_stores.
12851 (record_dead_and_set_regs): Pass the insn rather than its pattern
12852 to note_stores.
12853 (reg_dead_at_p): Likewise.
12854 * config/bfin/bfin.c (workaround_speculation): Likewise.
12855 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
12856 rather than an rtx.
12857 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
12858 instead of note_stores.
12859 (frv_optimize_membar_local): Pass the insn rather than its pattern
12860 to note_stores.
12861 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12862 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
12863 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
12864 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
12865 (mips_reorg_process_insns): Likewise.
12866 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
12867 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
12868 rather than rtxes.
12869 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
12870 its pattern to note_stores.
12871 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
12872 of note_stores.
12873 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
12874 the insn to note_stores.
12875 (prescan_insns_for_dce): Update call accordingly.
12876 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
12877 to note_stores.
12878 * df-problems.c (can_move_insns_across): Likewise.
12879 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
12880 * function.c (assign_parm_setup_reg): Likewise.
12881 * gcse-common.c (record_last_mem_set_info_common): Likewise.
12882 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
12883 (single_set_gcse): Likewise.
12884 * ira.c (validate_equiv_mem): Likewise.
12885 (update_equiv_regs): Use note_pattern_stores rather than note_stores
12886 for no_equiv.
12887 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
12888 pattern to note_stores.
12889 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12890 * loop-iv.c (simplify_using_initial_values): Likewise.
12891 * mode-switching.c (optimize_mode_switching): Likewise.
12892 * optabs.c (emit_libcall_block_1): Likewise.
12893 (expand_atomic_compare_and_swap): Likewise.
12894 * postreload-gcse.c (load_killed_in_block_p): Likewise.
12895 (record_opr_changes): Likewise. Remove explicit handling of
12896 CALL_INSN_FUNCTION_USAGE.
12897 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
12898 * regcprop.c (kill_clobbered_values): Likewise.
12899 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
12900 to note_stores.
12901 * regrename.c (build_def_use): Likewise.
12902 * reload1.c (reload): Use note_pattern_stores instead of note_stores
12903 for mark_not_eliminable.
12904 (reload_as_needed): Pass the insn rather than its pattern
12905 to note_stores.
12906 (emit_output_reload_insns): Likewise.
12907 * resource.c (mark_target_live_regs): Likewise.
12908 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12909 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
12910 instead of note_stores.
12911 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
12912 its pattern to note_stores.
12913 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
12914 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
12915
12916 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12917
12918 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
12919 than a #define. Use a structure rather than an array as the
12920 fallback definition. Remove special cases for low array sizes.
12921 (const_hard_reg_set): New typedef.
12922 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
12923 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
12924 (hard_reg_set_empty_p): Likewise.
12925 (SET_HARD_REG_BIT): Use a function rather than a macro to
12926 handle the case in which HARD_REG_SET is a structure.
12927 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
12928 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
12929 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
12930 (IOR_COMPL_HARD_REG_SET): Likewise.
12931 (hard_reg_set_iterator::pset): Constify the pointer target.
12932 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
12933 of a "const HARD_REG_SET". Update the handling of non-integer
12934 HARD_REG_SETs.
12935 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
12936 * reload.h: Likewise.
12937 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
12938 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
12939 of a "const HARD_REG_SET".
12940 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
12941 (range_in_hard_reg_set_p): Likewise.
12942 * ira-costs.c (restrict_cost_classes): Likewise.
12943 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
12944 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12945 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
12946 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
12947 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
12948 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
12949 take an unsigned int and open-code the HARD_REG_SET operations.
12950
12951 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12952
12953 * Makefile.in (OBJS): Remove bt-load.o.
12954 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
12955 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12956 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
12957 document that the option no longer does anything.
12958 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12959 * target.def (branch_target_register_class): Delete.
12960 (branch_target_register_callee_saved): Likewise.
12961 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12962 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
12963 * doc/tm.texi: Regenerate.
12964 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
12965 (make_pass_branch_target_load_optimize2): Likewise.
12966 * passes.def (pass_branch_target_load_optimize1): Likewise.
12967 (pass_branch_target_load_optimize2): Likewise.
12968 * targhooks.h (default_branch_target_register_class): Likewise.
12969 * targhooks.c (default_branch_target_register_class): Likewise.
12970 * opt-suggestions.c (test_completion_valid_options): Remove
12971 -fbtr-bb-exclusive from the list of test options.
12972 * bt-load.c: Remove.
12973
12974 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12975
12976 * match.pd: Add flag_unsafe_math_optimizations check
12977 before deciding on the widest type in a binary math operation.
12978
12979 2019-09-09 Martin Liska <mliska@suse.cz>
12980
12981 * config/i386/i386.opt: Update comment of removed
12982 options that are preserved only for backward
12983 compatibility.
12984
12985 2019-09-09 Jakub Jelinek <jakub@redhat.com>
12986
12987 PR target/87853
12988 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
12989 instead of __v16qs.
12990
12991 PR target/91704
12992 * config/i386/avxintrin.h (__v32qs): New typedef.
12993 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
12994 instead of __v32qi.
12995
12996 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12997
12998 * doc/invoke.texi (Option Summary): Cover eBPF.
12999 (eBPF Options): New section.
13000 * doc/extend.texi (BPF Built-in Functions): Likewise.
13001 (BPF Kernel Helpers): Likewise.
13002
13003 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13004
13005 * config.gcc: Support for bpf-*-* targets.
13006 * common/config/bpf/bpf-common.c: New file.
13007 * config/bpf/t-bpf: Likewise.
13008 * config/bpf/predicates.md: Likewise.
13009 * config/bpf/constraints.md: Likewise.
13010 * config/bpf/bpf.opt: Likewise.
13011 * config/bpf/bpf.md: Likewise.
13012 * config/bpf/bpf.h: Likewise.
13013 * config/bpf/bpf.c: Likewise.
13014 * config/bpf/bpf-protos.h: Likewise.
13015 * config/bpf/bpf-opts.h: Likewise.
13016 * config/bpf/bpf-helpers.h: Likewise.
13017 * config/bpf/bpf-helpers.def: Likewise.
13018
13019 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13020
13021 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13022 indirect_calls.
13023
13024 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13025
13026 * opt-functions.awk (integer_range_info): Make sure values are in
13027 numeric context before operating with them.
13028
13029 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13030
13031 * genemit.c (gen_split): Print the filename and line number where the
13032 splitter (or peephole2) was defined, to the dump file.
13033
13034 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13035
13036 PR tree-optimization/91665
13037 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13038 incompatible with the type of PHI result.
13039
13040 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13041
13042 PR target/91684
13043 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13044 gen_unaligned_storedi for 4-byte aligned addresses.
13045
13046 2019-09-06 Jim Wilson <jimw@sifive.com>
13047
13048 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13049 change.
13050
13051 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13052
13053 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13054
13055 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13056
13057 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13058 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13059
13060 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13061
13062 PR target/91654
13063 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13064 cost of SSE->integer and integer->SSE moves from 2 to 6.
13065 (core_cost): Ditto.
13066
13067 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13068
13069 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13070 before testing TYPE_TRANSPARENT_AGGR.
13071 * calls.c (initialize_argument_information, load_register_parameters):
13072 Likewise.
13073
13074 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13075
13076 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13077 high regs.
13078 (cmp_ior): Likewise.
13079
13080 2019-09-06 Martin Liska <mliska@suse.cz>
13081
13082 * doc/match-and-simplify.texi: Separate tuples with ;.
13083
13084 2019-09-06 Martin Liska <mliska@suse.cz>
13085
13086 PR c++/91125
13087 * Makefile.in: Remove tlink.o.
13088 * collect2.c (do_link): New function isolated
13089 from do_tlink.
13090 (main): Use.
13091 * collect2.h (do_tlink): Remove declaration of do_tlink.
13092 * doc/extend.texi: Remove documentation of -frepo.
13093 * doc/invoke.texi: Likewise.
13094 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13095 * tlink.c: Remove.
13096
13097 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13098 Jim Wilson <jimw@sifive.com>
13099
13100 PR target/91635
13101 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13102 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13103 paradoxical_subreg_p (operands[0]).
13104 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13105 use as intermediate value.
13106
13107 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13108
13109 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13110 (sync_compare_and_swap<mode>_insn): Likewise.
13111
13112 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13113
13114 PR middle-end/91615
13115 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13116 without movmisalign optab.
13117
13118 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13119
13120 PR middle-end/91001
13121 PR middle-end/91105
13122 PR middle-end/91106
13123 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13124 types, use type of their first field instead of type of
13125 args[i].tree_value.
13126
13127 2019-09-05 Richard Biener <rguenther@suse.de>
13128
13129 PR rtl-optimization/91656
13130 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13131 of early out.
13132
13133 2019-09-05 Richard Biener <rguenther@suse.de>
13134
13135 PR middle-end/90501
13136 * tree-inline.c (declare_return_variable): Mark the return
13137 slot as addressable after building an address of it.
13138
13139 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13140
13141 * doc/install.texi: Update and clarify requirements to build GNAT.
13142
13143 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13144
13145 PR middle-end/91577
13146 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13147 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13148 call to be in memory.
13149 (pass_expand::execute): Call discover_nonconstant_array_refs before
13150 setting currently_expanding_to_rtl.
13151
13152 2019-09-04 Caroline Tice <cmtice@google.com>
13153
13154 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13155 specified together.
13156
13157 2019-09-04 Marek Polacek <polacek@redhat.com>
13158
13159 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13160
13161 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13162
13163 PR target/32413
13164 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13165 for QI and HImode moves between SSE and general registers.
13166
13167 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13168
13169 PR c/78736
13170 * doc/invoke.texi: Document -Wenum-conversion.
13171
13172 2019-09-04 Richard Biener <rguenther@suse.de>
13173
13174 PR rtl-optimization/36262
13175 * postreload-gcse.c: Include intl.h and gcse.h.
13176 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13177 to avoid linear list walk.
13178 (record_last_mem_set_info): Gate off if not computing transparentness.
13179 (get_bb_avail_insn): If transparentness isn't computed give up
13180 early.
13181 (gcse_after_reload_main): Skip compute_transp and extended PRE
13182 if gcse_or_cprop_is_too_expensive says so.
13183
13184 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13185
13186 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13187 noinit section.
13188 (msp430_select_section): Handle decls with the "noinit" attribute with
13189 default_elf_select_section.
13190 Handle SECCAT_RODATA_MERGE_* section types with
13191 default_elf_select_section.
13192 Add comments about handling of unsupported section types.
13193 (msp430_section_type_flags): Remove handling of the noinit section.
13194
13195 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13196
13197 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13198 conflicting msp430-specific attributes.
13199 (msp430_section_attr): Likewise.
13200 Add warnings about conflicts with generic "noinit" and "section"
13201 attributes.
13202 Fix grammar in -mlarge error message.
13203 (msp430_data_attr): Rename to msp430_persist_attr.
13204 Add warnings about conflicts with generic "noinit" and "section"
13205 attributes.
13206 Add warning for when variable is not initialized.
13207 Chain conditionals which prevent the attribute being added.
13208 (ATTR_EXCL): New helper.
13209 (attr_reent_exclusions): New exclusion table.
13210 (attr_naked_exclusions): Likewise.
13211 (attr_crit_exclusions): Likewise.
13212 (attr_lower_exclusions): Likewise.
13213 (attr_upper_exclusions): Likewise.
13214 (attr_either_exclusions): Likewise.
13215 (attr_persist_exclusions): Likewise.
13216 (msp430_attribute_table): Update with exclusion rules.
13217 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13218 has a section.
13219
13220 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13221
13222 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13223 (msp430_handle_generic_attribute): New function.
13224 * doc/tm.texi: Regenerate.
13225 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13226 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13227 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13228 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13229
13230 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13231
13232 PR tree-optimization/91504
13233 * match.pd: Add ((~a & b) ^a) --> (a | b).
13234
13235 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13236
13237 PR target/91604
13238 * config/i386/i386-expand.c (split_double_mode): If there is more than
13239 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13240 already split matching MEM operand instead of calling adjust_address
13241 again.
13242
13243 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13244
13245 * config.gcc: Obsolete spu target. Remove references to spu.
13246 * configure.ac: Remove references to spu.
13247 * configure: Regenerate.
13248 * config/spu/: Remove directory.
13249 * common/config/spu/: Remove directory.
13250
13251 * doc/extend.texi: Remove references to spu.
13252 * doc/invoke.texi: Likewise.
13253 * doc/md.texi: Likewise.
13254 * doc/sourcebuild.texi: Likewise.
13255
13256 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13257
13258 PR middle-end/91603
13259 PR middle-end/91612
13260 PR middle-end/91613
13261 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13262 and SSA_NAME referring to CONSTANT_P correctly.
13263
13264 2019-09-03 Richard Biener <rguenther@suse.de>
13265
13266 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13267 (vn_nary_op_insert): Likewise.
13268 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13269 (vn_nary_op_lookup): Likewise.
13270 (vn_nary_op_insert): Likewise.
13271
13272 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13273
13274 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13275 (*op0, 1) instead of XEXP (*op1, 0).
13276
13277 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13278
13279 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13280 (aarch64_fjcvtzs): New define_insn.
13281 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13282 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13283 Add AARCH64_JSCVT.
13284 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13285 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13286 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13287 __ARM_FEATURE_JCVT where appropriate.
13288 * config/aarch64/arm_acle.h (__jcvt): Define.
13289
13290 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13291
13292 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13293 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13294 (aarch64_<frintnzs_op><mode>): New define_insn.
13295 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13296 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13297 __ARM_FEATURE_FRINT when appropriate.
13298 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13299 frint32x, frint64z, frint64x.
13300 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13301 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13302 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13303 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13304 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13305 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13306 * config/aarch64/iterators.md (VSFDF): Define.
13307 (FRINTNZX): Likewise.
13308 (frintnzs_op): Likewise.
13309
13310 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13311
13312 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13313 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13314 Cortex-A34.
13315 * config/aarch64/aarch64-tune.md: Regenerated.
13316 * doc/invoke.texi: Document the new processors.
13317
13318 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13319
13320 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13321 string.
13322 (ssbs): Likewise.
13323 (sve2): Likewise.
13324 (sve2-sm4): Likewise.
13325 (sveaes): Likewise.
13326 (svesha3): Likewise.
13327 (svebitperm): Likewise.
13328
13329 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13330 Richard Biener <rguenther@suse.de>
13331
13332 PR tree-optimization/91597
13333 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13334 BIT_AND_EXPR optimization for pointers, even if both operand
13335 ranges don't include NULL, the result can be NULL.
13336
13337 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13338
13339 PR middle-end/91605
13340 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13341 (non_mem_decl_p): ...this.
13342 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13343 (expand_assignment): Call mem_ref_referes_to_non_mem_p
13344 unconditionally as before.
13345
13346 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13347
13348 PR target/91323
13349 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13350 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
13351 * tree.def (LTGT_EXPR): Likewise.
13352 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13353
13354 2019-09-02 Jakub Jelinek <jakub@redhat.com>
13355
13356 PR go/91617
13357 * fold-const.c (range_check_type): For enumeral and boolean
13358 type, pass 1 to type_for_size langhook instead of
13359 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
13360 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13361 (build_range_check): Don't call unsigned_type_for for pointer types.
13362 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13363 range_check_type result.
13364
13365 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13366
13367 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13368 (replace_ref): Do not replace a chain of only two candidates which are
13369 valid memory references.
13370
13371 2019-09-02 Martin Liska <mliska@suse.cz>
13372
13373 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13374 Bail out when we'll end up with the same number of clusters as
13375 at the beginning.
13376 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13377 (jump_table_cluster::can_be_handled): Remove the guard
13378 as it's already handled in ::is_enabled. Allocate output
13379 after early bail out.
13380
13381 2019-09-02 Martin Liska <mliska@suse.cz>
13382
13383 PR gcov-profile/91601
13384 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
13385 (path_contains_zero_or_negative_cycle_arc): ... this and handle
13386 also negative edges.
13387 (circuit): Handle also negative edges as they can happen
13388 in some situations.
13389
13390 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
13391
13392 PR target/91472
13393 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
13394 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
13395 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
13396
13397 2019-09-01 Jakub Jelinek <jakub@redhat.com>
13398
13399 PR middle-end/91623
13400 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
13401 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
13402 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
13403 zero vector.
13404
13405 PR lto/91572
13406 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
13407 GIMPLE_ASM TREE_LIST operands.
13408
13409 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
13410
13411 * doc/generic.texi (Unary and Binary Expressions): Mark up
13412 an instance of TYPE_MIN.
13413
13414 2019-08-31 Stafford Horne <shorne@gmail.com>
13415
13416 * config/or1k/constraints.md (t): New constraint.
13417 * config/or1k/or1k.h (GOT_REGS): New register class.
13418 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
13419
13420 2019-08-30 Jim Wilson <jimw@sifive.com>
13421
13422 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
13423 and -fpic and -mplt then disable -msave-restore and warn.
13424
13425 2019-08-30 Martin Sebor <msebor@redhat.com>
13426
13427 PR middle-end/91599
13428 * tree-ssa-strlen.c (handle_store): Use a fallback location if
13429 the statement doesn't have one.
13430 * gimple-pretty-print.c (percent_G_format): Same.
13431
13432 PR middle-end/91584
13433 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
13434 before using them to validate MEM_REF offset.
13435
13436 2019-08-30 Marek Polacek <polacek@redhat.com>
13437
13438 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
13439
13440 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13441
13442 * config/arm/arm.md (unaligned_loaddi,
13443 unaligned_storedi): New unspec insn patterns.
13444 * config/arm/neon.md (unaligned_storev8qi): Likewise.
13445 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
13446 and unaligned_storedi for 4-byte aligned memory.
13447 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
13448 4-byte aligned memory.
13449
13450 2019-08-30 Martin Jambor <mjambor@suse.cz>
13451
13452 tree-optimization/91579
13453 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
13454 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
13455 appropriate.
13456 (arg_needs_copy_p): Removed.
13457 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
13458 arg_needs_copy_p.
13459 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
13460
13461 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13462
13463 * config/i386/i386-features.c
13464 (general_scalar_chain::compute_convert_gain):
13465 Correct cost for double-word shifts.
13466 (general_scalar_to_vector_candidate_p): Reject count operands
13467 greater or equal to mode bitsize.
13468
13469 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13470
13471 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13472 for moves between SSE and non-general registers and between
13473 mask and non-general registers.
13474 (ix86_register_move_cost): Remove stalled comment.
13475
13476 2019-08-29 Richard Biener <rguenther@suse.de>
13477
13478 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13479 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
13480
13481 2019-08-29 Richard Biener <rguenther@suse.de>
13482
13483 PR bootstrap/91580
13484 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13485 Do not emit scalar copies for debug-insns, instead replace
13486 their uses with the reg copy used in the chain or reset them
13487 if there is a reaching definition outside of the chain as well.
13488
13489 2019-08-29 Jakub Jelinek <jakub@redhat.com>
13490
13491 PR target/91560
13492 * config/i386/i386-expand.c (expand_vec_perm_movs,
13493 expand_vec_perm_blend, expand_vec_perm_vpermil,
13494 expand_vec_perm_pshufb, expand_vec_perm_1,
13495 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
13496 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
13497 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
13498 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
13499 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
13500 comments - replace ix86_expand_vec_perm_builtin_1 with
13501 ix86_expand_vec_perm_const_1.
13502 (expand_vec_perm2_vperm2f128_vblend): New function.
13503 (ix86_expand_vec_perm_const_1): New forward declaration. Call
13504 expand_vec_perm2_vperm2f128_vblend as last resort.
13505 (canonicalize_perm): Formatting fix.
13506
13507 PR tree-optimization/91351
13508 * tree-cfg.c (generate_range_test): Use range_check_type instead of
13509 unsigned_type_for.
13510 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
13511 range_check_type returns NULL.
13512 * tree-switch-conversion.c (switch_conversion::build_one_array):
13513 Use range_check_type instead of unsigned_type_for, don't perform
13514 linear opt if it returns NULL.
13515 (bit_test_cluster::find_bit_tests): Formatting fix.
13516 (bit_test_cluster::emit): Use range_check_type instead of
13517 unsigned_type_for.
13518 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
13519 returns NULL.
13520
13521 2019-08-29 Richard Biener <rguenther@suse.de>
13522
13523 PR tree-optimization/91568
13524 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
13525 (vect_update_max_nunits): Add overload for poly_uint64.
13526 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
13527 (vect_build_slp_tree): Record max_nunits into the subtree
13528 and merge it upwards.
13529 (vect_print_slp_tree): Print max_nunits.
13530
13531 2019-08-28 Marek Polacek <polacek@redhat.com>
13532
13533 Implement P1152R4: Deprecating some uses of volatile.
13534 PR c++/91361
13535 * doc/invoke.texi: Document -Wvolatile.
13536
13537 2019-08-28 Marek Polacek <polacek@redhat.com>
13538
13539 PR c++/91360 - Implement C++20 P1143R2: constinit.
13540 * doc/invoke.texi: Document -Wc++20-compat.
13541
13542 2019-08-28 Martin Sebor <msebor@redhat.com>
13543
13544 PR tree-optimization/91457
13545 * builtins.c (component_size): New function.
13546 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
13547 * builtins.h (compute_objsize): Add argument.
13548 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
13549 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
13550 (vrp_prop::check_mem_ref): Same.
13551 (vrp_prop::search_for_addr_array): Set no-warning bit.
13552 (check_array_bounds): Same.
13553
13554 2019-08-28 Martin Sebor <msebor@redhat.com>
13555
13556 PR driver/80545
13557 * opts-common.c (option_enabled): Correct checking for language
13558 options.
13559
13560 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
13561
13562 * config/i386/i386.c (ix86_register_move_cost): Do not
13563 limit the cost of moves to/from XMM register to minimum 8.
13564
13565 2019-08-28 Martin Jambor <mjambor@suse.cz>
13566
13567 PR ipa/91468
13568 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
13569 checking assert a normal assert to test it really is redundant.
13570 * ipa-prop.c (compute_complex_assign_jump_func): Removed
13571 redundant test.
13572 (update_jump_functions_after_inlining): Removed combining unary
13573 arithmetic operations with an ancestor jump function.
13574 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
13575 instead of t.
13576
13577 2019-08-28 Richard Biener <rguenther@suse.de>
13578
13579 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
13580 add the MD problem.
13581
13582 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13583 Richard Biener <rguenther@suse.de>
13584
13585 * expr.c (expand_assignment): Handle misaligned DECLs.
13586 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
13587 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
13588 too.
13589 (assign_parm_setup_stack): Allocate properly aligned stack slots.
13590 * varasm.c (build_constant_desc): Align constants of misaligned types.
13591 * config/arm/predicates.md (aligned_operand): New predicate.
13592 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
13593 aligned_operand to check restrictions on memory addresses.
13594 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
13595 * config/arm/vec-common.md (mov<VALL>): Likewise.
13596
13597 2019-08-28 Jakub Jelinek <jakub@redhat.com>
13598
13599 PR libgomp/91530
13600 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
13601 V_128 iterator instead of VI_128.
13602
13603 2019-08-28 Martin Liska <mliska@suse.cz>
13604
13605 PR tree-optimization/90970
13606 * builtins.c (check_access): Remove assignment to maxread
13607 as it hasn't been used since when it was introduced in r255755.
13608
13609 2019-08-27 Martin Sebor <msebor@redhat.com>
13610
13611 PR tree-optimization/91567
13612 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
13613 of unknown strings.
13614 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
13615 to PTRDIFF_MAX - 2.
13616
13617 2019-08-27 Jeff Law <law@redhat.com>
13618
13619 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
13620 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
13621
13622 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
13623
13624 PR target/91528
13625 * config/i386/i386-features.c (convert_scalars_to_vector):
13626 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
13627 crtl->stack_realign_processed. Update crtl->drap_reg by calling
13628 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
13629 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
13630
13631 2019-08-27 Richard Biener <rguenther@suse.de>
13632
13633 * config/i386/i386-features.h
13634 (general_scalar_chain::~general_scalar_chain): Add.
13635 (general_scalar_chain::insns_conv): New bitmap.
13636 (general_scalar_chain::n_sse_to_integer): New.
13637 (general_scalar_chain::n_integer_to_sse): Likewise.
13638 (general_scalar_chain::make_vector_copies): Adjust signature.
13639 * config/i386/i386-features.c
13640 (general_scalar_chain::general_scalar_chain): Outline,
13641 initialize new members.
13642 (general_scalar_chain::~general_scalar_chain): New.
13643 (general_scalar_chain::mark_dual_mode_def): Record insns
13644 we need to insert conversions at and count them.
13645 (general_scalar_chain::compute_convert_gain): Account
13646 for conversion instructions at chain boundary.
13647 (general_scalar_chain::make_vector_copies): Generate a single
13648 copy for a def by a specific insn.
13649 (general_scalar_chain::convert_registers): First populate
13650 defs_map, then make copies at out-of chain insns.
13651
13652 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
13653
13654 * config/arm/arm.md (stack_protect_set_insn): Add security-related
13655 comment.
13656 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
13657
13658 2019-08-27 Martin Liska <mliska@suse.cz>
13659
13660 * cgraph.c (cgraph_node::remove): Remove dead assignment before
13661 loop.
13662 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
13663 Enclose in anonymous namespace.
13664 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
13665 hard_register initialization in braces.
13666 * tree-vrp.h (value_range_base::supports_type_p): Return false
13667 for function with boolean return type.
13668
13669 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
13670
13671 * config/i386/i386.c (emit_i387_cw_initialization)
13672 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
13673
13674 2019-08-26 Martin Sebor <msebor@redhat.com>
13675
13676 PR c++/83431
13677 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
13678 (sprintf_dom_walker): Remove class.
13679 (get_int_range): Make argument const.
13680 (directive::fmtfunc, directive::set_precision): Same.
13681 (format_none): Same.
13682 (build_intmax_type_nodes): Same.
13683 (adjust_range_for_overflow): Same.
13684 (format_floating): Same.
13685 (format_character): Same.
13686 (format_string): Same.
13687 (format_plain): Same.
13688 (get_int_range): Cast away constness.
13689 (format_integer): Same.
13690 (get_string_length): Call get_range_strlen_dynamic. Handle
13691 null lendata.maxbound.
13692 (should_warn_p): Adjust argument scope qualifier.
13693 (maybe_warn): Same.
13694 (format_directive): Same.
13695 (parse_directive): Same.
13696 (is_call_safe): Same.
13697 (try_substitute_return_value): Same.
13698 (sprintf_dom_walker::handle_printf_call): Rename...
13699 (handle_printf_call): ...to this. Initialize target to host charmap
13700 here instead of in pass_sprintf_length::execute.
13701 (struct call_info): Make global.
13702 (sprintf_dom_walker::compute_format_length): Make global.
13703 (sprintf_dom_walker::handle_gimple_call): Same.
13704 * passes.def (pass_sprintf_length): Replace with pass_strlen.
13705 * print-rtl.c (print_pattern): Reduce the number of spaces to
13706 avoid -Wformat-truncation.
13707 * tree-pass.h (make_pass_warn_printf): New function.
13708 * tree-ssa-strlen.c (strlen_optimize): New variable.
13709 (get_string_length): Add comments.
13710 (get_range_strlen_dynamic): New function.
13711 (check_and_optimize_call): New function.
13712 (handle_integral_assign): New function.
13713 (strlen_check_and_optimize_stmt): Factor code out into
13714 strlen_check_and_optimize_call and handle_integral_assign.
13715 (strlen_dom_walker::evrp): New member.
13716 (strlen_dom_walker::before_dom_children): Use evrp member.
13717 (strlen_dom_walker::after_dom_children): Use evrp member.
13718 (printf_strlen_execute): New function.
13719 (pass_strlen::gate): Update to handle printf calls.
13720 (dump_strlen_info): New function.
13721 (pass_data_warn_printf): New variable.
13722 (pass_warn_printf): New class.
13723 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
13724 (handle_printf_call): Same.
13725 * tree-vrp.c (value_range_base::type): Adjust assertion.
13726 * vr-values.c (vr_values::update_value_range): Use type of the first
13727 argument rather than the second.
13728
13729 2019-08-26 Richard Biener <rguenther@suse.de>
13730
13731 * config/i386/i386-features.c (general_remove_non_convertible_regs):
13732 Remove.
13733 (convert_scalars_to_vector): Do not call it.
13734
13735 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13736 Uros Bizjak <ubizjak@gmail.com>
13737
13738 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
13739 CASE_MATHFN_FLOATN for roundeven.
13740 * config/i386/i386.c (ix86_i387_mode_needed): Add case
13741 I387_ROUNDEVEN.
13742 (ix86_mode_needed): Likewise.
13743 (ix86_mode_after): Likewise.
13744 (ix86_mode_entry): Likewise.
13745 (ix86_mode_exit): Likewise.
13746 (ix86_emit_mode_set): Likewise.
13747 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
13748 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
13749 (ix86_entity): Add I387_ROUNDEVEN.
13750 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
13751 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
13752 (define_int_iterator): Likewise.
13753 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
13754 (define_constant): Define ROUND_ROUNDEVEN mode.
13755 (define_attr): Add roundeven mode for i387_cw.
13756 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
13757 * internal-fn.def (ROUNDEVEN): New builtin function.
13758 * optabs.def (roundeven_optab): New optab.
13759
13760 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13761
13762 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
13763 for ROUNDEVEN.
13764 * builtins.def: Added function definitions for roundeven function
13765 variants.
13766 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
13767 function call. Adjust condition for floor, ceil, trunc and round.
13768 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
13769 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
13770 (integer_valued_real_call_p): Added case for roundeven function.
13771 * real.c (is_even): New function. Returns true if real number is even,
13772 otherwise returns false.
13773 (is_halfway_below): New function. Returns true if real number is
13774 halfway between two integers, else return false.
13775 (real_roundeven): New function. Round real number to nearest integer,
13776 rounding halfway cases towards even.
13777 * real.h (real_value): Added descriptive comments. Added function
13778 declaration for roundeven function.
13779 * doc/extend.texi (Other Builtins): List roundeven variants among
13780 functions which can be handled as builtins.
13781
13782 2019-08-26 Richard Biener <rguenther@suse.de>
13783
13784 PR target/91522
13785 PR target/91527
13786 * config/i386/i386-features.h (general_scalar_chain::defs_map):
13787 New member.
13788 (general_scalar_chain::replace_with_subreg): Remove.
13789 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13790 (general_scalar_chain::convert_reg): Adjust signature.
13791 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
13792 iterate over all defs of a reg.
13793 (general_scalar_chain::replace_with_subreg): Remove.
13794 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13795 (general_scalar_chain::make_vector_copies): Populate defs_map,
13796 place copy only after defs that are used as vectors in the chain.
13797 (general_scalar_chain::convert_reg): Emit a copy for a specific
13798 def in a specific instruction.
13799 (general_scalar_chain::convert_op): All reg uses are converted here.
13800 (general_scalar_chain::convert_insn): Emit copies for scalar
13801 uses of defs here. Replace uses with the copies we created.
13802 Replace and convert the def. Adjust REG_DEAD notes, remove
13803 REG_EQUIV/EQUAL notes.
13804 (general_scalar_chain::convert_registers): Only handle copies
13805 into the chain here.
13806
13807 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13808
13809 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
13810
13811 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13812
13813 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
13814 Add nop_convert case.
13815 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
13816 Fold all statements if requested.
13817 * tree-ssa-propagate.h (class substitute_and_fold_engine):
13818 Allow to fold all statements.
13819 * tree-vrp.c (class vrp_folder):
13820 Let substitute_and_fold_engine fold all statements.
13821
13822 2019-08-26 Richard Biener <rguenther@suse.de>
13823
13824 PR tree-optimization/91526
13825 * passes.def: Note that after late FRE we do TODO_update_address_taken.
13826 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
13827 TODO_update_address_taken.
13828
13829 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
13830
13831 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
13832 __STDC_HOSTED__.
13833
13834 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
13835
13836 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
13837 machine mode for unspec_volatile operand.
13838
13839 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13840
13841 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
13842 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
13843 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
13844 (prefer_neon_for_64bits): Remove.
13845 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
13846 (tune_params): Remove PREF_NEON_64_FALSE uses.
13847 (arm_option_override): Remove prefer_neon selection code.
13848 (arm_print_tune_info): Remove prefer_neon_for_64bits.
13849 * config/arm/arm-protos.h (tune_params): Remove
13850 prefer_neon_for_64bits.
13851 (prefer_neon_for_64bits): Remove.
13852
13853 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
13854
13855 PR pch/61250
13856 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
13857 and issue any diagnostics needed before collecting the pre-PCH
13858 state.
13859
13860 2019-08-23 Jakub Jelinek <jakub@redhat.com>
13861
13862 PR middle-end/91283
13863 * common.opt (fexcess-precision=): Add Optimization flag. Use
13864 flag_excess_precision variable instead of
13865 flag_excess_precision_cmdline.
13866 * flags.h (class target_flag_state): Remove x_flag_excess_precision
13867 member.
13868 (flag_excess_precision): Don't define.
13869 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
13870 flag_excess_precision_cmdline. Remove comment.
13871 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
13872 and x_flag_excess_precision instead of
13873 frontend_set_flag_excess_precision_cmdline and
13874 x_flag_excess_precision_cmdline.
13875 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
13876 x_flag_excess_precision_cmdline.
13877 * toplev.c (init_excess_precision): Remove.
13878 (lang_dependent_init_target): Don't call it.
13879
13880 2019-08-23 Martin Liska <mliska@suse.cz>
13881
13882 * lto-wrapper.c (run_gcc): When setting jobserver
13883 set also parallel to 1. This was done so before r273908.
13884
13885 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
13886
13887 * config/arm/arm-cpus.in (cortex-m35p): New entry.
13888 (cortex-a76ae): Likewise.
13889 (cortex-a77): Likewise
13890 * config/arm/arm-tables.opt: Regenerate.
13891 * config/arm/arm-tune.md: Likewise.
13892 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
13893 cortex-a77 CPU options.
13894
13895 2019-08-23 Martin Liska <mliska@suse.cz>
13896
13897 * profile.c (instrument_values): Do not set
13898 0 as last argument.
13899 * tree-profile.c (gimple_gen_interval_profiler): Remove
13900 last argument.
13901 (gimple_gen_pow2_profiler): Likewise.
13902 (gimple_gen_topn_values_profiler): Likewise.
13903 (gimple_gen_ic_profiler): Likewise.
13904 (gimple_gen_time_profiler): Likewise.
13905 (gimple_gen_average_profiler): Likewise.
13906 (gimple_gen_ior_profiler): Likewise.
13907 * value-prof.c (dump_histogram_value): Use default
13908 in switch statement instead of HIST_TYPE_MAX.
13909 (stream_in_histogram_value): Likewise.
13910 (gimple_duplicate_stmt_histograms): Do not
13911 use NULL for implicitly set arguments.
13912 (gimple_divmod_values_to_profile): Do not use
13913 reserve+quick_push.
13914 (gimple_indirect_call_to_profile): Likewise.
13915 (gimple_find_values_to_profile): Use implicit
13916 function call arguments.
13917 * value-prof.h (gimple_alloc_histogram_value):
13918 Set default values.
13919 (gimple_gen_interval_profiler): Remove last argument.
13920 (gimple_gen_pow2_profiler): Likewise.
13921 (gimple_gen_topn_values_profiler): Likewise.
13922 (gimple_gen_ic_profiler): Likewise.
13923 (gimple_gen_time_profiler): Likewise.
13924 (gimple_gen_average_profiler): Likewise.
13925 (gimple_gen_ior_profiler): Likewise.
13926
13927 2019-08-22 Martin Sebor <msebor@redhat.com>
13928
13929 PR middle-end/91490
13930 * builtins.c (c_strlen): Rename argument and introduce new local.
13931 Set no-warning bit on original argument.
13932 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
13933 Fold empty and zero constructors into empty strings.
13934 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
13935 for missing initializers.
13936 * tree.c (build_string_literal): Handle optional argument.
13937 * tree.h (build_string_literal): Add defaulted argument.
13938 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
13939 no-warning bit on original expression.
13940
13941 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13942
13943 PR target/91481
13944 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13945 and UNSPEC_DARN_RAW.
13946 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
13947 UNSPECV_DARN_RAW.
13948 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
13949 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
13950 (darn): Use an unspec_volatile, and UNSPECV_DARN.
13951
13952 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13953
13954 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13955 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
13956 * config/rs6000/rs6000.md (unspec): ... here.
13957 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
13958 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13959 cmpeqb, *cmpeqb_internal): Delete, move to...
13960 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
13961 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13962 cmpeqb, *cmpeqb_internal): ... here.
13963
13964 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13965
13966 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
13967 intrinsics if __ARM_FP.
13968 Use __ARM_FEATURE_CRC32 ifdef guard.
13969
13970 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13971
13972 * config/arm/arm.md (neon_for_64bits): Remove.
13973 (avoid_neon_for_64bits): Remove.
13974 (arm_adddi3): Always split early.
13975 (arm_subdi3): Always split early.
13976 (negdi2): Remove Neon expansion.
13977 (split zero_extend): Split before reload.
13978 (split sign_extend): Split before reload.
13979
13980 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13981
13982 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
13983 (qhs_extenddi_cstr): Likewise.
13984 * config/arm/arm.md (ashldi3): Always expand early.
13985 (ashlsi3): Likewise.
13986 (ashrsi3): Likewise.
13987 (zero_extend<mode>di2): Remove Neon variants.
13988 (extend<mode>di2): Likewise.
13989 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
13990 (signed_shift_di3_neon): Likewise.
13991 (unsigned_shift_di3_neon): Likewise.
13992 (ashrdi3_neon_imm_noclobber): Likewise.
13993 (lshrdi3_neon_imm_noclobber): Likewise.
13994 (<shift>di3_neon): Likewise.
13995 (split extend): Remove DI extend split patterns.
13996
13997 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13998
13999 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14000 (split not): Add DImode not splitter.
14001 (anddi3): Remove pattern.
14002 (anddi3_insn): Likewise.
14003 (anddi_zesidi_di): Likewise.
14004 (anddi_sesdi_di): Likewise.
14005 (anddi_notdi_di): Likewise.
14006 (anddi_notzesidi_di): Likewise.
14007 (anddi_notsesidi_di): Likewise.
14008 (iordi3): Likewise.
14009 (iordi3_insn): Likewise.
14010 (iordi_zesidi_di): Likewise.
14011 (iordi_sesidi_di): Likewise.
14012 (xordi3): Likewise.
14013 (xordi3_insn): Likewise.
14014 (xordi_sesidi_di): Likewise.
14015 (xordi_zesidi_di): Likewise.
14016 (one_cmpldi2): Likewise.
14017 (one_cmpldi2_insn): Likewise.
14018 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14019 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14020 alternative.
14021 (iwmmxt_xordi3): Likewise.
14022 (iwmmxt_anddi3): Likewise.
14023 * config/arm/neon.md (orndi3_neon): Remove pattern.
14024 (anddi_notdi_di): Likewise.
14025 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14026 (arm_iordi_operand_neon): Likewise.
14027 (arm_xordi_operand_neon): Likewise.
14028 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14029 (iordi_notzesidi_di): Likewise.
14030 (iordi_notdi_zesidi): Likewise.
14031 (iordi_notsesidi_di): Likewise.
14032
14033 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14034
14035 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14036 insn.
14037 (iorsi3_compare0_scratch): Likewise.
14038
14039 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14040
14041 * config/aarch64/aarch64-simd-builtins.def:
14042 (ld1x4): New.
14043 (st1x4): Likewise.
14044 * config/aarch64/aarch64-simd.md:
14045 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14046 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14047 (aarch64_ld1_x4_<mode>): Likewise.
14048 (aarch64_st1_x4_<mode>): Likewise.
14049 * config/aarch64/arm_neon.h:
14050 (vld1_s8_x4): New function.
14051 (vld1q_s8_x4): Likewise.
14052 (vld1_s16_x4): Likewise.
14053 (vld1q_s16_x4): Likewise.
14054 (vld1_s32_x4): Likewise.
14055 (vld1q_s32_x4): Likewise.
14056 (vld1_u8_x4): Likewise.
14057 (vld1q_u8_x4): Likewise.
14058 (vld1_u16_x4): Likewise.
14059 (vld1q_u16_x4): Likewise.
14060 (vld1_u32_x4): Likewise.
14061 (vld1q_u32_x4): Likewise.
14062 (vld1_f16_x4): Likewise.
14063 (vld1q_f16_x4): Likewise.
14064 (vld1_f32_x4): Likewise.
14065 (vld1q_f32_x4): Likewise.
14066 (vld1_p8_x4): Likewise.
14067 (vld1q_p8_x4): Likewise.
14068 (vld1_p16_x4): Likewise.
14069 (vld1q_p16_x4): Likewise.
14070 (vld1_s64_x4): Likewise.
14071 (vld1_u64_x4): Likewise.
14072 (vld1_p64_x4): Likewise.
14073 (vld1q_s64_x4): Likewise.
14074 (vld1q_u64_x4): Likewise.
14075 (vld1q_p64_x4): Likewise.
14076 (vld1_f64_x4): Likewise.
14077 (vld1q_f64_x4): Likewise.
14078 (vst1_s8_x4): Likewise.
14079 (vst1q_s8_x4): Likewise.
14080 (vst1_s16_x4): Likewise.
14081 (vst1q_s16_x4): Likewise.
14082 (vst1_s32_x4): Likewise.
14083 (vst1q_s32_x4): Likewise.
14084 (vst1_u8_x4): Likewise.
14085 (vst1q_u8_x4): Likewise.
14086 (vst1_u16_x4): Likewise.
14087 (vst1q_u16_x4): Likewise.
14088 (vst1_u32_x4): Likewise.
14089 (vst1q_u32_x4): Likewise.
14090 (vst1_f16_x4): Likewise.
14091 (vst1q_f16_x4): Likewise.
14092 (vst1_f32_x4): Likewise.
14093 (vst1q_f32_x4): Likewise.
14094 (vst1_p8_x4): Likewise.
14095 (vst1q_p8_x4): Likewise.
14096 (vst1_p16_x4): Likewise.
14097 (vst1q_p16_x4): Likewise.
14098 (vst1_s64_x4): Likewise.
14099 (vst1_u64_x4): Likewise.
14100 (vst1_p64_x4): Likewise.
14101 (vst1q_s64_x4): Likewise.
14102 (vst1q_u64_x4): Likewise.
14103 (vst1q_p64_x4): Likewise.
14104 (vst1_f64_x4): Likewise.
14105 (vst1q_f64_x4): Likewise.
14106
14107 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14108
14109 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14110
14111 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14112 Richard Sandiford <richard.sandiford@arm.com>
14113
14114 PR target/88839
14115 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14116 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14117
14118 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14119
14120 PR target/90724
14121 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14122 in reg if it fails aarch64_plus_operand predicate.
14123
14124 2019-08-21 Richard Biener <rguenther@suse.de>
14125
14126 PR tree-optimization/91482
14127 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14128 BUILT_IN_ASSUME_ALIGNED calls.
14129
14130 2019-08-21 Richard Biener <rguenther@suse.de>
14131
14132 PR target/91498
14133 PR target/91503
14134 * config/i386/i386-features.c
14135 (general_scalar_chain::make_vector_copies): Copy stack temporary
14136 rtx when using it multiple times.
14137 (general_scalar_chain::convert_reg): Likewise.
14138
14139 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14140
14141 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14142
14143 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14144
14145 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14146 catch more redundant zero initialization cases.
14147 (dse_dom_walker::dse_optimize_stmt): Likewise.
14148
14149 2019-08-20 Richard Biener <rguenther@suse.de>
14150
14151 PR lto/91307
14152 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14153 by collect2 when targetm.have_ctors_dtors which avoids dragging
14154 in temporary filenames from LTO input objects.
14155
14156 2019-08-20 Richard Biener <rguenther@suse.de>
14157
14158 PR tree-optimization/37242
14159 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14160 to (T)a + (T)b if we know that a + b does not overflow.
14161
14162 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14163
14164 PR rtl-optimization/91347
14165 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14166 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14167
14168 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14169
14170 * calls.h (function_arg_info): Add a pass_by_reference field,
14171 defaulting to false.
14172 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14173 when applying pass-by-reference semantics.
14174 (initialize_argument_information): Likewise.
14175 (emit_library_call_value_1): Likewise.
14176 * function.c (assign_parm_data_one): Remove passed_pointer field.
14177 (assign_parm_find_data_types): Don't set it.
14178 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14179 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14180 arg.pass_by_reference instead of passed_pointer.
14181
14182 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14183
14184 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14185 into a single function_arg_info, updating its fields when we
14186 apply pass-by-reference and promotion semantics. Use the
14187 function_arg_info to track the mode rather than keeping it in
14188 a separate local variable.
14189 (initialize_argument_information): Likewise. Base the final
14190 arg_to_skip on this new function_arg_info rather than creating
14191 a new one from scratch.
14192
14193 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14194
14195 * function.c (assign_parm_data_one): Replace passed_type,
14196 promoted_mode and named_arg with a function_arg_info field.
14197 (assign_parm_find_data_types): Remove local variables and
14198 assign directly to "data". Make data->passed_mode shadow
14199 data->arg.mode until promotion, then assign the promoted
14200 mode to data->arg.mode.
14201 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14202 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14203 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14204 (assign_parm_setup_block, assign_parm_setup_reg)
14205 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14206 arg.mode instead of promoted_mode, arg.type instead of passed_type
14207 and arg.named instead of named_arg. Use data->arg for
14208 function_arg_info structures that had the field values passed_type,
14209 promoted_mode and named_arg. Base other function_arg_infos on
14210 data->arg, changing the necessary properties.
14211
14212 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14213
14214 * calls.h (apply_pass_by_reference_rules): Declare.
14215 * calls.c (apply_pass_by_reference_rules): New function.
14216 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14217 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14218 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14219 * function.c (assign_parm_find_data_types): Likewise.
14220 * var-tracking.c (prepare_call_arguments): Likewise.
14221
14222 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14223
14224 * target.def (must_pass_in_stack): Take a function_arg_info instead
14225 of a mode and a type.
14226 * doc/tm.texi: Regenerate.
14227 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14228 instead of a mode and a type.
14229 (must_pass_in_stack_var_size_or_pad): Likewise.
14230 * calls.c (must_pass_in_stack_var_size): Likewise.
14231 (must_pass_in_stack_var_size_or_pad): Likewise.
14232 (initialize_argument_information): Update call to
14233 targetm.calls.must_pass_in_stack.
14234 (must_pass_va_arg_on_stack): Likewise.
14235 * function.c (assign_parm_find_entry_rtl): Likewise.
14236 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14237 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14238 (alpha_function_arg_advance): Likewise.
14239 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14240 (cr16_function_arg_advance): Likewise.
14241 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14242 (cris_arg_partial_bytes): Likewise.
14243 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14244 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14245 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14246 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14247 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14248 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14249 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14250 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14251 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14252 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14253 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14254 instead of a mode and a type.
14255 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14256 (fr30_num_arg_regs): Likewise.
14257 (fr30_setup_incoming_varargs): Update calls accordingly.
14258 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14259 (fr30_function_arg_advance): Likewise.
14260 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14261 instead of a mode and a type.
14262 * config/gcn/gcn.c (num_arg_regs): Likewise.
14263 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14264 num_arg_regs and targetm.calls.must_pass_in_stack.
14265 (gcn_arg_partial_bytes): Likewise.
14266 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14267 function_arg_info instead of a mode and a type.
14268 (classify_argument): Update call accordingly.
14269 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14270 function_arg_info instead of a mode and a type.
14271 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14272 Likewise.
14273 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14274 (rs6000_parm_needs_stack): Update call accordingly.
14275 (setup_incoming_varargs): Likewise.
14276
14277 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14278
14279 * target.def (callee_copies): Take a function_arg_info instead
14280 of a mode, type and named flag.
14281 * doc/tm.texi: Regenerate.
14282 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14283 instead of a mode, type and named flag.
14284 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14285 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14286 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14287 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14288 instead of a mode, type and named flag.
14289 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14290 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14291 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14292 * calls.h (reference_callee_copied): Take a function_arg_info
14293 instead of a mode, type and named flag.
14294 * calls.c (reference_callee_copied): Likewise.
14295 (initialize_argument_information): Update call accordingly.
14296 (emit_library_call_value_1): Likewise.
14297 * function.c (gimplify_parameters): Likewise.
14298 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14299 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14300 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14301 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14302 (TARGET_CALLEE_COPIES): Define to
14303 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14304 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14305 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14306 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14307 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14308 instead of a mode, type and named flag.
14309 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14310 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14311 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14312 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14313 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14314 (TARGET_CALLEE_COPIES): Define to
14315 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14316 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14317 instead of a mode, type and named flag.
14318 * config/sh/sh.c (sh_callee_copies): Likewise.
14319 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14320 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14321 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14322
14323 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14324
14325 * target.def (function_arg_advance): Take a function_arg_info instead
14326 of a mode, type and named flag.
14327 * doc/tm.texi: Regenerate.
14328 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14329 instead of a mode, type and named flag.
14330 * targhooks.c (default_function_arg_advance): Likewise.
14331 * calls.c (initialize_argument_information): Update call to
14332 targetm.calls.function_arg_advance.
14333 (emit_library_call_value_1): Likewise.
14334 * dse.c (get_call_args): Likewise.
14335 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14336 * function.c (assign_parms, gimplify_parameters): Likewise.
14337 * var-tracking.c (prepare_call_arguments): Likewise.
14338 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14339 function_arg_info instead of a mode, type and named flag.
14340 (aarch64_setup_incoming_varargs): Update call accordingly.
14341 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14342 function_arg_info instead of a mode, type and named flag.
14343 (alpha_setup_incoming_varargs): Update call accordingly.
14344 * config/arc/arc.c (arc_function_arg_advance): Take a
14345 function_arg_info instead of a mode, type and named flag.
14346 (arc_setup_incoming_varargs): Update call accordingly.
14347 * config/arm/arm.c (arm_function_arg_advance): Take a
14348 function_arg_info instead of a mode, type and named flag.
14349 (cmse_func_args_or_return_in_stack): Update call accordingly.
14350 (arm_function_ok_for_sibcall): Likewise.
14351 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14352 * config/avr/avr.c (avr_function_arg_advance): Take a
14353 function_arg_info instead of a mode, type and named flag.
14354 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14355 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14356 (c6x_call_saved_register_used): Update call accordingly.
14357 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14358 function_arg_info instead of a mode, type and named flag.
14359 * config/cris/cris.c (cris_function_arg_advance): Likewise.
14360 * config/csky/csky.c (csky_function_arg_advance): Likewise.
14361 (csky_setup_incoming_varargs): Update call accordingly.
14362 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14363 function_arg_info instead of a mode, type and named flag.
14364 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14365 * config/frv/frv.c (frv_function_arg_advance): Likewise.
14366 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14367 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14368 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14369 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14370 (ix86_setup_incoming_varargs): Update call accordingly.
14371 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14372 function_arg_info instead of a mode, type and named flag.
14373 (ia64_setup_incoming_varargs): Update call accordingly.
14374 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14375 function_arg_info instead of a mode, type and named flag.
14376 (iq2000_expand_prologue): Update call accordingly.
14377 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14378 function_arg_info instead of a mode, type and named flag.
14379 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
14380 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
14381 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14382 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
14383 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14384 Likewise.
14385 (microblaze_expand_prologue): Update call accordingly.
14386 * config/mips/mips.c (mips_function_arg_advance): Take a
14387 function_arg_info instead of a mode, type and named flag.
14388 (mips_setup_incoming_varargs): Update call accordingly.
14389 (mips_output_args_xfer): Likewise.
14390 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
14391 function_arg_info instead of a mode, type and named flag.
14392 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
14393 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
14394 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
14395 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
14396 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
14397 (nios2_setup_incoming_varargs): Update call accordingly.
14398 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
14399 function_arg_info instead of a mode, type and named flag.
14400 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
14401 * config/pa/pa.c (pa_function_arg_advance): Likewise.
14402 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
14403 * config/pru/pru.c (pru_function_arg_advance): Likewise.
14404 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
14405 (riscv_setup_incoming_varargs): Update call accordingly.
14406 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
14407 function_arg_info instead of a mode, type and named flag.
14408 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
14409 Likewise.
14410 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
14411 (rs6000_parm_needs_stack): Update call accordingly.
14412 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
14413 instead of a mode, type and named flag.
14414 * config/s390/s390.c (s390_function_arg_advance): Likewise.
14415 (s390_call_saved_register_used): Update call accordingly.
14416 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
14417 instead of a mode, type and named flag.
14418 (sh_output_mi_thunk): Update call accordingly.
14419 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
14420 function_arg_info instead of a mode, type and named flag.
14421 * config/spu/spu.c (spu_function_arg_advance): Likewise.
14422 (spu_setup_incoming_varargs): Update call accordingly.
14423 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
14424 function_arg_info instead of a mode, type and named flag.
14425 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
14426 (tilegx_setup_incoming_varargs): Update call accordingly.
14427 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
14428 function_arg_info instead of a mode, type and named flag.
14429 (tilegx_setup_incoming_varargs): Update call accordingly.
14430 * config/v850/v850.c (v850_function_arg_advance): Take a
14431 function_arg_info instead of a mode, type and named flag.
14432 * config/vax/vax.c (vax_function_arg_advance): Likewise.
14433 * config/visium/visium.c (visium_function_arg_advance): Likewise.
14434 (visium_setup_incoming_varargs): Update call accordingly.
14435 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
14436 function_arg_info instead of a mode, type and named flag.
14437
14438 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14439
14440 * target.def (function_arg, function_incoming_arg): Take a
14441 function_arg_info instead of a mode, tree and named flag.
14442 * doc/tm.texi: Regenerate.
14443 * targhooks.h (default_function_arg): Take a function_arg_info
14444 instead of a mode, tree and named flag.
14445 (default_function_incoming_arg): Likewise.
14446 * targhooks.c (default_function_arg): Likewise.
14447 (default_function_incoming_arg): Likewise.
14448 * calls.h (function_arg_info::end_marker_p): New function.
14449 (function_arg_info::end_marker): Likewise.
14450 * calls.c (prepare_call_address, initialize_argument_information)
14451 (expand_call, emit_library_call_value_1): Update calls to
14452 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
14453 * dse.c: Include calls.h.
14454 (get_call_args): Update call to targetm.calls.function_arg.
14455 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14456 * var-tracking.c (prepare_call_arguments): Likewise.
14457 * function.c (assign_parm_find_entry_rtl): Update call to
14458 targetm.calls.function_incoming_arg.
14459 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
14460 function_arg_info instead of a mode, tree and named flag.
14461 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14462 * config/arc/arc.c (arc_function_arg): Likewise.
14463 * config/arm/arm.c (arm_function_arg): Likewise.
14464 (cmse_func_args_or_return_in_stack): Update call accordingly.
14465 (arm_function_ok_for_sibcall): Likewise.
14466 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14467 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
14468 instead of a mode, tree and named flag.
14469 * config/bfin/bfin.c (bfin_function_arg): Likewise.
14470 * config/c6x/c6x.c (c6x_function_arg): Likewise.
14471 (c6x_call_saved_register_used): Update call accordingly.
14472 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
14473 instead of a mode, tree and named flag.
14474 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
14475 (cris_function_arg_1): Likewise.
14476 * config/csky/csky.c (csky_function_arg): Likewise.
14477 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
14478 * config/fr30/fr30.c (fr30_function_arg): Likewise.
14479 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
14480 (frv_function_arg_1): Likewise.
14481 * config/ft32/ft32.c (ft32_function_arg): Likewise.
14482 * config/gcn/gcn.c (gcn_function_arg): Likewise.
14483 * config/h8300/h8300.c (h8300_function_arg): Likewise.
14484 * config/i386/i386.c (ix86_function_arg): Likewise.
14485 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
14486 (ia64_function_arg_1): Likewise.
14487 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
14488 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
14489 accordingly.
14490 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
14491 instead of a mode, tree and named flag.
14492 * config/m32c/m32c.c (m32c_function_arg): Likewise.
14493 * config/m32r/m32r.c (m32r_function_arg): Likewise.
14494 * config/m68k/m68k.c (m68k_function_arg): Likewise.
14495 * config/mcore/mcore.c (mcore_function_arg): Likewise.
14496 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
14497 (microblaze_expand_prologue): Update call accordingly.
14498 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
14499 instead of a mode, tree and named flag.
14500 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
14501 (mmix_function_arg_1): Likewise.
14502 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
14503 * config/moxie/moxie.c (moxie_function_arg): Likewise.
14504 * config/msp430/msp430.c (msp430_function_arg): Likewise.
14505 * config/nds32/nds32.c (nds32_function_arg): Likewise.
14506 * config/nios2/nios2.c (nios2_function_arg): Likewise.
14507 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
14508 (nvptx_function_incoming_arg): Likewise.
14509 * config/or1k/or1k.c (or1k_function_arg): Likewise.
14510 * config/pa/pa.c (pa_function_arg): Likewise.
14511 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
14512 * config/pru/pru.c (pru_function_arg): Likewise.
14513 * config/riscv/riscv.c (riscv_function_arg): Likewise.
14514 * config/rl78/rl78.c (rl78_function_arg): Likewise.
14515 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
14516 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
14517 (rs6000_parm_needs_stack): Update call accordingly.
14518 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
14519 instead of a mode, tree and named flag.
14520 * config/s390/s390.c (s390_function_arg): Likewise.
14521 (s390_call_saved_register_used): Update call accordingly.
14522 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
14523 instead of a mode, tree and named flag.
14524 (sh_output_mi_thunk): Update call accordingly.
14525 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
14526 (sparc_function_incoming_arg): Take a function_arg_info instead of
14527 a mode, tree and named flag.
14528 * config/spu/spu.c (spu_function_arg): Likewise.
14529 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14530 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
14531 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
14532 * config/v850/v850.c (v850_function_arg): Likewise.
14533 * config/vax/vax.c (vax_function_arg): Likewise.
14534 * config/visium/visium.c (visium_function_arg): Likewise.
14535 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
14536 (xtensa_function_incoming_arg): Likewise.
14537
14538 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14539
14540 * target.def (setup_incoming_varargs): Take a function_arg_info
14541 instead of a mode and tree.
14542 * doc/tm.texi: Regenerate.
14543 * targhooks.h (default_setup_incoming_varargs): Take a
14544 function_arg_info instead of a mode and tree.
14545 * targhooks.c (default_setup_incoming_varargs): Likewise.
14546 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
14547 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
14548 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14549 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
14550 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
14551 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
14552 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
14553 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
14554 Likewise.
14555 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
14556 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
14557 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
14558 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
14559 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
14560 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
14561 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14562 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14563 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
14564 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
14565 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
14566 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
14567 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
14568 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
14569 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
14570 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
14571 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
14572 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
14573 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
14574 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
14575 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
14576 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
14577 * function.c (assign_parms_setup_varargs): Update call to
14578 targetm.calls.setup_incoming_varargs.
14579
14580 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14581
14582 * target.def (pass_by_reference): Take a function_arg_info instead
14583 of a mode, type and named flag.
14584 * doc/tm.texi: Regenerate.
14585 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
14586 accordingly.
14587 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
14588 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
14589 function_arg_info instead of a mode, type and named flag.
14590 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
14591 * calls.h (pass_by_reference): Take a function_arg_info instead of a
14592 mode, type and named flag.
14593 * calls.c (pass_by_reference): Likewise.
14594 (pass_va_arg_by_reference): Update call accordingly.
14595 (initialize_argument_information): Likewise.
14596 (emit_library_call_value_1): Likewise.
14597 * function.c (assign_parm_find_data_types): Likewise.
14598 * var-tracking.c (prepare_call_arguments): Likewise.
14599 * stor-layout.c: Include calls.h.
14600 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
14601 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
14602 function_arg_info instead of a mode, type and named flag.
14603 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
14604 * config/arc/arc.c (arc_pass_by_reference): Likewise.
14605 * config/arm/arm.c (arm_pass_by_reference): Likewise.
14606 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
14607 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
14608 (c6x_call_saved_register_used): Update call to pass_by_reference.
14609 * config/cris/cris.c (cris_pass_by_reference): Take a
14610 function_arg_info instead of a mode, type and named flag.
14611 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
14612 function_arg_info instead of a mode, type and named flag.
14613 (epiphany_arg_partial_bytes): Update call accordingly.
14614 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
14615 function_arg_info instead of a mode, type and named flag.
14616 (ft32_arg_partial_bytes): Update call accordingly.
14617 * config/i386/i386.c (ix86_pass_by_reference): Take a
14618 function_arg_info instead of a mode, type and named flag.
14619 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14620 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
14621 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
14622 (m32r_return_in_memory): Update call accordingly.
14623 * config/mips/mips.c (mips_pass_by_reference): Take a
14624 function_arg_info instead of a mode, type and named flag.
14625 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
14626 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
14627 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
14628 (moxie_arg_partial_bytes): Update call accordingly.
14629 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
14630 function_arg_info instead of a mode, type and named flag.
14631 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
14632 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
14633 * config/pa/pa.c (pa_pass_by_reference): Likewise.
14634 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
14635 (riscv_return_in_memory): Update call accordingly.
14636 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
14637 function_arg_info instead of a mode, type and named flag.
14638 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
14639 (rs6000_parm_needs_stack): Update call to pass_by_reference.
14640 * config/s390/s390.c (s390_pass_by_reference): Take a
14641 function_arg_info instead of a mode, type and named flag.
14642 (s390_call_saved_register_used): Update call accordingly.
14643 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
14644 instead of a mode, type and named flag.
14645 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
14646 * config/spu/spu.c (spu_pass_by_reference): Likewise.
14647 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
14648 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
14649 * config/v850/v850.c (v850_pass_by_reference): Likewise.
14650 * config/visium/visium.c (visium_pass_by_reference): Likewise.
14651
14652 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14653
14654 * target.def (arg_partial_bytes): Take a function_arg_info instead
14655 of a mode, type and named flag.
14656 * doc/tm.texi: Regenerate.
14657 * target.h (function_arg_info): Declare.
14658 * calls.h (function_arg_info): New class.
14659 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14660 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
14661 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14662 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
14663 * calls.c (initialize_argument_information): Update call to
14664 targetm.calls.partial_bytes.
14665 (emit_library_call_value_1): Likewise.
14666 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14667 * function.c (assign_parm_find_entry_rtl): Likewise.
14668 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
14669 function_arg_info instead of a mode, type and named flag.
14670 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
14671 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
14672 (cmse_func_args_or_return_in_stack): Update accordingly.
14673 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
14674 function_arg_info instead of a mode, type and named flag.
14675 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
14676 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
14677 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
14678 * config/fr30/fr30.c: Include calls.h.
14679 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
14680 type and named flag.
14681 * config/frv/frv.c: Include calls.h.
14682 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
14683 type and named flag.
14684 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
14685 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
14686 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
14687 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
14688 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
14689 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
14690 * config/microblaze/microblaze.c (function_arg_partial_bytes):
14691 Likewise.
14692 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
14693 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
14694 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
14695 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
14696 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
14697 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
14698 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
14699 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
14700 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
14701 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
14702 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
14703 (rs6000_parm_needs_stack): Update call accordingly.
14704 * config/sh/sh.c (sh_arg_partial_bytes): Take a
14705 function_arg_info instead of a mode, type and named flag.
14706 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
14707 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
14708
14709 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14710
14711 * calls.h (must_pass_va_arg_in_stack): Declare.
14712 * calls.c (must_pass_va_arg_in_stack): New function.
14713 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
14714 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
14715 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
14716 Likewise.
14717 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14718
14719 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14720
14721 * calls.h (pass_va_arg_by_reference): Declare.
14722 * calls.c (pass_va_arg_by_reference): New function.
14723 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
14724 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
14725 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
14726 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
14727 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14728 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
14729 (mips_gimplify_va_arg_expr): Likewise.
14730 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
14731 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14732 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
14733 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
14734 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
14735 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
14736 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
14737 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
14738 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
14739 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14740 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14741
14742 2019-08-20 Richard Biener <rguenther@suse.de>
14743
14744 PR target/91498
14745 * config/i386/i386-features.c (general_scalar_chain::convert_op):
14746 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
14747 (convert_scalars_to_vector): Add timode_p parameter and use it
14748 to guard TImode-only operation.
14749 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
14750 (pass_stv::execute): Pass down timode_p.
14751
14752 2019-08-20 Lili Cui <lili.cui@intel.com>
14753
14754 * common/config/i386/i386-common.c
14755 (processor_names): Add tigerlake and cooperlake.
14756 (processor_alias_table): Add tigerlake and cooperlake.
14757 * config.gcc: Add -march=tigerlake and cooperlake.
14758 * config/i386/driver-i386.c
14759 (host_detect_local_cpu): Detect tigerlake and cooperlake.
14760 Add "has_avx" to classify processor.
14761 * config/i386/i386-builtins.c (processor_model) :
14762 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
14763 (arch_names_table): Add tigerlake and cooperlake.
14764 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
14765 and PROCESSOR_COOPERLAKE.
14766 * config/i386/i386-c.c
14767 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
14768 * config/i386/i386-options.c
14769 (m_TIGERLAKE): Define.
14770 (m_COOPERLAKE): Ditto.
14771 (m_CORE_AVX512): Ditto.
14772 (processor_cost_table): Add cascadelake.
14773 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
14774 * config/i386/i386.h
14775 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
14776 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14777 (PTA_MOVDIRI): Ditto.
14778 (PTA_MOVDIR64B): Ditto.
14779 (PTA_COOPERLAKE): Ditto.
14780 (PTA_TIGERLAKE): Ditto.
14781 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14782 * doc/extend.texi: Add tigerlake and cooperlake.
14783 * doc/invoke.texi: Add tigerlake and cooperlake.
14784
14785 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
14786
14787 * doc/install.texi (Specific, alpha): Remove note to use
14788 binutils 2.11.2 or later.
14789
14790 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14791
14792 PR middle-end/89544
14793 * function.c (assign_parm_find_stack_rtl): Use larger alignment
14794 when possible.
14795
14796 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
14797
14798 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
14799 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
14800 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
14801 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
14802 * config/aarch64/constraints.md (Dt): New constraint
14803 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
14804
14805 2019-08-19 Richard Biener <rguenther@suse.de>
14806
14807 PR tree-optimization/91403
14808 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
14809 cases we can handle with tail-recursion...
14810 (follow_ssa_edge_expr): ... here. Do so.
14811
14812 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
14813
14814 PR target/91441
14815 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
14816 implemented for -fsanitize=kernel-address, and merge check logic
14817 with -fsanitize=address.
14818
14819 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
14820
14821 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
14822 for cpu and machine. Factor 64/32b builtins.
14823
14824 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
14825
14826 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
14827 gone, point to sourceforge.net.
14828
14829 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14830
14831 * doc/ux.texi (User Experience Guidelines): Update reference.
14832
14833 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14834
14835 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
14836 not LGPL".
14837
14838 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
14839
14840 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
14841 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
14842
14843 2019-08-16 Martin Sebor <msebor@redhat.com>
14844
14845 * tree.def (TYPE_SIZE): Clarify.
14846 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
14847
14848 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
14849
14850 PR tree-optimization/91109
14851 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
14852 * lra.c (lra): Use lra_need_for_scratch_reg_p.
14853 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
14854
14855 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
14856
14857 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
14858 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
14859 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
14860 (uavg<mode>3_ceil): New expander.
14861 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
14862 mode iterator when creating CONST1_RTX.
14863 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
14864 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
14865 mode iterator for const1_operand predicate.
14866
14867 2019-08-16 Richard Biener <rguenther@suse.de>
14868
14869 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
14870 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
14871 follow_ssa_edge.
14872 (follow_ssa_edge_in_condition_phi_branch): Likewise.
14873 (analyze_evolution_in_loop): Likewise.
14874 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
14875 (follow_ssa_edge_expr): ... here. Refactor code.
14876
14877 2019-08-16 Richard Biener <rguenther@suse.de>
14878
14879 PR target/91469
14880 * config/i386/i386-features.c
14881 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
14882
14883 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14884
14885 PR other/91255
14886 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
14887 only if subst_name matches curr_attr string.
14888
14889 2019-08-16 Richard Biener <rguenther@suse.de>
14890
14891 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
14892 stmt at gsi_p, instead replace it with a NOP removed later.
14893 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
14894 that became dead because of that.
14895
14896 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
14897
14898 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
14899 for which we can't represent a range.
14900 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
14901 set_varying.
14902 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
14903 Set VR_UNDEFINED if type is not supported.
14904 * tree-ssanames.c (get_range_info): Pass type to set_varying.
14905 * tree-vrp.c (value_range_base::check): Assert that a varying has
14906 min/max set.
14907 (value_range_base::equal_p): Early bail for undefines.
14908 (value_range_base::set_varying): Accept a type.
14909 (value_range::set_varying): Same.
14910 (value_range_base::type): VARYING can have a type, while UNDEFINE
14911 is typeless.
14912 (value_range_base::dump): Print type for VARYING nodes.
14913 (value_range_base::set): Add type to VARYING.
14914 (extract_range_from_multiplicative_op): Pass type to set_varying.
14915 (extract_range_from_binary_expr): Same.
14916 (value_range_base::intersect_helper): Same.
14917 (value_range_base::union_helper): Same.
14918 (value_range_base::normalize_symbolics): Same.
14919 (determine_value_range_1): Same.
14920 * tree-vrp.h (class value_range_base): Add type to set_varying.
14921 Add prototype for dump(void).
14922 Add prototype for supports_type_p.
14923 (class value_range): Add type to set_varying.
14924 Add prototype for dump(void).
14925 * vr-values.c (set_value_range_to_truthvalue): Pass type to
14926 set_varying.
14927 (vr_values::get_lattice_entry): Set varying even if propagation
14928 finished.
14929 Pass type to set_varying.
14930 (vr_values::get_value_range): Remove vr_const_varying.
14931 Reallocate the lattice if needed.
14932 (vr_values::update_value_range): Pass type to set_varying.
14933 (vr_values::extract_range_for_var_from_comparison_expr): Same.
14934 (vr_values::extract_range_from_binary_expr): Same.
14935 (vr_values::extract_range_from_unary_expr): Same.
14936 (vr_values::extract_range_from_cond_expr): Same.
14937 (vr_values::check_for_binary_op_overflow): Same.
14938 (vr_values::extract_range_basic): Same.
14939 (vr_values::extract_range_from_assignment): Same.
14940 (vr_values::vr_values): Increase size of num_vr_values.
14941 (vr_values::extract_range_from_phi_node): Pass type to
14942 set_varying.
14943
14944 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
14945
14946 PR target/90878
14947 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
14948 for costs of hard register moves.
14949 (ix86_register_move_cost): Likewise.
14950 * config/i386/i386.h (processor_costs): Move costs of hard
14951 register moves to hard_register. Add int_load, int_store,
14952 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14953 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
14954 for costs of RTL expressions.
14955 * config/i386/x86-tune-costs.h: Move costs of hard register
14956 moves to hard_register. Duplicate int_load, int_store,
14957 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14958 sse_load, sse_store for costs of RTL expressions.
14959
14960 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14961
14962 * target.def (setup_incoming_vararg_bounds): Remove.
14963 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
14964 * doc/tm.texi: Regenerate.
14965 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
14966 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
14967 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14968 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
14969
14970 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14971
14972 MSP430: Fix lines over 80 characters long in
14973 config/msp430/*.{c,h} files
14974
14975 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
14976 specifier in string.
14977 (msp430_select_hwmult_lib): Split line more than 80 characters long.
14978 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
14979 redundant old comment.
14980 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
14981 Split line more than 80 characters long.
14982 * config/msp430/msp430.c (msp430_option_override): Likewise.
14983 (msp430_return_in_memory): Likewise.
14984 (msp430_gimplify_va_arg_expr): Likewise.
14985 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
14986 (msp430_legitimate_constant): Likewise.
14987 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
14988 (msp430_attr): Likewise.
14989 (msp430_data_attr): Likewise.
14990 (msp430_start_function): Likewise.
14991 (gen_prefix): Likewise.
14992 (msp430_init_sections): Likewise.
14993 (msp430_select_section): Likewise.
14994 (msp430_function_section): Likewise.
14995 (msp430_unique_section): Likewise.
14996 (msp430_output_aligned_decl_common): Likewise.
14997 (msp430_do_not_relax_short_jumps): Likewise.
14998 (msp430_init_builtins): Likewise.
14999 (msp430_expand_delay_cycles): Likewise.
15000 (msp430_expand_prologue): Likewise.
15001 (msp430_expand_epilogue): Likewise.
15002 (msp430_expand_helper): Likewise.
15003 (msp430_split_movsi): Likewise.
15004 (msp430_print_operand): Likewise.
15005 (msp430_return_addr_rtx): Likewise.
15006 (msp430x_extendhisi): Likewise.
15007 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15008 (ASM_SPEC): Likewise.
15009 Remove very obvious comments.
15010 (LIB_SPEC): Split line more than 80 characters long.
15011 (EH_RETURN_HANDLER_RTX): Likewise.
15012 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15013
15014 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15015
15016 MSP430: Fix whitespace errors and incorrect indentation in
15017 config/msp430/*.{c,h} files
15018
15019 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15020 (msp430_select_hwmult_lib): Likewise.
15021 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15022 (msp430_extract_mcu_data): Likewise.
15023 (struct t_msp430_mcu_data): Likewise.
15024 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15025 before left square bracket.
15026 (msp430_option_override): Fix indentation.
15027 (msp430_hard_regno_nregs_with_padding): Likewise.
15028 (msp430_initial_elimination_offset): Likewise.
15029 (msp430_special_register_convention_p): Remove whitespace before left
15030 square bracket and after exclamation mark.
15031 (msp430_evaluate_arg): Likewise.
15032 (msp430_callee_copies): Fix indentation.
15033 (msp430_gimplify_va_arg_expr): Likewise.
15034 (msp430_function_arg_advance): Remove whitespace before left square
15035 bracket.
15036 (reg_ok_for_addr): Likewise.
15037 (msp430_preserve_reg_p): Likewise.
15038 (msp430_compute_frame_info): Likewise.
15039 (msp430_asm_output_addr_const_extra): Add space between function name
15040 and open parenthesis.
15041 (has_section_name): Fix indentation.
15042 (msp430_attr): Remove trailing whitespace.
15043 (msp430_section_attr): Likewise.
15044 (msp430_data_attr): Likewise.
15045 (struct msp430_attribute_table): Fix comment and whitespace.
15046 (msp430_start_function): Remove whitespace before left square bracket.
15047 Add space between function name and open parenthesis.
15048 (msp430_select_section): Remove trailing whitespace.
15049 (msp430_section_type_flags): Remove trailing whitespace.
15050 (msp430_unique_section): Remove space before closing parenthesis.
15051 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15052 (msp430_builtins): Remove whitespace before left square bracket.
15053 (msp430_init_builtins): Fix indentation.
15054 (msp430_expand_prologue): Remove whitespace before left square bracket.
15055 Remove space before closing parenthesis.
15056 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15057 (msp430_split_movsi): Remove space before closing parenthesis.
15058 (helper_function_name_mappings): Fix indentation.
15059 (msp430_use_f5_series_hwmult): Fix whitespace.
15060 (use_32bit_hwmult): Likewise.
15061 (msp430_no_hwmult): Likewise.
15062 (msp430_output_labelref): Remove whitespace before left square bracket.
15063 (msp430_print_operand_raw): Likewise.
15064 (msp430_print_operand_addr): Likewise.
15065 (msp430_print_operand): Add two spaces after '.' in comment.
15066 Fix trailing whitespace.
15067 (msp430x_extendhisi): Fix indentation.
15068 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15069 tab.
15070 (PC_REGNUM): Likewise.
15071 (STACK_POINTER_REGNUM): Likewise.
15072 (CC_REGNUM): Likewise.
15073
15074 2019-08-15 Richard Biener <rguenther@suse.de>
15075
15076 PR target/91454
15077 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15078 helper.
15079 (general_scalar_chain::make_vector_copies): Use it.
15080
15081 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15082
15083 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15084
15085 2019-08-15 Martin Liska <mliska@suse.cz>
15086
15087 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15088 operators with no arguments.
15089 (eliminate_unnecessary_stmts): Likewise here.
15090
15091 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15092
15093 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15094 <case COMPARE>: Revert 2019-08-14 change.
15095 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15096 for (TARGET_64BIT || mode != DImode).
15097
15098 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15099
15100 * tree-vrp.c (value_range_base::set): Merge in code from
15101 value_range_base::set_and_canonicalize.
15102 Enforce canonicalization at set time.
15103 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15104 (value_range_base::set_undefined): Inline call to set().
15105 (value_range_base::set_varying): Same.
15106 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15107 (vrp_val_max): New argument handle_pointers.
15108 (vrp_val_min): Same.
15109 (ranges_from_anti_range): Same.
15110 (extract_range_into_wide_ints): Use tree argument instead of sign
15111 and precision.
15112 (extract_range_from_multiplicative_op): Take in tree type instead
15113 of precision and sign. Adapt function for canonicalized ranges.
15114 (extract_range_from_binary_expr): Pass type to
15115 extract_range_from_multiplicative_op.
15116 Adapt for canonicalized ranges.
15117 (extract_range_from_unary_expr): Same.
15118 (value_range_base::intersect_helper): Adjust for canonicalized
15119 ranges.
15120 (value_range_base::union_helper): Same.
15121 (value_range_base::normalize_symbolics): New.
15122 * tree-vrp.h (class value_range_base): Remove
15123 set_and_canonicalize.
15124 New prototype for normalize_symbolics.
15125 (class value_range): Remove set_and_canonicalize.
15126 (vrp_val_min): Adjust prototype.
15127 (vrp_val_max): Same.
15128 * vr-values.c
15129 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15130 instead of set_and_canonicalize.
15131
15132 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15133
15134 PR middle-end/91444
15135 * tree-vect-stmts.c (vectorizable_call): Check that the function
15136 is a BUILT_IN_MD function before passing it to
15137 targetm.vectorize.builtin_md_vectorized_function.
15138
15139 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15140
15141 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15142 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15143 (aarch64_select_early_remat_modes): Use it.
15144
15145 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15146
15147 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15148 16 for SVE predicates even if they are fixed-length.
15149
15150 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15151
15152 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15153 operand order match the MOV /Z alias.
15154
15155 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15156
15157 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15158 the vector pattern as an aarch64_svpattern argument. Update the
15159 overloaded caller accordingly.
15160 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15161 (aarch64_output_sve_vector_inc_dec): Likewise.
15162
15163 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15164
15165 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15166 multiplication case, try to compute VG * (lowest set bit) directly
15167 rather than always basing the multiplication on VG. Use
15168 expand_mult for the multiplication if we can.
15169
15170 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15171
15172 * config/aarch64/aarch64-protos.h
15173 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15174 (aarch64_sve_inc_dec_immediate_p): Rename to...
15175 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15176 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15177 (aarch64_output_sve_scalar_inc_dec): Declare.
15178 (aarch64_output_sve_inc_dec_immediate): Rename to...
15179 (aarch64_output_sve_vector_inc_dec): ...this.
15180 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15181 (aarch64_output_sve_scalar_inc_dec): New functions.
15182 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15183 arguments. Only handle true ADDVL and ADDPL instructions;
15184 don't emit an INC or DEC.
15185 (aarch64_sve_inc_dec_immediate_p): Rename to...
15186 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15187 (aarch64_output_sve_inc_dec_immediate): Rename to...
15188 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15189 aarch64_sve_vector_inc_dec_immediate_p.
15190 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15191 (aarch64_sve_plus_immediate): New predicates.
15192 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15193 rather than aarch64_sve_addvl_addpl_immediate.
15194 (aarch64_sve_inc_dec_immediate): Rename to...
15195 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15196 aarch64_sve_vector_inc_dec_immediate_p.
15197 (aarch64_sve_add_operand): Update accordingly.
15198 * config/aarch64/constraints.md (Uai): New constraint.
15199 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15200 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15201 operand into a register if it satisfies aarch64_sve_plus_immediate.
15202 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15203 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15204 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15205 aarch64_output_sve_vector_inc_dec instead of
15206 aarch64_output_sve_inc_dec_immediate.
15207
15208 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15209
15210 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15211 (UNSPEC_REVW): New constants.
15212 (elem_bits): New mode attribute.
15213 (SVE_INT_UNARY): New int iterator.
15214 (optab): Handle UNSPEC_REV[BHW].
15215 (sve_int_op): New int attribute.
15216 (min_elem_bits): Handle VNx16QI and the predicate modes.
15217 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15218 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15219 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15220 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15221 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15222 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15223 unspecs based on the total width of the reversed data.
15224 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15225 reinterpret followed by a subreg on big-endian targets.
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
15231 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15232 alternatives in which one of the inputs is in the same register
15233 as the output.
15234
15235 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15236
15237 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15238 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15239
15240 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15241
15242 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15243 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15244
15245 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15246 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15247
15248 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15249 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15250 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15251
15252 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15253 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15254
15255 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15256 Add an alternative that uses reversed shifts.
15257
15258 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15259
15260 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15261 struct.
15262
15263 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15264
15265 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15266 a commutativity marker.
15267
15268 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15269 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15270
15271 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15272 (aarch64_prepare_sve_cond_int_fma): Declare.
15273 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15274 (aarch64_prepare_sve_int_fma): New functions.
15275 (aarch64_prepare_sve_cond_int_fma): Likewise.
15276 * config/aarch64/aarch64-sve.md
15277 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15278 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15279 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15280 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15281 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15282 (*madd<mode>): Rename to...
15283 (*fma<mode>4): ...this.
15284 (*msub<mode>): Rename to...
15285 (*fnma<mode>4): ...this.
15286
15287 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15288 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15289
15290 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15291 Print 2.0 naturally.
15292 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15293 * config/aarch64/predicates.md
15294 (aarch64_sve_float_negated_arith_immediate): New predicate,
15295 renamed from aarch64_sve_float_arith_with_sub_immediate.
15296 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15297 positive and negative constants.
15298 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15299 or an aarch64_sve_float_arith_with_sub_immediate.
15300 * config/aarch64/constraints.md (vsN): Use
15301 aarch64_sve_float_negated_arith_immediate.
15302 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15303 iterator.
15304 (sve_pred_fp_rhs2_immediate): New int attribute.
15305 * config/aarch64/aarch64-sve.md
15306 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15307 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15308 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15309 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15310 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15311 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15312
15313 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15314 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15315
15316 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15317 (*aarch64_cond_abd<SVE_F:mode>_3)
15318 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15319
15320 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15321 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15322
15323 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15324 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15325
15326 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15327 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15328
15329 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15330 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15331 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15332 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15333 optabs.
15334 * optabs.h (create_convert_operand_from): Expand comment.
15335 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15336 when mapping scalar rtxes to vector operands.
15337 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15338 ashiftrt and lshiftrt.
15339 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15340 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15341 (*cond_<optab><mode>_any_const): New patterns.
15342
15343 2019-08-15 Martin Liska <mliska@suse.cz>
15344
15345 PR ipa/91438
15346 * cgraph.c (cgraph_node::remove): When setting
15347 n->origin = NULL for all nested functions, reset
15348 also next_nested.
15349
15350 2019-08-15 Martin Liska <mliska@suse.cz>
15351
15352 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15353 and next_nested.
15354
15355 2019-08-15 Martin Liska <mliska@suse.cz>
15356
15357 PR ipa/91404
15358 * passes.c (order): Remove.
15359 (uid_hash_t): Likewise).
15360 (remove_cgraph_node_from_order): Remove from set
15361 of pointers (cgraph_node *).
15362 (insert_cgraph_node_to_order): New.
15363 (duplicate_cgraph_node_to_order): New.
15364 (do_per_function_toporder): Register all 3 cgraph hooks.
15365 Skip removed_nodes now as we know about all of them.
15366
15367 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
15368
15369 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15370 <case E_V8QImode>: Use vector_set path for
15371 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15372 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15373 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15374
15375 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15376
15377 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15378
15379 2019-08-14 Martin Sebor <msebor@redhat.com>
15380
15381 PR tree-optimization/91294
15382 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
15383 source length as exact.
15384
15385 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
15386
15387 * doc/extend.texi: Add "noinit" attribute documentation.
15388 * doc/sourcebuild.texi: Add noinit effective target documentation.
15389 * varasm.c (default_section_type_flags): Add support for "noinit"
15390 section.
15391 (default_elf_select_section): Add support for "noinit" attribute.
15392 * config/msp430/msp430.c (msp430_attribute_table): Remove
15393 "noinit" entry.
15394
15395 2019-08-14 Richard Biener <rguenther@suse.de>
15396 Uroš Bizjak <ubizjak@gmail.com>
15397
15398 PR target/91154
15399 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15400 mode arguments.
15401 (scalar_chain::smode): New member.
15402 (scalar_chain::vmode): Likewise.
15403 (dimode_scalar_chain): Rename to...
15404 (general_scalar_chain): ... this.
15405 (general_scalar_chain::general_scalar_chain): Take mode arguments.
15406 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
15407 base with TImode and V1TImode.
15408 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15409 (general_scalar_chain::vector_const_cost): Adjust for SImode
15410 chains.
15411 (general_scalar_chain::compute_convert_gain): Likewise. Add
15412 {S,U}{MIN,MAX} support.
15413 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
15414 (general_scalar_chain::make_vector_copies): Likewise. Handle
15415 non-DImode chains appropriately.
15416 (general_scalar_chain::convert_reg): Likewise.
15417 (general_scalar_chain::convert_op): Likewise.
15418 (general_scalar_chain::convert_insn): Likewise. Add
15419 fatal_insn_not_found if the result is not recognized.
15420 (convertible_comparison_p): Pass in the scalar mode and use that.
15421 (general_scalar_to_vector_candidate_p): Likewise. Rename from
15422 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
15423 (scalar_to_vector_candidate_p): Remove by inlining into single
15424 caller.
15425 (general_remove_non_convertible_regs): Rename from
15426 dimode_remove_non_convertible_regs.
15427 (remove_non_convertible_regs): Remove by inlining into single caller.
15428 (convert_scalars_to_vector): Handle SImode and DImode chains
15429 in addition to TImode chains.
15430 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
15431 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
15432 (*<maxmin>di3_doubleword): Likewise.
15433
15434 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15435 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15436
15437 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
15438 (*cond_bic<mode>_any): New patterns.
15439
15440 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15441
15442 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
15443 take the equivalent mask, as well as a bit count.
15444 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
15445 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
15446 (aarch64_sve_pred_and_operand): New predicates.
15447 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
15448 code attribute.
15449 * config/aarch64/aarch64-sve.md
15450 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
15451 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
15452
15453 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15454
15455 * config/aarch64/aarch64-sve.md
15456 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15457 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
15458 New patterns.
15459
15460 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15461 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15462
15463 * config/aarch64/aarch64-sve.md
15464 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
15465 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
15466
15467 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15468 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15469
15470 * config/aarch64/aarch64-sve.md
15471 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
15472 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
15473
15474 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15475
15476 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
15477 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
15478 New pattern.
15479
15480 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15481 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15482
15483 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
15484
15485 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15486 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15487
15488 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
15489 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
15490 (aarch64_print_operand): Add support for %I.
15491 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
15492 Bitcast floating-point constants to the corresponding integer constant.
15493 (aarch64_float_const_representable_p): Handle vectors as well
15494 as scalars.
15495 (aarch64_expand_sve_vcond): Make sure that the operands are valid
15496 for the new vcond_mask_<mode><vpred> expander.
15497 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
15498 test aarch64_float_const_representable_p.
15499 (aarch64_sve_reg_or_dup_imm): New predicate.
15500 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
15501 gen_vcond_mask_<mode><vpred> instead of
15502 gen_aarch64_sve_dup<mode>_const.
15503 (vcond_mask_<mode><vpred>): Turn into a define_expand that
15504 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
15505 for operands 1 and 2 respectively. Force operand 2 into a
15506 register if operand 1 is a register. Fold old define_insn...
15507 (aarch64_sve_dup<mode>_const): ...and this define_insn...
15508 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
15509 floating-point constants that can be moved as integers. Add
15510 alternatives for MOV /M and FMOV /M.
15511 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
15512 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
15513 1 and 2 respectively.
15514 * config/aarch64/constraints.md (Ufc): Handle vectors as well
15515 as scalars.
15516 (vss): New constraint.
15517
15518 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15519
15520 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
15521 (aarch64_sve_float_maxmin_operand): New predicates.
15522 * config/aarch64/constraints.md (vsB): New constraint.
15523 (vsM): Fix typo.
15524 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
15525 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
15526 UNSPEC_COND_FMINNM.
15527 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
15528 Use aarch64_sve_float_maxmin_operand for operand 2.
15529 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
15530 Add alternatives for the constant forms.
15531
15532 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15533
15534 * config/aarch64/constraints.md (vsb): New constraint.
15535 (vsm): Generalize description.
15536 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
15537 iterator.
15538 (sve_imm_con): Handle smax, smin, umax and umin.
15539 (sve_imm_prefix): New code attribute.
15540 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
15541 (aarch64_sve_vsb_operand): New predicates.
15542 (aarch64_sve_mul_immediate): Rename to...
15543 (aarch64_sve_vsm_immediate): ...this.
15544 (aarch64_sve_mul_operand): Rename to...
15545 (aarch64_sve_vsm_operand): ...this.
15546 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
15547 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
15548 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
15549 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
15550 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
15551 add movprfx support for the immediate alternatives.
15552 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
15553 of the above.
15554 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
15555 for operand 3.
15556
15557 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15558
15559 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
15560 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
15561 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
15562
15563 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15564
15565 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
15566 (optab, sve_int_op): Handle them.
15567 * config/aarch64/aarch64-sve.md: Expand comment.
15568
15569 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15570
15571 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
15572 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
15573 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
15574
15575 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15576
15577 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
15578 (aarch64_expand_sve_const_pred_trn): New functions.
15579 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
15580 use the above functions when the parameter is true.
15581 (aarch64_expand_sve_const_pred): Update call accordingly.
15582 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
15583 Rename to...
15584 (@aarch64_sve_<perm_insn><mode>): ...this.
15585
15586 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15587
15588 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
15589 Declare.
15590 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
15591 (aarch64_sve_emit_int_cmp): New functions.
15592 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
15593 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
15594 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
15595 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
15596 (UNSPEC_PRED_Z): New unspec.
15597 (set_clobber_cc_nzc): Delete.
15598 * config/aarch64/aarch64-sve.md: Add a block comment about
15599 UNSPEC_PRED_Z.
15600 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
15601 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
15602 the old pattern with that name. Use UNSPEC_PRED_Z instead of
15603 UNSPEC_MERGE_PTRUE.
15604 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
15605 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
15606 check for compatible predicates.
15607 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
15608 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
15609 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
15610 comparisons above.
15611
15612 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15613
15614 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
15615 * config/aarch64/aarch64-sve.md: Add a section describing it.
15616 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
15617 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
15618 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
15619 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
15620 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
15621 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
15622 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
15623 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
15624 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
15625 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
15626 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
15627 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
15628 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
15629 (aarch64_evpc_rev_local): Update accordingly.
15630
15631 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15632
15633 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
15634 iterators.
15635 (SVE_BHSI, SVE_SDI): Tweak comment.
15636 (SVE_HSDI): Likewise. Fix definition.
15637 (SVE_SDF): New mode iterator.
15638 (elem_bits): New mode attribute.
15639 (SVE_COND_FCVT): New int iterator.
15640 * config/aarch64/aarch64-sve.md
15641 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
15642 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
15643 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
15644 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15645 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
15646 ...these new patterns.
15647 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
15648 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
15649 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
15650 Merge into...
15651 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
15652 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
15653 ...these new patterns.
15654 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
15655 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
15656 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
15657 ...this new pattern.
15658 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
15659 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
15660 ...this new pattern.
15661 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
15662
15663 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15664
15665 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
15666 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
15667 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
15668 unspecs.
15669 (optab, su): Handle them.
15670 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
15671 * config/aarch64/aarch64-sve.md
15672 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
15673 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
15674 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
15675 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
15676 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
15677 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
15678 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
15679 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
15680 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
15681 FIXUORS.
15682 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
15683 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
15684 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
15685 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
15686 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
15687 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
15688 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
15689 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
15690 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
15691 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
15692 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
15693 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
15694 of UNSPEC_FLOAT_CONVERT.
15695 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
15696 aarch64_sve_extend<mode><Vwide>2.
15697
15698 2019-08-14 Richard Biener <rguenther@suse.de>
15699
15700 PR target/91154
15701 * config/i386/i386-features.c
15702 (dimode_scalar_chain::compute_convert_gain): Compute and dump
15703 individual instruction gain. Fix reg-reg copy GRP cost. Use
15704 ix86_cost->sse_op for vector instruction costs.
15705
15706 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15707
15708 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
15709 (cmp_op): Handle it.
15710 (SVE_COND_FP_CMP): Rename to...
15711 (SVE_COND_FP_CMP_I0): ...this.
15712 (SVE_FP_CMP): Remove.
15713 * config/aarch64/aarch64-sve.md
15714 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
15715 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
15716 using unspecs to represent the comparison.
15717 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
15718 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
15719 accordingly.
15720 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
15721 (aarch64_unspec_cond_code): Move after integer code. Handle
15722 UNORDERED.
15723 (aarch64_emit_sve_predicated_cond): Replace with...
15724 (aarch64_emit_sve_fp_cond): ...this new function.
15725 (aarch64_emit_sve_or_conds): Replace with...
15726 (aarch64_emit_sve_or_fp_conds): ...this new function.
15727 (aarch64_emit_sve_inverted_cond): Replace with...
15728 (aarch64_emit_sve_invert_fp_cond): ...this new function.
15729 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
15730
15731 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15732
15733 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
15734 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
15735 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
15736 SVE_HSD instead of SVE_SD.
15737
15738 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15739 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15740
15741 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
15742 iterator.
15743 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
15744 attributes.
15745 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
15746 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
15747 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
15748 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
15749 (*div<SVE_F:mode>3): Generalize to...
15750 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
15751
15752 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15753 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15754
15755 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
15756 constants.
15757 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
15758 predicate.
15759 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
15760 Declare.
15761 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
15762 function.
15763 * config/aarch64/aarch64-sve.md: Add a block comment about the
15764 handling of predicated FP operations.
15765 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
15766 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
15767 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15768 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
15769 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
15770 operand.
15771 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
15772 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
15773 operand.
15774 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
15775 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
15776 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
15777 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
15778 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
15779 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15780 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
15781 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
15782 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
15783 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
15784 strictness operands. Use aarch64_sve_pred_dominates_p to check
15785 whether the predicate on the conditional operation is suitable
15786 for merging. Split patterns into the canonical equal-predicate form.
15787 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
15788 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
15789
15790 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15791 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15792
15793 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
15794 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
15795 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
15796 rtx codes.
15797 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
15798 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
15799 unspecs.
15800
15801 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15802 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15803
15804 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
15805 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
15806 actually has, rather than relying on REG_EQUAL notes.
15807 Make the insn operand order match the SVE operand order.
15808 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
15809 the SVE operand order.
15810
15811 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15812
15813 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
15814 (aarch64_emit_set_immediate): Likewise.
15815 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
15816 (aarch64_pfalse_reg): Likewise.
15817 (aarch64_convert_sve_data_to_pred): New function.
15818 (aarch64_sve_move_pred_via_while): Take an optional target register
15819 and the required register mode.
15820 (aarch64_expand_sve_const_pred_1): New function.
15821 (aarch64_expand_sve_const_pred): Likewise.
15822 (aarch64_expand_mov_immediate): Build an all-true predicate
15823 if the significant bits of the immediate are all true. Use
15824 aarch64_expand_sve_const_pred for all compile-time predicate constants.
15825 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
15826 before register allocation.
15827 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
15828 a VNx16BI PTRUE when splitting the memory alternative.
15829 (vec_duplicate<mode>): Update accordingly.
15830 (*pred_cmp<cmp_op><mode>): Rename to...
15831 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
15832
15833 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15834
15835 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
15836 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
15837 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
15838 (UNSPEC_PTEST): New unspec.
15839 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
15840 * config/aarch64/iterators.md (data_bytes): New mode attribute.
15841 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
15842 * config/aarch64/aarch64-sve.md: Add a new section describing the
15843 handling of UNSPEC_PTEST.
15844 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
15845 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
15846 (ptest_ptrue<mode>): Replace with...
15847 (aarch64_ptest<mode>): ...this new pattern.
15848 (cbranch<mode>4): Update after above changes.
15849 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
15850 UNSPEC_PTEST_PTRUE.
15851 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
15852 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
15853 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
15854
15855 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
15856
15857 PR lto/91287
15858 * builtins.c (builtin_with_linkage_p): New function.
15859 * builtins.h (builtin_with_linkage_p): New function.
15860 * symtab.c (write_symbol): Remove redundant assert.
15861 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
15862 Remove FIXME and use builtin_with_linkage_p.
15863
15864 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15865
15866 PR middle-end/91421
15867 * tree-core.h (function_decl::function_code): Change type to
15868 unsigned int.
15869 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
15870 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
15871 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
15872 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
15873 is BUILT_IN_NORMAL.
15874 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
15875 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
15876 (fndecl_built_in_p): Change the type of the "name" argument to
15877 unsigned int.
15878 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
15879 after check for DECL_BUILT_IN_CLASS.
15880 * cgraphclones.c (build_function_decl_skip_args): Use
15881 set_decl_built_in_function.
15882 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
15883 * ipa-split.c (split_function): Likewise.
15884 * langhooks.c (add_builtin_function_common): Likewise.
15885 * omp-simd-clone.c (simd_clone_create): Likewise.
15886 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15887 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
15888 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
15889 DECL_FUNCTION_CODE.
15890 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
15891 instead of DECL_FUNCTION_CODE.
15892 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
15893 instead of DECL_FUNCTION_CODE.
15894 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15895 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
15896 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
15897 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
15898 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
15899 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
15900 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
15901 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
15902 (alpha_gimple_fold_builtin): Likewise.
15903 * config/arc/arc.c (arc_expand_builtin): Likewise.
15904 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
15905 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
15906 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
15907 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
15908 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
15909 * config/frv/frv.c (frv_expand_builtin): Likewise.
15910 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
15911 (gcn_expand_builtin): Likewise.
15912 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
15913 (fold_builtin_cpu): Likewise.
15914 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
15915 * config/i386/i386.c (ix86_fold_builtin): Likewise.
15916 (ix86_gimple_fold_builtin): Likewise.
15917 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
15918 (ia64_expand_builtin): Likewise.
15919 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
15920 * config/mips/mips.c (mips_expand_builtin): Likewise.
15921 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
15922 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15923 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
15924 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
15925 * config/pa/pa.c (pa_expand_builtin): Likewise.
15926 * config/pru/pru.c (pru_expand_builtin): Likewise.
15927 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
15928 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15929 Likewise.
15930 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
15931 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
15932 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
15933 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
15934 (rs6000_builtin_reciprocal): Likewise.
15935 * config/rx/rx.c (rx_expand_builtin): Likewise.
15936 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15937 * config/s390/s390.c (s390_expand_builtin): Likewise.
15938 * config/sh/sh.c (sh_expand_builtin): Likewise.
15939 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
15940 (sparc_fold_builtin): Likewise.
15941 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
15942 * config/spu/spu.c (spu_expand_builtin): Likewise.
15943 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
15944 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
15945 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
15946 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15947 (xtensa_expand_builtin): Likewise.
15948
15949 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15950
15951 PR middle-end/91421
15952 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
15953 before the DECL_FUNCTION_CODE.
15954 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
15955 to check for a BUILT_IN_ALLOCA call.
15956 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
15957 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
15958 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
15959 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15960 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
15961 for BUILT_IN_NORMAL functions.
15962 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
15963 test for BUILT_IN_TM_ABORT.
15964 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
15965 to check for a BUILT_IN_STACK_RESTORE call.
15966 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
15967 * tree-ssa-threadedge.c
15968 (record_temporary_equivalences_from_stmts_at_dest): Check for a
15969 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
15970 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
15971 test for a BUILT_IN_NORMAL call instead of a negative test for
15972 an internal function call.
15973
15974 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15975
15976 * tree.h (build_vector_a_then_b): Declare.
15977 * tree.c (build_vector_a_then_b): New function.
15978 * fold-const-call.c (fold_while_ult): Likewise.
15979 (fold_const_call): Use it to handle IFN_WHILE_ULT.
15980 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
15981 (aarch64_svpattern): New enum.
15982 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
15983 constants through aarch64_expand_mov_immediate.
15984 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
15985 than general_operand as the predicate for operand 1.
15986 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
15987 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
15988 insn_type.
15989 (simd_immediate_info::simd_immediate_info): New overload that
15990 takes a scalar_int_mode and an svpattern.
15991 (simd_immediate_info::u): Add a "pattern" field.
15992 (svpattern_token): New function.
15993 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
15994 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
15995 (aarch64_sve_move_pred_via_while): New functions.
15996 (aarch64_expand_mov_immediate): Try using
15997 aarch64_sve_move_pred_via_while for predicates that contain N ones
15998 followed by M zeros but that do not correspond to a VLnnn pattern.
15999 (aarch64_sve_pred_valid_immediate): New function.
16000 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16001 with PTRUE and PFALSE.
16002 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16003 forms.
16004
16005 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16006
16007 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16008 flag.
16009 (darwin_override_options): Likewise.
16010 * config/darwin.h: Likewise.
16011 * config/darwin.opt: Likewise.
16012 * config/i386/i386.c (output_pic_addr_const): Likewise.
16013 * config/rs6000/darwin.h: Likewise.
16014 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16015 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16016 ... this TARGET_MACHO_SYMBOL_STUBS.
16017 (FUNCTION_PROFILER):Likewise.
16018 * config/i386/i386.h: Likewise.
16019
16020 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16021
16022 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16023 <case E_V2SImode>: Use vec_extr path for
16024 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16025 <case E_V8QImode>: Ditto.
16026 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16027 Use SWI48 mode iterator. Use %k to output operand 0.
16028 (*mmx_pextrw): New insn pattern.
16029 (*mmx_pextrb): Ditto.
16030 (*mmx_pextrb_zext): Ditto.
16031
16032 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16033
16034 * target.def (libc_has_function, libc_has_fast_function): Improve
16035 documentation strings.
16036 * doc/tm.texi: Regenerate.
16037
16038 2019-08-13 Caroline Tice <cmtice@google.com>
16039
16040 PR other/91396
16041 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16042 vtv_end.o or vtv_end_preinit.o files if !static.
16043
16044 2019-08-13 Olivier Hainque <hainque@adacore.com>
16045
16046 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16047
16048 2019-08-13 Olivier Hainque <hainque@adacore.com>
16049
16050 * rtlanal.c (tablejump_casesi_pattern): New function, to
16051 determine if a tablejump insn is a casesi dispatcher. Extracted
16052 from patch_jump_insn.
16053 * rtl.h (tablejump_casesi_pattern): Declare.
16054 * cfgrtl.c (patch_jump_insn): Use it.
16055 * dwarf2cfi.c (create_trace_edges): Use it.
16056
16057 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16058
16059 PR target/81800
16060 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16061 operand is larger than a long int.
16062
16063 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16064
16065 * machmode.h (opt_mode::else_mode): New function.
16066 (opt_mode::else_blk): Use it.
16067 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16068 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16069 (aarch64_gen_stepped_int_parallel): Likewise.
16070 (aarch64_stepped_int_parallel_p): Likewise.
16071 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16072 argument.
16073 * config/aarch64/aarch64.c
16074 (aarch64_expand_sve_widened_duplicate): Delete.
16075 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16076 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16077 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16078 argument. Use early returns in the !CONST_INT_P handling.
16079 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16080 than handling some inline.
16081 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16082 from...
16083 (aarch64_simd_container_mode): ...here.
16084 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16085 (aarch64_sve_ld1rq_operand_p): New functions.
16086 * config/aarch64/predicates.md (descending_int_parallel)
16087 (aarch64_sve_ld1rq_operand): New predicates.
16088 * config/aarch64/constraints.md (UtQ): New constraint.
16089 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16090 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16091 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16092 (@aarch64_sve_reinterpret<mode>): New expander.
16093 (*aarch64_sve_reinterpret<mode>): New pattern.
16094 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16095 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16096 (*sve_ld1rq<Vesize>): Replace with...
16097 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16098
16099 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16100
16101 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16102 16:12.
16103
16104 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16105
16106 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16107 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16108 (msp430_check_path_for_devices): New.
16109 (parse_devices_csv_1): New.
16110 (parse_devices_csv): New.
16111 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16112 MCU data in devices.csv before using the hard-coded data.
16113 Warn if devices.csv isn't found and the MCU wasn't found in the
16114 hard-coded data either.
16115 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16116 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16117 Search for devices.csv on -I and -L paths.
16118 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16119 msp430_set_driver_var.
16120 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16121 -mdevices-csv-loc=.
16122 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16123 searched for devices.csv.
16124 (mwarn-devices-csv): Document option.
16125
16126 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16127
16128 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16129 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16130 Use a single Dn alternative instead of separate Dz and Dm
16131 alternatives. Use aarch64_output_sve_move_immediate.
16132 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16133 function.
16134 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16135 for predicates too.
16136 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16137 (aarch64_output_ptrue): Delete.
16138
16139 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16140
16141 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16142 INDEX.
16143 (simd_immediate_info::value, simd_immediate_info::step)
16144 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16145 with...
16146 (simd_immediate_info::u): ...this new union.
16147 (simd_immediate_info::simd_immediate_info): Update accordingly.
16148 (aarch64_output_simd_mov_immediate): Likewise.
16149 (aarch64_output_sve_mov_immediate): Likewise.
16150
16151 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16152
16153 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16154 extra_gcc_objs.
16155 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16156 (msp430_select_cpu): New spec function.
16157 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16158 MCU data.
16159 * config/msp430/msp430-devices.c: New file.
16160 * config/msp430/msp430-devices.h: New file.
16161 * config/msp430/msp430.c: Remove msp430_mcu_data.
16162 (msp430_option_override): Use msp430_extract_mcu_data to extract
16163 MCU data.
16164 (msp430_use_f5_series_hwmult): Likewise.
16165 (use_32bit_hwmult): Likewise.
16166 (msp430_no_hwmult): Likewise.
16167 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16168 assembler.
16169 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16170 and -mcpu option.
16171 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16172 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16173 Remove hard-coded MCU multilib data.
16174
16175 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16176
16177 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16178 based on the mode instead of testing properties of it.
16179
16180 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16181
16182 * doc/md.texi: Document the x and y constraints for AArch64.
16183 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16184 (FP_LO8_REGS): New reg_class.
16185 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16186 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16187 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16188 * config/aarch64/predicates.md (aarch64_simd_register): Use
16189 FP_REGNUM_P instead of checking the classes manually.
16190 * config/aarch64/constraints.md (y): New constraint.
16191
16192 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16193
16194 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16195 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16196 * config/aarch64/aarch64-simd.md
16197 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16198 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16199 from the asm template.
16200 * config/aarch64/aarch64-sve.md
16201 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16202 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16203 from the asm template.
16204 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16205 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16206 from the asm template.
16207 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16208
16209 2019-08-13 Martin Liska <mliska@suse.cz>
16210
16211 * value-prof.c (gimple_ic_transform): Add new line.
16212 Print details with MSG_NOTE.
16213
16214 2019-08-13 Martin Liska <mliska@suse.cz>
16215
16216 * doc/invoke.texi: Document automatic detection of jobserver.
16217 * lto-wrapper.c (run_gcc): Detect jobserver always.
16218
16219 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16220
16221 * config/i386/i386-expand.c (ix86_expand_vector_set)
16222 <case E_V2SImode>: Use vec_merge path for
16223 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16224 <case E_V8QImode>: Ditto.
16225 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16226 (*mmx_pinsrb): Ditto.
16227
16228 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16229
16230 PR target/83250
16231 PR target/91340
16232 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16233 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16234 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16235 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16236 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16237
16238 2019-08-12 Richard Biener <rguenther@suse.de>
16239
16240 PR lto/91375
16241 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16242 flag_devirtualize.
16243
16244 2019-08-12 Richard Biener <rguenther@suse.de>
16245
16246 PR driver/91130
16247 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16248 lang_mask option, always use CL_DRIVER.
16249 (get_options_from_collect_gcc_options): Adjust.
16250 (find_and_merge_options): Likewise.
16251 (run_gcc): Likewise.
16252
16253 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16254
16255 * ipa-predicate.c (add_condition): Restore inverted test.
16256
16257 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16258
16259 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16260 (enum omp_clause_device_type_kind): New enum.
16261 (struct tree_omp_clause): Add subcode.device_type_kind.
16262 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16263 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16264 for device_type clause.
16265 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16266 * tree-pretty-print.c (dump_omp_clause): Likewise.
16267
16268 PR target/91408
16269 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16270 vector_operand.
16271
16272 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16273
16274 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16275 handling spilled pseudos.
16276
16277 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16278
16279 PR target/91386
16280 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16281 to preserve the contents of the original insns.
16282
16283 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16284
16285 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16286 (addsi3_compare_op2): Likewise.
16287
16288 2019-08-09 Martin Liska <mliska@suse.cz>
16289
16290 * alias.c (alias_ptr_types_compatible_p): Strengten
16291 type comparison in LTO mode.
16292
16293 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16294
16295 PR middle-end/90313
16296 * tree-tailcall.c (find_tail_calls): Reject calls that might
16297 read from an escaped RESULT_DECL.
16298
16299 2019-08-09 Martin Liska <mliska@suse.cz>
16300
16301 * doc/invoke.texi: Document the option value.
16302 * lto-wrapper.c (run_gcc): Set auto_parallel
16303 only with -flto=auto.
16304
16305 2019-08-09 Martin Liska <mliska@suse.cz>
16306
16307 * opts.c (common_handle_option): Error for an invalid argument
16308 to -flto=.
16309
16310 2019-08-09 Martin Liska <mliska@suse.cz>
16311
16312 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16313 use dump_printf to report optimization.
16314 (sem_variable::merge): Likwise.
16315 (sem_item_optimizer::merge_classes): Use dump_printf to report
16316 ICF hits.
16317
16318 2019-08-09 Martin Liska <mliska@suse.cz>
16319
16320 * value-prof.c (gimple_divmod_fixed_value_transform):
16321 Use dump_printf_loc.
16322 (gimple_mod_pow2_value_transform): Likewise.
16323 (gimple_mod_subtract_transform): Likewise.
16324 (init_node_map): Likewise.
16325 (gimple_ic_transform): Likewise.
16326 (gimple_stringops_transform): Likewise.
16327
16328 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16329
16330 * doc/extend.texi: Add const qualifier to ld intrinsics.
16331
16332 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16333
16334 * config/rs6000/dfp.md (D64_D128): Rename to ...
16335 (DDTD): ... this, throughout.
16336 (dfp_suffix): Rename to ...
16337 (q): ... this, throughout.
16338
16339 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16340
16341 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16342 (dfp_suffix): Ditto.
16343 (adddd3, addtd3): Merge to ...
16344 (add<mode>3 for D64_D128): ... this.
16345 (subdd3, subtd3): Merge to ...
16346 (sub<mode>3 for D64_D128): ... this.
16347 (muldd3, multd3): Merge to ...
16348 (mul<mode>3 for D64_D128): ... this.
16349 (divdd3, divtd3): Merge to ...
16350 (div<mode>3 for D64_D128): ... this.
16351 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16352 (*cmp<mode>_internal1 for D64_D128): ... this.
16353 (ftruncdd2, ftrunctd2): Merge to ...
16354 (ftrunc<mode>2 for D64_D128): ... this.
16355 (fixdddi2, fixtddi2): Merge to ...
16356 (fix<mode>di2 for D64_D128): ... this.
16357
16358 2019-08-08 Jim Wilson <jimw@sifive.com>
16359
16360 PR target/91229
16361 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16362 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
16363 Pass into recursive call.
16364 (riscv_flatten_aggregate_argument): New arg. Pass to
16365 riscv_flatten_aggregate_field.
16366 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
16367 riscv_flatten_aggregate_argument twice, with false and true as last
16368 arg. Process result twice. Compare results and warn if different.
16369 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16370
16371 2019-08-08 Martin Liska <mliska@suse.cz>
16372
16373 PR bootstrap/91352
16374 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16375 * lto-wrapper.c (jobserver_active_p): Likewise.
16376
16377 2019-08-08 Martin Liska <mliska@suse.cz>
16378
16379 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16380 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
16381 (create_version_clone_with_body): Likewise.
16382
16383 2019-08-08 Jakub Jelinek <jakub@redhat.com>
16384
16385 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
16386 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
16387 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
16388 GOVD_EXPLICIT flags.
16389 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
16390 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
16391 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
16392 call install_var_field with mask 11 instead of 3.
16393 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
16394 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
16395
16396 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16397
16398 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
16399 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
16400
16401 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16402
16403 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
16404 MOVPRFX alternatives. Make the GPR alternatives more expensive
16405 than the FPR ones.
16406
16407 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16408
16409 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
16410 Disparage the GPR alternative relative to the FPR one.
16411 Fix handling of 8-bit and 16-bit FPR values.
16412
16413 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16414
16415 * config/aarch64/iterators.md (BITWISEV): Delete.
16416 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
16417 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
16418 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16419 UNSPEC_FMINNMV, UNSPEC_FMINV.
16420 (bit_reduc_op): Delete.
16421 (sve_int_op): New int attribute.
16422 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16423 UNSPEC_FMINNMV, UNSPEC_FMINV.
16424 * config/aarch64/aarch64-sve.md
16425 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16426 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16427 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
16428 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
16429 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
16430 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
16431 new patterns.
16432 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
16433 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
16434 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
16435 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
16436 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
16437 new patterns.
16438
16439 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16440
16441 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
16442 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
16443 (fms<mode>4, *fms<mode>4): Replace with...
16444 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16445 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
16446 Use unspecs instead of rtx codes.
16447 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
16448 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
16449
16450 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16451
16452 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
16453 int iterator.
16454 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
16455 * config/aarch64/aarch64-sve.md
16456 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
16457 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
16458 use a single unspec for the rhs.
16459 (*<su><maxmin><mode>3): Delete.
16460 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
16461
16462 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16463
16464 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
16465 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
16466 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
16467 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
16468 (optab, sve_fp_op): Handle them.
16469 (SVE_FP_UNARY): Delete.
16470 (optab): Remove sqrt entry.
16471 (sve_fp_op): Remove neg, abs and sqrt entries.
16472 (SVE_COND_FP_UNARY): New int iterator.
16473 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
16474 (*<frint_pattern><mode>2): Delete.
16475 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16476 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16477 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16478 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16479
16480 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16481
16482 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
16483
16484 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16485
16486 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
16487 (UNSPEC_COND_FADD): ...this.
16488 (UNSPEC_COND_SUB): Rename to...
16489 (UNSPEC_COND_FSUB): ...this.
16490 (UNSPEC_COND_MUL): Rename to...
16491 (UNSPEC_COND_FMUL): ...this.
16492 (UNSPEC_COND_DIV): Rename to...
16493 (UNSPEC_COND_FDIV): ...this.
16494 (UNSPEC_COND_MAX): Rename to...
16495 (UNSPEC_COND_FMAXNM): ...this.
16496 (UNSPEC_COND_MIN): Rename to...
16497 (UNSPEC_COND_FMINNM): ...this.
16498 (UNSPEC_COND_LT): Rename to...
16499 (UNSPEC_COND_FCMLT): ...this.
16500 (UNSPEC_COND_LE): Rename to...
16501 (UNSPEC_COND_FCMLE): ...this.
16502 (UNSPEC_COND_EQ): Rename to...
16503 (UNSPEC_COND_FCMEQ): ...this.
16504 (UNSPEC_COND_NE): Rename to...
16505 (UNSPEC_COND_FCMNE): ...this.
16506 (UNSPEC_COND_GE): Rename to...
16507 (UNSPEC_COND_FCMGE): ...this.
16508 (UNSPEC_COND_GT): Rename to...
16509 (UNSPEC_COND_FCMGT): ...this.
16510 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
16511 (sve_fp_op_rev): Update accordingly.
16512 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
16513
16514 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16515
16516 * config/aarch64/aarch64-sve.md: Reorganize contents and add
16517 banner comments.
16518 * config/aarch64/check-sve-md.awk: New file.
16519 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
16520 (insn-conditions.md): Depend on it.
16521
16522 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
16523
16524 PR target/91385
16525 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
16526 (*negsi2_cmpz_zext): Ditto.
16527
16528 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16529
16530 * config/aarch64/iterators.md (commutative): Remove.
16531
16532 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
16533
16534 PR driver/91130
16535 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
16536 processing COLLECT_GCC_OPTIONS.
16537 (run_gcc): Likewise.
16538
16539 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
16540
16541 PR tree-optimization/91109
16542 * lra-remat.c (update_scratch_ops): Remove assignment of the
16543 hard register.
16544
16545 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16546
16547 * data-streamer.h (streamer_write_poly_uint64): Declare.
16548 (streamer_read_poly_uint64): Likewise.
16549 * data-streamer-in.c (streamer_read_poly_uint64): New function.
16550 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
16551 * ipa-predicate.h (condition::size): Turn into a poly_int64.
16552 (add_condition): Take a poly_int64 size.
16553 * ipa-predicate.c (add_condition): Likewise.
16554 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
16555 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
16556 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
16557 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
16558 condition::size as a poly_int64.
16559 (unmodified_parm_1): Take a poly_int64 size pointer.
16560 (unmodified_parm): Likewise.
16561 (unmodified_parm_or_parm_agg_item): Likewise.
16562 (set_cond_stmt_execution_predicate): Update accordingly.
16563 (set_switch_stmt_execution_predicate): Likewise.
16564 (will_be_nonconstant_expr_predicate): Likewise.
16565 (will_be_nonconstant_predicate): Likewise.
16566 (inline_read_section): Stream condition::size as a poly_int.
16567 (ipa_fn_summary_write): Likewise.
16568
16569 2019-08-07 Martin Liska <mliska@suse.cz>
16570
16571 * fold-const.c (twoval_comparison_p): Replace int
16572 with bool as a return type.
16573 (simple_operand_p): Likewise.
16574 (operand_equal_p): Replace int with bool as a return type.
16575 * fold-const.h (operand_equal_p): Likewise.
16576
16577 2019-08-07 Jakub Jelinek <jakub@redhat.com>
16578
16579 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
16580 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
16581 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16582 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
16583 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
16584 * tree-pretty-print.c (dump_omp_clause): Likewise.
16585 * tree-nested.c (convert_nonlocal_omp_clauses,
16586 convert_local_omp_clauses): Likewise.
16587 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16588 Likewise.
16589 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
16590 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
16591 clause with array or reference to array types, no matter what type
16592 except for reference it has.
16593
16594 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
16595
16596 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
16597
16598 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
16599
16600 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
16601 (arch_canonicalize): Support rv32g and rv64g and fix error
16602 handling.
16603
16604 2019-08-06 Martin Liska <mliska@suse.cz>
16605
16606 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
16607 and DECL_IS_OPERATOR_DELETE_P.
16608
16609 2019-08-06 Jakub Jelinek <jakub@redhat.com>
16610
16611 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
16612 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
16613 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
16614 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
16615 (gimplify_omp_for): Don't do C++ random access iterator clause
16616 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
16617 don't predetermine the artificial iterator in case of C++ random
16618 access iterators as lastprivate, but private. For OMP_LOOP, force
16619 bind expr around simd body and force for_pre_body before the
16620 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
16621 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
16622 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
16623 diff var of C++ random access iterators. Handle
16624 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
16625 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
16626 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
16627 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
16628 * omp-low.c (lower_rec_input_clauses): For
16629 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
16630 variables instead of default constructing them.
16631 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
16632 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
16633 is_taskloop_ctx check from the assert to the guarding condition.
16634
16635 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
16636
16637 * config/riscv/multilib-generator: (canonical_order): New.
16638 (arch_canonicalize): Dito.
16639 Apply arch_canonicalize for alts.
16640
16641 2019-08-05 Martin Sebor <msebor@redhat.com>
16642
16643 * doc/extend.texi (Common Variable Attributes): Document alias
16644 attribute.
16645
16646 2019-08-05 Marek Polacek <polacek@redhat.com>
16647
16648 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
16649 * doc/invoke.texi: Document -Wcomma-subscript.
16650
16651 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16652
16653 * tree-core.h (tree_function_decl): Make function_code an
16654 independent field. Group the remaining bitfields into bytes
16655 and move decl_type so that it contines to be at a byte boundary.
16656 Leave 12 bits for future expansion.
16657
16658 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16659
16660 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
16661 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
16662 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
16663 IFN_MASK_STORE.
16664
16665 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16666
16667 * gimple.h (gimple_move_vops): Declare.
16668 * gimple.c (gimple_move_vops): New function
16669 * gimple-fold.c (replace_call_with_call_and_fold)
16670 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
16671 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
16672 (gimple_fold_call): Use it.
16673 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
16674 * tree-call-cdce.c (use_internal_fn): Likewise.
16675 * tree-if-conv.c (predicate_load_or_store): Likewise.
16676 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
16677 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16678 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
16679 (update_call_from_tree): Likewise.
16680 * tree-vect-stmts.c (vectorizable_load): Likewise.
16681 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
16682
16683 2019-08-05 Martin Liska <mliska@suse.cz>
16684
16685 PR c++/91334
16686 * tree-ssa-dce.c (propagate_necessity): Handle new operators
16687 with not arguments.
16688 (eliminate_unnecessary_stmts): Likewise.
16689
16690 2019-08-05 Richard Biener <rguenther@suse.de>
16691
16692 PR middle-end/91169
16693 * fold-const.c (get_array_ctor_element_at_index): Create
16694 offset_ints according to the sign of the index type and treat
16695 that as signed if it is obviously so.
16696
16697 2019-08-05 Jakub Jelinek <jakub@redhat.com>
16698
16699 PR target/91341
16700 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
16701 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
16702 _mm256_storeu2_m128i): New function.
16703
16704 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
16705
16706 * config/riscv/riscv.c (riscv_promote_function_mode): New.
16707 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
16708
16709 2019-08-05 Alan Modra <amodra@gmail.com>
16710
16711 PR target/91349
16712 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
16713 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
16714
16715 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
16716
16717 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
16718 bug that was fixed in Tcl 8.6.1.
16719
16720 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
16721
16722 * config/rs6000/future.md: New file.
16723 * config/rs6000/rs6000.md: Include future.md.
16724 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
16725
16726 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16727
16728 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
16729 check to use targetm.slow_unaligned_access instead.
16730
16731 * function.c (assign_param_data_one): Remove unused data members.
16732
16733 2019-08-02 Steve Ellcey <sellcey@marvell.com>
16734
16735 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
16736 build_distinct_type_copy.
16737 (simd_clone_adjust_argument_types): Ditto.
16738 (simd_clone_adjust): Call build_distinct_type_copy here.
16739 (expand_simd_clones): Ditto.
16740
16741 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16742
16743 PR target/91201
16744 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
16745
16746 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
16747
16748 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
16749 from 'const void *'.
16750 (sort_locs_in_loop_postorder_cmp): Likewise.
16751
16752 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
16753
16754 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
16755 (hot-bb-count-ws-permille): Likewise.
16756 (hot-bb-frequency-fraction): Likewise.
16757 (unlikely-bb-count-fraction): Likewise.
16758 * params.def (hot-bb-count-fraction): Rework description.
16759 (hot-bb-count-ws-permille): Likewise.
16760 (hot-bb-frequency-fraction): Likewise.
16761 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
16762 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
16763
16764 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16765
16766 PR target/91323
16767 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
16768 Return false.
16769
16770 2019-08-02 Richard Biener <rguenther@suse.de>
16771
16772 * vec.h (vec::sort): Add gcc_qsort_r support.
16773 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
16774 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
16775 to gcc_qsort_r style callback.
16776 (sort_locs_in_loop_postorder_cmp): Likewise.
16777 (analyze_memory_references): Use gcc_sort_r interfaces.
16778 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
16779
16780 2019-08-02 Martin Liska <mliska@suse.cz>
16781
16782 PR lto/91313
16783 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
16784 to detect working job server.
16785 (driver::detect_jobserver): Test whether jobserver
16786 is active from GCC driver. That will prevent situation where
16787 GCC is invoked from a LD plugin and the linker already uses
16788 file descriptors suggested by make. That leads to a wrong
16789 detection.
16790 * gcc.h (driver): Add detect_jobserver.
16791 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
16792 not scanning for --jobserver-auth prefix.
16793
16794 2019-08-02 Jakub Jelinek <jakub@redhat.com>
16795
16796 PR tree-optimization/91201
16797 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
16798 V16QImode extraction without sse4.1 try to use V4SImode lowpart
16799 extraction.
16800
16801 2019-08-01 Martin Sebor <msebor@redhat.com>
16802
16803 PR c++/90947
16804 * tree.c (type_initializer_zero_p): Define.
16805 * tree.h (type_initializer_zero_p): New function.
16806
16807 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16808
16809 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
16810
16811 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16812
16813 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
16814 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
16815 * predict.c (maybe_hot_count_p): Likewise.
16816 (maybe_hot_bb_p): Tweak comment.
16817 (maybe_hot_edge_p): Likewise.
16818 (probably_never_executed): Likewise. Minor tweak.
16819 (probably_never_executed_bb_p): Likewise.
16820 (unlikely_executed_edge_p): Likewise.
16821 (probably_never_executed_edge_p): Likewise.
16822 (optimize_function_for_size_p): Likewise.
16823 (optimize_function_for_speed_p): Likewise.
16824 (function_optimization_type): Likewise.
16825 (optimize_bb_for_size_p): Likewise.
16826 (optimize_bb_for_speed_p): Likewise.
16827 (bb_optimization_type): Likewise.
16828 (optimize_edge_for_size_p): Likewise.
16829 (optimize_edge_for_speed_p): Likewise.
16830 (optimize_insn_for_size_p): Likewise.
16831 (optimize_insn_for_speed_p): Likewise.
16832 (optimize_loop_for_size_p): Likewise.
16833 (optimize_loop_for_speed_p): Likewise.
16834 (optimize_loop_nest_for_speed_p): Likewise.
16835 (optimize_loop_nest_for_size_p): Likewise.
16836 (predictable_edge_p): Likewise.
16837 (handle_missing_profiles): Minor tweak.
16838
16839 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
16840
16841 * config/rs6000/predicates.md (pcrel_external_address): Update
16842 comment.
16843
16844 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16845
16846 PR target/85693
16847 * config/i386/mmx.md (usadv8qi): New expander.
16848
16849 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
16850
16851 PR c++/90590
16852 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
16853 with reserved names that are in a system header.
16854
16855 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16856
16857 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
16858 (*vec_extractv2si_0_zext_sse4): New insn pattern.
16859 (*vec_extractv2si_0_zext): Ditto.
16860 (*vec_extractv2si_1): Add (rm,x) alternative.
16861 (*vec_extractv2si_1_zext): New insn pattern.
16862 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
16863 insn constraint.
16864
16865 2019-08-01 Richard Biener <rguenther@suse.de>
16866
16867 * domwalk.c (bb_postorder): Remove static variable.
16868 (cmp_bb_postorder): Adjust.
16869 (sort_bbs_postorder): Adjust and use gcc_sort_r.
16870 (dom_walker::walk): Adjust.
16871
16872 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
16873
16874 * sort.cc (sort_r_ctx): New struct.
16875 (reorder23): Make templated on context type.
16876 (reorder45): Ditto.
16877 (cmp1): Ditto. Adjust signature.
16878 (netsort): Ditto.
16879 (mergesort): Ditto.
16880 [CHECKING_P] (cmp2to3): New static function. Use it...
16881 (gcc_qsort) [CHECKING_P]: ...here.
16882 (gcc_sort_r): New function.
16883 * system.h (sort_r_cmp_fn): New function typedef.
16884 (qsort_chk): Adjust signature.
16885 (gcc_sort_r): Declare.
16886 * vec.c (qsort_chk_error): Adjust.
16887 (qsort_chk): Adjust.
16888
16889 2019-08-01 Richard Biener <rguenther@suse.de>
16890
16891 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
16892 (compute_antic): Localize it here.
16893
16894 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
16895
16896 * common/config/riscv/riscv-common.c: Check -march string ends
16897 with null.
16898
16899 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
16900
16901 * ipa-devirt.c (type_warning_cmp): Make static.
16902 (decl_warning_cmp): Ditto.
16903
16904 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
16905
16906 PR target/91050
16907 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
16908 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
16909 use of deleted rs6000_dejagnu_cpu_index variable.
16910 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
16911 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16912 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
16913 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
16914 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
16915 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16916
16917 2019-07-31 Richard Biener <rguenther@suse.de>
16918
16919 PR tree-optimization/91280
16920 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16921 Decompose MEM_REF manually for offset handling.
16922
16923 2019-07-31 Richard Biener <rguenther@suse.de>
16924
16925 PR tree-optimization/91293
16926 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
16927 of reduction stmts.
16928
16929 2019-07-31 Matt Thomas <matt@3am-software.com>
16930 Nick Hudson <nick@nthcliff.demon.co.uk>
16931 Matthew Green <mrg@eterna.com.au>
16932 Maya Rashish <coypu@sdf.org>
16933
16934 * config.gcc (hppa*-*-netbsd*): New target.
16935 * config/pa/pa-netbsd.h: New file.
16936 * config/pa/pa32-netbsd.h: New file.
16937
16938 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16939
16940 PR tree-optimization/91201
16941 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
16942
16943 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
16944
16945 * config/gcn/gcn-valu.md
16946 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
16947 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
16948 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
16949 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
16950 struct ilist. Add nops for delayeduse insns.
16951 * config/gcn/gcn.md (delayeduse): New attribute.
16952 (*movbi): Remove s_waitcnt from stores.
16953 (*mov<mode>_insn): Likewise.
16954 (*movti_insn): Likewise. Add delayeduse attribute.
16955 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
16956 (atomic_store<mode>): Remove or adjust s_waitcnt.
16957
16958 2019-07-31 Richard Biener <rguenther@suse.de>
16959
16960 * vr-values.h (vr_values::swap_vr_value): New.
16961 (vr_values::free_value_range): likewise.
16962 * vr-values.c (vr_values::swap_vr_value): Implement.
16963 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
16964 Do not return a range or take a var.
16965 (evrp_range_analyzer::stack): Change back to recording a non-const
16966 value_range *.
16967 * gimple-ssa-evrp-analyze.c
16968 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
16969 value-range.
16970 (evrp_range_analyzer::pop_to_marker): Adjust.
16971 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
16972 (evrp_range_analyzer::pop_value_range): Likewise. Free the
16973 no longer needed value-range.
16974
16975 2019-07-31 Martin Liska <mliska@suse.cz>
16976
16977 * tree-ssa-dce.c (propagate_necessity): Delete operator can
16978 have size and (or) alignment as 2nd and later arguments.
16979 Mark all of them as necessary.
16980
16981 2019-07-31 Richard Biener <rguenther@suse.de>
16982
16983 PR tree-optimization/91178
16984 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16985 Use tail-recursion.
16986
16987 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16988
16989 PR tree-optimization/91201
16990 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
16991 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
16992 TARGET_AVX512F.
16993 (reduc_plus_scal_<mode>): Improve formatting by introducing
16994 a temporary.
16995
16996 2019-07-31 Sudakshina Das <sudi.das@arm.com>
16997
16998 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
16999 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17000 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17001 (aarch64_init_tme_builtins): New.
17002 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17003 (aarch64_expand_builtin_tme): New.
17004 (aarch64_expand_builtin): Handle TME builtins.
17005 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17006 __ARM_FEATURE_TME when enabled.
17007 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17008 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17009 (TARGET_TME): New.
17010 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17011 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17012 UNSPECV_TCANCEL.
17013 (tstart, ttest, tcommit, tcancel): New instructions.
17014 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17015 (__tcancel, __ttest): New.
17016 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17017 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17018 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17019 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17020 * config/arm/types.md: Add new tme type attr.
17021 * doc/invoke.texi: Document "tme".
17022
17023 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17024
17025 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17026 warn_unused_result attribute.
17027 (cmse_check_address_range): Add warn_unused_result attribute.
17028
17029 2019-07-31 Richard Biener <rguenther@suse.de>
17030
17031 PR tree-optimization/91257
17032 * tree-vrp.c (union_ranges): Unify equality and less tests
17033 by using compare_values. Re-order cheap tests first.
17034
17035 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17036
17037 PR middle-end/91301
17038 * gimplify.c (gimplify_omp_for): If for class iterator on
17039 distribute parallel for there is no data sharing clause
17040 on inner_for_stmt, look for private clause on combined
17041 parallel too and if found, move it to inner_for_stmt.
17042
17043 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17044
17045 * lra-int.h (lra_operand_data): Remove early_clobber field.
17046 (lra_insn_reg): Likewise.
17047 * lra.c (debug_operand_data): Update accordingly.
17048 (setup_operand_alternative): Likewise.
17049 (new_insn_reg): Likewise. Remove early_clobber parameter.
17050 (collect_non_operand_hard_regs): Update call accordingly.
17051 Don't assign to lra_insn_reg::early_clobber.
17052 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17053 and update calls to new_insn_reg.
17054 (lra_update_insn_regno_info): Update calls accordingly.
17055 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17056 alternative number as a parameter and test whether the operand
17057 is earlyclobbered in that particular alternative.
17058 (process_alt_operands): Update call accordingly. Use per-alternative
17059 checks for earyclobber here too.
17060 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17061 against zero for IRA_UNKNOWN_ALT.
17062
17063 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17064
17065 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17066
17067 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17068
17069 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17070 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17071
17072 2019-07-30 Martin Liska <mliska@suse.cz>
17073
17074 PR ipa/89330
17075 * cgraph.c (cgraph_edge::make_direct): Use
17076 edge->indirect_unknown_callee as edge->resolve_speculation can
17077 deallocate edge which is this pointer.
17078
17079 2019-07-30 Richard Biener <rguenther@suse.de>
17080
17081 PR tree-optimization/91257
17082 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17083
17084 2019-07-30 Martin Liska <mliska@suse.cz>
17085
17086 * doc/invoke.texi: Document new behavior.
17087 * lto-wrapper.c (cpuset_popcount): New function
17088 is a copy of libgomp/config/linux/proc.c.
17089 (init_num_threads): Likewise.
17090 (run_gcc): Automatically detect core count for -flto.
17091 (jobserver_active_p): New function.
17092
17093 2019-07-30 Richard Biener <rguenther@suse.de>
17094
17095 PR tree-optimization/91257
17096 * bitmap.h (bitmap_ior_into_and_free): Declare.
17097 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17098 whether to add the unliked element to the freelist.
17099 (bitmap_list_insert_element_after): Add defaulted param for
17100 an already allocated element.
17101 (bitmap_ior_into_and_free): New function.
17102 * tree-ssa-structalias.c (condense_visit): Reduce the
17103 ponts-to and edge bitmaps of the SCC members in a
17104 logarithmic fashion rather than all to one.
17105
17106 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17107
17108 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17109 parameter. When nonnull, make sure that the addition or subtraction
17110 has the same condition.
17111 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17112 for CFN_COND_MUL too.
17113
17114 2019-07-30 Richard Biener <rguenther@suse.de>
17115
17116 PR tree-optimization/91291
17117 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17118 constant values.
17119
17120 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17121
17122 PR middle-end/91216
17123 * omp-low.c (global_nonaddressable_vars): New variable.
17124 (use_pointer_for_field): For global decls, if they are non-addressable,
17125 remember it in the global_nonaddressable_vars bitmap, if they are
17126 addressable and in the global_nonaddressable_vars bitmap, ignore their
17127 TREE_ADDRESSABLE bit.
17128 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17129 vars in global_nonaddressable_vars bitmap.
17130 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17131
17132 PR target/91150
17133 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17134 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17135 comparison to unsigned HOST_WIDE_INT before shifting it left.
17136
17137 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17138
17139 * config/i386/i386.md (movstrict<mode>): Use register_operand
17140 predicate for operand 0. Add expander condition. Assert that
17141 operand 0 is a SUBREG RTX.
17142 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17143 Update operand constraints and insn condition.
17144 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17145 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17146 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17147 Update operand 0 constraints.
17148 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17149
17150 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17151
17152 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17153 when -m{code,data}-region are used without -mlarge.
17154 * config/msp430/msp430.c (msp430_option_override): Error when a
17155 non-default code or data region is used without -mlarge.
17156 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17157 attributes when they are used without -mlarge.
17158
17159 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17160
17161 PR target/70320
17162 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17163
17164 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17165
17166 PR middle-end/91242
17167 * wide-int.h (generic_wide_int::sext_elt): New function.
17168 * inchash.h (hash::add_wide_int): Use it instead of elt.
17169
17170 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17171
17172 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17173 CODE_FOR_arm_##.
17174 * config/arm/arm.md (<crc_variant>): Rename to...
17175 (arm_<crc_variant>): ... This.
17176 (<cdp>): Rename to...
17177 (arm_<cdp>): ... This.
17178 (<ldc>): Rename to...
17179 (arm_<ldc>): ... This.
17180 (<stc>): Rename to...
17181 (arm_<stc>): ... This.
17182 (<mcr>): Rename to...
17183 (arm_<mcr>): ... This.
17184 (<mrc>): Rename to...
17185 (arm_<mrc>): ... This.
17186 (<mcrr>): Rename to...
17187 (arm_<mcrr>): ... This.
17188 (<mrrc>): Rename to...
17189 (arm_<mrrc>): ... This.
17190
17191 2019-07-29 Richard Biener <rguenther@suse.de>
17192
17193 PR tree-optimization/91257
17194 * tree-ssa-sccvn.h (struct vn_avail): New.
17195 (struct vn_ssa_aux): Add avail member.
17196 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17197 member, add m_avail_freelist one.
17198 (rpo_elim::~rpo_elim): Remove.
17199 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17200 data structure.
17201 (rpo_elim::eliminate_push_avail): Likewise.
17202 (do_unwind): Likewise.
17203 (do_rpo_vn): Likewise.
17204
17205 2019-07-29 Richard Biener <rguenther@suse.de>
17206
17207 PR tree-optimization/91257
17208 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17209 most cases, instead call compare_values which handles the
17210 symbolic ranges we handle specially.
17211 (compare_values_warnv): Do not call operand_less_p but open-code
17212 the effective fold calls. Avoid converting so much.
17213
17214 2019-07-29 Martin Liska <mliska@suse.cz>
17215
17216 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17217 remove LHS of operator new call. It's handled latter.
17218
17219 2019-07-29 Richard Biener <rguenther@suse.de>
17220
17221 PR tree-optimization/91267
17222 * vr-values.c (vr_values::update_value_range): Add early return
17223 for effectively VARYING lattice entry.
17224
17225 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17226
17227 PR debug/86638
17228 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17229 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17230 necessary if keep_all_vdefs_p is true.
17231 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17232 that keep_all_vdefs_p is false.
17233 (mark_all_reaching_defs_necessary): Likewise.
17234 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17235
17236 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17237
17238 * common.opt (Og): Change the initial value of flag_dse to 0.
17239 * opts.c (default_options_table): Move OPT_ftree_dse from
17240 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17241 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17242 entry before the OPT_ftree_sra entry.
17243 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17244 of flags disabled by Og.
17245
17246 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17247
17248 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17249 variables for -Og.
17250
17251 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17252
17253 * doc/sourcebuild.texi (check-function-bodies): Document.
17254
17255 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17256
17257 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17258 VEC_DUPLICATE of a fixed-length vector even if the result
17259 is variable-length. Likewise fold a duplicate of a
17260 variable-length vector if the variable-length vector is
17261 itself a duplicate of a fixed-length sequence.
17262 (test_vector_ops_duplicate): Test more cases.
17263
17264 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17265
17266 * vector-builder.h (vector_builder): Add a shape template parameter.
17267 (vector_builder::new_unary_operation): New function, generalizing
17268 the old tree_vector_builder function.
17269 (vector_builder::new_binary_operation): Likewise.
17270 (vector_builder::binary_encoded_nelts): Likewise.
17271 * int-vector-builder.h (int_vector_builder): Update template
17272 parameters to vector_builder.
17273 (int_vector_builder::shape_nelts): New function.
17274 * rtx-vector-builder.h (rtx_vector_builder): Update template
17275 parameters to vector_builder.
17276 (rtx_vector_builder::shape_nelts): New function.
17277 (rtx_vector_builder::nelts_of): Likewise.
17278 (rtx_vector_builder::npatterns_of): Likewise.
17279 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17280 * tree-vector-builder.h (tree_vector_builder): Update template
17281 parameters to vector_builder.
17282 (tree_vector_builder::shape_nelts): New function.
17283 (tree_vector_builder::nelts_of): Likewise.
17284 (tree_vector_builder::npatterns_of): Likewise.
17285 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17286 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17287 (tree_vector_builder::new_binary_operation): Delete.
17288 (tree_vector_builder::binary_encoded_nelts): Likewise.
17289 * simplify-rtx.c: Include rtx-vector-builder.h.
17290 (distributes_over_addition_p): New function.
17291 (simplify_const_unary_operation)
17292 (simplify_const_binary_operation): Generalize handling of vector
17293 constants to include variable-length vectors.
17294 (test_vector_ops_series): Add more tests.
17295
17296 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17297
17298 PR lto/91222
17299 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17300 than INDENTIFIER_POINTER.
17301
17302 2019-07-28 Martin Liska <mliska@suse.cz>
17303
17304 PR ipa/89330
17305 * cgraph.c (symbol_table::create_edge): Always allocate
17306 a cgraph_edge.
17307 (symbol_table::free_edge): Store summary_id to
17308 edge_released_summary_ids if != -1;
17309 * cgraph.h (NEXT_FREE_NODE): Remove.
17310 (SET_NEXT_FREE_NODE): Likewise.
17311 (NEXT_FREE_EDGE): Likewise.
17312 (symbol_table::release_symbol): Store summary_id to
17313 cgraph_released_summary_ids if != -1;
17314 (symbol_table::allocate_cgraph_symbol): Always allocate
17315 a cgraph_node.
17316
17317 2019-07-28 Alan Modra <amodra@gmail.com>
17318
17319 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17320 gen_sibcall.
17321
17322 2019-07-28 Alan Modra <amodra@gmail.com>
17323
17324 PR target/91135
17325 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17326 define.
17327 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17328 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17329 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17330
17331 2019-07-28 Alan Modra <amodra@gmail.com>
17332
17333 PR target/91050
17334 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17335 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17336 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17337 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17338 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17339 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17340 in asm_default spec.
17341 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17342 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17343
17344 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
17345
17346 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17347
17348 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17349
17350 PR target/89517
17351 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17352 * config/aarch64/aarch64-option-extensions.def: Add new comments
17353 and restore easier to read options.
17354
17355 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17356
17357 * convert.c (convert_to_real_1): Move part of conversion code...
17358 * match.pd: ...To here.
17359
17360 2019-07-26 Martin Jambor <mjambor@suse.cz>
17361
17362 PR ipa/89330
17363 * ipa-inline-transform.c (check_speculations_1): New function.
17364 (push_all_edges_in_set_to_vec): Likewise.
17365 (check_speculations): Use check_speculations_1, new parameter
17366 new_edges.
17367 (inline_call): Pass new_edges to check_speculations.
17368 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17369 NULL.
17370 (speculation_useful_p): Early return true if edge is inlined, remove
17371 later checks for inline_failed.
17372
17373 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
17374
17375 PR rtl-optimization/91223
17376 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17377 matching with INOUT operand.
17378
17379 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17380
17381 * stmt.c (expand_case): Try to narrow the index type if it's larger
17382 than a word. Tidy up.
17383
17384 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17385
17386 * cif-code.def (NEVER_CALL): New code.
17387 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
17388 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
17389
17390 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
17391
17392 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
17393 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17394
17395 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17396
17397 * ipa-devirt.c (add_type_duplicate): Fix return value.
17398
17399 2019-07-25 Richard Biener <rguenther@suse.de>
17400
17401 * tree-vrp.c (extract_range_from_multiplicative_op): Add
17402 type parameter and use it instead of guessing expression
17403 type from the first operand.
17404 (extract_range_from_binary_expr): Pass expr_type down.
17405
17406 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17407
17408 * config/arm/arm.md (SATrev): Change to code attribute.
17409 (*satsi_<SAT:code>): Adjust for the above.
17410 (*satsi_<SAT:code>_shift): Likewise.
17411
17412 2019-07-25 Richard Biener <rguenther@suse.de>
17413
17414 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
17415 Make value_range * temporary const.
17416 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
17417 Likewise.
17418 (evrp_range_analyzer::record_ranges_from_): Likewise.
17419 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
17420 deal with having recorded a const one.
17421 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
17422 Return a const value_range *.
17423 (evrp_range_analyzer::pop_value_range): Likewise.
17424 (evrp_range_analyzer::stack): Record const value_range *s.
17425 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
17426 Adjust.
17427 * gimple-ssa-sprintf.c (get_int_range): Likewise.
17428 (format_integer): Likewise.
17429 (sprintf_dom_walker::handle_gimple_call): Likewise.
17430 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
17431 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
17432 (vrp_prop::get_value_range): Adjust.
17433 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
17434 modifying the lattice in-place.
17435 (vrp_prop::visit_stmt): Likewise.
17436 * vr-values.c (vr_values::get_lattice_entry): New private method.
17437 (vr_values::get_value_range): Wrap it and return a const
17438 value_range *.
17439 (vr_values::set_def_to_varying): New.
17440 (vr_values::set_defs_to_varying): Use it.
17441 (vr_values::update_value_range): Likewise.
17442 (vr_values::vrp_stmt_computes_nonzero): Adjust.
17443 (values::op_with_constant_singleton_va): Likewise.
17444 (vr_values::extract_range_for_var_from_co): Likewise.
17445 (vr_values::extract_range_from_ssa_name): Likewise.
17446 (vr_values::extract_range_from_cond_expr): Likewise.
17447 (vr_values::extract_range_basic): Likewise.
17448 (compare_ranges): Take const value_range *, adjust.
17449 (compare_range_with_value): Likewise.
17450 (vrp_valueize): Adjust.
17451 (vrp_valueize_1): Likewise.
17452 (vr_values::get_vr_for_comparison): Return a const value_range *.
17453 (vr_values::compare_name_with_value): Adjust.
17454 (vr_values::compare_names): Likewise.
17455 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17456 Likewise.
17457 (vr_values::vrp_evaluate_conditional): Likewise.
17458 (find_case_label_ranges): Take a const value_range *.
17459 (vr_values::vrp_visit_switch_stmt): Adjust.
17460 (vr_values::extract_range_from_phi_node): Likewise.
17461 (vr_values::simplify_div_or_mod_using_ran): Likewise.
17462 (vr_values::simplify_abs_using_ranges): Likewise.
17463 (test_for_singularity): Take a const value_range *.
17464 (range_fits_type_p): Likewise.
17465 (vr_values::simplify_cond_using_ranges_1): Adjust.
17466 (vr_values::simplify_cond_using_ranges_2): Likewise.
17467 (vr_values::simplify_switch_using_ranges): Likewise.
17468 (vr_values::simplify_float_conversion_usi): Likewise.
17469 (vr_values::two_valued_val_range_p): Likewise.
17470 * vr-values.h (vr_values::get_value_range): Return a const
17471 value_range *.
17472 (vr_values::set_def_to_varying): New.
17473 (vr_values::get_lattice_entry): New private method.
17474 (vr_values::get_vr_for_comparison): Return a const value_range *.
17475
17476 2019-07-25 Martin Liska <mliska@suse.cz>
17477 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
17478
17479 PR c++/23383
17480 * common.opt: Add -fallocation-dce
17481 * gimple.c (gimple_call_operator_delete_p): New.
17482 * gimple.h (gimple_call_operator_delete_p): Likewise.
17483 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
17484 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
17485 DECL_IS_OPERATOR_DELETE_P.
17486 (mark_all_reaching_defs_necessary_1): Likewise.
17487 (propagate_necessity): Likewise.
17488 (eliminate_unnecessary_stmts): Handle
17489 gimple_call_operator_delete_p.
17490 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
17491 Add packing of OPERATOR_DELETE.
17492 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
17493 Similarly here.
17494 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
17495 (DECL_SET_IS_OPERATOR_DELETE): New.
17496 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
17497
17498 2019-07-25 Martin Liska <mliska@suse.cz>
17499
17500 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
17501 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
17502 * coverage.c (coverage_begin_function): Likewise.
17503 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
17504 * gimple.c (gimple_call_nonnull_result_p): Likewise.
17505 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
17506 (sem_item::hash_referenced_symbol_properties): Likewise.
17507 * lto-streamer-out.c (hash_tree): Likewise.
17508 * predict.c (expr_expected_value_1): Likewise.
17509 * tree-inline.c (expand_call_inline): Likewise.
17510 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17511 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17512 * tree-core.h (enum function_decl_type): New enum.
17513 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
17514 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
17515 (set_function_decl_type): Likewise.
17516 (DECL_IS_OPERATOR_NEW_P): New.
17517 (DECL_SET_IS_OPERATOR_NEW): Likewise.
17518 (DECL_LAMBDA_FUNCTION): Likewise.
17519 (DECL_LAMBDA_FUNCTION_P): Likewise.
17520 (DECL_IS_OPERATOR_NEW): Remove.
17521 (DECL_SET_LAMBDA_FUNCTION): Likewise.
17522
17523 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
17524
17525 * ipa-profile.c (get_most_common_single_value): Use
17526 get_nth_most_common_value.
17527 * profile.c (sort_hist_value): New function.
17528 (compute_value_histograms): Call sort_hist_value to sort the
17529 values after loading from disk.
17530 * value-prof.c (get_most_common_single_value): Rename to ...
17531 get_nth_most_common_value. Add input params n, return
17532 the n_th value and count.
17533 (gimple_divmod_fixed_value_transform): Use
17534 get_nth_most_common_value.
17535 (gimple_ic_transform): Likewise.
17536 (gimple_stringops_transform): Likewise.
17537 * value-prof.h (get_most_common_single_value): Add input params
17538 n, default to 0.
17539
17540 2019-07-25 Richard Biener <rguenther@suse.de>
17541
17542 PR tree-optimization/91236
17543 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17544 size of CONSTRUCTOR write. Fix buffer size we pass to
17545 native_encode_expr.
17546
17547 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17548
17549 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
17550 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
17551 r273773.
17552
17553 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17554
17555 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
17556 explicitly disabled with --disable-initfini-array.
17557
17558 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17559
17560 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
17561 if-exists.
17562
17563 2019-07-24 Martin Sebor <msebor@redhat.com>
17564
17565 PR tree-optimization/91183
17566 PR tree-optimization/86688
17567 * builtins.c (compute_objsize): Handle MEM_REF.
17568 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
17569 (get_min_string_length): Remove.
17570 (count_nonzero_bytes): New function.
17571 (handle_char_store): Rename...
17572 (handle_store): to this. Handle multibyte stores via integer types.
17573 (strlen_check_and_optimize_stmt): Adjust conditional and the called
17574 function name.
17575
17576 2019-07-24 Martin Sebor <msebor@redhat.com>
17577
17578 PR driver/80545
17579 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
17580 (diagnostic_report_diagnostic): Same.
17581 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
17582 (diagnostic_context::lang_mask): New data member.
17583 * ipa-pure-const.c (suggest_attribute): Use
17584 lang_hooks.option_lang_mask ().
17585 * opts-common.c (option_enabled): Handle new argument.
17586 (get_option_state): Pass an additional argument.
17587 * opts.c (print_filtered_help): Print supported languages for
17588 unsupported options. Adjust printing of current state.
17589 * opts.h (option_enabled): Add argument.
17590 * toplev.c (print_switch_values): Use lang_mask.
17591 (general_init): Set global_dc->lang_mask.
17592
17593 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17594
17595 PR bootstrap/87030
17596 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
17597
17598 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
17599
17600 * cgraphunit.c (symbol_table::compile): Start and stop
17601 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
17602 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
17603
17604 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
17605
17606 * gimplify.c (flag_instrument_functions_exclude_p): Include
17607 namespace/class information in the printable name.
17608 * opts.c (add_comma_separated_to_vector): Add NUL terminator
17609 to tokens entered into the vector.
17610
17611 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
17612
17613 * tree-nested.c (build_simple_mem_ref_notrap): New function.
17614 (get_static_chain): Call it instead of build_simple_mem_ref.
17615 (get_frame_field): Likewise.
17616 (get_nonlocal_debug_decl): Likewise.
17617 (convert_nonlocal_reference_op): Likewise.
17618
17619 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
17620
17621 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
17622 declaration.
17623 (arc_compute_frame_size): Millicode is disabled when compiling
17624 ISR.
17625 (arc_return_address_register): Likewise.
17626 (arc_compute_function_type): Likewise.
17627 (arc_compute_frame_size): Likewise.
17628 (secondary_reload_info): Likewise.
17629 (arc_get_unalign): Likewise.
17630 (arc_can_use_return_insn): Declare.
17631 * config/arc/arc.c (AUX_LP_START): Define
17632 (AUX_LP_END): Likewise.
17633 (arc_frame_info): Update gmask member to 64-bit datum.
17634 (GMASK_LEN): Update.
17635 (arc_compute_function_type): Make it static, move it forward.
17636 (arc_must_save_register): Update, consider the extra regs.
17637 (arc_compute_millicode_save_restore_regs): Update to use the 64
17638 bit gmask.
17639 (arc_compute_frame_size): Likewise.
17640 (arc_enter_leave_p): Likewise.
17641 (arc_save_callee_saves): Likewise.
17642 (arc_restore_callee_saves): Likewise.
17643 (arc_save_callee_enter): Likewise.
17644 (arc_restore_callee_leave): Likewise.
17645 (arc_save_callee_milli): Likewise.
17646 (arc_restore_callee_milli): Likewise.
17647 (arc_expand_prologue): Add new interrupt handling.
17648 (arc_return_address_register): Make it static, move it forward.
17649 (arc_expand_epilogue): Add new interrupt handling.
17650 (arc_get_unalign): Delete.
17651 (arc_epilogue_uses): Make sure we do not remove the extra
17652 saved/restored registers when interrupt.
17653 (arc_can_use_return_insn): New function.
17654 (push_reg): Likewise.
17655 (pop_reg): Likewise.
17656 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
17657 procedures.
17658 (arc_restore_callee_saves): Likewise, but restoring.
17659 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
17660 (R33_REG): Likewise.
17661 (R34_REG): Likewise.
17662 (R35_REG): Likewise.
17663 (R36_REG): Likewise.
17664 (R37_REG): Likewise.
17665 (R38_REG): Likewise.
17666 (R39_REG): Likewise.
17667 (R45_REG): Likewise.
17668 (R46_REG): Likewise.
17669 (R47_REG): Likewise.
17670 (R48_REG): Likewise.
17671 (R49_REG): Likewise.
17672 (R50_REG): Likewise.
17673 (R51_REG): Likewise.
17674 (R52_REG): Likewise.
17675 (R53_REG): Likewise.
17676 (R54_REG): Likewise.
17677 (R55_REG): Likewise.
17678 (R56_REG): Likewise.
17679 (R58_REG): Likewise.
17680 (type): Add rtie attribute.
17681 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
17682 (movsi_insn): Accept moves to lp_count.
17683 (rtie): Update pattern.
17684 (simple_return): Simplify it, don't use this pattern as a return
17685 from an interrupt.
17686 (arc600_rtie): New pattern.
17687 (p_return_i): Clean up.
17688 (return): Likewise.
17689 * config/arc/builtins.def (rtie): Only available for non ARC6xx
17690 family CPUs.
17691 * config/arc/predicates.md (move_src_operand): Consider lp_count
17692 as a register.
17693
17694 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
17695
17696 * config/s390/predicates.md (addv_const_operand): New predicate.
17697 * config/s390/s390-modes.def (CCO): New condition code mode.
17698 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
17699 (s390_branch_condition_mask): Likewise.
17700 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
17701 ("mulv<mode>4"): New expanders.
17702 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
17703 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
17704 pattern definitions.
17705
17706 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17707
17708 PR middle-end/91166
17709 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
17710 (define_predicates): Add entry for uniform_vector_p.
17711 (vec_same_elem_p): New match pattern.
17712
17713 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17714
17715 PR bootstrap/87030
17716 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
17717 * config/i386/darwin32-biarch.h .. to here.
17718 * config/i386/darwin64-biarch.h: Adjust comments.
17719 * config/rs6000/darwin32-biarch.h: Likewise.
17720 * config/rs6000/darwin64-biarch.h: Likewise.
17721 * config.gcc: Missed commit from r273746
17722 (*-*-darwin*): Don't include CPU t-darwin here.
17723 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17724 an error message if i686-darwin configuration is attempted for
17725 Darwin >= 18.
17726
17727 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
17728
17729 PR bootstrap/87030
17730 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
17731 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17732 an error message if i686-darwin configuration is attempted for
17733 Darwin >= 18.
17734 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
17735 (powerpc-*-darwin*): Use biarch files where needed.
17736 (powerpc64-*-darwin*): Likewise.
17737 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
17738 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17739 arch case.
17740 * config/i386/darwin32-biarch.h: New.
17741 * config/i386/darwin64.h: Rename.
17742 * config/i386/darwin64-biarch.h: To this.
17743 * config/i386/t-darwin: Rename.
17744 * config/i386/t-darwin32-biarch: To this.
17745 * config/i386/t-darwin64: Rename.
17746 * config/i386/t-darwin64-biarch: To this.
17747 * config/rs6000/darwin32-biarch.h: New.
17748 * config/rs6000/darwin64.h: Rename.
17749 * config/rs6000/darwin64-biarch.h: To this.
17750 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17751 arch case.
17752 * config/rs6000/t-darwin8: Rename.
17753 * config/rs6000/t-darwin32-biarch: To this.
17754 * config/rs6000/t-darwin64 Rename.
17755 * config/rs6000/t-darwin64-biarch: To this.
17756
17757 2019-07-23 Martin Sebor <msebor@redhat.com>
17758
17759 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
17760
17761 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17762
17763 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
17764 (rh): New alias for it.
17765
17766 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17767
17768 * gdbhooks.py: Pass replace=True to
17769 gdb.printing.register_pretty_printer.
17770
17771 2019-07-23 Richard Biener <rguenther@suse.de>
17772
17773 PR debug/91231
17774 * lto-streamer-in.c (input_function): Drop inline-entry markers
17775 that ended up with an unknown location block.
17776
17777 2019-07-23 Richard Biener <rguenther@suse.de>
17778
17779 PR tree-optimization/83518
17780 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
17781 init from a constant even when partial defs are already recorded.
17782
17783 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17784
17785 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
17786 * config/i386/znver1.md: Enable patterns for znver2 and add store
17787 variants which use extra AGU unit.
17788
17789 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17790
17791 * config/i386/i386-options.c (ix86_option_override_internal): Default
17792 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
17793 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
17794 for ZNVER2.
17795
17796 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17797
17798 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
17799 (znver2_costs): Update 256 bit SSE costs and multiplication.
17800
17801 2019-07-23 Jan Beulich <jbeulich@suse.com>
17802
17803 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
17804 Require only AVX512F.
17805 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
17806 alternative expanding to vpternlog.
17807
17808 2019-07-23 Martin Liska <mliska@suse.cz>
17809
17810 * dwarf2out.c (gen_producer_string): Canonize -flto=N
17811 to -flto in dwarf producer string.
17812
17813 2019-07-23 Richard Biener <rguenther@suse.de>
17814
17815 * tree-cfg.c (label_for_bb): Remove global var.
17816 (main_block_label): Take label_for_bb as argument.
17817 (cleanup_dead_labels_eh): Likewise, adjust.
17818 (cleanup_dead_labels): Adjust.
17819
17820 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17821
17822 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
17823 Configurations): Add documentation for __builtin_mtfsf.
17824
17825 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
17826
17827 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
17828 * config/riscv/riscv.c (riscv_constant_alignment): Use
17829 riscv_align_data_type.
17830 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
17831 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17832 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17833 * config/riscv/riscv.opt (malign-data): New.
17834 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
17835
17836 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
17837
17838 * cgraph.c (dump_graphviz): New function.
17839 * cgraph.h (dump_graphviz): New function.
17840 * symtab.c (dump_graphviz): New function.
17841
17842 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
17843
17844 * config/aarch64/aarch64-simd.md
17845 (*aarch64_simd_sra<mode>): New.
17846 * config/aarch64/iterators.md
17847 (SHIFTRT): New iterator.
17848 (sra_op): New attribute.
17849
17850 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17851
17852 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
17853 callee-saved regs R4->R10 in an interrupt function that calls another
17854 function.
17855
17856 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17857
17858 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
17859 (_mm_blendv_epi8): New.
17860
17861 2019-07-22 Richard Biener <rguenther@suse.de>
17862
17863 PR tree-optimization/91221
17864 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
17865 restrict partial-def handling of empty constructors and
17866 memset to refs with known offset.
17867
17868 2019-07-22 Jan Beulich <jbeulich@suse.com>
17869
17870 * config/i386/sse.md (ternlogsuffix): New.
17871 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
17872 AVX512F is in use.
17873 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
17874
17875 2019-07-22 Martin Liska <mliska@suse.cz>
17876
17877 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
17878 comment.
17879 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
17880
17881 2019-07-22 Martin Liska <mliska@suse.cz>
17882
17883 * lto-section-in.c (lto_get_section_data):
17884 Use new function get_compression.
17885 * lto-streamer-out.c (produce_lto_section): Use
17886 set_compression to encode compression algorithm.
17887 * lto-streamer.h (struct lto_section): Do not
17888 use bitfields in the format.
17889
17890 2019-07-22 Martin Liska <mliska@suse.cz>
17891
17892 PR driver/91172
17893 * opts-common.c (decode_cmdline_option): Decode
17894 argument of -Werror and check it for a wrong language.
17895 * opts-global.c (complain_wrong_lang): Remove such case.
17896
17897 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
17898
17899 * config/arc/arc.c (prepare_move_operands): Always use an
17900 intermediate register when storing a TLS symbols.
17901
17902 2019-07-22 Stafford Horne <shorne@gmail.com>
17903
17904 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
17905 force_reg.
17906
17907 2019-07-22 Stafford Horne <shorne@gmail.com>
17908
17909 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
17910 and munordered-float validations.
17911 * config/or1k/constraints.md (d): New register constraint.
17912 * config/or1k/predicates.md (fp_comparison_operator): New.
17913 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
17914 operands.
17915 (or1k_expand_compare): Normalize unordered comparisons.
17916 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
17917 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
17918 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
17919 * config/or1k/or1k.md (type): Add fpu.
17920 (fpu): New instruction reservation.
17921 (F, f, fr, fi, FI, FOP, fop): New.
17922 (<fop><F:mode>3): New ALU instruction definition.
17923 (float<fi><F:mode>2): New conversion instruction definition.
17924 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
17925 (fpcmpcc): New code iterator.
17926 (*sf_fp_insn): New instruction definition.
17927 (cstore<F:mode>4): New expand definition.
17928 (cbranch<F:mode>4): New expand definition.
17929 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
17930 munordered-float): New options.
17931 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
17932 munordered-float.
17933
17934 2019-07-22 Stafford Horne <shorne@gmail.com>
17935
17936 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
17937 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
17938 documenation to be more clear.
17939 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
17940 more clear.
17941 * config/or1k/or1k.opt (mrori): New option.
17942 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
17943 msfimm, mshftimm): Rewrite documentation to be more clear.
17944 * config/or1k/or1k.md (insn_support): Add ror and rori.
17945 (enabled): Add conditions for ror and rori.
17946 (rotrsi3): Replace condition for shftimm with ror and rori.
17947
17948 2019-07-22 Stafford Horne <shorne@gmail.com>
17949
17950 PR target/90363
17951 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
17952 (extend<mode>si2): Update predicate.
17953 * config/or1k/predicates.md (volatile_mem_operand): New.
17954 (reg_or_mem_operand): New.
17955
17956 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
17957
17958 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
17959 * config/rs6000/rs6000-call.c: ... to here.
17960
17961 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17962
17963 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
17964 memory.
17965
17966 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17967
17968 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
17969
17970 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17971
17972 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
17973
17974 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17975
17976 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
17977 (any_memory_operand): New predicate.
17978 (reg_or_mem_operand): Use it.
17979
17980 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17981
17982 PR target/91204
17983 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
17984
17985 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
17986
17987 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
17988 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
17989
17990 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17991
17992 * tree.def (OMP_LOOP): New tree code.
17993 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
17994 (enum omp_clause_bind_kind): New enum.
17995 (struct tree_omp_clause): Add subcode.bind_kind.
17996 * tree.h (OMP_LOOP_CHECK): Rename to ...
17997 (OMP_LOOPING_CHECK): ... this.
17998 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
17999 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18000 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18001 (OMP_CLAUSE_BIND_KIND): Define.
18002 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18003 bind clause entries.
18004 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18005 * tree-pretty-print.c (dump_omp_clause): Likewise.
18006 (dump_generic_node): Handle OMP_LOOP.
18007 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18008 (in_omp_construct): New variable.
18009 (is_gimple_stmt): Handle OMP_LOOP.
18010 (gimplify_scan_omp_clauses): For lastprivate don't set
18011 check_non_private if code == OMP_LOOP. For reduction clause
18012 on OMP_LOOP combined with parallel or teams propagate as shared
18013 on the combined construct. Handle OMP_CLAUSE_BIND.
18014 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18015 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18016 for constructs from a loop construct to gimplify_scan_omp_clauses.
18017 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18018 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18019 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18020 to match the implicit ORT_TARGET construct around whole body.
18021 Temporarily clear in_omp_construct when processing body.
18022 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18023 etc. temporarily set in_omp_construct when processing body.
18024 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18025 * omp-low.c (struct omp_context): Add loop_p.
18026 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18027 in that the original var might be private.
18028 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18029 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18030 addition of loop construct.
18031 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18032
18033 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18034 lastprivate non-addressable iterator of a collapse(1) simd.
18035
18036 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18037
18038 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18039 as in rs6000.c.
18040
18041 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18042
18043 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18044 refer to default conditions. Warn for the 'y' spec which is ignored
18045 by current linkers.
18046
18047 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18048
18049 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18050 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18051 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18052 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18053 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18054 init_cumulative_args, rs6000_promote_function_mode,
18055 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18056 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18057 rs6000_function_arg_boundary, rs6000_parm_offset,
18058 rs6000_parm_start, rs6000_arg_size,
18059 rs6000_darwin64_record_arg_advance_flush,
18060 rs6000_darwin64_record_arg_advance_recurse,
18061 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18062 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18063 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18064 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18065 rs6000_finish_function_arg, rs6000_function_arg,
18066 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18067 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18068 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18069 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18070 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18071 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18072 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18073 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18074 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18075 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18076 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18077 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18078 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18079 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18080 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18081 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18082 get_element_number, altivec_expand_vec_set_builtin,
18083 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18084 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18085 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18086 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18087 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18088 rs6000_expand_builtin, rs6000_vector_type,
18089 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18090 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18091 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18092 to rs6000-call.c.
18093 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18094 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18095 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18096 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18097 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18098 init_cumulative_args, rs6000_promote_function_mode,
18099 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18100 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18101 rs6000_function_arg_boundary, rs6000_parm_offset,
18102 rs6000_parm_start, rs6000_arg_size,
18103 rs6000_darwin64_record_arg_advance_flush,
18104 rs6000_darwin64_record_arg_advance_recurse,
18105 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18106 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18107 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18108 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18109 rs6000_finish_function_arg, rs6000_function_arg,
18110 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18111 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18112 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18113 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18114 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18115 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18116 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18117 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18118 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18119 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18120 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18121 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18122 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18123 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18124 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18125 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18126 get_element_number, altivec_expand_vec_set_builtin,
18127 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18128 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18129 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18130 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18131 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18132 rs6000_expand_builtin, rs6000_vector_type,
18133 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18134 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18135 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18136 to here from rs6000.c.
18137 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18138 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18139 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18140 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18141 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18142 rs6000_return_in_memory, rs6000_return_in_msb,
18143 rs6000_pass_by_reference, setup_incoming_varargs,
18144 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18145 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18146 rs6000_function_arg_padding, rs6000_function_arg,
18147 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18148 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18149 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18150 rs6000_passes_long_double, rs6000_passes_vector,
18151 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18152 altivec_builtin_mask_for_load) Add declarations.
18153 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18154 * config/config.gcc: Add new source file rs6000-call.c to garbage
18155 collector and extra_objs.
18156
18157 2019-07-19 Jeff Law <law@redhat.com>
18158
18159 PR tree-optimization/86061
18160 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18161 strncpy. Drop some trivial dead code.
18162 (maybe_trim_memstar_call): Handle strncpy.
18163
18164 2019-07-19 Richard Biener <rguenther@suse.de>
18165
18166 PR tree-optimization/91211
18167 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18168 memset encoding size.
18169
18170 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18171
18172 PR target/91204
18173 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18174
18175 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18176
18177 PR ipa/91194
18178 * ipa-inline.c (recursive_inlining): Fix limits check.
18179
18180 2019-07-19 Richard Biener <rguenther@suse.de>
18181
18182 PR tree-optimization/91200
18183 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18184 no PHI nodes in middle-bb.
18185
18186 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18187
18188 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18189 to +sve-bitperm.
18190 * config/aarch64/aarch64-option-extensions.def: Likewise.
18191
18192 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18193
18194 PR middle-end/91190
18195 * function.c (insert_temp_slot_address): Store into the hash table
18196 a copy of address to avoid RTL sharing issues.
18197
18198 2019-07-19 Richard Biener <rguenther@suse.de>
18199
18200 PR tree-optimization/91207
18201 Revert
18202 2019-07-17 Richard Biener <rguenther@suse.de>
18203
18204 PR tree-optimization/91178
18205 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18206 loads with a gap larger than the vector size always use
18207 VMAT_STRIDED_SLP.
18208 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18209 avoid loading vectors that are only contained in the gap
18210 and thus are not needed.
18211
18212 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18213
18214 * config/i386/i386.md (*addqi_2_slp): Remove.
18215 (*<code>qi_2_slp): Ditto.
18216
18217 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18218
18219 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18220 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18221 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18222 Rename function from rs6000_prefixed_address.
18223 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18224 TARGET_HAS_TOC.
18225 (TARGET_TOC): Likewise.
18226 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18227 rs6000.h.
18228 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18229 TARGET_HAS_TOC.
18230 (TARGET_TOC): Likewise.
18231 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18232 rs6000.h.
18233 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18234 TARGET_HAS_TOC.
18235 (TARGET_TOC): Likewise.
18236 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18237 check to require -mcmodel=medium for pc-relative addressing.
18238 (create_TOC_reference): Add assertion for TARGET_TOC.
18239 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18240 TARGET_NO_TOC.
18241 (rs6000_emit_move): Likewise.
18242 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18243 to 'TOC_alias_set'.
18244 (get_TOC_alias_set): Likewise.
18245 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18246 TARGET_NO_TOC.
18247 (rs6000_can_eliminate): Likewise.
18248 (rs6000_prefixed_address_mode_p): Rename function from
18249 rs6000_prefixed_address.
18250 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18251 TARGET_HAS_TOC and not pc-relative.
18252 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18253 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18254 TARGET_HAS_TOC.
18255 (TARGET_TOC): Likewise.
18256 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18257 rs6000.h.
18258
18259 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18260
18261 PR target/91188
18262 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18263 for operand 0. Do not use (match_dup) to match operand 1 with
18264 operand 0. Add check in insn constraint that either input operand
18265 matches operand 0. Use SWI12 mode iterator to also handle
18266 HImode operands.
18267 (*and<mode>_1_slp): Ditto.
18268 (*<code>qi_1_slp): Ditto.
18269 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18270 Do not use (match_dup) to match operand 1 with operand 0. Add
18271 check in insn constraint that operand 1 matches operand 0.
18272 Use SWI12 mode iterator to also handle HImode operands.
18273 (*ashl<mode>3_1_slp): Ditto.
18274 (*<shift_insn><mode>3_1_slp): Ditto.
18275 (*<rotate_insn><mode>3_1_slp): Ditto.
18276
18277 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18278
18279 * config/arm/arm-builtins.c
18280 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18281 (arm_expand_unop_builtin): Likewise.
18282 * config/arm/crypto.md
18283 (crypto_sha1h): Convert from define_insn to define_expand.
18284 (crypto_<crypto_pattern>): Likewise.
18285 (crypto_sha1h_lb): New define_insn.
18286 (crypto_<crypto_pattern>_lb): Likewise.
18287
18288 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18289
18290 PR target/90317
18291 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18292 (vsha1cq_u32): Likewise.
18293 (vsha1pq_u32): Likewise.
18294 (vsha1mq_u32): Likewise.
18295 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18296 vec select.
18297 (crypto_sha1c): Correct vec select.
18298 (crypto_sha1m): Likewise.
18299 (crypto_sha1p): Likewise.
18300
18301 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18302
18303 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18304 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18305 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18306 (subdi_zesidi_zesidi): Likewise.
18307 (negdi2_compare, negdi2_insn): Likewise.
18308 (negdi_extensidi): Likewise.
18309 (negdi_zero_extendsidi): Likewise.
18310 (arm_cmpdi_insn): Likewise.
18311 (subsi3_carryin): Use arm_borrow_operation.
18312 (subsi3_carryin_const): Likewise.
18313 (subsi3_carryin_const0): Likewise.
18314 (subsi3_carryin_compare): Likewise.
18315 (subsi3_carryin_compare_const): Likewise.
18316 (subsi3_carryin_compare_const0): Likewise.
18317 (subsi3_carryin_shift): Likewise.
18318 (rsbsi3_carryin_shift): Likewise.
18319 (negsi2_carryin_compare): Likewise.
18320
18321 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18322
18323 PR tree-optimization/91137
18324 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18325 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18326 Init, use and fini the above new field.
18327 (determine_base_object_1): New function.
18328 (determine_base_object): Reimplement using walk_tree.
18329
18330 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18331
18332 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18333 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18334 CLEANUP_FORCE_FAST_DCE is set.
18335 * ifcvt.c (rest_of_handle_if_conversion): Pass
18336 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18337 if-conversion succeeded.
18338
18339 2019-07-18 Richard Biener <rguenther@suse.de>
18340
18341 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18342 branches to make code less indented.
18343
18344 2019-07-17 Alexandre Oliva <oliva@adacore.com>
18345
18346 PR middle-end/81824
18347 * attribs.c (decls_mismatched_attributes): Simplify the logic
18348 that avoids duplicates and false positives.
18349
18350 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
18351
18352 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18353 data into data section when generating PIC code.
18354 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18355 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18356 generating code for SOM targets earlier than HP-UX 11. Otherwise,
18357 return 2 for SOM and 0 for other targets.
18358
18359 2019-07-17 Jeff Law <law@redhat.com>
18360
18361 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18362 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
18363 avoid unexpected switch statement fallthru.
18364
18365 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18366
18367 * config/i386/i386.md (*add<dwi>3_doubleword):
18368 Remove redundant constraints.
18369 (*add<mode>_1): Ditto.
18370 (*addhi_1): Ditto.
18371 (*addqi_1): Ditto.
18372 (*addqi_1_slp): Ditto.
18373 (*add<mode>_2): Ditto.
18374 (*addv<mode>4): Ditto.
18375 (*sub<dwi>3_doubleword): Ditto.
18376 (*sub<mode>_1): Ditto.
18377 (*subqi_1_slp): Ditto.
18378 (*sub<mode>_2): Ditto.
18379 (*subv<mode>4): Ditto.
18380 (*sub<mode>_3): Ditto.
18381 (@add<mode>3_carry): Ditto.
18382 (@sub<mode>3_carry): Ditto.
18383 (*add<mode>3_cc_overflow_1): Ditto.
18384 (*add<mode>3_zext_cc_overflow_2): Ditto.
18385 (*anddi_1): Ditto.
18386 (*and<mode>_1): Ditto.
18387 (*andqi_1): Ditto.
18388 (*andqi_1_slp): Ditto.
18389 (*anddi_2): Ditto.
18390 (*andqi_2_maybe_si): Ditto.
18391 (*and<mode>_2): Ditto.
18392 (*andqi_2_slp): Ditto.
18393 (*<code><mode>_1): Ditto.
18394 (*<code>qi_1): Ditto.
18395 (*<code>qi_1_slp): Ditto.
18396 (*<code><mode>_2): Ditto.
18397 (*<code>qi_2_slp): Ditto.
18398
18399 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
18400
18401 * alias.c (record_component_aliases): Do not simplify pointed-to
18402 types of ODR types.
18403
18404 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18405
18406 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
18407 partial reg stall on alternative 2.
18408
18409 2019-07-17 Richard Biener <rguenther@suse.de>
18410
18411 PR tree-optimization/91178
18412 * tree-ssa.c (release_defs_bitset): Iterate from higher to
18413 lower SSA names to avoid quadratic behavior in the common case.
18414 * tree-data-ref.c (split_constant_offset): Add limit argument
18415 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18416 (split_constant_offset_1): Add limit argument and use it to
18417 limit SSA def walking. Optimize the common plus/minus case.
18418
18419 2019-07-17 Richard Biener <rguenther@suse.de>
18420
18421 PR tree-optimization/91178
18422 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18423 loads with a gap larger than the vector size always use
18424 VMAT_STRIDED_SLP.
18425 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18426 avoid loading vectors that are only contained in the gap
18427 and thus are not needed.
18428
18429 2019-07-17 Richard Biener <rguenther@suse.de>
18430
18431 PR tree-optimization/91180
18432 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
18433 computation for memset partial defs.
18434
18435 2019-07-17 Jakub Jelinek <jakub@redhat.com>
18436
18437 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
18438 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
18439 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
18440 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
18441 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
18442 * omp-grid.c (grid_process_grid_body,
18443 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
18444 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
18445 == GF_OMP_FOR_KIND_SIMD.
18446 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
18447 check_omp_nesting_restrictions, scan_omp_1_stmt,
18448 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
18449 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
18450 omp_find_scan): Likewise.
18451 * omp-expand.c (expand_omp_for): Likewise.
18452 * omp-general.c (omp_extract_for_data): Likewise.
18453
18454 PR tree-optimization/91157
18455 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
18456 a vector boolean with scalar mode.
18457 (expand_vector_condition): Handle first operand being a vector boolean
18458 with scalar mode.
18459 (expand_vector_operations_1): For comparisons, don't bail out early
18460 if the return type is vector boolean with scalar mode, but comparison
18461 operand type is not.
18462
18463 2019-07-17 Richard Biener <rguenther@suse.de>
18464
18465 PR tree-optimization/91181
18466 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
18467 IFN_LOADs as calls.
18468
18469 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
18470
18471 * config/i386/i386.md (*testdi_1): Match CCZmode for
18472 constants that might have the SImode sign bit set.
18473 (*testqi_1_maybe_si): Remove "!" constraint modifier.
18474 Use correct constraints for pentium pairing.
18475 (*test<mode>_1): Ditto.
18476
18477 2019-07-16 Jeff Law <law@redhat.com>
18478
18479 PR rtl-optimization/91173
18480 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
18481 SSA_NAME with a constant value, fold its value into the offset
18482 and clear the base before calling gen_addr_rtx.
18483
18484 2019-07-16 Jakub Jelinek <jakub@redhat.com>
18485
18486 PR rtl-optimization/91164
18487 * dse.c (rest_of_handle_dse): If dead edges have been purged,
18488 invalidate dominance info.
18489
18490 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18491
18492 * read-md.h (md_reader::record_potential_iterator_use): Add a
18493 file_location parameter.
18494 * read-rtl.c (attribute_use::loc): New field.
18495 (map_attr_string): Take a file_location parameter. Report cases
18496 in which attributes map to multiple distinct values.
18497 (apply_attribute_uses): Update call accordingly.
18498 (md_reader::handle_overloaded_name): Likewise.
18499 (md_reader::apply_iterator_to_string): Likewise. Skip empty
18500 nonnull strings.
18501 (record_attribute_use): Take a file_location parameter.
18502 Initialize attribute_use::loc.
18503 (md_reader::record_potential_iterator_use): Take a file_location
18504 parameter. Update call to record_attribute_use.
18505 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
18506 (rtx_reader::read_rtx_code): Likewise.
18507 (rtx_reader::read_rtx_operand): Likewise. Record a location
18508 for implicitly-expanded empty strings.
18509
18510 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18511
18512 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
18513 Use file_location instead of separate fields.
18514 (md_reader::set_md_ptr_loc): Take a file_location instead of a
18515 separate filename and line number.
18516 * read-md.c (ptr_loc): As above.
18517 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
18518 (md_reader::fprint_md_ptr_loc): Likewise.
18519 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
18520 instead of a separate filename and line number.
18521 (md_reader::read_string): Update call accordingly.
18522
18523 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18524
18525 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
18526 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
18527 leaving the choice between SFDF and P implicit.
18528 (*mov<mode>_update2): Likewise.
18529 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
18530 rather than leaving the choice betweem IBM128 and GPR implicit.
18531 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
18532 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
18533 QHSI implicit.
18534 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
18535 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
18536 * config/rs6000/vsx.md
18537 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
18538 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
18539 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
18540 and VSX_EXTRACT_I implicit.
18541
18542 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18543
18544 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
18545 Explicitly use <MOVEP1:MODE> for the mode attribute.
18546
18547 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
18548
18549 PR bootstrap/91176
18550 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
18551
18552 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
18553
18554 PR target/91050
18555 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
18556 .machine directive.
18557
18558 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
18559
18560 * config/i386/i386.md (@test<mode>_ccno_1):
18561 Rename from test<mode>_ccno_1.
18562 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
18563 (*testqi_1_maybe_si): Remove modrm attribute.
18564 (*test<mode>_1): Ditto.
18565 * config/i386/i386-expand.c (ix86_split_idivmod): Use
18566 gen_test_ccno_1 and gen_extend_insn.
18567
18568 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
18569
18570 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
18571 to 0.
18572
18573 2019-07-15 Richard Biener <rguenther@suse.de>
18574
18575 PR middle-end/91162
18576 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
18577 node make sure to replace all uses with something valid.
18578
18579 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
18580
18581 PR tree-optimization/88497
18582 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
18583 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
18584 function undistribute_bitref_for_vector.
18585 (undistribute_bitref_for_vector): New function.
18586 (cleanup_vinfo_map): Likewise.
18587 (sort_by_mach_mode): Likewise.
18588
18589 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
18590
18591 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
18592 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
18593 and testdi_ccno_1 using SWI48 mode attribute.
18594 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
18595 x86_64_szext_general_operand.
18596 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
18597 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
18598 instead of genera_operand mode attribute.
18599
18600 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
18601
18602 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
18603 fopen and fclose to their respective types.
18604 (DotFn.invoke): Ditto.
18605
18606 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
18607
18608 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
18609 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
18610 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
18611 (array_index_predicate): Remove.
18612 (analyze_function_body): Account cost for variable ofsetted array
18613 indexing.
18614 (estimate_node_size_and_time): Do not compute array index hint.
18615 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
18616 (inline_read_section): Do not read array index hint.
18617 (ipa_fn_summary_write): Do not write array index hint.
18618 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
18619 * ipa-cp.c (hint_time_bonus): Remove.
18620 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
18621 (ipa_fnsummary): Remove array_index.
18622 * ipa-inline.c (want_inline_small_function_p): Do not use
18623 array_index.
18624 (edge_badness): Likewise.
18625 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
18626
18627 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
18628
18629 PR target/91148
18630 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
18631 superfluous "builtin function" phrasing.
18632
18633 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
18634
18635 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
18636 Break out from ...
18637 (aliasing_component_refs_walk): Break out from ...
18638 (aliasing_component_refs_p): ... here.
18639
18640 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
18641
18642 PR target/91148
18643 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
18644 "builtin function" phrasing.
18645
18646 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18647
18648 PR target/90723
18649 * recog.h (temporary_volatile_ok): New class.
18650 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
18651 volatile_ok temporarily to true using temporary_volatile_ok.
18652 * expr.c (emit_block_move_via_cpymem): Likewise.
18653 * optabs.c (maybe_legitimize_operand): Likewise.
18654
18655 2019-07-13 Jakub Jelinek <jakub@redhat.com>
18656
18657 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
18658 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
18659 uses inside of order(concurrent) constructs.
18660 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
18661 OMP_CLAUSE_ORDER is seen.
18662 * omp-low.c (struct omp_context): Add order_concurrent member.
18663 (scan_sharing_clauses): Set ctx->order_concurrent if
18664 OMP_CLAUSE_ORDER is seen.
18665 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
18666 of simd order(concurrent). Diagnose constructs not allowed inside of
18667 for order(concurrent).
18668 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
18669 complaining about static double setjmp (double); or class static
18670 methods or non-global namespace setjmps.
18671 (omp_runtime_api_call): New function.
18672 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
18673 order(concurrent) loops.
18674
18675 2019-07-12 Martin Sebor <msebor@redhat.com>
18676
18677 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
18678 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
18679 * tree-vrp.c (vrp_prop::check_mem_ref): Use
18680 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18681
18682 2019-07-12 Jan Hubicka <jh@suse.cz>
18683
18684 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
18685 (indirect_refs_may_alias_p): ... here.
18686 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
18687 mem refs in the access paths.
18688
18689 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
18690
18691 PR tree-optimization/89430
18692 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
18693 store elimination for local variable without address escape.
18694
18695 2019-07-12 Jeff Law <law@redhat.com>
18696
18697 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
18698 for the ".far" section.
18699
18700 2019-07-12 Richard Biener <rguenther@suse.de>
18701
18702 PR tree-optimization/91145
18703 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
18704 chain check.
18705
18706 2019-07-12 Alexandre Oliva <oliva@adacore.com>
18707
18708 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
18709 rather than this_state as the lowering context for the ELSE
18710 seq in a GIMPLE_EH_ELSE.
18711
18712 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18713
18714 * vector-builder.h (vector_builder::elt): Allow already-supplied
18715 elements to be read back before building is complete.
18716
18717 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18718
18719 PR rtl-optimization/91136
18720 * df-core.c (ACCESSING REFS): Fix typos in comment.
18721 * resource.c (mark_target_live_reg): Add artificial defs that occur at
18722 the beginning of the block to the initial set of live registers.
18723
18724 2019-07-12 Richard Biener <rguenther@suse.de>
18725
18726 * fold-const.h (get_array_ctor_element_at_index): Adjust.
18727 * fold-const.c (get_array_ctor_element_at_index): Add
18728 ctor_idx output parameter informing the caller where in
18729 the constructor the element was (not) found. Add early exit
18730 for when the ctor is sorted.
18731 * gimple-fold.c (fold_array_ctor_reference): Support constant
18732 folding across multiple array elements.
18733
18734 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18735
18736 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
18737 doesn't have location, set the current location to the function's end.
18738
18739 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18740
18741 * config/aarch64/aarch64.md (*compare_condjump<mode>)
18742 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
18743 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
18744 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
18745 * config/aarch64/aarch64-simd.md
18746 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
18747 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
18748 * config/aarch64/aarch64-sve.md
18749 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
18750 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
18751
18752 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18753
18754 * doc/md.texi: Document that @ patterns can have different
18755 numbers of operands.
18756 * genemit.c (handle_overloaded_gen): Handle this case.
18757 * genopinit.c (handle_overloaded_gen): Likewise.
18758 * gensupport.c (replace_operands_with_dups): Iterate over
18759 the new rtx's format rather than the old one's.
18760
18761 2019-07-12 Jakub Jelinek <jakub@redhat.com>
18762
18763 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
18764 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18765 order clause entries.
18766 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
18767 * tree-pretty-print.c (dump_omp_clause): Likewise.
18768 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18769 Likewise.
18770 * omp-low.c (scan_sharing_clauses): Likewise.
18771 * tree-nested.c (convert_nonlocal_omp_clauses,
18772 convert_local_omp_clauses): Likewise.
18773
18774 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
18775
18776 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
18777 fallthrough target of current basic block isn't the placed
18778 right next.
18779
18780 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
18781
18782 PR target/90980
18783 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
18784 (_mm512_storeu_epi64): Likewise.
18785 (_mm512_loadu_epi32): Likewise.
18786 (_mm512_storeu_epi32): Likewise.
18787 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
18788 (_mm_storeu_epi64): Likewise.
18789 (_mm256_storeu_epi32): Likewise.
18790 (_mm_storeu_epi32): Likewise.
18791
18792 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18793
18794 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
18795
18796 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18797
18798 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
18799 Handle Modula-2.
18800
18801 2019-07-11 Jakub Jelinek <jakub@redhat.com>
18802
18803 PR target/91124
18804 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
18805 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18806 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
18807 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
18808 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
18809 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
18810 define_insns.
18811 (ufix_truncv2dfv2si2<mask_name>): Change into ...
18812 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
18813 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
18814 define_insns.
18815 (sse2_cvttpd2dq<mask_name>): Change into ...
18816 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
18817 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
18818 (*sse2_cvtpd2dq<mask_name>): Change into ...
18819 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18820 Add "C" constraint to const0_operand.
18821 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
18822 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
18823 changes.
18824
18825 PR target/91124
18826 * config/i386/i386-builtin-types.def
18827 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
18828 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
18829 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
18830 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
18831 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
18832 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
18833 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
18834 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
18835 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
18836 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
18837 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
18838 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
18839 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
18840 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
18841 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
18842 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
18843 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
18844 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
18845 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
18846 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
18847 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
18848 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
18849 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
18850 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
18851 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
18852 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
18853 __builtin_ia32_vpdpbusd_v4si_maskz,
18854 __builtin_ia32_vpdpbusds_v16si_mask,
18855 __builtin_ia32_vpdpbusds_v16si_maskz,
18856 __builtin_ia32_vpdpbusds_v8si_mask,
18857 __builtin_ia32_vpdpbusds_v8si_maskz,
18858 __builtin_ia32_vpdpbusds_v4si_mask,
18859 __builtin_ia32_vpdpbusds_v4si_maskz,
18860 __builtin_ia32_vpdpwssd_v16si_mask,
18861 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
18862 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
18863 __builtin_ia32_vpdpwssd_v4si_maskz,
18864 __builtin_ia32_vpdpwssds_v16si_mask,
18865 __builtin_ia32_vpdpwssds_v16si_maskz,
18866 __builtin_ia32_vpdpwssds_v8si_mask,
18867 __builtin_ia32_vpdpwssds_v8si_maskz,
18868 __builtin_ia32_vpdpwssds_v4si_mask,
18869 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
18870 suffixed types rather than *_INT.
18871 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
18872 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
18873 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
18874 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
18875 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
18876 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
18877
18878 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
18879
18880 * tree-vrp.c (intersect_ranges): If we know the intersection is
18881 empty, there is no need to conservatively add anything else to
18882 the set.
18883
18884 2019-07-11 Richard Biener <rguenther@suse.de>
18885
18886 PR middle-end/91131
18887 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
18888 when the object is volatile and we have not cleared it even though
18889 there are no nonzero elements.
18890
18891 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
18892
18893 * config/rs6000/predicates.md (cint34_operand): Update
18894 SIGNED_34BIT_OFFSET_P call.
18895 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
18896 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
18897 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
18898 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
18899 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
18900 argument.
18901 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
18902 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
18903 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
18904 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
18905 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
18906
18907 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
18908
18909 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
18910 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
18911 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
18912 (DEF_MIN_OSX_VERSION): New.
18913
18914 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18915
18916 * fold-const.c (fold_relational_const): Fix folding of
18917 vector-to-scalar NE_EXPRs.
18918 (test_vector_folding): Add more tests.
18919
18920 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18921
18922 PR target/91060
18923 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
18924 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
18925 (vec_setv2di_internal): Reexpress as...
18926 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
18927 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
18928 rather than gen_neon_vset_lane<mode>.
18929
18930 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
18931
18932 PR target/91102
18933 * lra-constraints.c (process_alt_operands): Don't match user
18934 defined regs only if they are early clobbers.
18935
18936 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
18937
18938 * wide-int.h (wi::lshift): Reject negative values for the fast path.
18939
18940 2019-07-10 Richard Biener <rguenther@suse.de>
18941
18942 PR tree-optimization/91126
18943 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
18944 native encoding offset for BYTES_BIG_ENDIAN.
18945 (vn_reference_lookup_3): Likewise.
18946
18947 2019-07-10 Richard Biener <rguenther@suse.de>
18948
18949 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
18950 LHS whenever possible.
18951
18952 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
18953
18954 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
18955 from ...; work also on duplicated types.
18956 (nonoverlapping_component_refs_since_match): ... here
18957 (ncr_type_uid): Break out from ...
18958 (ncr_compar): ... here; look for TYPE_UID of canonical type if
18959 available.
18960 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
18961 the types and nonoverlapping_component_refs_p_1 to disambiguate.
18962
18963 2019-07-09 Martin Sebor <msebor@redhat.com>
18964
18965 PR tree-optimization/90989
18966 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
18967 optimization to just single character stores.
18968
18969 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
18970
18971 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
18972 Swap operands only once.
18973
18974 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18975
18976 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
18977 for both call instructions.
18978
18979 2019-07-09 John Darrington <john@darrington.wattle.id.au>
18980
18981 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
18982 rather than GET_MODE_BITSIZE to better handle partial integer modes.
18983
18984 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
18985
18986 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
18987 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
18988 function from rs6000-logue.c back to rs6000.c.
18989 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
18990
18991 2019-07-09 Martin Sebor <msebor@redhat.com>
18992
18993 PR c++/61339
18994 * auto-profile.c: Change class-key of PODs to struct and others
18995 to class.
18996 * basic-block.h: Same.
18997 * bitmap.c (bitmap_alloc): Same.
18998 * bitmap.h: Same.
18999 * builtins.c (expand_builtin_prefetch): Same.
19000 (expand_builtin_interclass_mathfn): Same.
19001 (expand_builtin_strlen): Same.
19002 (expand_builtin_mempcpy_args): Same.
19003 (expand_cmpstr): Same.
19004 (expand_builtin___clear_cache): Same.
19005 (expand_ifn_atomic_bit_test_and): Same.
19006 (expand_builtin_thread_pointer): Same.
19007 (expand_builtin_set_thread_pointer): Same.
19008 * caller-save.c (setup_save_areas): Same.
19009 (replace_reg_with_saved_mem): Same.
19010 (insert_restore): Same.
19011 (insert_save): Same.
19012 (add_used_regs): Same.
19013 * cfg.c (get_bb_copy): Same.
19014 (set_loop_copy): Same.
19015 * cfg.h: Same.
19016 * cfganal.h: Same.
19017 * cfgexpand.c (alloc_stack_frame_space): Same.
19018 (add_stack_var): Same.
19019 (add_stack_var_conflict): Same.
19020 (add_scope_conflicts_1): Same.
19021 (update_alias_info_with_stack_vars): Same.
19022 (expand_used_vars): Same.
19023 * cfghooks.c (redirect_edge_and_branch_force): Same.
19024 (delete_basic_block): Same.
19025 (split_edge): Same.
19026 (make_forwarder_block): Same.
19027 (force_nonfallthru): Same.
19028 (duplicate_block): Same.
19029 (lv_flush_pending_stmts): Same.
19030 * cfghooks.h: Same.
19031 * cfgloop.c (flow_loops_cfg_dump): Same.
19032 (flow_loop_nested_p): Same.
19033 (superloop_at_depth): Same.
19034 (get_loop_latch_edges): Same.
19035 (flow_loop_dump): Same.
19036 (flow_loops_dump): Same.
19037 (flow_loops_free): Same.
19038 (flow_loop_nodes_find): Same.
19039 (establish_preds): Same.
19040 (flow_loop_tree_node_add): Same.
19041 (flow_loop_tree_node_remove): Same.
19042 (flow_loops_find): Same.
19043 (find_subloop_latch_edge_by_profile): Same.
19044 (find_subloop_latch_edge_by_ivs): Same.
19045 (mfb_redirect_edges_in_set): Same.
19046 (form_subloop): Same.
19047 (merge_latch_edges): Same.
19048 (disambiguate_multiple_latches): Same.
19049 (disambiguate_loops_with_multiple_latches): Same.
19050 (flow_bb_inside_loop_p): Same.
19051 (glb_enum_p): Same.
19052 (get_loop_body_with_size): Same.
19053 (get_loop_body): Same.
19054 (fill_sons_in_loop): Same.
19055 (get_loop_body_in_dom_order): Same.
19056 (get_loop_body_in_custom_order): Same.
19057 (release_recorded_exits): Same.
19058 (get_loop_exit_edges): Same.
19059 (num_loop_branches): Same.
19060 (remove_bb_from_loops): Same.
19061 (find_common_loop): Same.
19062 (delete_loop): Same.
19063 (cancel_loop): Same.
19064 (verify_loop_structure): Same.
19065 (loop_preheader_edge): Same.
19066 (loop_exit_edge_p): Same.
19067 (single_exit): Same.
19068 (loop_exits_to_bb_p): Same.
19069 (loop_exits_from_bb_p): Same.
19070 (get_loop_location): Same.
19071 (record_niter_bound): Same.
19072 (get_estimated_loop_iterations_int): Same.
19073 (max_stmt_executions_int): Same.
19074 (likely_max_stmt_executions_int): Same.
19075 (get_estimated_loop_iterations): Same.
19076 (get_max_loop_iterations): Same.
19077 (get_max_loop_iterations_int): Same.
19078 (get_likely_max_loop_iterations): Same.
19079 * cfgloop.h (simple_loop_desc): Same.
19080 (get_loop): Same.
19081 (loop_depth): Same.
19082 (loop_outer): Same.
19083 (loop_iterator::next): Same.
19084 (loop_outermost): Same.
19085 * cfgloopanal.c (mark_irreducible_loops): Same.
19086 (num_loop_insns): Same.
19087 (average_num_loop_insns): Same.
19088 (expected_loop_iterations_unbounded): Same.
19089 (expected_loop_iterations): Same.
19090 (mark_loop_exit_edges): Same.
19091 (single_likely_exit): Same.
19092 * cfgloopmanip.c (fix_bb_placement): Same.
19093 (fix_bb_placements): Same.
19094 (remove_path): Same.
19095 (place_new_loop): Same.
19096 (add_loop): Same.
19097 (scale_loop_frequencies): Same.
19098 (scale_loop_profile): Same.
19099 (create_empty_if_region_on_edge): Same.
19100 (create_empty_loop_on_edge): Same.
19101 (loopify): Same.
19102 (unloop): Same.
19103 (fix_loop_placements): Same.
19104 (copy_loop_info): Same.
19105 (duplicate_loop): Same.
19106 (duplicate_subloops): Same.
19107 (loop_redirect_edge): Same.
19108 (can_duplicate_loop_p): Same.
19109 (duplicate_loop_to_header_edge): Same.
19110 (mfb_keep_just): Same.
19111 (has_preds_from_loop): Same.
19112 (create_preheader): Same.
19113 (create_preheaders): Same.
19114 (lv_adjust_loop_entry_edge): Same.
19115 (loop_version): Same.
19116 * cfgloopmanip.h: Same.
19117 * cgraph.h: Same.
19118 * cgraphbuild.c: Same.
19119 * combine.c (make_extraction): Same.
19120 * config/i386/i386-features.c: Same.
19121 * config/i386/i386-features.h: Same.
19122 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19123 (ix86_emit_outlined_ms2sysv_restore): Same.
19124 (ix86_noce_conversion_profitable_p): Same.
19125 (ix86_init_cost): Same.
19126 (ix86_simd_clone_usable): Same.
19127 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19128 Wstruct-not-pod.
19129 * coretypes.h: Same.
19130 * data-streamer-in.c (string_for_index): Change class-key of PODs
19131 to struct and others to class.
19132 (streamer_read_indexed_string): Same.
19133 (streamer_read_string): Same.
19134 (bp_unpack_indexed_string): Same.
19135 (bp_unpack_string): Same.
19136 (streamer_read_uhwi): Same.
19137 (streamer_read_hwi): Same.
19138 (streamer_read_gcov_count): Same.
19139 (streamer_read_wide_int): Same.
19140 * data-streamer.h (streamer_write_bitpack): Same.
19141 (bp_unpack_value): Same.
19142 (streamer_write_char_stream): Same.
19143 (streamer_write_hwi_in_range): Same.
19144 (streamer_write_record_start): Same.
19145 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19146 (add_cross_iteration_register_deps): Same.
19147 (build_intra_loop_deps): Same.
19148 * df-core.c (df_analyze): Same.
19149 (loop_post_order_compute): Same.
19150 (loop_inverted_post_order_compute): Same.
19151 * df-problems.c (df_rd_alloc): Same.
19152 (df_rd_simulate_one_insn): Same.
19153 (df_rd_local_compute): Same.
19154 (df_rd_init_solution): Same.
19155 (df_rd_confluence_n): Same.
19156 (df_rd_transfer_function): Same.
19157 (df_rd_free): Same.
19158 (df_rd_dump_defs_set): Same.
19159 (df_rd_top_dump): Same.
19160 (df_lr_alloc): Same.
19161 (df_lr_reset): Same.
19162 (df_lr_local_compute): Same.
19163 (df_lr_init): Same.
19164 (df_lr_confluence_n): Same.
19165 (df_lr_free): Same.
19166 (df_lr_top_dump): Same.
19167 (df_lr_verify_transfer_functions): Same.
19168 (df_live_alloc): Same.
19169 (df_live_reset): Same.
19170 (df_live_init): Same.
19171 (df_live_confluence_n): Same.
19172 (df_live_finalize): Same.
19173 (df_live_free): Same.
19174 (df_live_top_dump): Same.
19175 (df_live_verify_transfer_functions): Same.
19176 (df_mir_alloc): Same.
19177 (df_mir_reset): Same.
19178 (df_mir_init): Same.
19179 (df_mir_confluence_n): Same.
19180 (df_mir_free): Same.
19181 (df_mir_top_dump): Same.
19182 (df_word_lr_alloc): Same.
19183 (df_word_lr_reset): Same.
19184 (df_word_lr_init): Same.
19185 (df_word_lr_confluence_n): Same.
19186 (df_word_lr_free): Same.
19187 (df_word_lr_top_dump): Same.
19188 (df_md_alloc): Same.
19189 (df_md_simulate_one_insn): Same.
19190 (df_md_reset): Same.
19191 (df_md_init): Same.
19192 (df_md_free): Same.
19193 (df_md_top_dump): Same.
19194 * df-scan.c (df_insn_delete): Same.
19195 (df_insn_rescan): Same.
19196 (df_notes_rescan): Same.
19197 (df_sort_and_compress_mws): Same.
19198 (df_install_mws): Same.
19199 (df_refs_add_to_chains): Same.
19200 (df_ref_create_structure): Same.
19201 (df_ref_record): Same.
19202 (df_def_record_1): Same.
19203 (df_find_hard_reg_defs): Same.
19204 (df_uses_record): Same.
19205 (df_get_conditional_uses): Same.
19206 (df_get_call_refs): Same.
19207 (df_recompute_luids): Same.
19208 (df_get_entry_block_def_set): Same.
19209 (df_entry_block_defs_collect): Same.
19210 (df_get_exit_block_use_set): Same.
19211 (df_exit_block_uses_collect): Same.
19212 (df_mws_verify): Same.
19213 (df_bb_verify): Same.
19214 * df.h (df_scan_get_bb_info): Same.
19215 * doc/tm.texi: Same.
19216 * dse.c (record_store): Same.
19217 * dumpfile.h: Same.
19218 * emit-rtl.c (const_fixed_hasher::equal): Same.
19219 (set_mem_attributes_minus_bitpos): Same.
19220 (change_address): Same.
19221 (adjust_address_1): Same.
19222 (offset_address): Same.
19223 * emit-rtl.h: Same.
19224 * except.c (dw2_build_landing_pads): Same.
19225 (sjlj_emit_dispatch_table): Same.
19226 * explow.c (allocate_dynamic_stack_space): Same.
19227 (emit_stack_probe): Same.
19228 (probe_stack_range): Same.
19229 * expmed.c (store_bit_field_using_insv): Same.
19230 (store_bit_field_1): Same.
19231 (store_integral_bit_field): Same.
19232 (extract_bit_field_using_extv): Same.
19233 (extract_bit_field_1): Same.
19234 (emit_cstore): Same.
19235 * expr.c (emit_block_move_via_cpymem): Same.
19236 (expand_cmpstrn_or_cmpmem): Same.
19237 (set_storage_via_setmem): Same.
19238 (emit_single_push_insn_1): Same.
19239 (expand_assignment): Same.
19240 (store_constructor): Same.
19241 (expand_expr_real_2): Same.
19242 (expand_expr_real_1): Same.
19243 (try_casesi): Same.
19244 * flags.h: Same.
19245 * function.c (try_fit_stack_local): Same.
19246 (assign_stack_local_1): Same.
19247 (assign_stack_local): Same.
19248 (cut_slot_from_list): Same.
19249 (insert_slot_to_list): Same.
19250 (max_slot_level): Same.
19251 (move_slot_to_level): Same.
19252 (temp_address_hasher::equal): Same.
19253 (remove_unused_temp_slot_addresses): Same.
19254 (assign_temp): Same.
19255 (combine_temp_slots): Same.
19256 (update_temp_slot_address): Same.
19257 (preserve_temp_slots): Same.
19258 * function.h: Same.
19259 * fwprop.c: Same.
19260 * gcc-rich-location.h: Same.
19261 * gcov.c: Same.
19262 * genattrtab.c (check_attr_test): Same.
19263 (check_attr_value): Same.
19264 (convert_set_attr_alternative): Same.
19265 (convert_set_attr): Same.
19266 (check_defs): Same.
19267 (copy_boolean): Same.
19268 (get_attr_value): Same.
19269 (expand_delays): Same.
19270 (make_length_attrs): Same.
19271 (min_fn): Same.
19272 (make_alternative_compare): Same.
19273 (simplify_test_exp): Same.
19274 (tests_attr_p): Same.
19275 (get_attr_order): Same.
19276 (clear_struct_flag): Same.
19277 (gen_attr): Same.
19278 (compares_alternatives_p): Same.
19279 (gen_insn): Same.
19280 (gen_delay): Same.
19281 (find_attrs_to_cache): Same.
19282 (write_test_expr): Same.
19283 (walk_attr_value): Same.
19284 (write_attr_get): Same.
19285 (eliminate_known_true): Same.
19286 (write_insn_cases): Same.
19287 (write_attr_case): Same.
19288 (write_attr_valueq): Same.
19289 (write_attr_value): Same.
19290 (write_dummy_eligible_delay): Same.
19291 (next_comma_elt): Same.
19292 (find_attr): Same.
19293 (make_internal_attr): Same.
19294 (copy_rtx_unchanging): Same.
19295 (gen_insn_reserv): Same.
19296 (check_tune_attr): Same.
19297 (make_automaton_attrs): Same.
19298 (handle_arg): Same.
19299 * genextract.c (gen_insn): Same.
19300 (VEC_char_to_string): Same.
19301 * genmatch.c (print_operand): Same.
19302 (lower): Same.
19303 (parser::parse_operation): Same.
19304 (parser::parse_capture): Same.
19305 (parser::parse_c_expr): Same.
19306 (parser::parse_simplify): Same.
19307 (main): Same.
19308 * genoutput.c (output_operand_data): Same.
19309 (output_get_insn_name): Same.
19310 (compare_operands): Same.
19311 (place_operands): Same.
19312 (process_template): Same.
19313 (validate_insn_alternatives): Same.
19314 (validate_insn_operands): Same.
19315 (gen_expand): Same.
19316 (note_constraint): Same.
19317 * genpreds.c (write_one_predicate_function): Same.
19318 (add_constraint): Same.
19319 (process_define_register_constraint): Same.
19320 (write_lookup_constraint_1): Same.
19321 (write_lookup_constraint_array): Same.
19322 (write_insn_constraint_len): Same.
19323 (write_reg_class_for_constraint_1): Same.
19324 (write_constraint_satisfied_p_array): Same.
19325 * genrecog.c (optimize_subroutine_group): Same.
19326 * gensupport.c (process_define_predicate): Same.
19327 (queue_pattern): Same.
19328 (remove_from_queue): Same.
19329 (process_rtx): Same.
19330 (is_predicable): Same.
19331 (change_subst_attribute): Same.
19332 (subst_pattern_match): Same.
19333 (alter_constraints): Same.
19334 (alter_attrs_for_insn): Same.
19335 (shift_output_template): Same.
19336 (alter_output_for_subst_insn): Same.
19337 (process_one_cond_exec): Same.
19338 (subst_dup): Same.
19339 (process_define_cond_exec): Same.
19340 (mnemonic_htab_callback): Same.
19341 (gen_mnemonic_attr): Same.
19342 (read_md_rtx): Same.
19343 * ggc-page.c: Same.
19344 * gimple-loop-interchange.cc (dump_reduction): Same.
19345 (dump_induction): Same.
19346 (loop_cand::~loop_cand): Same.
19347 (free_data_refs_with_aux): Same.
19348 (tree_loop_interchange::interchange_loops): Same.
19349 (tree_loop_interchange::map_inductions_to_loop): Same.
19350 (tree_loop_interchange::move_code_to_inner_loop): Same.
19351 (compute_access_stride): Same.
19352 (compute_access_strides): Same.
19353 (proper_loop_form_for_interchange): Same.
19354 (tree_loop_interchange_compute_ddrs): Same.
19355 (prune_datarefs_not_in_loop): Same.
19356 (prepare_data_references): Same.
19357 (pass_linterchange::execute): Same.
19358 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19359 (unroll_jam_possible_p): Same.
19360 (fuse_loops): Same.
19361 (adjust_unroll_factor): Same.
19362 (tree_loop_unroll_and_jam): Same.
19363 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19364 (loop_versioning::expensive_stmt_p): Same.
19365 (loop_versioning::version_for_unity): Same.
19366 (loop_versioning::dump_inner_likelihood): Same.
19367 (loop_versioning::find_per_loop_multiplication): Same.
19368 (loop_versioning::analyze_term_using_scevs): Same.
19369 (loop_versioning::record_address_fragment): Same.
19370 (loop_versioning::analyze_expr): Same.
19371 (loop_versioning::analyze_blocks): Same.
19372 (loop_versioning::prune_conditions): Same.
19373 (loop_versioning::merge_loop_info): Same.
19374 (loop_versioning::add_loop_to_queue): Same.
19375 (loop_versioning::decide_whether_loop_is_versionable): Same.
19376 (loop_versioning::make_versioning_decisions): Same.
19377 (loop_versioning::implement_versioning_decisions): Same.
19378 * gimple-ssa-evrp-analyze.c
19379 (evrp_range_analyzer::record_ranges_from_phis): Same.
19380 * gimple-ssa-store-merging.c (split_store::split_store): Same.
19381 (count_multiple_uses): Same.
19382 (split_group): Same.
19383 (imm_store_chain_info::output_merged_store): Same.
19384 (pass_store_merging::process_store): Same.
19385 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
19386 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
19387 (is_max): Same.
19388 (alloca_call_type): Same.
19389 (pass_walloca::execute): Same.
19390 * gimple-streamer-in.c (input_phi): Same.
19391 (input_gimple_stmt): Same.
19392 * gimple-streamer.h: Same.
19393 * godump.c (go_force_record_alignment): Same.
19394 (go_format_type): Same.
19395 (go_output_type): Same.
19396 (go_output_fndecl): Same.
19397 (go_output_typedef): Same.
19398 (keyword_hash_init): Same.
19399 (find_dummy_types): Same.
19400 * graph.c (draw_cfg_nodes_no_loops): Same.
19401 (draw_cfg_nodes_for_loop): Same.
19402 * hard-reg-set.h (hard_reg_set_iter_next): Same.
19403 * hsa-brig.c: Same.
19404 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
19405 * hsa-dump.c (dump_hsa_cfun): Same.
19406 * hsa-gen.c (gen_function_def_parameters): Same.
19407 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
19408 * input.c (dump_line_table_statistics): Same.
19409 (test_lexer): Same.
19410 * input.h: Same.
19411 * internal-fn.c (get_multi_vector_move): Same.
19412 (expand_load_lanes_optab_fn): Same.
19413 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
19414 (expand_GOMP_SIMT_EXIT): Same.
19415 (expand_GOMP_SIMT_LAST_LANE): Same.
19416 (expand_GOMP_SIMT_ORDERED_PRED): Same.
19417 (expand_GOMP_SIMT_VOTE_ANY): Same.
19418 (expand_GOMP_SIMT_XCHG_BFLY): Same.
19419 (expand_GOMP_SIMT_XCHG_IDX): Same.
19420 (expand_addsub_overflow): Same.
19421 (expand_neg_overflow): Same.
19422 (expand_mul_overflow): Same.
19423 (expand_call_mem_ref): Same.
19424 (expand_mask_load_optab_fn): Same.
19425 (expand_scatter_store_optab_fn): Same.
19426 (expand_gather_load_optab_fn): Same.
19427 * ipa-cp.c (ipa_get_parm_lattices): Same.
19428 (print_all_lattices): Same.
19429 (ignore_edge_p): Same.
19430 (build_toporder_info): Same.
19431 (free_toporder_info): Same.
19432 (push_node_to_stack): Same.
19433 (ipcp_lattice<valtype>::set_contains_variable): Same.
19434 (set_agg_lats_to_bottom): Same.
19435 (ipcp_bits_lattice::meet_with): Same.
19436 (set_single_call_flag): Same.
19437 (initialize_node_lattices): Same.
19438 (ipa_get_jf_ancestor_result): Same.
19439 (ipcp_verify_propagated_values): Same.
19440 (propagate_scalar_across_jump_function): Same.
19441 (propagate_context_across_jump_function): Same.
19442 (propagate_bits_across_jump_function): Same.
19443 (ipa_vr_operation_and_type_effects): Same.
19444 (propagate_vr_across_jump_function): Same.
19445 (set_check_aggs_by_ref): Same.
19446 (set_chain_of_aglats_contains_variable): Same.
19447 (merge_aggregate_lattices): Same.
19448 (agg_pass_through_permissible_p): Same.
19449 (propagate_aggs_across_jump_function): Same.
19450 (call_passes_through_thunk_p): Same.
19451 (propagate_constants_across_call): Same.
19452 (devirtualization_time_bonus): Same.
19453 (good_cloning_opportunity_p): Same.
19454 (context_independent_aggregate_values): Same.
19455 (gather_context_independent_values): Same.
19456 (perform_estimation_of_a_value): Same.
19457 (estimate_local_effects): Same.
19458 (value_topo_info<valtype>::add_val): Same.
19459 (add_all_node_vals_to_toposort): Same.
19460 (value_topo_info<valtype>::propagate_effects): Same.
19461 (ipcp_propagate_stage): Same.
19462 (ipcp_discover_new_direct_edges): Same.
19463 (same_node_or_its_all_contexts_clone_p): Same.
19464 (cgraph_edge_brings_value_p): Same.
19465 (gather_edges_for_value): Same.
19466 (create_specialized_node): Same.
19467 (find_more_scalar_values_for_callers_subset): Same.
19468 (find_more_contexts_for_caller_subset): Same.
19469 (copy_plats_to_inter): Same.
19470 (intersect_aggregates_with_edge): Same.
19471 (find_aggregate_values_for_callers_subset): Same.
19472 (cgraph_edge_brings_all_agg_vals_for_node): Same.
19473 (decide_about_value): Same.
19474 (decide_whether_version_node): Same.
19475 (spread_undeadness): Same.
19476 (identify_dead_nodes): Same.
19477 (ipcp_store_vr_results): Same.
19478 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
19479 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
19480 (redirect_to_unreachable): Same.
19481 (edge_set_predicate): Same.
19482 (evaluate_conditions_for_known_args): Same.
19483 (evaluate_properties_for_edge): Same.
19484 (ipa_fn_summary_t::duplicate): Same.
19485 (ipa_call_summary_t::duplicate): Same.
19486 (dump_ipa_call_summary): Same.
19487 (ipa_dump_fn_summary): Same.
19488 (eliminated_by_inlining_prob): Same.
19489 (set_cond_stmt_execution_predicate): Same.
19490 (set_switch_stmt_execution_predicate): Same.
19491 (compute_bb_predicates): Same.
19492 (will_be_nonconstant_expr_predicate): Same.
19493 (phi_result_unknown_predicate): Same.
19494 (analyze_function_body): Same.
19495 (compute_fn_summary): Same.
19496 (estimate_edge_devirt_benefit): Same.
19497 (estimate_edge_size_and_time): Same.
19498 (estimate_calls_size_and_time): Same.
19499 (estimate_node_size_and_time): Same.
19500 (remap_edge_change_prob): Same.
19501 (remap_edge_summaries): Same.
19502 (ipa_merge_fn_summary_after_inlining): Same.
19503 (ipa_fn_summary_generate): Same.
19504 (inline_read_section): Same.
19505 (ipa_fn_summary_read): Same.
19506 (ipa_fn_summary_write): Same.
19507 * ipa-fnsummary.h: Same.
19508 * ipa-hsa.c (ipa_hsa_read_section): Same.
19509 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
19510 * ipa-icf.c (sem_function::param_used_p): Same.
19511 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
19512 * ipa-inline.c (edge_badness): Same.
19513 (inline_small_functions): Same.
19514 * ipa-polymorphic-call.c
19515 (ipa_polymorphic_call_context::stream_out): Same.
19516 * ipa-predicate.c (predicate::remap_after_duplication): Same.
19517 (predicate::remap_after_inlining): Same.
19518 (predicate::stream_out): Same.
19519 * ipa-predicate.h: Same.
19520 * ipa-profile.c (ipa_profile_read_summary): Same.
19521 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
19522 (count_formal_params): Same.
19523 (ipa_dump_param): Same.
19524 (ipa_alloc_node_params): Same.
19525 (ipa_print_node_jump_functions_for_edge): Same.
19526 (ipa_print_node_jump_functions): Same.
19527 (ipa_load_from_parm_agg): Same.
19528 (get_ancestor_addr_info): Same.
19529 (ipa_compute_jump_functions_for_edge): Same.
19530 (ipa_analyze_virtual_call_uses): Same.
19531 (ipa_analyze_stmt_uses): Same.
19532 (ipa_analyze_params_uses_in_bb): Same.
19533 (update_jump_functions_after_inlining): Same.
19534 (try_decrement_rdesc_refcount): Same.
19535 (ipa_impossible_devirt_target): Same.
19536 (update_indirect_edges_after_inlining): Same.
19537 (combine_controlled_uses_counters): Same.
19538 (ipa_edge_args_sum_t::duplicate): Same.
19539 (ipa_write_jump_function): Same.
19540 (ipa_write_indirect_edge_info): Same.
19541 (ipa_write_node_info): Same.
19542 (ipa_read_edge_info): Same.
19543 (ipa_prop_read_section): Same.
19544 (read_replacements_section): Same.
19545 * ipa-prop.h (ipa_get_param_count): Same.
19546 (ipa_get_param): Same.
19547 (ipa_get_type): Same.
19548 (ipa_get_param_move_cost): Same.
19549 (ipa_set_param_used): Same.
19550 (ipa_get_controlled_uses): Same.
19551 (ipa_set_controlled_uses): Same.
19552 (ipa_get_cs_argument_count): Same.
19553 * ipa-pure-const.c (analyze_function): Same.
19554 (pure_const_read_summary): Same.
19555 * ipa-ref.h: Same.
19556 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
19557 * ipa-split.c (test_nonssa_use): Same.
19558 (dump_split_point): Same.
19559 (dominated_by_forbidden): Same.
19560 (split_part_set_ssa_name_p): Same.
19561 (find_split_points): Same.
19562 * ira-build.c (finish_loop_tree_nodes): Same.
19563 (low_pressure_loop_node_p): Same.
19564 * ira-color.c (ira_reuse_stack_slot): Same.
19565 * ira-int.h: Same.
19566 * ira.c (setup_reg_equiv): Same.
19567 (print_insn_chain): Same.
19568 (ira): Same.
19569 * loop-doloop.c (doloop_condition_get): Same.
19570 (add_test): Same.
19571 (record_reg_sets): Same.
19572 (doloop_optimize): Same.
19573 * loop-init.c (loop_optimizer_init): Same.
19574 (fix_loop_structure): Same.
19575 * loop-invariant.c (merge_identical_invariants): Same.
19576 (compute_always_reached): Same.
19577 (find_exits): Same.
19578 (may_assign_reg_p): Same.
19579 (find_invariants_bb): Same.
19580 (find_invariants_body): Same.
19581 (replace_uses): Same.
19582 (can_move_invariant_reg): Same.
19583 (free_inv_motion_data): Same.
19584 (move_single_loop_invariants): Same.
19585 (change_pressure): Same.
19586 (mark_ref_regs): Same.
19587 (calculate_loop_reg_pressure): Same.
19588 * loop-iv.c (biv_entry_hasher::equal): Same.
19589 (iv_extend_to_rtx_code): Same.
19590 (check_iv_ref_table_size): Same.
19591 (clear_iv_info): Same.
19592 (latch_dominating_def): Same.
19593 (iv_get_reaching_def): Same.
19594 (iv_constant): Same.
19595 (iv_subreg): Same.
19596 (iv_extend): Same.
19597 (iv_neg): Same.
19598 (iv_add): Same.
19599 (iv_mult): Same.
19600 (get_biv_step): Same.
19601 (record_iv): Same.
19602 (analyzed_for_bivness_p): Same.
19603 (record_biv): Same.
19604 (iv_analyze_biv): Same.
19605 (iv_analyze_expr): Same.
19606 (iv_analyze_def): Same.
19607 (iv_analyze_op): Same.
19608 (iv_analyze): Same.
19609 (iv_analyze_result): Same.
19610 (biv_p): Same.
19611 (eliminate_implied_conditions): Same.
19612 (simplify_using_initial_values): Same.
19613 (shorten_into_mode): Same.
19614 (canonicalize_iv_subregs): Same.
19615 (determine_max_iter): Same.
19616 (check_simple_exit): Same.
19617 (find_simple_exit): Same.
19618 (get_simple_loop_desc): Same.
19619 * loop-unroll.c (report_unroll): Same.
19620 (decide_unrolling): Same.
19621 (unroll_loops): Same.
19622 (loop_exit_at_end_p): Same.
19623 (decide_unroll_constant_iterations): Same.
19624 (unroll_loop_constant_iterations): Same.
19625 (compare_and_jump_seq): Same.
19626 (unroll_loop_runtime_iterations): Same.
19627 (decide_unroll_stupid): Same.
19628 (unroll_loop_stupid): Same.
19629 (referenced_in_one_insn_in_loop_p): Same.
19630 (reset_debug_uses_in_loop): Same.
19631 (analyze_iv_to_split_insn): Same.
19632 * lra-eliminations.c (lra_debug_elim_table): Same.
19633 (setup_can_eliminate): Same.
19634 (form_sum): Same.
19635 (lra_get_elimination_hard_regno): Same.
19636 (lra_eliminate_regs_1): Same.
19637 (eliminate_regs_in_insn): Same.
19638 (update_reg_eliminate): Same.
19639 (init_elimination): Same.
19640 (lra_eliminate): Same.
19641 * lra-int.h: Same.
19642 * lra-lives.c (initiate_live_solver): Same.
19643 * lra-remat.c (create_remat_bb_data): Same.
19644 * lra-spills.c (lra_spill): Same.
19645 * lra.c (lra_set_insn_recog_data): Same.
19646 (lra_set_used_insn_alternative_by_uid): Same.
19647 (init_reg_info): Same.
19648 (expand_reg_info): Same.
19649 * lto-cgraph.c (output_symtab): Same.
19650 (read_identifier): Same.
19651 (get_alias_symbol): Same.
19652 (input_node): Same.
19653 (input_varpool_node): Same.
19654 (input_ref): Same.
19655 (input_edge): Same.
19656 (input_cgraph_1): Same.
19657 (input_refs): Same.
19658 (input_symtab): Same.
19659 (input_offload_tables): Same.
19660 (output_cgraph_opt_summary): Same.
19661 (input_edge_opt_summary): Same.
19662 (input_cgraph_opt_section): Same.
19663 * lto-section-in.c (lto_free_raw_section_data): Same.
19664 (lto_create_simple_input_block): Same.
19665 (lto_free_function_in_decl_state_for_node): Same.
19666 * lto-streamer-in.c (lto_tag_check_set): Same.
19667 (lto_location_cache::revert_location_cache): Same.
19668 (lto_location_cache::input_location): Same.
19669 (lto_input_location): Same.
19670 (stream_input_location_now): Same.
19671 (lto_input_tree_ref): Same.
19672 (lto_input_eh_catch_list): Same.
19673 (input_eh_region): Same.
19674 (lto_init_eh): Same.
19675 (make_new_block): Same.
19676 (input_cfg): Same.
19677 (fixup_call_stmt_edges): Same.
19678 (input_struct_function_base): Same.
19679 (input_function): Same.
19680 (lto_read_body_or_constructor): Same.
19681 (lto_read_tree_1): Same.
19682 (lto_read_tree): Same.
19683 (lto_input_scc): Same.
19684 (lto_input_tree_1): Same.
19685 (lto_input_toplevel_asms): Same.
19686 (lto_input_mode_table): Same.
19687 (lto_reader_init): Same.
19688 (lto_data_in_create): Same.
19689 * lto-streamer-out.c (output_cfg): Same.
19690 * lto-streamer.h: Same.
19691 * modulo-sched.c (duplicate_insns_of_cycles): Same.
19692 (generate_prolog_epilog): Same.
19693 (mark_loop_unsched): Same.
19694 (dump_insn_location): Same.
19695 (loop_canon_p): Same.
19696 (sms_schedule): Same.
19697 * omp-expand.c (expand_omp_for_ordered_loops): Same.
19698 (expand_omp_for_generic): Same.
19699 (expand_omp_for_static_nochunk): Same.
19700 (expand_omp_for_static_chunk): Same.
19701 (expand_omp_simd): Same.
19702 (expand_omp_taskloop_for_inner): Same.
19703 (expand_oacc_for): Same.
19704 (expand_omp_atomic_pipeline): Same.
19705 (mark_loops_in_oacc_kernels_region): Same.
19706 * omp-offload.c (oacc_xform_loop): Same.
19707 * omp-simd-clone.c (simd_clone_adjust): Same.
19708 * optabs-query.c (get_traditional_extraction_insn): Same.
19709 * optabs.c (expand_vector_broadcast): Same.
19710 (expand_binop_directly): Same.
19711 (expand_twoval_unop): Same.
19712 (expand_twoval_binop): Same.
19713 (expand_unop_direct): Same.
19714 (emit_indirect_jump): Same.
19715 (emit_conditional_move): Same.
19716 (emit_conditional_neg_or_complement): Same.
19717 (emit_conditional_add): Same.
19718 (vector_compare_rtx): Same.
19719 (expand_vec_perm_1): Same.
19720 (expand_vec_perm_const): Same.
19721 (expand_vec_cond_expr): Same.
19722 (expand_vec_series_expr): Same.
19723 (maybe_emit_atomic_exchange): Same.
19724 (maybe_emit_sync_lock_test_and_set): Same.
19725 (expand_atomic_compare_and_swap): Same.
19726 (expand_atomic_load): Same.
19727 (expand_atomic_store): Same.
19728 (maybe_emit_op): Same.
19729 (valid_multiword_target_p): Same.
19730 (create_integer_operand): Same.
19731 (maybe_legitimize_operand_same_code): Same.
19732 (maybe_legitimize_operand): Same.
19733 (create_convert_operand_from_type): Same.
19734 (can_reuse_operands_p): Same.
19735 (maybe_legitimize_operands): Same.
19736 (maybe_gen_insn): Same.
19737 (maybe_expand_insn): Same.
19738 (maybe_expand_jump_insn): Same.
19739 (expand_insn): Same.
19740 * optabs.h (create_expand_operand): Same.
19741 (create_fixed_operand): Same.
19742 (create_output_operand): Same.
19743 (create_input_operand): Same.
19744 (create_convert_operand_to): Same.
19745 (create_convert_operand_from): Same.
19746 * optinfo.h: Same.
19747 * poly-int.h: Same.
19748 * predict.c (optimize_insn_for_speed_p): Same.
19749 (optimize_loop_for_size_p): Same.
19750 (optimize_loop_for_speed_p): Same.
19751 (optimize_loop_nest_for_speed_p): Same.
19752 (get_base_value): Same.
19753 (predicted_by_loop_heuristics_p): Same.
19754 (predict_extra_loop_exits): Same.
19755 (predict_loops): Same.
19756 (predict_paths_for_bb): Same.
19757 (predict_paths_leading_to): Same.
19758 (propagate_freq): Same.
19759 (pass_profile::execute): Same.
19760 * predict.h: Same.
19761 * profile-count.c (profile_count::differs_from_p): Same.
19762 (profile_probability::differs_lot_from_p): Same.
19763 * profile-count.h: Same.
19764 * profile.c (branch_prob): Same.
19765 * regrename.c (free_chain_data): Same.
19766 (mark_conflict): Same.
19767 (create_new_chain): Same.
19768 (merge_overlapping_regs): Same.
19769 (init_rename_info): Same.
19770 (merge_chains): Same.
19771 (regrename_analyze): Same.
19772 (regrename_do_replace): Same.
19773 (scan_rtx_reg): Same.
19774 (record_out_operands): Same.
19775 (build_def_use): Same.
19776 * regrename.h: Same.
19777 * reload.h: Same.
19778 * reload1.c (init_reload): Same.
19779 (maybe_fix_stack_asms): Same.
19780 (copy_reloads): Same.
19781 (count_pseudo): Same.
19782 (count_spilled_pseudo): Same.
19783 (find_reg): Same.
19784 (find_reload_regs): Same.
19785 (select_reload_regs): Same.
19786 (spill_hard_reg): Same.
19787 (fixup_eh_region_note): Same.
19788 (set_reload_reg): Same.
19789 (allocate_reload_reg): Same.
19790 (compute_reload_subreg_offset): Same.
19791 (reload_adjust_reg_for_icode): Same.
19792 (emit_input_reload_insns): Same.
19793 (emit_output_reload_insns): Same.
19794 (do_input_reload): Same.
19795 (inherit_piecemeal_p): Same.
19796 * rtl.h: Same.
19797 * sanopt.c (maybe_get_dominating_check): Same.
19798 (maybe_optimize_ubsan_ptr_ifn): Same.
19799 (can_remove_asan_check): Same.
19800 (maybe_optimize_asan_check_ifn): Same.
19801 (sanopt_optimize_walker): Same.
19802 * sched-deps.c (add_dependence_list): Same.
19803 (chain_to_prev_insn): Same.
19804 (add_insn_mem_dependence): Same.
19805 (create_insn_reg_set): Same.
19806 (maybe_extend_reg_info_p): Same.
19807 (sched_analyze_reg): Same.
19808 (sched_analyze_1): Same.
19809 (get_implicit_reg_pending_clobbers): Same.
19810 (chain_to_prev_insn_p): Same.
19811 (deps_analyze_insn): Same.
19812 (deps_start_bb): Same.
19813 (sched_free_deps): Same.
19814 (init_deps): Same.
19815 (init_deps_reg_last): Same.
19816 (free_deps): Same.
19817 * sched-ebb.c: Same.
19818 * sched-int.h: Same.
19819 * sched-rgn.c (add_branch_dependences): Same.
19820 (concat_insn_mem_list): Same.
19821 (deps_join): Same.
19822 (sched_rgn_compute_dependencies): Same.
19823 * sel-sched-ir.c (reset_target_context): Same.
19824 (copy_deps_context): Same.
19825 (init_id_from_df): Same.
19826 (has_dependence_p): Same.
19827 (change_loops_latches): Same.
19828 (bb_top_order_comparator): Same.
19829 (make_region_from_loop_preheader): Same.
19830 (sel_init_pipelining): Same.
19831 (get_loop_nest_for_rgn): Same.
19832 (make_regions_from_the_rest): Same.
19833 (sel_is_loop_preheader_p): Same.
19834 * sel-sched-ir.h (inner_loop_header_p): Same.
19835 (get_all_loop_exits): Same.
19836 * selftest.h: Same.
19837 * sese.c (sese_build_liveouts): Same.
19838 (sese_insert_phis_for_liveouts): Same.
19839 * sese.h (defined_in_sese_p): Same.
19840 * sreal.c (sreal::stream_out): Same.
19841 * sreal.h: Same.
19842 * streamer-hooks.h: Same.
19843 * target-globals.c (save_target_globals): Same.
19844 * target-globals.h: Same.
19845 * target.def: Same.
19846 * target.h: Same.
19847 * targhooks.c (default_has_ifunc_p): Same.
19848 (default_empty_mask_is_expensive): Same.
19849 (default_init_cost): Same.
19850 * targhooks.h: Same.
19851 * toplev.c: Same.
19852 * tree-affine.c (aff_combination_mult): Same.
19853 (aff_combination_expand): Same.
19854 (aff_combination_constant_multiple_p): Same.
19855 * tree-affine.h: Same.
19856 * tree-cfg.c (build_gimple_cfg): Same.
19857 (replace_loop_annotate_in_block): Same.
19858 (replace_uses_by): Same.
19859 (remove_bb): Same.
19860 (dump_cfg_stats): Same.
19861 (gimple_duplicate_sese_region): Same.
19862 (gimple_duplicate_sese_tail): Same.
19863 (move_block_to_fn): Same.
19864 (replace_block_vars_by_duplicates): Same.
19865 (move_sese_region_to_fn): Same.
19866 (print_loops_bb): Same.
19867 (print_loop): Same.
19868 (print_loops): Same.
19869 (debug): Same.
19870 (debug_loops): Same.
19871 * tree-cfg.h: Same.
19872 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
19873 (chrec_fold_multiply_poly_poly): Same.
19874 (chrec_evaluate): Same.
19875 (chrec_component_in_loop_num): Same.
19876 (reset_evolution_in_loop): Same.
19877 (is_multivariate_chrec): Same.
19878 (chrec_contains_symbols): Same.
19879 (nb_vars_in_chrec): Same.
19880 (chrec_convert_1): Same.
19881 (chrec_convert_aggressive): Same.
19882 * tree-chrec.h: Same.
19883 * tree-core.h: Same.
19884 * tree-data-ref.c (dump_data_dependence_relation): Same.
19885 (canonicalize_base_object_address): Same.
19886 (data_ref_compare_tree): Same.
19887 (prune_runtime_alias_test_list): Same.
19888 (get_segment_min_max): Same.
19889 (create_intersect_range_checks): Same.
19890 (conflict_fn_no_dependence): Same.
19891 (object_address_invariant_in_loop_p): Same.
19892 (analyze_ziv_subscript): Same.
19893 (analyze_siv_subscript_cst_affine): Same.
19894 (analyze_miv_subscript): Same.
19895 (analyze_overlapping_iterations): Same.
19896 (build_classic_dist_vector_1): Same.
19897 (add_other_self_distances): Same.
19898 (same_access_functions): Same.
19899 (build_classic_dir_vector): Same.
19900 (subscript_dependence_tester_1): Same.
19901 (subscript_dependence_tester): Same.
19902 (access_functions_are_affine_or_constant_p): Same.
19903 (get_references_in_stmt): Same.
19904 (loop_nest_has_data_refs): Same.
19905 (graphite_find_data_references_in_stmt): Same.
19906 (find_data_references_in_bb): Same.
19907 (get_base_for_alignment): Same.
19908 (find_loop_nest_1): Same.
19909 (find_loop_nest): Same.
19910 * tree-data-ref.h (dr_alignment): Same.
19911 (ddr_dependence_level): Same.
19912 * tree-if-conv.c (fold_build_cond_expr): Same.
19913 (add_to_predicate_list): Same.
19914 (add_to_dst_predicate_list): Same.
19915 (phi_convertible_by_degenerating_args): Same.
19916 (idx_within_array_bound): Same.
19917 (all_preds_critical_p): Same.
19918 (pred_blocks_visited_p): Same.
19919 (predicate_bbs): Same.
19920 (build_region): Same.
19921 (if_convertible_loop_p_1): Same.
19922 (is_cond_scalar_reduction): Same.
19923 (predicate_scalar_phi): Same.
19924 (remove_conditions_and_labels): Same.
19925 (combine_blocks): Same.
19926 (version_loop_for_if_conversion): Same.
19927 (versionable_outer_loop_p): Same.
19928 (ifcvt_local_dce): Same.
19929 (tree_if_conversion): Same.
19930 (pass_if_conversion::gate): Same.
19931 * tree-if-conv.h: Same.
19932 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
19933 * tree-loop-distribution.c (bb_top_order_cmp): Same.
19934 (free_rdg): Same.
19935 (stmt_has_scalar_dependences_outside_loop): Same.
19936 (copy_loop_before): Same.
19937 (create_bb_after_loop): Same.
19938 (const_with_all_bytes_same): Same.
19939 (generate_memset_builtin): Same.
19940 (generate_memcpy_builtin): Same.
19941 (destroy_loop): Same.
19942 (build_rdg_partition_for_vertex): Same.
19943 (compute_access_range): Same.
19944 (data_ref_segment_size): Same.
19945 (latch_dominated_by_data_ref): Same.
19946 (compute_alias_check_pairs): Same.
19947 (fuse_memset_builtins): Same.
19948 (finalize_partitions): Same.
19949 (find_seed_stmts_for_distribution): Same.
19950 (prepare_perfect_loop_nest): Same.
19951 * tree-parloops.c (lambda_transform_legal_p): Same.
19952 (loop_parallel_p): Same.
19953 (reduc_stmt_res): Same.
19954 (add_field_for_name): Same.
19955 (create_call_for_reduction_1): Same.
19956 (replace_uses_in_bb_by): Same.
19957 (transform_to_exit_first_loop_alt): Same.
19958 (try_transform_to_exit_first_loop_alt): Same.
19959 (transform_to_exit_first_loop): Same.
19960 (num_phis): Same.
19961 (gen_parallel_loop): Same.
19962 (gather_scalar_reductions): Same.
19963 (get_omp_data_i_param): Same.
19964 (try_create_reduction_list): Same.
19965 (oacc_entry_exit_single_gang): Same.
19966 (parallelize_loops): Same.
19967 * tree-pass.h: Same.
19968 * tree-predcom.c (determine_offset): Same.
19969 (last_always_executed_block): Same.
19970 (split_data_refs_to_components): Same.
19971 (suitable_component_p): Same.
19972 (valid_initializer_p): Same.
19973 (find_looparound_phi): Same.
19974 (insert_looparound_copy): Same.
19975 (add_looparound_copies): Same.
19976 (determine_roots_comp): Same.
19977 (predcom_tmp_var): Same.
19978 (initialize_root_vars): Same.
19979 (initialize_root_vars_store_elim_1): Same.
19980 (initialize_root_vars_store_elim_2): Same.
19981 (finalize_eliminated_stores): Same.
19982 (initialize_root_vars_lm): Same.
19983 (remove_stmt): Same.
19984 (determine_unroll_factor): Same.
19985 (execute_pred_commoning_cbck): Same.
19986 (base_names_in_chain_on): Same.
19987 (combine_chains): Same.
19988 (pcom_stmt_dominates_stmt_p): Same.
19989 (try_combine_chains): Same.
19990 (prepare_initializers_chain_store_elim): Same.
19991 (prepare_initializers_chain): Same.
19992 (prepare_initializers): Same.
19993 (prepare_finalizers_chain): Same.
19994 (prepare_finalizers): Same.
19995 (insert_init_seqs): Same.
19996 * tree-scalar-evolution.c (loop_phi_node_p): Same.
19997 (compute_overall_effect_of_inner_loop): Same.
19998 (add_to_evolution_1): Same.
19999 (add_to_evolution): Same.
20000 (follow_ssa_edge_binary): Same.
20001 (follow_ssa_edge_expr): Same.
20002 (backedge_phi_arg_p): Same.
20003 (follow_ssa_edge_in_condition_phi_branch): Same.
20004 (follow_ssa_edge_in_condition_phi): Same.
20005 (follow_ssa_edge_inner_loop_phi): Same.
20006 (follow_ssa_edge): Same.
20007 (analyze_evolution_in_loop): Same.
20008 (analyze_initial_condition): Same.
20009 (interpret_loop_phi): Same.
20010 (interpret_condition_phi): Same.
20011 (interpret_rhs_expr): Same.
20012 (interpret_expr): Same.
20013 (interpret_gimple_assign): Same.
20014 (analyze_scalar_evolution_1): Same.
20015 (analyze_scalar_evolution): Same.
20016 (analyze_scalar_evolution_for_address_of): Same.
20017 (get_instantiated_value_entry): Same.
20018 (loop_closed_phi_def): Same.
20019 (instantiate_scev_name): Same.
20020 (instantiate_scev_poly): Same.
20021 (instantiate_scev_binary): Same.
20022 (instantiate_scev_convert): Same.
20023 (instantiate_scev_not): Same.
20024 (instantiate_scev_r): Same.
20025 (instantiate_scev): Same.
20026 (resolve_mixers): Same.
20027 (initialize_scalar_evolutions_analyzer): Same.
20028 (scev_reset_htab): Same.
20029 (scev_reset): Same.
20030 (derive_simple_iv_with_niters): Same.
20031 (simple_iv_with_niters): Same.
20032 (expression_expensive_p): Same.
20033 (final_value_replacement_loop): Same.
20034 * tree-scalar-evolution.h (block_before_loop): Same.
20035 * tree-ssa-address.h: Same.
20036 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20037 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20038 (record_edge_info): Same.
20039 * tree-ssa-live.c (var_map_base_fini): Same.
20040 (remove_unused_locals): Same.
20041 * tree-ssa-live.h: Same.
20042 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20043 (pass_ch_vect::execute): Same.
20044 (pass_ch::process_loop_p): Same.
20045 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20046 (movement_possibility): Same.
20047 (outermost_invariant_loop): Same.
20048 (stmt_cost): Same.
20049 (determine_max_movement): Same.
20050 (invariantness_dom_walker::before_dom_children): Same.
20051 (move_computations): Same.
20052 (may_move_till): Same.
20053 (force_move_till_op): Same.
20054 (force_move_till): Same.
20055 (memref_free): Same.
20056 (record_mem_ref_loc): Same.
20057 (set_ref_stored_in_loop): Same.
20058 (mark_ref_stored): Same.
20059 (sort_bbs_in_loop_postorder_cmp): Same.
20060 (sort_locs_in_loop_postorder_cmp): Same.
20061 (analyze_memory_references): Same.
20062 (mem_refs_may_alias_p): Same.
20063 (find_ref_loc_in_loop_cmp): Same.
20064 (rewrite_mem_ref_loc::operator): Same.
20065 (first_mem_ref_loc_1::operator): Same.
20066 (sm_set_flag_if_changed::operator): Same.
20067 (execute_sm_if_changed_flag_set): Same.
20068 (execute_sm): Same.
20069 (hoist_memory_references): Same.
20070 (ref_always_accessed::operator): Same.
20071 (refs_independent_p): Same.
20072 (record_dep_loop): Same.
20073 (ref_indep_loop_p_1): Same.
20074 (ref_indep_loop_p): Same.
20075 (can_sm_ref_p): Same.
20076 (find_refs_for_sm): Same.
20077 (loop_suitable_for_sm): Same.
20078 (store_motion_loop): Same.
20079 (store_motion): Same.
20080 (fill_always_executed_in): Same.
20081 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20082 (estimated_unrolled_size): Same.
20083 (loop_edge_to_cancel): Same.
20084 (remove_exits_and_undefined_stmts): Same.
20085 (remove_redundant_iv_tests): Same.
20086 (unloop_loops): Same.
20087 (estimated_peeled_sequence_size): Same.
20088 (try_peel_loop): Same.
20089 (canonicalize_loop_induction_variables): Same.
20090 (canonicalize_induction_variables): Same.
20091 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20092 (name_info): Same.
20093 (stmt_after_inc_pos): Same.
20094 (contains_abnormal_ssa_name_p): Same.
20095 (niter_for_exit): Same.
20096 (find_bivs): Same.
20097 (mark_bivs): Same.
20098 (find_givs_in_bb): Same.
20099 (find_induction_variables): Same.
20100 (find_interesting_uses_cond): Same.
20101 (outermost_invariant_loop_for_expr): Same.
20102 (idx_find_step): Same.
20103 (add_candidate_1): Same.
20104 (add_iv_candidate_derived_from_uses): Same.
20105 (alloc_use_cost_map): Same.
20106 (prepare_decl_rtl): Same.
20107 (generic_predict_doloop_p): Same.
20108 (computation_cost): Same.
20109 (determine_common_wider_type): Same.
20110 (get_computation_aff_1): Same.
20111 (get_use_type): Same.
20112 (determine_group_iv_cost_address): Same.
20113 (iv_period): Same.
20114 (difference_cannot_overflow_p): Same.
20115 (may_eliminate_iv): Same.
20116 (determine_set_costs): Same.
20117 (cheaper_cost_pair): Same.
20118 (compare_cost_pair): Same.
20119 (iv_ca_cand_for_group): Same.
20120 (iv_ca_recount_cost): Same.
20121 (iv_ca_set_remove_invs): Same.
20122 (iv_ca_set_no_cp): Same.
20123 (iv_ca_set_add_invs): Same.
20124 (iv_ca_set_cp): Same.
20125 (iv_ca_add_group): Same.
20126 (iv_ca_cost): Same.
20127 (iv_ca_compare_deps): Same.
20128 (iv_ca_delta_reverse): Same.
20129 (iv_ca_delta_commit): Same.
20130 (iv_ca_cand_used_p): Same.
20131 (iv_ca_delta_free): Same.
20132 (iv_ca_new): Same.
20133 (iv_ca_free): Same.
20134 (iv_ca_dump): Same.
20135 (iv_ca_extend): Same.
20136 (iv_ca_narrow): Same.
20137 (iv_ca_prune): Same.
20138 (cheaper_cost_with_cand): Same.
20139 (iv_ca_replace): Same.
20140 (try_add_cand_for): Same.
20141 (get_initial_solution): Same.
20142 (try_improve_iv_set): Same.
20143 (find_optimal_iv_set_1): Same.
20144 (create_new_iv): Same.
20145 (rewrite_use_compare): Same.
20146 (remove_unused_ivs): Same.
20147 (determine_scaling_factor): Same.
20148 * tree-ssa-loop-ivopts.h: Same.
20149 * tree-ssa-loop-manip.c (create_iv): Same.
20150 (compute_live_loop_exits): Same.
20151 (add_exit_phi): Same.
20152 (add_exit_phis): Same.
20153 (find_uses_to_rename_use): Same.
20154 (find_uses_to_rename_def): Same.
20155 (find_uses_to_rename_in_loop): Same.
20156 (rewrite_into_loop_closed_ssa): Same.
20157 (check_loop_closed_ssa_bb): Same.
20158 (split_loop_exit_edge): Same.
20159 (ip_end_pos): Same.
20160 (ip_normal_pos): Same.
20161 (copy_phi_node_args): Same.
20162 (gimple_duplicate_loop_to_header_edge): Same.
20163 (can_unroll_loop_p): Same.
20164 (determine_exit_conditions): Same.
20165 (scale_dominated_blocks_in_loop): Same.
20166 (niter_for_unrolled_loop): Same.
20167 (tree_transform_and_unroll_loop): Same.
20168 (rewrite_all_phi_nodes_with_iv): Same.
20169 * tree-ssa-loop-manip.h: Same.
20170 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20171 (number_of_iterations_ne): Same.
20172 (assert_no_overflow_lt): Same.
20173 (assert_loop_rolls_lt): Same.
20174 (number_of_iterations_lt): Same.
20175 (adjust_cond_for_loop_until_wrap): Same.
20176 (tree_simplify_using_condition): Same.
20177 (simplify_using_initial_conditions): Same.
20178 (simplify_using_outer_evolutions): Same.
20179 (loop_only_exit_p): Same.
20180 (ssa_defined_by_minus_one_stmt_p): Same.
20181 (number_of_iterations_popcount): Same.
20182 (number_of_iterations_exit): Same.
20183 (find_loop_niter): Same.
20184 (finite_loop_p): Same.
20185 (chain_of_csts_start): Same.
20186 (get_val_for): Same.
20187 (loop_niter_by_eval): Same.
20188 (derive_constant_upper_bound_ops): Same.
20189 (do_warn_aggressive_loop_optimizations): Same.
20190 (record_estimate): Same.
20191 (get_cst_init_from_scev): Same.
20192 (record_nonwrapping_iv): Same.
20193 (idx_infer_loop_bounds): Same.
20194 (infer_loop_bounds_from_ref): Same.
20195 (infer_loop_bounds_from_array): Same.
20196 (infer_loop_bounds_from_pointer_arith): Same.
20197 (infer_loop_bounds_from_signedness): Same.
20198 (bound_index): Same.
20199 (discover_iteration_bound_by_body_walk): Same.
20200 (maybe_lower_iteration_bound): Same.
20201 (estimate_numbers_of_iterations): Same.
20202 (estimated_loop_iterations): Same.
20203 (estimated_loop_iterations_int): Same.
20204 (max_loop_iterations): Same.
20205 (max_loop_iterations_int): Same.
20206 (likely_max_loop_iterations): Same.
20207 (likely_max_loop_iterations_int): Same.
20208 (estimated_stmt_executions_int): Same.
20209 (max_stmt_executions): Same.
20210 (likely_max_stmt_executions): Same.
20211 (estimated_stmt_executions): Same.
20212 (stmt_dominates_stmt_p): Same.
20213 (nowrap_type_p): Same.
20214 (loop_exits_before_overflow): Same.
20215 (scev_var_range_cant_overflow): Same.
20216 (scev_probably_wraps_p): Same.
20217 (free_numbers_of_iterations_estimates): Same.
20218 * tree-ssa-loop-niter.h: Same.
20219 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20220 (idx_analyze_ref): Same.
20221 (analyze_ref): Same.
20222 (gather_memory_references_ref): Same.
20223 (mark_nontemporal_store): Same.
20224 (emit_mfence_after_loop): Same.
20225 (may_use_storent_in_loop_p): Same.
20226 (mark_nontemporal_stores): Same.
20227 (should_unroll_loop_p): Same.
20228 (volume_of_dist_vector): Same.
20229 (add_subscript_strides): Same.
20230 (self_reuse_distance): Same.
20231 (insn_to_prefetch_ratio_too_small_p): Same.
20232 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20233 (patch_loop_exit): Same.
20234 (find_or_create_guard_phi): Same.
20235 (easy_exit_values): Same.
20236 (connect_loop_phis): Same.
20237 (connect_loops): Same.
20238 (compute_new_first_bound): Same.
20239 (split_loop): Same.
20240 (tree_ssa_split_loops): Same.
20241 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20242 (is_maybe_undefined): Same.
20243 (tree_may_unswitch_on): Same.
20244 (simplify_using_entry_checks): Same.
20245 (tree_unswitch_single_loop): Same.
20246 (tree_unswitch_loop): Same.
20247 (tree_unswitch_outer_loop): Same.
20248 (empty_bb_without_guard_p): Same.
20249 (used_outside_loop_p): Same.
20250 (get_vop_from_header): Same.
20251 (hoist_guard): Same.
20252 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20253 (get_lsm_tmp_name): Same.
20254 * tree-ssa-loop.h: Same.
20255 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20256 (build_and_add_sum): Same.
20257 (no_side_effect_bb): Same.
20258 (get_ops): Same.
20259 (linearize_expr): Same.
20260 (should_break_up_subtract): Same.
20261 (linearize_expr_tree): Same.
20262 * tree-ssa-scopedtables.c: Same.
20263 * tree-ssa-scopedtables.h: Same.
20264 * tree-ssa-structalias.c (condense_visit): Same.
20265 (label_visit): Same.
20266 (dump_pred_graph): Same.
20267 (perform_var_substitution): Same.
20268 (move_complex_constraints): Same.
20269 (remove_preds_and_fake_succs): Same.
20270 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20271 (determine_bb_domination_status): Same.
20272 (duplicate_thread_path): Same.
20273 (thread_through_all_blocks): Same.
20274 * tree-ssa-threadupdate.h: Same.
20275 * tree-streamer-in.c (streamer_read_string_cst): Same.
20276 (input_identifier): Same.
20277 (unpack_ts_type_common_value_fields): Same.
20278 (unpack_ts_block_value_fields): Same.
20279 (unpack_ts_translation_unit_decl_value_fields): Same.
20280 (unpack_ts_omp_clause_value_fields): Same.
20281 (streamer_read_tree_bitfields): Same.
20282 (streamer_alloc_tree): Same.
20283 (lto_input_ts_common_tree_pointers): Same.
20284 (lto_input_ts_vector_tree_pointers): Same.
20285 (lto_input_ts_poly_tree_pointers): Same.
20286 (lto_input_ts_complex_tree_pointers): Same.
20287 (lto_input_ts_decl_minimal_tree_pointers): Same.
20288 (lto_input_ts_decl_common_tree_pointers): Same.
20289 (lto_input_ts_decl_non_common_tree_pointers): Same.
20290 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20291 (lto_input_ts_field_decl_tree_pointers): Same.
20292 (lto_input_ts_function_decl_tree_pointers): Same.
20293 (lto_input_ts_type_common_tree_pointers): Same.
20294 (lto_input_ts_type_non_common_tree_pointers): Same.
20295 (lto_input_ts_list_tree_pointers): Same.
20296 (lto_input_ts_vec_tree_pointers): Same.
20297 (lto_input_ts_exp_tree_pointers): Same.
20298 (lto_input_ts_block_tree_pointers): Same.
20299 (lto_input_ts_binfo_tree_pointers): Same.
20300 (lto_input_ts_constructor_tree_pointers): Same.
20301 (lto_input_ts_omp_clause_tree_pointers): Same.
20302 (streamer_read_tree_body): Same.
20303 * tree-streamer.h: Same.
20304 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20305 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20306 (vect_analyze_possibly_independent_ddr): Same.
20307 (vect_analyze_data_ref_dependence): Same.
20308 (vect_compute_data_ref_alignment): Same.
20309 (vect_enhance_data_refs_alignment): Same.
20310 (vect_analyze_data_ref_access): Same.
20311 (vect_check_gather_scatter): Same.
20312 (vect_find_stmt_data_reference): Same.
20313 (vect_create_addr_base_for_vector_ref): Same.
20314 (vect_setup_realignment): Same.
20315 (vect_supportable_dr_alignment): Same.
20316 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20317 (adjust_phi_and_debug_stmts): Same.
20318 (vect_set_loop_mask): Same.
20319 (add_preheader_seq): Same.
20320 (vect_maybe_permute_loop_masks): Same.
20321 (vect_set_loop_masks_directly): Same.
20322 (vect_set_loop_condition_masked): Same.
20323 (vect_set_loop_condition_unmasked): Same.
20324 (slpeel_duplicate_current_defs_from_edges): Same.
20325 (slpeel_add_loop_guard): Same.
20326 (slpeel_can_duplicate_loop_p): Same.
20327 (create_lcssa_for_virtual_phi): Same.
20328 (iv_phi_p): Same.
20329 (vect_update_ivs_after_vectorizer): Same.
20330 (vect_gen_vector_loop_niters_mult_vf): Same.
20331 (slpeel_update_phi_nodes_for_loops): Same.
20332 (slpeel_update_phi_nodes_for_guard1): Same.
20333 (find_guard_arg): Same.
20334 (slpeel_update_phi_nodes_for_guard2): Same.
20335 (slpeel_update_phi_nodes_for_lcssa): Same.
20336 (vect_do_peeling): Same.
20337 (vect_create_cond_for_alias_checks): Same.
20338 (vect_loop_versioning): Same.
20339 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20340 (vect_inner_phi_in_double_reduction_p): Same.
20341 (vect_analyze_scalar_cycles_1): Same.
20342 (vect_fixup_scalar_cycles_with_patterns): Same.
20343 (vect_get_loop_niters): Same.
20344 (bb_in_loop_p): Same.
20345 (vect_get_max_nscalars_per_iter): Same.
20346 (vect_verify_full_masking): Same.
20347 (vect_compute_single_scalar_iteration_cost): Same.
20348 (vect_analyze_loop_form_1): Same.
20349 (vect_analyze_loop_form): Same.
20350 (vect_active_double_reduction_p): Same.
20351 (vect_analyze_loop_operations): Same.
20352 (neutral_op_for_slp_reduction): Same.
20353 (vect_is_simple_reduction): Same.
20354 (vect_model_reduction_cost): Same.
20355 (get_initial_def_for_reduction): Same.
20356 (get_initial_defs_for_reduction): Same.
20357 (vect_create_epilog_for_reduction): Same.
20358 (vectorize_fold_left_reduction): Same.
20359 (vectorizable_reduction): Same.
20360 (vectorizable_induction): Same.
20361 (vectorizable_live_operation): Same.
20362 (loop_niters_no_overflow): Same.
20363 (vect_get_loop_mask): Same.
20364 (vect_transform_loop_stmt): Same.
20365 (vect_transform_loop): Same.
20366 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20367 (vect_determine_precisions): Same.
20368 (vect_pattern_recog_1): Same.
20369 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20370 * tree-vect-stmts.c (stmt_vectype): Same.
20371 (process_use): Same.
20372 (vect_init_vector_1): Same.
20373 (vect_truncate_gather_scatter_offset): Same.
20374 (get_group_load_store_type): Same.
20375 (vect_build_gather_load_calls): Same.
20376 (vect_get_strided_load_store_ops): Same.
20377 (vectorizable_simd_clone_call): Same.
20378 (vectorizable_store): Same.
20379 (permute_vec_elements): Same.
20380 (vectorizable_load): Same.
20381 (vect_transform_stmt): Same.
20382 (supportable_widening_operation): Same.
20383 * tree-vectorizer.c (vec_info::replace_stmt): Same.
20384 (vec_info::free_stmt_vec_info): Same.
20385 (vect_free_loop_info_assumptions): Same.
20386 (vect_loop_vectorized_call): Same.
20387 (set_uid_loop_bbs): Same.
20388 (vectorize_loops): Same.
20389 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
20390 * tree.c (add_tree_to_fld_list): Same.
20391 (fld_type_variant_equal_p): Same.
20392 (fld_decl_context): Same.
20393 (fld_incomplete_type_of): Same.
20394 (free_lang_data_in_binfo): Same.
20395 (need_assembler_name_p): Same.
20396 (find_decls_types_r): Same.
20397 (get_eh_types_for_runtime): Same.
20398 (find_decls_types_in_eh_region): Same.
20399 (find_decls_types_in_node): Same.
20400 (assign_assembler_name_if_needed): Same.
20401 * value-prof.c (stream_out_histogram_value): Same.
20402 * value-prof.h: Same.
20403 * var-tracking.c (use_narrower_mode): Same.
20404 (prepare_call_arguments): Same.
20405 (vt_expand_loc_callback): Same.
20406 (resolve_expansions_pending_recursion): Same.
20407 (vt_expand_loc): Same.
20408 * varasm.c (const_hash_1): Same.
20409 (compare_constant): Same.
20410 (tree_output_constant_def): Same.
20411 (simplify_subtraction): Same.
20412 (get_pool_constant): Same.
20413 (output_constant_pool_2): Same.
20414 (output_constant_pool_1): Same.
20415 (mark_constants_in_pattern): Same.
20416 (mark_constant_pool): Same.
20417 (get_section_anchor): Same.
20418 * vr-values.c (compare_range_with_value): Same.
20419 (vr_values::extract_range_from_phi_node): Same.
20420 * vr-values.h: Same.
20421 * web.c (unionfind_union): Same.
20422 * wide-int.h: Same.
20423
20424 2019-07-09 Martin Sebor <msebor@redhat.com>
20425
20426 PR c++/61339
20427 * align.h: Change class-key from class to struct and vice versa
20428 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
20429 * alloc-pool.h: Same.
20430 * asan.c (shadow_mem_size): Same.
20431 * auto-profile.c: Same.
20432 * basic-block.h: Same.
20433 * bitmap.h: Same.
20434 * cfgexpand.c (set_rtl): Same.
20435 (expand_one_stack_var_at): Same.
20436 * cfghooks.h: Same.
20437 * cfgloop.h: Same.
20438 * cgraph.h: Same.
20439 * config/i386/i386.h: Same.
20440 * df-problems.c (df_print_bb_index): Same.
20441 * df-scan.c: Same.
20442 * df.h (df_single_use): Same.
20443 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
20444 (layout::annotation_line_showed_range_p): Same.
20445 (get_printed_columns): Same.
20446 (correction::ensure_terminated): Same.
20447 (line_corrections::~line_corrections): Same.
20448 * dojump.h: Same.
20449 * dse.c: Same.
20450 * dump-context.h: Same.
20451 * dumpfile.h: Same.
20452 * dwarf2out.c: Same.
20453 * edit-context.c: Same.
20454 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
20455 * flags.h: Same.
20456 * function.c (assign_stack_local): Same.
20457 * function.h: Same.
20458 * gcc.c: Same.
20459 * gcov.c (block_info::block_info): Same.
20460 * genattrtab.c: Same.
20461 * genextract.c: Same.
20462 * genmatch.c (comparison_code_p): Same.
20463 (id_base::id_base): Same.
20464 (decision_tree::print): Same.
20465 * genoutput.c: Same.
20466 * genpreds.c (write_one_predicate_function): Same.
20467 * genrecog.c (validate_pattern): Same.
20468 (find_operand_positions): Same.
20469 (optimize_subroutine_group): Same.
20470 (merge_pattern_transition::merge_pattern_transition): Same.
20471 (merge_pattern_info::merge_pattern_info): Same.
20472 (merge_state_result::merge_state_result): Same.
20473 (merge_into_state): Same.
20474 * gensupport.c: Same.
20475 * gensupport.h: Same.
20476 * ggc-common.c (init_ggc_heuristics): Same.
20477 * ggc-tests.c (test_union): Same.
20478 * gimple-loop-interchange.cc (dump_induction): Same.
20479 * gimple-loop-versioning.cc: Same.
20480 * gimple-match.h (gimple_match_cond::any_else): Same.
20481 * gimple-ssa-backprop.c: Same.
20482 * gimple-ssa-sprintf.c: Same.
20483 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
20484 Same.
20485 (store_immediate_info::store_immediate_info): Same.
20486 (merged_store_group::apply_stores): Same.
20487 (get_location_for_stmts): Same.
20488 * gimple-ssa-strength-reduction.c: Same.
20489 * gimple-ssa-warn-alloca.c: Same.
20490 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
20491 * godump.c (go_type_decl): Same.
20492 * hash-map-tests.c (test_map_of_strings_to_int): Same.
20493 * hash-map.h: Same.
20494 * hash-set-tests.c (test_set_of_strings): Same.
20495 * hsa-brig.c: Same.
20496 * hsa-common.h: Same.
20497 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
20498 * input.c (assert_loceq): Same.
20499 * input.h: Same.
20500 * ipa-cp.c: Same.
20501 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
20502 * ipa-fnsummary.h: Same.
20503 * ipa-inline.h: Same.
20504 * ipa-prop.h: Same.
20505 * ipa-split.c (visit_bb): Same.
20506 * ira-int.h (minmax_set_iter_next): Same.
20507 * loop-invariant.c: Same.
20508 * loop-iv.c: Same.
20509 * lra-eliminations.c: Same.
20510 * lra-int.h: Same.
20511 * lra-lives.c (mark_regno_dead): Same.
20512 * lra-remat.c: Same.
20513 * lra-spills.c: Same.
20514 * lto-streamer.h: Same.
20515 * mem-stats.h: Same.
20516 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
20517 * omp-low.c (omp_clause_aligned_alignment): Same.
20518 * optabs-query.h (get_vcond_eq_icode): Same.
20519 * optabs.h: Same.
20520 * opts.c (wrap_help): Same.
20521 * poly-int.h: Same.
20522 * predict.c (predict_paths_leading_to_edge): Same.
20523 * pretty-print.h: Same.
20524 * profile-count.h: Same.
20525 * read-md.h: Same.
20526 * read-rtl-function.c: Same.
20527 * ree.c: Same.
20528 * reginfo.c: Same.
20529 * regrename.c: Same.
20530 * regrename.h: Same.
20531 * reload.h: Same.
20532 * rtl-iter.h: Same.
20533 * rtl.h (costs_add_n_insns): Same.
20534 * sanopt.c: Same.
20535 * sched-int.h: Same.
20536 * sel-sched-ir.h: Same.
20537 * selftest.h: Same.
20538 * sese.h (vec_find): Same.
20539 * stmt.c: Same.
20540 * target-globals.h: Same.
20541 * tree-affine.c (aff_combination_find_elt): Same.
20542 * tree-affine.h: Same.
20543 * tree-data-ref.h: Same.
20544 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
20545 * tree-predcom.c: Same.
20546 * tree-scalar-evolution.c (find_var_scev_info): Same.
20547 * tree-ssa-alias.h: Same.
20548 * tree-ssa-ccp.c: Same.
20549 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
20550 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
20551 (rewrite_mem_refs): Same.
20552 (execute_sm_if_changed): Same.
20553 (hoist_memory_references): Same.
20554 * tree-ssa-loop-ivopts.c (operator<=): Same.
20555 * tree-ssa-loop.h: Same.
20556 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
20557 * tree-ssa-structalias.c: Same.
20558 * tree-switch-conversion.h (cluster::cluster): Same.
20559 (simple_cluster::simple_cluster): Same.
20560 * tree-vect-patterns.c (type_conversion_p): Same.
20561 * tree-vectorizer.c (dump_stmt_cost): Same.
20562 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
20563 * tree.c (protected_set_expr_location): Same.
20564 * tree.h (desired_pro_or_demotion_p): Same.
20565 (fndecl_built_in_p): Same.
20566 * unique-ptr-tests.cc: Same.
20567 * var-tracking.c (delete_variable_part): Same.
20568 * varasm.c (assemble_real): Same.
20569 (tree_output_constant_def): Same.
20570 * vec.c: Same.
20571 * wide-int-bitmask.h: Same.
20572 * wide-int.h (decompose): Same.
20573
20574 2019-07-09 Richard Biener <rguenther@suse.de>
20575
20576 PR tree-optimization/91114
20577 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
20578 find a vector type isn't fatal.
20579
20580 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20581
20582 * config/aarch64/aarch64-simd.md
20583 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
20584 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
20585 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
20586 (*aarch64_crypto_aese_fused,
20587 *aarch64_crypto_aesd_fused): Update to new definition.
20588 * config/aarch64/aarch64.c
20589 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
20590
20591 2019-07-09 Richard Biener <rguenther@suse.de>
20592
20593 * gimple-match.h (gimple_match_op::resimplify): New.
20594 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
20595 gimple_resimplify4, gimple_resimplify5): Remove.
20596 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
20597 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
20598 Make static.
20599 (gimple_match_op::resimplify): New.
20600 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
20601 according to availability. Use gimple_match_op::resimplify.
20602
20603 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
20604
20605 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
20606
20607 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20608
20609 * config/arm/crypto.md:
20610 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
20611 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
20612 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
20613 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
20614 * config/arm/arm.c
20615 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
20616 * config/arm/aarch-common-protos.h
20617 (aarch_crypto_can_dual_issue): Remove.
20618 * config/arm/aarch-common.c
20619 (aarch_crypto_can_dual_issue): Likewise.
20620 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
20621 * config/arm/cortex-a53.md: Likewise.
20622 * config/arm/cortex-a57.md: Likewise.
20623 * config/arm/iterators.md:
20624 (CRYPTO_BINARY): Redefine.
20625 (CRYPTO_UNARY): Removed.
20626 (CRYPTO_AES, CRYPTO_AESMC): New.
20627
20628 2019-07-09 Richard Biener <rguenther@suse.de>
20629
20630 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
20631 (vn_reference_lookup_3): If the main ref has no access path recorded
20632 but orig_ref has use it to do access-path based disambiguation.
20633 (vn_reference_lookup_pieces): Adjust.
20634 (vn_reference_lookup): Pass down original ref if we valueized.
20635
20636 2019-07-09 Martin Liska <mliska@suse.cz>
20637
20638 * doc/extend.texi: Document influence on loop
20639 optimizers.
20640
20641 2019-07-09 Martin Liska <mliska@suse.cz>
20642
20643 * lto-compress.c (lto_normalized_zstd_level): Do not use
20644 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
20645 of libzstd. One can use 0 as a default compression level.
20646
20647 2019-07-09 Martin Liska <mliska@suse.cz>
20648
20649 * doc/invoke.texi: Add link from -fprofile-dir option.
20650 Use better wording for 'gcno filename'.
20651
20652 2019-07-08 Martin Sebor <msebor@redhat.com>
20653
20654 PR middle-end/71924
20655 PR middle-end/90549
20656 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
20657 comment.
20658 (args_loc_t): New type.
20659 (args_loc_t, locmap_t): same.
20660 (diag_returned_locals): New function.
20661 (is_addr_local): Same.
20662 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
20663 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
20664 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
20665
20666 2019-07-08 Jakub Jelinek <jakub@redhat.com>
20667
20668 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
20669 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
20670 and casts in offset when different, both through gimple stmts
20671 and through trees. Rewritten using loops to minimize code duplication
20672 for each operand.
20673
20674 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
20675
20676 * emit-rtl.c (set_insn_locations): New function moved from...
20677 * function.c (set_insn_locations): ...here.
20678 * ira-emit.c (emit_moves): Propagate location of the first instruction
20679 to the inserted move instructions.
20680 * reg-stack.c (compensate_edge): Set the location if the sequence is
20681 inserted on the edge.
20682 * rtl.h (set_insn_locations): Declare.
20683
20684 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20685
20686 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
20687 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
20688 .machine string.
20689
20690 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20691
20692 PR rtl-optimization/88233
20693 * common.opt (fsplit-wide-types-early): New option.
20694 * common/config/rs6000/rs6000-common.c
20695 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
20696 OPT_LEVELS_ALL.
20697 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
20698 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
20699 flag_split_wide_types_early.
20700 (pass_data_lower_subreg3): New.
20701 (pass_lower_subreg3): New.
20702 (make_pass_lower_subreg3): New.
20703 * passes.def (pass_lower_subreg2): Move after the loop passes.
20704 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
20705 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
20706 the pass pipeline; its previous place is taken by ...
20707 (make_pass_lower_subreg3): ... this.
20708
20709 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20710
20711 * config/s390/s390.c (s390_shift_truncation_mask): Define.
20712 (TARGET_SHIFT_TRUNCATION_MASK): Define.
20713
20714 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20715
20716 * config/s390/constraints.md: Add new jsc constraint.
20717 * config/s390/predicates.md: New predicates.
20718 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
20719 * config/s390/s390.c (s390_valid_shift_count): New function.
20720 (print_shift_count_operand): Use s390_valid_shift_count.
20721 (print_operand): Likewise.
20722 * config/s390/s390.md: Use new predicate.
20723 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
20724 * config/s390/vector.md: Use new predicate.
20725
20726 2019-07-08 Andrew Waterman <andrew@sifive.com>
20727 Jim Wilson <jimw@sifive.com>
20728
20729 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
20730 bitsize instead of BITS_PER_WORD.
20731
20732 2019-07-08 Martin Liska <mliska@suse.cz>
20733
20734 * collect2.c (defined): Revert to before r254460.
20735 (scan_prog_file): Revert to before r254460.
20736
20737 2019-07-08 Richard Biener <rguenther@suse.de>
20738
20739 PR tree-optimization/83518
20740 * tree-ssa-sccvn.c: Include splay-tree.h.
20741 (struct pd_range, struct pd_data): New.
20742 (struct vn_walk_cb_data): Add data to track partial definitions.
20743 (vn_walk_cb_data::~vn_walk_cb_data): New.
20744 (vn_walk_cb_data::push_partial_def): New.
20745 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
20746 (vn_reference_lookup_2): When partial defs are registered give up.
20747 (vn_reference_lookup_3): Track partial defs for memset and
20748 constructor zeroing and for defs from constants.
20749
20750 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20751
20752 * doc/install.texi (bootstrap-Og): Document.
20753
20754 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20755
20756 * config/riscv/pic.md (*local_pic_load_s<mode>)
20757 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
20758 referenced by <mode>, giving...
20759 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
20760 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
20761 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
20762 use <X:MODE> for the mode attribute.
20763
20764 2019-07-07 Jeff Law <law@redhat.com>
20765
20766 PR tree-optimization/91090
20767 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
20768 in handling of ranges to simplify switch statements.
20769
20770 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20771
20772 * config/darwin.c (darwin_override_options): Make a final check on PIC
20773 options.
20774
20775 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20776
20777 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
20778 on for kernel code.
20779
20780 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20781
20782 PR target/91068
20783 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
20784 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
20785 instead of matching them to "l" output operands.
20786
20787 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20788
20789 * config/mips/mips.c (mips_split_move): Zero-initialize addr
20790 and check whether addr.reg is nonnull before using it.
20791
20792 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20793
20794 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
20795 ctx->for_simd_scan_phase simd copy the outer var to the privatized
20796 variable(s). For conditional lastprivate look through outer
20797 GIMPLE_OMP_SCAN context.
20798 (lower_omp_1): For conditional lastprivate look through outer
20799 GIMPLE_OMP_SCAN context.
20800
20801 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
20802 member to combined_into_simd_safelen1.
20803 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
20804 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
20805 clauses if ctx->combined_into_simd_safelen1 put statements after the
20806 predicate conditionalized block rather than into it.
20807
20808 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20809
20810 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
20811 operand 1.
20812 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
20813 Make the choice of <mode> explicit, giving...
20814 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
20815
20816 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20817
20818 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
20819 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
20820 of .md attributes.
20821 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
20822 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
20823 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
20824 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
20825 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
20826 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
20827 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
20828 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
20829 (*avx512f_scatterdi<mode>): Likewise.
20830 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
20831
20832 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20833
20834 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
20835 specify the mode iterator referenced by <mode>, giving...
20836 (*push1_h8300hs_<QHI:mode>): ...this.
20837
20838 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20839
20840 * config/gcn/gcn-valu.md
20841 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
20842 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
20843 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
20844 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
20845 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
20846 but using the _exec comparison patterns.
20847 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
20848 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
20849 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
20850 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
20851 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
20852 but using the _exec comparison patterns.
20853
20854 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20855
20856 * config/arm/sync.md
20857 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
20858 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
20859 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
20860 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
20861 <SIDI:cas_cmp_str>.
20862
20863 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20864
20865 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
20866 (maybe_lookup_ctx): Add forward declaration.
20867 (omp_find_scan): Likewise. Walk into body of simd if composited
20868 with worksharing loop.
20869 (scan_omp_simd_scan): New function.
20870 (scan_omp_1_stmt): Call it.
20871 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
20872 ctx->for_simd_scan_phase.
20873 (lower_rec_input_clauses): Do much less work for inscan reductions
20874 in ctx->for_simd_scan_phase is_simd regions.
20875 (lower_omp_scan): Set is_simd also on simd constructs composited
20876 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
20877 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
20878 emit their body after in simd constructs composited with worksharing
20879 loop.
20880 (lower_omp_for_scan): Handle worksharing loop composited with simd.
20881
20882 * omp-low.c (omp_find_scan): Make static.
20883 (lower_omp_for_scan): Fix order of merge arguments in input phase of
20884 the second loop, var2 represents the first partial sum and so needs
20885 to go before rprivb[ivar].
20886
20887 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
20888
20889 * config/rs6000/rs6000-logue.c: Remove unused code.
20890
20891 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20892
20893 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
20894
20895 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
20896
20897 PR target/90712
20898 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
20899 check with a frame laid out check.
20900
20901 2019-07-05 Richard Biener <rguenther@suse.de>
20902
20903 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
20904 when comparing against a store with possibly the same value.
20905
20906 2019-07-05 Richard Biener <rguenther@suse.de>
20907
20908 PR tree-optimization/91091
20909 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
20910 (walk_non_aliased_vuses): Likewise.
20911 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
20912 (get_continuation_for_phi): New tbaa_p parameter and pass
20913 it down.
20914 (walk_non_aliased_vuses): Likewise.
20915 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
20916 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
20917 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
20918 Likewise.
20919 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
20920 (adjust_offsets_for_equal_base_address): New function.
20921 (vn_reference_lookup_3): Use it to catch more base equivalences.
20922 Handle and pass down tbaa_p flag.
20923 (vn_reference_lookup_pieces): Adjust.
20924 (vn_reference_lookup): Remove alias-set altering, instead pass
20925 down false as tbaa_p.
20926
20927 2019-07-05 Richard Biener <rguenther@suse.de>
20928
20929 PR tree-optimization/91091
20930 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
20931 accesses can happen with -fno-strict-aliasing.
20932
20933 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
20934
20935 * tree-ssa-alias.c (alias_stats): Add
20936 nonoverlapping_component_refs_since_match_p_must_overlap.
20937 (dump_alias_stats): Print it.
20938 (nonoverlapping_component_refs_since_match_p): Add early exit.
20939 (nonoverlapping_component_refs_p): Do not account early exit.
20940
20941 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20942
20943 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
20944 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
20945 (emit_eh_dispatch): Delete.
20946 (lower_catch): Emit the eh_dispatch manually and set the location of
20947 the first catch statement onto it.
20948 (lower_eh_filter): Emit the eh_dispatch manually and set location.
20949 (lower_eh_dispatch): Propagate location.
20950 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
20951 (eliminate_build): Likewise.
20952
20953 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20954
20955 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
20956 phi nodes if possible.
20957 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
20958 location info on the newly created statement.
20959 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
20960 newly created increment if needed.
20961
20962 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20963
20964 PR middle-end/78884
20965 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
20966 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
20967 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
20968 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
20969 ctx->add_safelen1 is set.
20970
20971 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
20972 GOMP_loop_start at the start of second worksharing loop in a scan.
20973 For nowait, don't emit GOMP_loop_end_nowait at the end of first
20974 worksharing loop in a scan even if there are conditional lastprivates,
20975 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
20976
20977 2019-07-04 Jan Hubicka <jh@suse.cz>
20978
20979 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
20980 Fix check for match in the ref walk.
20981
20982 2019-07-04 Martin Liska <mliska@suse.cz>
20983
20984 * tree-ssa-loop-niter.c
20985 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
20986 (estimate_numbers_of_iterations):
20987 Support __builtin_expect_with_probability for analysis
20988 of # of loop iterations.
20989
20990 2019-07-04 Alexandre Oliva <oliva@adacore.com>
20991
20992 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
20993 * except.c: Likewise.
20994 * expr.c (expand_expr_real_1): Reject it.
20995 * gimplify.c (gimplify_expr): Gimplify it, within
20996 TRY_FINALLY_EXPR.
20997 * tree-dump.c (dequeue_and_dump): Dump it.
20998 * tree-pretty-print.c (dump_generic_node): Likewise.
20999 * tree.c (block_may_fallthru): Handle it.
21000 * tree.def (EH_ELSE_EXPR): Introduce it.
21001 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21002 with GIMPLE_EH_ELSE as try/finally/else.
21003
21004 2019-07-04 Richard Biener <rguenther@suse.de>
21005
21006 PR ipa/91062
21007 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21008 parameter whether to disable GC collection.
21009 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21010 honor it.
21011 (execute_all_ipa_transforms): Likewise and pass it down.
21012 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21013 collection from applying IPA transforms.
21014 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21015 from applying IPA transforms.
21016
21017 2019-07-04 Richard Biener <rguenther@suse.de>
21018
21019 PR tree-optimization/90911
21020 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21021 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21022 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21023 scalar_loop_scaling.
21024 (vect_transform_loop): Scale scalar loop profile if needed.
21025 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21026 the loop copy from if-conversion adjust edge probabilities
21027 and scale the vectorized loop body profile, queue the scalar
21028 profile for updating after peeling.
21029
21030 2019-07-04 Jan Hubicka <jh@suse.cz>
21031
21032 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21033 parameters; return early for must-alias.
21034 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21035 outer types match, try nonoverlapping_component_refs
21036 if must-alias is not obvious.
21037 (indirect_refs_may_alias_p): Likewise.
21038 (refs_may_alias_p_2): Likewise.
21039
21040 2019-07-04 Richard Biener <rguenther@suse.de>
21041
21042 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21043 argument.
21044 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21045 globals into...
21046 (struct vn_walk_cb_data): New callback data struct.
21047 (vn_reference_lookup_2): Adjust.
21048 (vn_reference_lookup_3): Likewise.
21049 (vn_reference_lookup_pieces): Likewise.
21050 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21051 (visit_reference_op_load): Adjust.
21052
21053 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21054
21055 PR tree-optimization/91063
21056 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21057 stmt from stmts sequence before calling vect_init_vector_1.
21058 Formatting fix.
21059
21060 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21061
21062 PR target/88833
21063 * fwprop.c (reg_single_def_p): New function.
21064 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21065 (forward_propagate_into): New parameter reg_prop_only
21066 with default value false.
21067 Propagate def's src into loop only if SET_SRC and SET_DEST
21068 of def_set have single definitions.
21069 Likewise if reg_prop_only is set to true.
21070 (fwprop): New param fwprop_addr_p.
21071 Integrate fwprop_addr into fwprop.
21072 (fwprop_addr): Remove.
21073 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21074 to true.
21075 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21076 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21077 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21078
21079 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21080
21081 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21082 in worksharing loop scans.
21083
21084 PR tree-optimization/91074
21085 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21086 temporary.
21087
21088 PR rtl-optimization/90756
21089 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21090 for VECTOR_TYPE_P.
21091
21092 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21093
21094 * config/aarch64/aarch64.md: Remove redundant constraints from
21095 define_expand but keep some patterns untouched if they are
21096 specially selected by TARGET_SECONDARY_RELOAD hook.
21097 * config/aarch64/aarch64-sve.md: Likewise.
21098 * config/aarch64/atomics.md: Remove redundant constraints from
21099 define_expand.
21100 * config/aarch64/aarch64-simd.md: Likewise.
21101
21102 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21103
21104 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21105 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21106 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21107 clauses.
21108 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21109 DARWIN_NOPIE_SPEC.
21110
21111 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21112
21113 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21114 (STARTFILE_SPEC): Split crt3 into a separate spec.
21115 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21116 (DARWIN_CRT2_SPEC): New.
21117 (DARWIN_CRT3_SPEC): New.
21118 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21119 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21120 (DARWIN_CRT3_SPEC): New.
21121
21122 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21123
21124 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21125 Change the RTL attribute "length" from "4" to "*" to allow the
21126 length attribute to be adjusted automatically for prefixed load,
21127 store, and add immediate instructions.
21128 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21129 Likewise.
21130 (extendsi<mode>2, EXTSI iterator): Likewise.
21131 (movsi_internal1): Likewise.
21132 (movsi_from_sf): Likewise.
21133 (movdi_from_sf_zero_ext): Likewise.
21134 (mov<mode>_internal): Likewise.
21135 (movcc_internal1, QHI iterator): Likewise.
21136 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21137 (movsf_from_si): Likewise.
21138 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21139 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21140 (mov<mode>, FMOVE128 iterator): Likewise.
21141 (movdi_internal64): Likewise.
21142 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21143 Likewise.
21144 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21145 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21146 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21147 (vsx_splat_v4sf): Likewise.
21148
21149 2019-07-03 Mark Wielaard <mark@klomp.org>
21150
21151 PR debug/90981
21152 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21153 DW_AT_addr_base if there is actually a .debug_addr section with
21154 addresses.
21155 (output_addr_table): Add DWARF5 table header generation here after
21156 checking there are actually any addresses from...
21157 (dwarf2out_finish): ...here.
21158
21159 2019-07-03 Richard Biener <rguenther@suse.de>
21160
21161 PR middle-end/91069
21162 * match.pd (vec_perm -> bit_insert): Fix element read from
21163 first vector.
21164
21165 2019-07-03 Martin Liska <mliska@suse.cz>
21166
21167 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21168 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21169 condition.
21170 * generic-match-head.c: Include dbgcnt.h.
21171 * gimple-match-head.c: Likewise.
21172
21173 2019-07-03 Martin Liska <mliska@suse.cz>
21174
21175 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21176 (GCOV_COUNTER_V_TOPN): New.
21177 (GCOV_COUNTER_V_INDIR): Use _topn.
21178 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21179 (GCOV_TOPN_VALUES): New.
21180 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21181 (GCOV_TOPN_VALUES_COUNTERS): New.
21182 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21183 * tree-profile.c:
21184 (gimple_init_gcov_profiler): Rename variables from one_value
21185 to topn_values.
21186 (gimple_gen_one_value_profiler): Remove.
21187 (gimple_gen_topn_values_profiler): New function.
21188 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21189 names instead of SINGLE_VALUE.
21190 (stream_out_histogram_value): Likewise.
21191 (stream_in_histogram_value): Likewise.
21192 (get_most_common_single_value): Likewise.
21193 (gimple_divmod_fixed_value_transform): Likewise.
21194 (gimple_stringops_transform): Likewise.
21195 (gimple_divmod_values_to_profile): Likewise.
21196 (gimple_stringops_values_to_profile): Likewise.
21197 (gimple_find_values_to_profile): Likewise.
21198 * value-prof.h (enum hist_type): Rename to TOPN.
21199 (gimple_gen_one_value_profiler): Remove.
21200 (gimple_gen_topn_values_profiler): New.
21201
21202 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21203
21204 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21205 if it has the DW_AT_data_member_location attribute.
21206
21207 2019-07-03 Richard Biener <rguenther@suse.de>
21208
21209 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21210 dumping.
21211
21212 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21213
21214 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21215 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21216 (tlsdesc_small_sve_<mode>): Likewise.
21217
21218 2019-07-03 Martin Liska <mliska@suse.cz>
21219
21220 * Makefile.in: Define ZSTD_LIB.
21221 * common.opt: Adjust compression level
21222 to support also zstd levels.
21223 * config.in: Regenerate.
21224 * configure: Likewise.
21225 * configure.ac: Add --with-zstd and --with-zstd-include options
21226 and detect ZSTD.
21227 * doc/install.texi: Mention zstd dependency.
21228 * gcc.c: Print supported LTO compression algorithms.
21229 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21230 (lto_compression_zstd): Likewise.
21231 (lto_uncompression_zstd): Likewise.
21232 (lto_end_compression): Dispatch in between zlib and zstd.
21233 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21234 (lto_uncompression_zlib): Make it static.
21235 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21236 * lto-section-in.c (lto_get_section_data): Pass info
21237 about used compression.
21238 * lto-streamer-out.c: By default use zstd when possible.
21239 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21240 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21241
21242 2019-07-03 Martin Liska <mliska@suse.cz>
21243
21244 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21245 * lto-section-out.c (lto_destroy_simple_output_block): Never
21246 compress LTO_section_lto section.
21247 * lto-streamer-out.c (produce_asm): Do not set major_version
21248 and minor_version.
21249 (lto_output_toplevel_asms): Likewise.
21250 (produce_lto_section): New function.
21251 (lto_output): Call produce_lto_section.
21252 (lto_write_mode_table): Do not set major_version and
21253 minor_version.
21254 (produce_asm_for_decls): Likewise.
21255 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21256 type.
21257 (struct lto_header): Remove.
21258 (struct lto_section): New struct.
21259 (struct lto_simple_header): Do not inherit from lto_header.
21260 (struct lto_file_decl_data): Add lto_section_header field.
21261
21262 2019-07-03 Martin Liska <mliska@suse.cz>
21263
21264 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21265 dead assignemts.
21266 * reg-stack.c (check_asm_stack_operands): Likewise.
21267 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21268 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21269 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21270 force_expand_binop.
21271
21272 2019-07-03 Martin Liska <mliska@suse.cz>
21273
21274 PR tree-optimization/90892
21275 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21276 in string constants.
21277
21278 2019-07-03 Martin Liska <mliska@suse.cz>
21279
21280 PR middle-end/90899
21281 * multiple_target.c (create_dispatcher_calls): Add to comdat
21282 group only if set for ifunc.
21283
21284 2019-07-03 Martin Liska <mliska@suse.cz>
21285
21286 PR target/88056
21287 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21288 Define local_object_name in outer scope in order to handle
21289 use-after-scope issue.
21290
21291 2019-07-03 Martin Liska <mliska@suse.cz>
21292
21293 * common.opt: Add fprofile-note.
21294 * coverage.c (coverage_init): Append the option
21295 to bbg_file_name.
21296 * doc/invoke.texi: Document -fprofile-note.
21297
21298 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21299
21300 PR tree-optimization/91033
21301 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21302 vect_analyze_data_refs): Add bool * arguments.
21303 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21304 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21305 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21306 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21307 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21308 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21309 vect_analyze_data_refs caller.
21310
21311 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21312 clause.
21313 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21314 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21315 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21316 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21317 OMP_CLAUSE__SCANTEMP_ entry.
21318 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21319 * tree-pretty-print.c (dump_omp_clause): Likewise.
21320 * tree-nested.c (convert_nonlocal_omp_clauses,
21321 convert_local_omp_clauses): Likewise.
21322 * omp-general.h (struct omp_for_data): Add have_scantemp and
21323 have_nonctrl_scantemp members.
21324 * omp-general.c (omp_extract_for_data): Initialize them.
21325 * omp-low.c (struct omp_context): Add scan_exclusive member.
21326 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21327 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21328 ctx->scan_exclusive.
21329 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21330 of !ctx->scan_inclusive.
21331 (lower_rec_input_clauses): Simplify gimplification of dtors using
21332 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21333 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21334 loops. Don't add barrier for reduction_omp_orig_ref if
21335 ctx->scan_??xclusive.
21336 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21337 (lower_omp_scan): Use ctx->scan_exclusive instead
21338 of !ctx->scan_inclusive. Handle worksharing loops with inscan
21339 reductions. Use new_vard != new_var instead of repeated
21340 omp_is_reference calls.
21341 (omp_find_scan, lower_omp_for_scan): New functions.
21342 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21343 inscan reductions.
21344 * omp-expand.c (expand_omp_scantemp_alloc): New function.
21345 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21346 and fd->have_scantemp.
21347
21348 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21349 on worksharing loop propagate it as shared clause to containing
21350 combined parallel.
21351
21352 * omp-expand.c (expand_omp_for_static_nochunk,
21353 expand_omp_for_static_chunk): For nowait worksharing loop with
21354 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21355 at the end.
21356
21357 2019-07-02 qing zhao <qing.zhao@oracle.com>
21358
21359 PR preprocessor/90581
21360 * doc/cppopts.texi: Add document for -fmax-include-depth.
21361 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21362
21363 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
21364
21365 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21366 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21367 (mmx_packssdw): Ditto.
21368 (mmx_punpckhbw): Ditto.
21369 (mmx_punpcklbw): Ditto.
21370 (mmx_punpckhwd): Ditto.
21371 (mmx_punpcklwd): Ditto.
21372 (mmx_punpckhdq): Ditto.
21373 (mmx_punpckldq): Ditto.
21374 (*vec_dupv4hi): Ditto.
21375 (*vec_dupv2si): Ditto.
21376 (mmx_pmovmskb): Ditto.
21377 * config/i386/sse.md (sse_cvtpi2ps): Use
21378 TARGET_SSE2 && SSE_REG_P in split condition.
21379 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
21380 TARGET_SSSE3 && SSE_REGNO_P in split condition.
21381 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
21382 (ssse3_pshufbv8qi3): Ditto.
21383 (ssse3_palignrdi): Ditto.
21384
21385 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
21386
21387 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
21388 with inlined save and restore.
21389
21390 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
21391
21392 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
21393 to be inserted on single successor edge of the entry block. Then call
21394 commit_edge_insertions instead of inserting the instructions manually.
21395 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
21396 RTL expansion and rebuild jump labels chain.
21397
21398 2019-07-02 Richard Biener <rguenther@suse.de>
21399
21400 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
21401 TI_CHREC_KNOWN.
21402 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21403 Define here.
21404 * tree.c (build_common_tree_nodes): Initialize them.
21405 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21406 Make declarations comments.
21407 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
21408 chrec_known): Remove definitions.
21409 (initialize_scalar_evolutions_analyzer): Remove.
21410 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
21411 * tree-streamer.c (preload_common_nodes): Do not preload
21412 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
21413
21414 2019-07-02 Jan Hubicka <jh@suse.cz>
21415
21416 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
21417 sanity check.
21418
21419 2019-07-02 Jan Hubicka <jh@suse.cz>
21420
21421 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
21422 to ..
21423 (nonoverlapping_component_refs_since_match_p): ... this one;
21424 handle also non-decl bases; return -1 if search gave up.
21425 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
21426 nonoverlapping_component_refs_of_decl_p_no_alias to
21427 nonoverlapping_component_refs_since_match_p_may_alias,
21428 nonoverlapping_component_refs_since_match_p_no_alias.
21429 (dump_alias_stats): Update dumping.
21430 (aliasing_matching_component_refs_p): Break out from ...;
21431 dispatch to nonoverlapping_component_refs_for_decl_p
21432 and nonoverlapping_component_refs_since_match_p.
21433 (aliasing_component_refs_p): ... here; call
21434 nonoverlapping_component_refs_p in scenarios where we can not
21435 precisely determine base match.
21436 (decl_refs_may_alias_p): Use
21437 nonoverlapping_component_refs_since_match_p.
21438 (indirect_ref_may_alias_decl_p): Do not call
21439 nonoverlapping_component_refs_p.
21440 (indirect_refs_may_alias_p): Likewise.
21441
21442 2019-07-02 Jan Hubicka <jh@suse.cz>
21443
21444 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
21445 to clobber of return value.
21446
21447 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21448
21449 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
21450 for is_neon_type instructions that have not already been categorized.
21451
21452 2019-07-02 Richard Biener <rguenther@suse.de>
21453
21454 PR tree-optimization/58483
21455 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
21456 for MEM_REF base hashing.
21457 (equal_mem_array_ref_p): Likewise for base comparison.
21458
21459 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21460
21461 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
21462 parameterized name.
21463 (signbit<mode>2): Use that name. Simplify.
21464
21465 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
21466
21467 PR middle-end/66726
21468 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
21469 Tune heuristic from PR71016 to allow MIN / MAX.
21470
21471 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21472
21473 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
21474 parameterized name.
21475 (abs<mode>2): Use that name. Simplify.
21476
21477 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21478
21479 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
21480 parameterized name.
21481 (neg<mode>2): Use that name. Simplify.
21482
21483 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21484
21485 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
21486 name.
21487 (abs<mode>2): Use that name. Simplify.
21488
21489 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21490
21491 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
21492 name.
21493 (neg<mode>2): Use that name. Simplify.
21494
21495 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
21496
21497 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
21498 ("enabled" attribute): Handle sse_noavx isa attribute.
21499 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
21500 Use TARGET_SSE && SSE_REGNO_P in split condition.
21501 (*vec_dupv2sf): Ditto.
21502
21503 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21504
21505 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
21506 name.
21507 (floatsi<mode>2): Use that name. Simplify.
21508
21509 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21510
21511 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
21512 parameterized name.
21513 (extenddf<mode>2_vsx): Make this a parameterized name.
21514 (extenddf<mode>2): Use those names. Simplify.
21515
21516 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21517
21518 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
21519 name.
21520 (eh_return): Use that name. Simplify.
21521
21522 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21523
21524 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
21525 (doloop_end): Use that name. Simplify.
21526
21527 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21528
21529 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
21530 parameterized name.
21531 (indirect_jump): Use that name. Simplify.
21532
21533 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21534
21535 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
21536 parameterized name.
21537 (abs<mode>2): Use that name. Simplify.
21538
21539 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21540
21541 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
21542 parameterized name.
21543 (fix_trunc<mode>si2): Use that name. Simplify.
21544
21545 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21546
21547 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
21548 (allocate_stack): Use that name. Simplify.
21549
21550 2019-07-01 Martin Sebor <msebor@redhat.com>
21551
21552 PR middle-end/90923
21553 * hash-map.h (hash_map::put): On insertion invoke element ctor.
21554 (hash_map::get_or_insert): Same. Reformat comment.
21555 * hash-set.h (hash_set::add): On insertion invoke element ctor.
21556 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21557 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21558 * hash-table.h (hash_table::operator=): Prevent copy assignment.
21559 (hash_table::hash_table (const hash_table&)): Use copy ctor
21560 instead of assignment to copy elements.
21561
21562 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
21563 John David Anglin <danglin@gcc.gnu.org>
21564
21565 PR target/90963
21566 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
21567 using saved frame pointer.
21568
21569 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
21570
21571 PR middle-end/64242
21572 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
21573 Add frame clobber and schedule blockage.
21574
21575 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
21576
21577 * doc/invoke.texi (Link Options): Further editorial changes to
21578 -flinker-output docs.
21579
21580 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21581
21582 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
21583 Load both operands of a PLUS into registers separately.
21584
21585 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
21586
21587 * config/s390/vector.md: Fix shift count operand printing.
21588
21589 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21590
21591 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
21592
21593 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21594
21595 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
21596 Use recog_data to test for an output operand.
21597
21598 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21599
21600 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
21601 exclude any others that are disparaged or that are bound to need
21602 a reload or spill.
21603 (ira_get_dup_out_num): Expand comment.
21604
21605 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21606
21607 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
21608 constraint string for each operand/alternative combo. Only handle
21609 '%' at the start of constraint strings, and look for it outside
21610 the main loop.
21611
21612 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21613
21614 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
21615 alternative_mask instead of HARD_REG_SET to represent a
21616 bitmask of alternatives.
21617 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21618 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
21619
21620 2019-07-01 Martin Liska <mliska@suse.cz>
21621
21622 * edit-context.c (test_applying_fixits_unreadable_file): Do not
21623 use () for a constructor call.
21624 (test_applying_fixits_line_out_of_range): Likewise.
21625 * ggc-page.c (alloc_page): Use (void *) for %p printf format
21626 argument.
21627 (free_page): Likewise.
21628
21629 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
21630
21631 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
21632 parameter names to match usage (no functional change).
21633 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
21634
21635 2019-07-01 Richard Biener <rguenther@suse.de>
21636
21637 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
21638 pass parameter.
21639 (pass_fre::execute): Honor it.
21640 * passes.def: Adjust pass_fre invocations to allow iterating,
21641 add non-iterating pass_fre before late threading/dom.
21642
21643 2019-07-01 Richard Biener <rguenther@suse.de>
21644
21645 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
21646 TARGET_MEM_REF handling to also handle address-taken ones.
21647
21648 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
21649
21650 * doc/sourcebuild.texi (Effective-Target Keywords, Other
21651 hardware attributes): Document avx512vp2intersect.
21652
21653 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21654
21655 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
21656 (abs<mode>2): New expander.
21657 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
21658 Use CODE_FOR_ssse3_absv8qi2.
21659 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
21660 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
21661
21662 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21663
21664 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
21665 to sse, sse_noavx and avx. Update all uses.
21666
21667 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21668
21669 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
21670 (*mmx_<plusminus_insn><mode>3): Ditto.
21671 (*mmx_mulv4hi3"): Ditto.
21672 (*mmx_smulv4hi3_highpart): Ditto.
21673 (*mmx_umulv4hi3_highpart): Ditto.
21674 (*mmx_pmaddwd): Ditto.
21675 (*sse2_umulv1siv1di3): Ditto.
21676 (*mmx_<code>v4hi3): Ditto.
21677 (*mmx_<code>v8qi3): Ditto.
21678 (mmx_ashr<mode>3): Ditto.
21679 ("mmx_<shift_insn><mode>3): Ditto.
21680 (*mmx_eq<mode>3): Ditto.
21681 (mmx_gt<mode>3): Ditto.
21682 (mmx_andnot<mode>3): Ditto.
21683 (*mmx_<code><mode>3): Ditto.
21684 (*mmx_pinsrw): Ditto.
21685 (*mmx_pextrw): Ditto.
21686 (mmx_pshufw_1): Ditto.
21687 (*mmx_uavgv8qi3): Ditto.
21688 (*mmx_uavgv4hi3): Ditto.
21689 ("mmx_psadbw): Ditto.
21690 * config/i386/sse.md (sse_cvtps2pi): Ditto.
21691 (sse_cvttps2pi): Ditto.
21692 (ssse3_pmaddubsw): Ditto.
21693 (*ssse3_pmulhrswv4hi3): Ditto.
21694 (ssse3_psign<mode>3): Ditto.
21695
21696 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
21697
21698 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
21699 adjustment for bit-fields to all aggregate types.
21700
21701 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
21702
21703 * config/rs6000/predicates.md (pcrel_address): Use
21704 SYMBOL_REF_LOCAL_P to determine if a label is local.
21705 (pcrel_external_address): New predicate.
21706 (non_prefixed_mem_operand): Delete, predicate not used.
21707 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
21708 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
21709 addressing.
21710 (SYMBOL_REF_PCREL_P): Likewise.
21711
21712 PR target/91009
21713 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
21714 alternative.
21715 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
21716 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
21717 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
21718
21719 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21720
21721 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
21722 override on extra_headers.
21723
21724 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21725
21726 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
21727 * config/darwin-driver.c (darwin_default_min_version): Remove newline
21728 from warning.
21729 (darwin_driver_init): Likewise.
21730
21731 2019-06-28 Jan Beulich <jbeulich@suse.com>
21732
21733 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21734 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
21735 Eliminate redundant alternative.
21736
21737 2019-06-28 Jan Beulich <jbeulich@suse.com>
21738
21739 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21740 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
21741 Use vector_operand.
21742
21743 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
21744
21745 * config/arc/arc.c (arc_rtx_costs): All short instructions are
21746 having a lower cost regardless of the speed option.
21747
21748 2019-06-28 Jan Beulich <jbeulich@suse.com>
21749
21750 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
21751 vector_operand plus, on both alternatives, "Bm" constraint.
21752
21753 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
21754
21755 * config/arm/arm.md: Remove redundant constraints from
21756 define_expand but leave reload_inm and reload_outm patterns
21757 untouched since they need special constraints to work.
21758 * config/arm/arm-fixed.md: Remove redundant constraints from
21759 define_expand.
21760 * config/arm/iwmmxt.md: Likewise.
21761 * config/arm/neon.md: Likewise.
21762 * config/arm/sync.md: Likewise.
21763 * config/arm/thumb1.md: Likewise.
21764 * config/arm/vec-common.md: Likewise.
21765
21766 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
21767
21768 * doc/install.texi: Document --disable-tm-clone-registry.
21769
21770 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21771
21772 PR c++/91024
21773 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
21774 statements.
21775
21776 PR tree-optimization/91010
21777 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
21778 return true. Otherwise, don't call operand_equal_p if offset1 or
21779 offset2 is NULL and just return false.
21780
21781 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21782
21783 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
21784 user-specified float mode choice for kernel mode code.
21785
21786 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21787
21788 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
21789 spec.
21790
21791 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21792
21793 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
21794 use longcall for 64b code.
21795
21796 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
21797
21798 * builtins.c (get_memory_rtx): Fix comment.
21799 * optabs.def (movmem_optab): Change to cpymem_optab.
21800 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
21801 (emit_block_move_hints): Change movmem to cpymem.
21802 * defaults.h: Change movmem to cpymem.
21803 * targhooks.c (get_move_ratio): Change movmem to cpymem.
21804 (default_use_by_pieces_infrastructure_p): Ditto.
21805 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
21806 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
21807 to cpymem.
21808 * config/aarch64/aarch64.h: Change movmem to cpymem.
21809 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
21810 * config/alpha/alpha.h: Change movmem to cpymem in comment.
21811 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
21812 movmem to cpymem.
21813 * config/arc/arc-protos.h: Change movmem to cpymem.
21814 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
21815 * config/arc/arc.h: Change movmem to cpymem in comment.
21816 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
21817 * config/arm/arm-protos.h: Change movmem to cpymem in names.
21818 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
21819 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
21820 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
21821 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
21822 * config/avr/avr-protos.h: Change movmem to cpymem.
21823 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
21824 avr_out_movmem): Change movmem to cpymem.
21825 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
21826 Change movmem to cpymem.
21827 * config/bfin/bfin-protos.h: Change movmem to cpymem.
21828 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
21829 Change movmem to cpymem.
21830 * config/bfin/bfin.h: Change movmem to cpymem in comment.
21831 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
21832 * config/c6x/c6x-protos.h: Change movmem to cpymem.
21833 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
21834 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
21835 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
21836 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
21837 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
21838 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
21839 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
21840 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
21841 expand_small_cpymem_or_setmem,
21842 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
21843 expand_set_or_cpymem_constant_prologue,
21844 ix86_expand_set_or_cpymem): Change movmem to cpymem.
21845 * config/i386/i386-protos.h: Change movmem to cpymem.
21846 * config/i386/i386.h: Change movmem to cpymem in comment.
21847 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
21848 (setmem<mode>): Change expansion function name.
21849 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
21850 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
21851 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
21852 * config/m32c/m32c-protos.h: Change movmem to cpymem.
21853 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
21854 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
21855 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
21856 to cpymem.
21857 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
21858 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
21859 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
21860 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
21861 Change movmem to cpymem.
21862 * config/mips/mips.h: Change movmem to cpymem.
21863 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
21864 * config/nds32/nds32-memory-manipulation.c
21865 (nds32_expand_movmemsi_loop_unknown_size,
21866 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
21867 nds32_expand_movmemsi_unroll,
21868 nds32_expand_movmemsi): Change movmem to cpymem.
21869 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
21870 * config/nds32/nds32-protos.h: Change movmem to cpymem.
21871 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
21872 (pa_adjust_insn_length): Change call to compute_movmem_length.
21873 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
21874 movmemdi, movmemdi_prereload,
21875 movmemdi_postreload): Change movmem to cpymem.
21876 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
21877 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
21878 * config/riscv/riscv.c: Change movmem to cpymem in comment.
21879 * config/riscv/riscv.h: Change movmem to cpymem.
21880 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
21881 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
21882 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
21883 movmem to cpymem.
21884 * config/s390/s390-protos.h: Change movmem to cpymem.
21885 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
21886 s390_expand_insv): Change movmem to cpymem.
21887 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
21888 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
21889 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
21890 * config/sparc/sparc.h: Change movmem to cpymem in comment.
21891 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
21892 for nonexistent function.
21893 * config/vax/vax.h: Change movmem to cpymem in comment.
21894 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
21895 * config/visium/visium.h: Change movmem to cpymem in comment.
21896 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
21897 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
21898 * doc/md.texi: Change movmem to cpymem and update description to match.
21899 * doc/rtl.texi: Change movmem to cpymem.
21900 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
21901 * doc/tm.texi: Regenerate.
21902
21903 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
21904
21905 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
21906 -fvariable-expansion-in-unroller by default.
21907 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
21908 default for Power.
21909
21910 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
21911
21912 Revert
21913 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21914 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21915
21916 * config.gcc(rs6000-*-*): Define target_gtfiles.
21917
21918 2019-06-27 Jan Hubicka <jh@suse.cz>
21919
21920 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
21921 (add_type_duplicate): When odr hash is not allocated, to nothing.
21922 (odr_based_tbaa_p): New function.
21923 (set_type_canonical_for_odr_type): New function.
21924 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
21925 set_type_canonical_for_odr_type): New.
21926 * tree.c (gimple_canonical_types_compatible_p): ODR types with
21927 ODR based TBAA are not equivalent to non-ODR types.
21928
21929 2019-06-27 Martin Liska <mliska@suse.cz>
21930
21931 PR tree-optimization/90974
21932 PR rtl-optimization/90975
21933 PR rtl-optimization/90976
21934 PR target/91016
21935 PR tree-optimization/91017
21936 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
21937 unused tmp.
21938 * lra.c (lra_set_insn_recog_data): Remove a leftover from
21939 initial commit of IRA.
21940 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
21941 of op0 and op1.
21942 * tree-vect-loop.c (vect_create_epilog_for_reduction):
21943 Remove unused mode1.
21944 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
21945 to new_stmt_info.
21946
21947 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21948
21949 PR target/90991
21950 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
21951 instead of register_operand for operands[1], add m to its constraints
21952 if operands[2] uses "C" constraint. Ensure in condition that if
21953 operands[2] is not 0, then operands[1] is not a MEM. For last two
21954 alternatives, use unaligned loads instead of aligned if operands[1] is
21955 misaligned_operand.
21956
21957 2019-06-27 Martin Liska <mliska@suse.cz>
21958
21959 * asan.c (asan_emit_allocas_unpoison): Remove obviously
21960 dead assignments.
21961 * bt-load.c (move_btr_def): Likewise.
21962 * builtins.c (expand_builtin_apply_args_1): Likewise.
21963 (expand_builtin_apply): Likewise.
21964 * cfgexpand.c (expand_asm_stmt): Likewise.
21965 (construct_init_block): Likewise.
21966 * cfghooks.c (verify_flow_info): Likewise.
21967 * cfgloopmanip.c (remove_path): Likewise.
21968 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
21969 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
21970 * combine.c (simplify_if_then_else): Likewise.
21971 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
21972 (choose_basereg): Likewise.
21973 (ix86_expand_prologue): Likewise.
21974 (ix86_preferred_output_reload_class): Likewise.
21975 * cselib.c (cselib_record_sets): Likewise.
21976 * df-scan.c (df_scan_alloc): Likewise.
21977 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
21978 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
21979 * emit-rtl.c (try_split): Likewise.
21980 * graphite-scop-detection.c (assign_parameter_index_in_region):
21981 Likewise.
21982 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
21983 * ira-color.c (setup_profitable_hard_regs): Likewise.
21984 * ira.c (rtx_moveable_p): Likewise.
21985 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21986 * read-rtl.c (read_subst_mapping): Likewise.
21987 * regrename.c (scan_rtx): Likewise.
21988 * reorg.c (fill_slots_from_thread): Likewise.
21989 * tree-inline.c (tree_function_versioning): Likewise.
21990 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
21991 * tree-ssa-sink.c (statement_sink_location): Likewise.
21992 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
21993 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
21994 (vect_create_epilog_for_reduction): Likewise.
21995 * tree.c (build_nonstandard_integer_type): Likewise.
21996
21997 2019-06-27 Richard Biener <rguenther@suse.de>
21998
21999 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22000
22001 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22002
22003 PR tree-optimization/89772
22004 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22005 out-of-bound accesses checking.
22006
22007 2019-06-27 Martin Liska <mliska@suse.cz>
22008
22009 PR tree-optimization/91014
22010 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22011 when LHS is NULL_TREE.
22012
22013 2019-06-27 Martin Liska <mliska@suse.cz>
22014
22015 * symbol-summary.h (traverse): Pass
22016 argument a to the call of callback.
22017 (gt_ggc_mx): Mark arguments as unused.
22018 (gt_pch_nx): Likewise.
22019
22020 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22021
22022 PR target/62147
22023 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22024 finiteness.
22025
22026 2019-06-26 Jeff Law <law@redhat.com>
22027
22028 PR tree-optimization/90883
22029 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22030 (delete_dead_or_redundant_assignment): Likewise.
22031
22032 PR tree-optimization/90883
22033 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22034 * tree-ssa-dse.c: Update various comments to distinguish between
22035 dead and redundant stores.
22036 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22037 (dse_optimize_redundant_stores): New function.
22038 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22039 Distinguish between dead and redundant calls in dump output. All
22040 callers updated.
22041 (delete_dead_or_redundant_assignment): Similarly for assignments.
22042 (dse_optimize_stmt): Handle _CHK variants. For statements which
22043 store 0 into multiple memory locations, try to prove a subsequent
22044 store is redundant.
22045
22046 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22047
22048 PR target/89021
22049 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22050 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22051
22052 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22053
22054 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22055 (branch_islands): New extern.
22056 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22057 * config/rs6000/rs6000.c: .. here.
22058
22059 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22060
22061 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22062 (powerpc*-*-*) ... to here.
22063
22064 2019-06-26 Jeff Law <law@redhat.com>
22065
22066 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22067 memcpy, memmove and memset builtins.
22068 (maybe_trim_memstar_call): Likewise.
22069
22070 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22071
22072 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22073
22074 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22075
22076 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22077
22078 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22079
22080 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22081 declaration.
22082 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22083 "static".
22084 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22085 declaration.
22086
22087 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22088
22089 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22090
22091 2019-06-26 Richard Biener <rguenther@suse.de>
22092
22093 PR ipa/90982
22094 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22095
22096 2019-06-26 Richard Biener <rguenther@suse.de>
22097
22098 * lto-streamer.h (lto_bitmap_alloc): Remove.
22099 (lto_bitmap_free): Likewise.
22100 * lto-streamer.c (lto_bitmap_alloc): Remove.
22101 (lto_bitmap_free): Likewise.
22102 (lto_obstack): Likewise.
22103 (lto_obstack_initialized): Likewise.
22104 * lto-streamer-out.c (lto_output): Use own obstack for local
22105 bitmap, free it consistently.
22106
22107 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22108
22109 PR target/90991
22110 * config/i386/sse.md
22111 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22112 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22113 insns if operands[2] is misaligned_operand.
22114
22115 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22116
22117 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22118 TARGET_POWERPC64.
22119 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22120 to GPR.
22121
22122 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22123
22124 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22125
22126 2019-06-26 Martin Liska <mliska@suse.cz>
22127
22128 PR tree-optimization/90973
22129 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22130 epilogue_cost_vec instead of prologue_cost_vec for
22131 a epilogue cost.
22132
22133 2019-06-26 Martin Liska <mliska@suse.cz>
22134
22135 * bb-reorder.c (connect_better_edge_p): Add missing else
22136 statement in the middle of if-else statements.
22137
22138 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22139 H.J. Lu <hongjiu.lu@intel.com>
22140 Olga Makhotina <olga.makhotina@intel.com>
22141
22142 * common/config/i386/i386-common.c
22143 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22144 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22145 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22146 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22147 (ix86_handle_option): Handle -mavx512vp2intersect.
22148 * config/i386/avx512vp2intersectintrin.h: New.
22149 * config/i386/avx512vp2intersectvlintrin.h: New.
22150 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22151 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22152 AVX512VP2INTERSECT.
22153 * config/i386/i386-builtin-types.def: Add new types.
22154 * config/i386/i386-builtin.def: Add new builtins.
22155 * config/i386/i386-builtins.c: (enum processor_features): Add
22156 F_AVX512VP2INTERSECT.
22157 (static const _isa_names_table isa_names_table): Ditto.
22158 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22159 __AVX512VP2INTERSECT__.
22160 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22161 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22162 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22163 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22164 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22165 * config/i386/i386-options.c (ix86_target_string): Add
22166 -mavx512vp2intersect.
22167 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22168 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22169 P2HImode and P2QImode.
22170 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22171 number for P2QImode and P2HImode.
22172 (ix86_regmode_natural_size): New function.
22173 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22174 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22175 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22176 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22177 * config/i386/i386.opt: Add -mavx512vp2intersect.
22178 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22179 avx512vp2intersectvlintrin.h.
22180 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22181 (define_mode_iterator VI48_AVX512VP2VL): New.
22182 (avx512vp2intersect_2intersect<mode>,
22183 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22184 * config.gcc: Add avx512vp2intersectvlintrin.h and
22185 avx512vp2intersectintrin.h to extra_headers.
22186 * doc/invoke.texi: Document -mavx512vp2intersect.
22187
22188 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22189
22190 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22191
22192 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22193
22194 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22195 savres_routine_syms, savres_routine_name, morestack_ref,
22196 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22197 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22198 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22199 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22200 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22201 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22202 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22203 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22204 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22205 get_stack_clash_protection_probe_interval,
22206 get_stack_clash_protection_guard_size,
22207 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22208 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22209 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22210 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22211 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22212 gen_frame_mem_offset, rs6000_savres_routine_name,
22213 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22214 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22215 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22216 rs6000_global_entry_point_prologue_needed_p,
22217 rs6000_get_separate_components, rs6000_components_for_bb,
22218 rs6000_disqualify_components, rs6000_emit_prologue_components,
22219 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22220 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22221 rs6000_output_savres_externs, rs6000_output_function_prologue,
22222 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22223 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22224 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22225 rs6000_output_function_epilogue, gen_add3_const,
22226 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22227 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22228 to rs6000-logue.c.
22229 (machine_function): Moved to rs6000.h.
22230 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22231 rs6000-internal.h.
22232 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22233 savres_routine_syms, savres_routine_name, morestack_ref,
22234 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22235 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22236 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22237 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22238 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22239 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22240 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22241 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22242 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22243 get_stack_clash_protection_probe_interval,
22244 get_stack_clash_protection_guard_size,
22245 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22246 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22247 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22248 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22249 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22250 gen_frame_mem_offset, rs6000_savres_routine_name,
22251 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22252 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22253 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22254 rs6000_global_entry_point_prologue_needed_p,
22255 rs6000_get_separate_components, rs6000_components_for_bb,
22256 rs6000_disqualify_components, rs6000_emit_prologue_components,
22257 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22258 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22259 rs6000_output_savres_externs, rs6000_output_function_prologue,
22260 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22261 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22262 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22263 rs6000_output_function_epilogue, gen_add3_const,
22264 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22265 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22266 to here from rs6000.c.
22267 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22268 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22269 quad_address_offset_p) Moved to here from rs6000.c.
22270 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22271 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22272 collector.
22273
22274 2019-06-25 Martin Liska <mliska@suse.cz>
22275
22276 * hash-table.c (hashtab_chk_error): Move here from ...
22277 * hash-table.h (hashtab_chk_error): ... here.
22278
22279 2019-06-25 Martin Liska <mliska@suse.cz>
22280
22281 PR tree-optimization/90978
22282 * df-scan.c (df_update_entry_block_defs): Remove dead else
22283 branch.
22284 (df_update_exit_block_uses): Likewise.
22285
22286 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22287 Andrew Stubbs <ams@codesourcery.com>
22288
22289 * config.gcc (thread_file): Set to gcn for AMD GCN.
22290 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22291 (TARGET_EMUTLS_VAR_INIT): New hook.
22292
22293 2019-06-25 Martin Jambor <mjambor@suse.cz>
22294
22295 PR ipa/90939
22296 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22297
22298 2019-06-25 Richard Biener <rguenther@suse.de>
22299
22300 PR tree-optimization/90930
22301 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22302 into parallel form in the last pass instance.
22303
22304 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22305
22306 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22307 (arc_legitimize_pic_address): Simplify and cleanup the function.
22308 (SYMBOLIC_CONST): Remove.
22309 (prepare_pic_move): Likewise.
22310 (prepare_move_operands): Handle complex mov cases here.
22311 (arc_legitimize_address_0): Remove call to
22312 arc_legitimize_pic_address.
22313 (arc_legitimize_address): Remove call to
22314 arc_legitimize_tls_address.
22315 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22316 (movhi_insn): Likewise.
22317
22318 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22319
22320 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22321 PTRDIFF_TYPE.
22322 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22323 format of "__intN" types for UINTMAX_TYPE.
22324 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22325 format of "__intN" types for SIZETYPE.
22326 * tree.c (build_common_tree_nodes): Accept "__intN__"
22327 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22328 * doc/invoke.texi: Document that __intN__ disables pedantic
22329 warnings.
22330
22331 2019-06-25 Jan Hubicka <jh@suse.cz>
22332
22333 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22334 base2_alias_set is non-zero before doing TBAA based disambiguation.
22335
22336 2019-06-25 Martin Liska <mliska@suse.cz>
22337
22338 PR tree-optimization/90973
22339 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22340 of prologue and epilogue.
22341
22342 2019-06-24 Jan Hubicka <jh@suse.cz>
22343
22344 * ipa-utils.h (type_with_linkage_p): Verify that type is
22345 CXX_ODR_P.
22346 (odr_type_p): Remove extra return.
22347 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22348 hash STRING_FLAG only for arrays and integers.
22349 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22350 Update analogously.
22351 * tree-streamer-out.c (pack_ts_type_common_value_fields):
22352 Likewise.
22353 * print-tree.c (print_node): Print cxx-odr-p
22354 and string-flag.
22355 * tree.c (need_assembler_name_p): Also check that type
22356 is CXX_ODR_TYPE_P
22357 (verify_type_variant): Update verification of SRING_FLAG;
22358 also check CXX_ODR_P.
22359 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22360 (TYPE_STRING_FLAG): Use it.
22361 (TYPE_CXX_ODR_P): New macro.
22362 * dwarf2out.c (gen_array_type_die): First check that type
22363 is an array and then test string flag.
22364
22365 2019-06-24 Richard Biener <rguenther@suse.de>
22366
22367 PR tree-optimization/90972
22368 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22369 in common code, dealing with STRING_CST properly.
22370
22371 2019-06-24 Richard Biener <rguenther@suse.de>
22372
22373 PR tree-optimization/90930
22374 PR tree-optimization/90316
22375 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22376 decrement of limit.
22377
22378 2019-06-24 Martin Sebor <msebor@redhat.com>
22379
22380 * tree-pretty-print.h: Remove unnecessary punctuation characters
22381 from a diagnostic.
22382 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
22383
22384 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
22385
22386 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
22387 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
22388 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
22389
22390 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22391
22392 * config/rs6000/darwin.h: Handle GCC target pragma.
22393
22394 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22395
22396 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
22397
22398 2019-06-22 Jeff Law <law@redhat.com>
22399
22400 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22401
22402 2019-06-22 Jan Hubicka <jh@suse.cz>
22403
22404 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
22405 give up on bitfields; continue searching for different refs
22406 appearing later.
22407
22408 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22409
22410 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22411 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
22412 containing the offset as possible simd lane access. Look through
22413 widening conversion. Move the
22414 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
22415
22416 2019-06-21 Richard Biener <rguenther@suse.de>
22417
22418 PR tree-optimization/90930
22419 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
22420 flag on new stmts to avoid re-processing them.
22421
22422 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
22423
22424 PR c++/90875 - added -Wswitch-outside-range option
22425 * doc/invoke.texi (Wswitch-outside-range): Document.
22426
22427 2019-06-21 Jeff Law <law@redhat.com>
22428
22429 PR tree-optimization/90949
22430 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
22431 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
22432
22433 2019-06-21 Richard Biener <rguenther@suse.de>
22434
22435 PR debug/90914
22436 * dwarf2out.c (prune_unused_types_walk): Always consider
22437 function-local extern declarations as used.
22438
22439 2019-06-21 Richard Biener <rguenther@suse.de>
22440
22441 PR tree-optimization/90913
22442 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
22443 the scalar variant of if-conversion versioning.
22444
22445 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22446
22447 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
22448 create another "omp scan inscan exclusive" array if
22449 !ctx->scan_inclusive.
22450 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
22451 (lower_omp_scan): Likewise.
22452 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
22453 2-bit bitfield for simd_lane_access_p member.
22454 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
22455 aux == (void *)-4 as simd lane access.
22456 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
22457 comment with permutations to show the canonical permutation order.
22458 (vectorizable_scan_store): Handle exclusive scan.
22459 (vectorizable_store): Call vectorizable_scan_store even for
22460 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
22461
22462 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22463 "omp simd array" arrays with one byte elements.
22464
22465 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
22466
22467 * config/alpha/alpha.md (@unaligned_store<mode>):
22468 Rename from unaligned_store<mode>.
22469 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
22470 * config/alpha/sync.md (@load_locked_<mode>): Rename
22471 from load_locked_<mode>.
22472 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
22473 (@atomic_compare_and_swap<mode>_1): Rename
22474 from atomic_compare_and_swap<mode>_1.
22475 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
22476 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
22477 Use gen_reload_in_aligned and gen_unaligned_store.
22478 (emit_load_locked): Remove.
22479 (emit_store_conditional): Ditto.
22480 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
22481 (alpha_split_compare_and_swap): Ditto.
22482 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
22483 (alpha_split_compare_and_swap_12): Use gen_load_locked
22484 and gen_store_conditional.
22485 (alpha_split_atomic_exchange): Ditto.
22486 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
22487 (alpha_split_atomic_exchange_12): Use gen_load_locked
22488 and gen_store_conditional.
22489
22490 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
22491
22492 * config/aarch64/aarch64-errata.h: New file.
22493 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
22494 (CA53_ERR_843419_SPEC): Delete.
22495 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
22496 * config/aarch64/aarch64-linux.h: Likewise.
22497 * config/aarch64/aarch64-netbsd.h: Likewise.
22498 * config/aarch64/aarch64-freebsd.h: Likewise.
22499
22500 2019-06-20 Marek Polacek <polacek@redhat.com>
22501
22502 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
22503
22504 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
22505
22506 * config/rs6000/rs6000.md (isa attribute): Add support for
22507 for a future processor.
22508
22509 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
22510
22511 PR target/54855
22512 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
22513 standard scalar operation pattern for V2DF.
22514 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
22515 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
22516 (*ieee_<ieee_maxmin><mode>3): Likewise.
22517 (vec_setv2df_0): Likewise.
22518
22519 2019-06-20 Jan Hubicka <jh@suse.cz>
22520
22521 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
22522 parameter; it has no use in gimple memory model.
22523 (indirect_ref_may_alias_decl_p): Update.
22524
22525 2019-06-20 Martin Liska <mliska@suse.cz>
22526
22527 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
22528 to 10.
22529
22530 2019-06-20 Jakub Jelinek <jakub@redhat.com>
22531
22532 * tree-vect-stmts.c (enum scan_store_kind): New type.
22533 (scan_store_can_perm_p): Change last argument from int * to
22534 vec<enum scan_store_kind> *, record precisely which permutations
22535 need whole vector left shift or that plus VEC_COND_EXPR.
22536 (vectorizable_scan_store): Adjust caller, use whole vector left shift
22537 and additional VEC_COND_EXPR only for those iterations that need it.
22538
22539 2019-06-20 Alexandre Oliva <oliva@adacore.com>
22540
22541 * config.gcc: Fix ARM --with-fpu checking and error message.
22542
22543 2019-06-19 Marek Polacek <polacek@redhat.com>
22544
22545 PR c++/60364 - noreturn after first decl not diagnosed.
22546 * attribs.c (get_attribute_namespace): No longer static.
22547 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
22548 attributes.
22549 (attr_noreturn_exclusions): Make it extern.
22550 * attribs.h (get_attribute_namespace): Declare.
22551 * tree-inline.c (function_attribute_inlinable_p): Use
22552 get_attribute_name.
22553
22554 2019-06-19 Martin Sebor <msebor@redhat.com>
22555
22556 PR tree-optimization/90626
22557 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
22558
22559 PR tree-optimization/90626
22560 * tree-ssa-strlen.c (strxcmp_unequal): New function.
22561 (handle_builtin_string_cmp): Call it.
22562
22563 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22564
22565 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
22566 and DARWIN_NOPIE_SPEC.
22567 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
22568 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
22569 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
22570 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
22571 (DARWIN_EXPORT_DYNAMIC): Delete.
22572 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
22573 and pie options processing to darwin.h.
22574 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
22575
22576 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22577
22578 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
22579 in computing the number of options to be moved.
22580
22581 2019-06-19 Maya Rashish <coypu@sdf.org>
22582
22583 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
22584 (CLEAR_INSN_CACHE) Use it.
22585
22586 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
22587
22588 * config/i386/i386.md (cmpstrnsi): Remove dead code.
22589
22590 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
22591
22592 PR middle-end/84521
22593 * builtins.c (expand_builtin_setjmp_setup): Save
22594 hard_frame_pointer_rtx.
22595 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
22596 restore fp.
22597 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
22598 non-local goto.
22599 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
22600 elimination code.
22601 (remove_reg_equal_offset_note): Remove unused function.
22602 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
22603 code.
22604 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22605 (arc_builtin_setjmp_frame_value): Remove function.
22606 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22607 (avr_builtin_setjmp_frame_value): Remove function.
22608 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22609 (ix86_builtin_setjmp_frame_value): Remove function.
22610 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
22611 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22612 (sparc_builtin_setjmp_frame_value): Remove function.
22613 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22614 (vax_builtin_setjmp_frame_value): Remove function.
22615 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
22616 pointer if has_nonlocal_label.
22617
22618 2019-06-19 Jakub Jelinek <jakub@redhat.com>
22619
22620 * doc/md.texi: Document vec_shl_<mode> pattern.
22621 * optabs.def (vec_shl_optab): New optab.
22622 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
22623 argument, if == vec_shl_optab, check for left whole vector shift
22624 pattern rather than right shift.
22625 (expand_vec_perm_const): Add vec_shl_optab support.
22626 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
22627 in the comment.
22628 * tree-vect-generic.c (lower_vec_perm): Support permutations which
22629 can be handled by vec_shl_optab.
22630 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
22631 (check_scan_store): Use it.
22632 (vectorizable_scan_store): If target can't do normal permutations,
22633 try to use whole vector left shifts and if needed a VEC_COND_EXPR
22634 after it.
22635 * config/i386/sse.md (vec_shl_<mode>): New expander.
22636
22637 * omp-low.c (lower_rec_input_clauses): Handle references properly
22638 in inscan clauses.
22639 (lower_omp_scan): Likewise.
22640
22641 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22642
22643 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
22644 mem_mode is BLKmode.
22645
22646 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
22647
22648 PR target/90922
22649 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
22650 pointer adjustment for the case of no callee-saved registers and
22651 stack frame bigger than 128 bytes.
22652
22653 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
22654
22655 PR middle-end/90862
22656 * omp-low.c (check_omp_nesting_restrictions): Handle
22657 GF_OMP_TARGET_KIND_OACC_DECLARE.
22658
22659 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
22660
22661 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
22662 (@add<mode>3_carry): Rename from add<mode>3_carry.
22663 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
22664 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
22665 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
22666 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
22667 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
22668 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
22669 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
22670 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
22671 (cmpstrnsi): Use gen_cmp_1.
22672 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
22673 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
22674 (@umonitor_<mode>): Rename from umonitor_<mode>.
22675 * config/i386/i386-expand.c (ix86_expand_copysign):
22676 Use gen_copysign3_const and gen_copysign3_var.
22677 (ix86_expand_xorsign): Use gen_xorsign3_1.
22678 (ix86_expand_branch): Use gen_sub3_carry_ccc,
22679 gen_sub3_carry_ccgz and gen_cmp1.
22680 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
22681 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
22682 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
22683 (ix86_split_lshr): Ditto.
22684 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
22685
22686 2019-06-18 Jason Merrill <jason@redhat.com>
22687
22688 * tree.c (build_constructor): Add MEM_STAT_DECL.
22689
22690 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22691
22692 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
22693 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
22694 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
22695 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
22696 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
22697 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
22698 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
22699 Use CC_NZC instead of CC.
22700 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
22701 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
22702 (aarch64_print_operand): Handle E_CC_NZCmode.
22703 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
22704 of gen_set_clobber_cc.
22705
22706 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22707
22708 * config/aarch64/aarch64-sve.md: Tabify file.
22709
22710 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22711
22712 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
22713 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
22714 * config/aarch64/aarch64-sve.md: Use it.
22715
22716 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22717
22718 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
22719 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
22720 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
22721 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
22722 (aarch64_expand_sve_vec_cmp_int): Use it.
22723 (aarch64_expand_sve_vec_cmp_float): Likewise.
22724 * config/aarch64/aarch64-sve.md: Likewise throughout.
22725
22726 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22727 Kugan Vivekanandarajah <kuganv@linaro.org>
22728
22729 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
22730 (*cond_<optab><mode>_z): Fold into...
22731 (*cond_<optab><mode>_any): ...here. Also handle cases in which
22732 operand 4 can be tied to operand 0 (either inherently or via RA).
22733
22734 2019-06-18 Richard Biener <rguenther@suse.de>
22735
22736 PR debug/90900
22737 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
22738 as if optimized away.
22739
22740 2019-06-18 Tom de Vries <tdevries@suse.de>
22741
22742 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
22743 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
22744 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
22745 Rename to ...
22746 (define_insn "@set_softstack_<mode>"): ... this.
22747 (define_insn "omp_simt_enter_<mode>"): Rename to ...
22748 (define_insn "@omp_simt_enter_<mode>"): ... this.
22749 (define_insn "omp_simt_exit_<mode>"): Rename to ...
22750 (define_insn "@omp_simt_exit_<mode>"): ... this.
22751
22752 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22753
22754 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
22755 vf parameter. Restore the previous iv step of nscalars_step,
22756 but give it iv_type rather than compare_type. Tweak code order
22757 to match the comments.
22758 (vect_set_loop_condition_masked): Update accordingly.
22759 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
22760 for iv_precision. Tweak comment formatting.
22761
22762 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22763
22764 * config/darwin.c: Strip trailing whitespace.
22765
22766 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22767
22768 * config/darwin.c (darwin_emit_unwind_label): New default to false.
22769 (darwin_override_options): Set darwin_emit_unwind_label as needed.
22770
22771 2019-06-18 Martin Jambor <mjambor@suse.cz>
22772
22773 PR ipa/90889
22774 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
22775 caller does not have flag_ipa_cp set.
22776
22777 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22778
22779 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
22780 from "*fold_left_plus_<mode>", updated operands order.
22781 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
22782 * internal-fn.c (mask_fold_left_direct): New define.
22783 (expand_mask_fold_left_optab_fn): Likewise.
22784 (direct_mask_fold_left_optab_supported_p): Likewise.
22785 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
22786 * optabs.def (mask_fold_left_plus_optab): New optab.
22787 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
22788 masked internal_fn for a reduction ifn.
22789 (vectorize_fold_left_reduction): Add support for masking reductions.
22790
22791 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
22792
22793 PR middle-end/80791
22794 * target.def (predict_doloop_p): New hook.
22795 * targhooks.h (default_predict_doloop_p): New declaration.
22796 * targhooks.c (default_predict_doloop_p): New function.
22797 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
22798 * doc/tm.texi: Regenerate.
22799 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
22800 (TARGET_PREDICT_DOLOOP_P): New macro.
22801 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
22802
22803 2019-06-17 Jakub Jelinek <jakub@redhat.com>
22804
22805 * omp-low.c (struct omp_context): Add scan_inclusive field.
22806 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
22807 if inclusive scan.
22808 (struct omplow_simd_context): Add lastlane member.
22809 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
22810 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
22811 1 or 2 argument.
22812 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
22813 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
22814 (lower_omp_scan): New function.
22815 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
22816 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
22817 check 3rd argument if present rather than 2nd.
22818 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
22819 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
22820 2-bit bitfield.
22821 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22822 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
22823 than 2nd.
22824 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
22825 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
22826 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
22827 init.
22828 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
22829 IFN_GOMP_SIMD_LANE argument.
22830 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
22831 encoded ->aux value.
22832 * tree-vect-stmts.c: Include attribs.h.
22833 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
22834 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
22835 functions.
22836 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
22837 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
22838
22839 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
22840
22841 PR target/62055
22842 * config/i386/i386.md (*nabstf2_1): New insn pattern.
22843 (*nabs<mode>2_1): Ditto.
22844 (nabs sse-reg splitter): New splitter.
22845 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
22846
22847 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22848
22849 PR bootstrap/90873.
22850 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
22851 TMR index check.
22852
22853 2019-06-17 Tom de Vries <tdevries@suse.de>
22854
22855 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
22856 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
22857 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
22858 ...
22859 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
22860 match_operand 0.
22861 (define_insn "omp_simt_enter_insn"): Rename to ...
22862 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
22863 match_operand 0, 1 and 2, as well as the unspec_volatile result.
22864 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
22865 gen_omp_simt_enter_si.
22866 (define_expand "omp_simt_exit"): New.
22867 (define_insn "omp_simt_exit"): Rename to ...
22868 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
22869 match_operand 0.
22870
22871 2019-06-17 Matthew Green <mrg@eterna.com.au>
22872 Maya Rashish <coypu@sdf.org>
22873
22874 * config.gcc (aarch64*-*-netbsd*): New target.
22875 * config/aarch64/aarch64-netbsd.h: New file.
22876 * config/aarch64/t-aarch64-netbsd: Likewise.
22877
22878 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22879
22880 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
22881 the access path from base to first VIEW_CONVERT_EXPR or
22882 BIT_FIELD_REF.
22883
22884 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22885
22886 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
22887 access path on BIT_FIELD_REFs.
22888
22889 2019-06-17 Martin Liska <mliska@suse.cz>
22890
22891 PR ipa/90874
22892 * ipa-utils.h (odr_type_p): Remove dead code.
22893
22894 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22895
22896 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
22897 alternative Solaris 11.4 format.
22898 * configure: Regenerate.
22899
22900 2019-06-17 Tom de Vries <tdevries@suse.de>
22901
22902 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
22903 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
22904 match_operand 0.
22905 (define_insn "call_value_insn"): Rename to ...
22906 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
22907 match_operand 0.
22908 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
22909 DI.
22910
22911 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
22912
22913 PR middle-end/64242
22914 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
22915 frame clobbers and schedule block.
22916 (builtin_longjmp): Likewise.
22917
22918 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22919
22920 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
22921 describe how to perform MSPABI compliant 64-bit shift.
22922 * config/msp430/msp430.md (ashldi3): New define_expand.
22923 (ashrdi3): New define_expand.
22924 (lshrdi3): New define_expand.
22925
22926 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22927
22928 * doc/sourcebuild.texi: Document new effective target keyword
22929 longlong64.
22930
22931 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22932
22933 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
22934 indirect_refs_may_alias_p): Revert accidental commits.
22935
22936 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
22937 at the end of structures.
22938
22939 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22940
22941 * config/darwin.c (machopic_indirect_call_target): Use renamed
22942 darwin_picsymbol_stubs to decide on output.
22943 (darwin_override_options): Handle darwin_picsymbol_stubs.
22944 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
22945 (LD64_VERSION): Revise default.
22946 * config/darwin.opt: (mpic-symbol-stubs): New option.
22947 (darwin_picsymbol_stubs): New variable.
22948 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
22949 rename to TARGET_MACHO_PICSYM_STUBS.
22950 * config/i386/i386.c (output_pic_addr_const): Likewise.
22951 * config/i386/i386.h Likewise.
22952 * config/rs6000/darwin.h: Likewise.
22953 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
22954 darwin_picsymbol_stubs.
22955
22956 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22957
22958 * config/darwin.opt (prebind, noprebind, seglinkedit,
22959 noseglinkedit): Add RejectNegative.
22960
22961 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22962
22963 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
22964 in my previous patch.
22965
22966 2019-06-16 Tom de Vries <tdevries@suse.de>
22967
22968 PR tree-optimization/89376
22969 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
22970
22971 2019-06-15 Maya Rashish <coypu@sdf.org>
22972
22973 * doc/invoke.texi (Spec Files): Update location of the
22974 Fortran spec file.
22975
22976 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
22977
22978 * doc/extend.texi (Common Function Attributes): Clarify
22979 no_sanitize. Fix grammar.
22980
22981 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
22982
22983 * tree-ssa-alias.c (alias_stats): Add
22984 nonoverlapping_component_refs_p_may_alias,
22985 nonoverlapping_component_refs_p_no_alias,
22986 nonoverlapping_component_refs_of_decl_p_may_alias,
22987 nonoverlapping_component_refs_of_decl_p_no_alias.
22988 (dump_alias_stats): Dump them.
22989 (nonoverlapping_component_refs_of_decl_p): Add stats.
22990 (nonoverlapping_component_refs_p): Add stats; do not stop on first
22991 ARRAY_REF.
22992
22993 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
22994
22995 * config/i386/i386.md (and<mode>3): Generate zero-extends for
22996 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
22997 only.
22998 (*anddi3_doubleword): Split before reload. Merge with
22999 anddi->zext pre-reload splitter.
23000 (*andndi3_doubleword): Split before reload.
23001 (*<code>di3_doubleword): Ditto.
23002 (*one_cmpldi2_doubleword): Ditto.
23003
23004 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23005
23006 PR middle-end/90779
23007 * gimplify.c: Include omp-offload.h and context.h.
23008 (gimplify_bind_expr): Add "omp declare target" attributes
23009 to static block scope variables inside of target region or target
23010 functions.
23011
23012 2019-06-15 Tom de Vries <tdevries@suse.de>
23013
23014 PR tree-optimization/90009
23015 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23016 Return NULL if bb contains IFN_UNIQUE.
23017
23018 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23019
23020 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23021 (un): New define_mode_attr.
23022 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23023 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23024 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23025 merge into ...
23026 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23027
23028 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23029
23030 * config/darwin.opt: Add RejectNegative where needed, reorder
23031 and add minimal functional descriptions.
23032
23033 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23034
23035 PR rtl-optimization/90765
23036 * calls.c (update_stack_alignment_for_call): New function.
23037 (expand_call): Call update_stack_alignment_for_call when
23038 outgoing parameter is passed in the stack.
23039 (emit_library_call_value_1): Likewise.
23040 * function.c (locate_and_pad_parm): Don't update
23041 stack_alignment_needed and preferred_stack_boundary.
23042
23043 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23044
23045 PR target/90877
23046 * config/i386/i386-features.c
23047 (dimode_scalar_chain::compute_convert_gain): Replace
23048 mmxsse_to_integer with sse_to_integer.
23049 * config/i386/i386.c (ix86_register_move_cost): Verify that
23050 moves between MMX and non-MMX units require secondary memory.
23051 Correct costs of moves between SSE and integer units.
23052 * config/i386/i386.h (processor_costs): Rename cost of moving
23053 SSE register to integer to sse_to_integer. Rename cost of
23054
23055 2019-06-14 Matt Thomas <matt@3am-software.com>
23056 Matthew Green <mrg@eterna.com.au>
23057 Nick Hudson <skrll@netbsd.org>
23058 Maya Rashish <coypu@sdf.org>
23059 Richard Earnshaw <rearnsha@arm.com>
23060
23061 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23062 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23063 * config/arm/netbsd-eabi.h: New file.
23064 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23065 redefining.
23066 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23067 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23068 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23069 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23070
23071 2019-06-14 Richard Biener <rguenther@suse.de>
23072
23073 * tree-loop-distribution.c (classify_partition): Return
23074 whether a reduction appeared in all partitions and do not
23075 stop builtin detection because of this.
23076 (distribute_loop): Sort a non-builtin partition last if
23077 there's a reduction in all partitions and make sure the
23078 partition prevailing as last is not a builtin.
23079
23080 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23081
23082 PR ipa/90401
23083 * ipa-prop.c (add_to_agg_contents_list): New function.
23084 (clobber_by_agg_contents_list_p): Likewise.
23085 (extract_mem_content): Likewise.
23086 (get_place_in_agg_contents_list): Delete.
23087 (determine_known_aggregate_parts): Renamed from
23088 determine_locally_known_aggregate_parts. New parameter
23089 aa_walk_budget_p.
23090
23091 2019-06-13 Martin Sebor <msebor@redhat.com>
23092
23093 PR tree-optimization/90662
23094 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23095 to the same type.
23096
23097 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23098
23099 PR bootstrap/90873
23100 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23101 dbase is not TARGET_MEM_REF.
23102
23103 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23104
23105 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23106 Update all uses.
23107 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23108 Do not generate DImode extends for 32bit targets.
23109 (and->zext post-reload splitter): Use gen_extend_insn
23110 instead of indirect functions.
23111 (anddi->zext pre-reload splitter): New.
23112 (*zext<mode>_doubleword_and): Remove.
23113 (*zext<mode>_doubleword): Ditto.
23114 (*zextsi_doubleword): Dittto.
23115
23116 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23117
23118 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23119 Use gen_sub3_insn instead of indirect function.
23120 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23121 indirect function.
23122 (ix86_adjust_counter): Ditto.
23123
23124 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23125 Lijia He <helijia@linux.ibm.com>
23126
23127 PR tree-optimization/77820
23128 * tree-ssa-threadedge.c
23129 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23130 function.
23131 (thread_across_edge): Add call to
23132 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23133
23134 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23135
23136 * config/darwin-driver.c (validate_macosx_version_min): New.
23137 (darwin_default_min_version): Cleanup and validate supplied version.
23138 (darwin_driver_init): Likewise and push cleaned version into opts.
23139
23140 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23141
23142 PR tree-optimization/90869
23143 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23144 converts in MEM_REF referencing decl rather than view converts
23145 from decl type to MEM_REF type.
23146
23147 2019-06-13 Richard Biener <rguenther@suse.de>
23148
23149 PR tree-optimization/90856
23150 * tree-sra.c (build_ref_for_model): Only use
23151 build_reconstructed_reference when address-spaces are the same.
23152
23153 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23154
23155 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23156 wrap ei variable name in the declaration in ()s.
23157 (nvptx_single): Actually use mode_label variable. Formatting fix.
23158
23159 2019-06-13 Richard Biener <rguenther@suse.de>
23160
23161 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23162 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23163 also return the condition stmt.
23164 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23165 loop we can version and version that, reusing the loop version
23166 created by if-conversion instead of versioning again.
23167
23168 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23169
23170 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23171 may_contain_p.
23172 * tree-vrp (value_range_base::may_contain_p): Call into
23173 value_inside_range.
23174 (value_inside_range): Make private inside value_range_base class.
23175 Take min/max from *this.
23176 (range_includes_p): Remove.
23177 * tree-vrp.h (value_range_base): Add value_inside_range.
23178 (range_includes_p): Remove.
23179 (range_includes_zero_p): Call may_contain_p.
23180 * vr-values.c (compare_range_with_value): Same.
23181
23182 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23183
23184 * doc/extend.texi (ARC Function Attributes): Update info.
23185
23186 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23187
23188 PR tree-optimization/89713
23189 * doc/invoke.texi (-ffinite-loops): Document new option.
23190 * common.opt (-ffinite-loops): New option.
23191 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23192 IFN_GOACC_LOOP calls as necessary.
23193 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23194 is finite.
23195 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23196 IFN_GOACC_LOOP call is not used.
23197 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23198
23199 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23200
23201 PR target/88838
23202 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23203 compare_type is not with Pmode size, we will create an IV with
23204 Pmode size with truncated use (i.e. converted to the correct type).
23205 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23206 (vect_iv_limit_for_full_masking): New. Factored out of
23207 vect_set_loop_condition_masked.
23208 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23209 (vect_iv_limit_for_full_masking): Declare.
23210
23211 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23212
23213 PR target/88834
23214 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23215 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23216 (get_alias_ptr_type_for_ptr_address): Likewise.
23217 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23218 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23219 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23220 allow_reg_index_p.
23221
23222 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23223
23224 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23225
23226 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23227
23228 * common/config/pru/pru-common.c: New file.
23229 * config.gcc: Add PRU target.
23230 * config/pru/alu-zext.md: New file.
23231 * config/pru/constraints.md: New file.
23232 * config/pru/predicates.md: New file.
23233 * config/pru/pru-opts.h: New file.
23234 * config/pru/pru-passes.c: New file.
23235 * config/pru/pru-pragma.c: New file.
23236 * config/pru/pru-protos.h: New file.
23237 * config/pru/pru.c: New file.
23238 * config/pru/pru.h: New file.
23239 * config/pru/pru.md: New file.
23240 * config/pru/pru.opt: New file.
23241 * config/pru/t-pru: New file.
23242 * doc/extend.texi: Document PRU pragmas.
23243 * doc/invoke.texi: Document PRU-specific options.
23244 * doc/md.texi: Document PRU asm constraints.
23245
23246 2019-06-12 Martin Sebor <msebor@redhat.com>
23247
23248 PR middle-end/90676
23249 * tree-pretty-print.c (dump_mem_ref): New function. Include
23250 MEM_REF type in output when different size than operand.
23251 (dump_generic_node): Move code to dump_mem_ref and call it.
23252
23253 2019-06-12 Martin Sebor <msebor@redhat.com>
23254
23255 PR tree-optimization/90662
23256 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23257 to arrays.
23258
23259 2019-06-12 Tom de Vries <tdevries@suse.de>
23260
23261 PR tree-optimization/90009
23262 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23263
23264 2019-06-12 Martin Liska <mliska@suse.cz>
23265
23266 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23267 the created map.
23268 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23269 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23270 Do not sanitize created maps.
23271
23272 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23273
23274 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23275 value_range::singleton_p.
23276 * tree-vrp.c (value_range_constant_singleton): Remove.
23277 * tree-vrp.h (value_range_constant_singleton): Remove.
23278 * vr-values.c (vr_values::singleton): Use
23279 value_range::singleton_p.
23280
23281 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23282
23283 PR target/90811
23284 * cfgexpand.c (align_local_variable): Add really_expand argument,
23285 don't SET_DECL_ALIGN if it is false.
23286 (add_stack_var): Add really_expand argument, pass it through to
23287 align_local_variable.
23288 (expand_one_stack_var_1): Pass true as really_expand to
23289 align_local_variable.
23290 (expand_one_ssa_partition): Pass true as really_expand to
23291 add_stack_var.
23292 (expand_one_var): Pass really_expand through to add_stack_var.
23293
23294 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23295
23296 * config/arm/iterators.md (VABAL): New int iterator.
23297 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23298 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23299 UNSPEC_VABAL_U values.
23300
23301 2019-06-12 Martin Liska <mliska@suse.cz>
23302
23303 * value-prof.c (stream_out_histogram_value): Only first value
23304 can't be negative.
23305
23306 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23307
23308 PR c/90760
23309 * symtab.c (symtab_node::set_section): Allow being called on aliases
23310 as long as they aren't analyzed yet.
23311
23312 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23313
23314 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23315 to `mips_set_text_contents_type' to indicate whether a
23316 non-debug insn follows.
23317
23318 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23319
23320 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23321 enabling -mpcrel by default.
23322 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23323 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23324 that the test against -mcpu=future is done first. Then test if
23325 -mprefixed-addr is on for -mpcrel.
23326 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23327
23328 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23329
23330 PR target/90811
23331 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23332 instead of and.u%d.
23333
23334 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23335
23336 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23337
23338 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
23339
23340 PR c++/90449 - add -Winaccessible-base option.
23341 * doc/invoke.texi (Winaccessible-base): Document.
23342
23343 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23344
23345 PR tree-optimization/62041
23346 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23347
23348 2019-06-11 Jason Merrill <jason@redhat.com>
23349
23350 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23351 * tree.c (get_tree_code_name): Likewise.
23352 * print-tree.c (print_node): Only briefly print a node with an
23353 invalid code.
23354
23355 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23356
23357 PR bootstrap/90819
23358 * trans-mem.c (tm_memopt_compute_available): Add assertion
23359 that blocks is not empty. Formatting fix.
23360
23361 2019-06-11 Martin Liska <mliska@suse.cz>
23362
23363 PR c++/87847
23364 * hash-table.h: Extend create_gcc, add one parameter
23365 that is passed into hash_table::hash_table.
23366
23367 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
23368
23369 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23370 New prototype.
23371 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23372 Emit clobber also for non-sse operations.
23373 (ix86_split_fp_absneg_operator): New function.
23374 * config/i386/i386.md (SSEMODEF): New mode iterator.
23375 (ssevecmodef): New mode attribute.
23376 (<code>tf2): Use absneg code iterator.
23377 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23378 Add three-operand AVX alternatives.
23379 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
23380 Use absneg code iterator and X87MODEF mode iterator.
23381 (absneg fp_reg non-sse splitter): Call absneg code iterator
23382 and X87MODEF mode iterator.
23383 (absneg general_reg non-sse splitter): Use absneg code iterator
23384 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
23385 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
23386 code iterator. Add three-operand AVX alternative.
23387 (absneg sse_reg splitter): Use absneg code iterator
23388 and SSEMODEF mode iterator. Handle AVX operands.
23389 (absneg fp_reg splitter): Use absneg code iterator
23390 and MODEF mode iterator.
23391 (absneg general_reg splitter): Merge splitters using MODEF mode
23392 iterator. Use absneg code iterator. Call
23393 ix86_split_fp_absneg_operator.
23394 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
23395 Do not enable for non-sse modes before reload.
23396 (CSGNMODE): Remove.
23397 (CSGNVMODE): Ditto.
23398 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
23399 ssevecmodef mode attribute instaed of CSGNVMODE.
23400 (copysign<mode>3_const): Ditto.
23401 (copysign<mode>3_var): Ditto.
23402 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
23403 Use absneg code iterator. Simplify code using std::swap.
23404 * config/i386/predicates.md (absneg_operator): Remove.
23405
23406 2019-06-10 Martin Sebor <msebor@redhat.com>
23407
23408 * gimple-fold.c (get_range_strlen): Update comment that didn't
23409 make it into r267503 or related commits.
23410
23411 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
23412
23413 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
23414 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
23415
23416 2019-06-10 Jakub Jelinek <jakub@redhat.com>
23417
23418 * tree.def (OMP_SCAN): New tree code.
23419 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
23420 OMP_CLAUSE_EXCLUSIVE.
23421 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
23422 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
23423 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
23424 OMP_CLAUSE_{IN,EX}CLUSIVE.
23425 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23426 * tree-nested.c (convert_nonlocal_reference_stmt,
23427 convert_local_reference_stmt, convert_gimple_call): Handle
23428 GIMPLE_OMP_SCAN.
23429 * tree-pretty-print.c (dump_omp_clause): Handle
23430 OMP_CLAUSE_{IN,EX}CLUSIVE.
23431 (dump_generic_node): Handle OMP_SCAN.
23432 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
23433 * gimple.h (gomp_scan): New type.
23434 (is_a_helper <gomp_scan *>::test,
23435 is_a_helper <const gomp_scan *>::test): New templates.
23436 (gimple_build_omp_scan): Declare.
23437 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
23438 gimple_omp_scan_set_clauses): New inline functions.
23439 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
23440 * gimple.c (gimple_build_omp_scan): New function.
23441 (gimple_copy): Handle GIMPLE_OMP_SCAN.
23442 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
23443 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
23444 GIMPLE_OMP_TASKGROUP.
23445 (dump_gimple_omp_scan): New function.
23446 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
23447 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
23448 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
23449 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
23450 (is_gimple_stmt): Handle OMP_SCAN.
23451 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
23452 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23453 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
23454 mentioned in nested #pragma omp scan. Handle
23455 OMP_CLAUSE_{IN,EX}CLUSIVE.
23456 (gimplify_expr): Handle OMP_SCAN.
23457 * omp-low.c (check_omp_nesting_restrictions): For parent context,
23458 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
23459 simd constructs.
23460 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
23461 GIMPLE_OMP_SCAN.
23462
23463 2019-06-10 Martin Liska <mliska@suse.cz>
23464
23465 * ipa-cp.c (ignore_edge_p): New function.
23466 (build_toporder_info): Use it.
23467 * ipa-inline.c (ignore_edge_p): New function.
23468 (inline_small_functions): Use it.
23469 * ipa-pure-const.c (ignore_edge_for_nothrow):
23470 Verify opt_for_fn for caller and callee.
23471 (ignore_edge_for_pure_const): Likewise.
23472 * ipa-reference.c (ignore_edge_p): Extend to check
23473 for opt_for_fn.
23474 * ipa-utils.c (searchc): Refactor.
23475 * ipa-utils.h: Fix coding style.
23476
23477 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23478
23479 * config/arc/arc.c (arc_rtx_costs): Update costs.
23480
23481 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23482
23483 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
23484 (arc_split_ior): Likewise.
23485 (arc_check_mov_const): Likewise.
23486 (arc_split_mov_const): Likewise.
23487 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
23488 (arc_rtx_costs): Replace check Crr with Cax constraint.
23489 (prepare_move_operands): Cleanup, remove unused code.
23490 (arc_split_ior): New function.
23491 (arc_check_ior_const): Likewise.
23492 (arc_split_mov_const): Likewise.
23493 (arc_check_mov_const): Likewise.
23494 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
23495 in define_insn_and_split pattern.
23496 (iorsi3): Likewise.
23497 (mulsi3_v2): Add new matching variant.
23498 (andsi3_i): Cleanup pattern.
23499 (rotrsi3_cnt1): Update pattern.
23500 (rotrsi3_cnt8): New pattern.
23501 (ashlsi2_cnt8): Likewise.
23502 (ashlsi2_cnt16): Likewise.
23503 * config/arc/constraints.md (C0p): Update constraint.
23504 (Crr): Remove it.
23505 (C0x): New pattern.
23506 (Cax): New pattern.
23507
23508 2019-06-10 Martin Liska <mliska@suse.cz>
23509
23510 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
23511 Update coding style.
23512 (sem_item_optimizer::dump_cong_classes):
23513 Print how many items are in a non-singular class. Improve
23514 coding style.
23515
23516 2019-06-10 Martin Liska <mliska@suse.cz>
23517
23518 * value-prof.c (dump_histogram_value): Change dump format.
23519 (gimple_mod_subtract_transform): Remove legacy comment.
23520
23521 2019-06-10 Martin Liska <mliska@suse.cz>
23522
23523 * value-prof.c (dump_histogram_value): Print histogram values
23524 only if present.
23525
23526 2019-06-10 Martin Liska <mliska@suse.cz>
23527
23528 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
23529 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
23530 * ipa-profile.c (ipa_profile_generate_summary):
23531 Use get_most_common_single_value.
23532 * tree-profile.c (gimple_init_gcov_profiler):
23533 Instrument with __gcov_one_value_profiler_v2
23534 and __gcov_indirect_call_profiler_v4.
23535 * value-prof.c (dump_histogram_value):
23536 Print all values for HIST_TYPE_SINGLE_VALUE.
23537 (stream_out_histogram_value): Update assert for
23538 N values.
23539 (stream_in_histogram_value): Set number of
23540 counters for HIST_TYPE_SINGLE_VALUE.
23541 (get_most_common_single_value): New.
23542 (gimple_divmod_fixed_value_transform):
23543 Use get_most_common_single_value.
23544 (gimple_ic_transform): Likewise.
23545 (gimple_stringops_transform): Likewise.
23546 (gimple_find_values_to_profile): Set number
23547 of counters for HIST_TYPE_SINGLE_VALUE.
23548 * value-prof.h (get_most_common_single_value): New.
23549
23550 2019-06-10 Martin Liska <mliska@suse.cz>
23551
23552 * hash-map.h: Pass default value to hash_table ctor.
23553 * hash-table.h: Add default value to call of a ctor.
23554
23555 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
23556
23557 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
23558 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
23559
23560 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
23561
23562 PR target/90751
23563 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
23564 Call pa_output_function_label.
23565 (TARGET_ASM_FUNCTION_PROLOGUE): define.
23566 * config/pa/pa-protos.h (pa_output_function_label): Declare.
23567 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
23568 to declaration.
23569 (pa_linux_output_function_prologue): Declare.
23570 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
23571 (pa_output_function_label): New.
23572 (pa_output_function_prologue): Revise to use pa_output_function_label.
23573 (pa_linux_output_function_prologue): New.
23574 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
23575
23576 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
23577
23578 * tree-vrp.h (value_range_base::intersect): New.
23579 (value_range::intersect_helper): Move from here...
23580 (value_range_base::intersect_helper): ...to here.
23581 * tree-vrp.c (value_range::intersect_helper): Rename to...
23582 (value_range_base::intersect_helper): ...this, and rewrite to
23583 return a value instead of modifying THIS in place.
23584 Also, move equivalence handling...
23585 (value_range::intersect): ...here, while calling intersect_helper.
23586 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
23587 calling intersect.
23588 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
23589 Same.
23590 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
23591
23592 2019-06-07 Jakub Jelinek <jakub@redhat.com>
23593
23594 * Makefile.in (genprogerr): Add condmd.
23595 (genprog): Remove it here.
23596
23597 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
23598
23599 * doc/invoke.texi (AMD GCN Options): Add gfx906.
23600
23601 2019-06-07 Richard Biener <rguenther@suse.de>
23602
23603 PR debug/90574
23604 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
23605 that appear after user labels.
23606
23607 2019-06-07 Martin Liska <mliska@suse.cz>
23608
23609 * cselib.c (cselib_init): Disable hash table
23610 sanitization.
23611 * hash-set.h: Pass new default argument to m_table.
23612 * hash-table.c: Add global variable with hash table
23613 sanitization limit.
23614 * hash-table.h (Allocator>::hash_table): Add new argument
23615 to ctor.
23616 (hashtab_chk_error): New.
23617 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
23618 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
23619 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
23620
23621 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23622
23623 * common.opt (flto-odr-type-merging): Ignore.
23624 * invoke.texi (-flto-odr-type-merging): Remove.
23625 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
23626 (can_be_vtable_hashed_p): Remove.
23627 (hash_odr_vtable): Remove.
23628 (odr_vtable_hasher::hash): Remove.
23629 (types_same_for_odr): Remove.
23630 (types_odr_comparable): Remove.
23631 (odr_vtable_hasher::equal): Remove.
23632 (odr_vtable_hash_type, odr_vtable_hash): Remove.
23633 (add_type_duplicate): Do not synchronize vtable and name hashtables.
23634 (get_odr_type): Do not use vtable hash.
23635 (dump_odr_type): Remove commented out code.
23636 (build_type_inheritance_graph): Do not allocate vtable hash.
23637 (rebuild_type_inheritance_graph): Do not delete vtable hash.
23638 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
23639 (odr_type_p): Likewise.
23640 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
23641 test.
23642
23643 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23644
23645 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
23646 immediately after same_types_for_tbaa_p returns -1 and continue
23647 looking for possible exact match; if matching types are arrays
23648 watch for partial overlaps.
23649 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
23650 (indirect_refs_may_alias_p): Do type based disambiguation first;
23651 update comment.
23652
23653 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
23654
23655 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
23656
23657 2019-06-07 Martin Liska <mliska@suse.cz>
23658
23659 * doc/invoke.texi: Remove param.
23660 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
23661 Remove.
23662 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
23663 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
23664 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
23665 * profile.c (instrument_values): Remove
23666 HIST_TYPE_INDIR_CALL_TOPN.
23667 * tree-profile.c (init_ic_make_global_vars):
23668 Always build __gcov_indirect_call only.
23669 (gimple_init_gcov_profiler): Remove usage
23670 of PARAM_INDIR_CALL_TOPN_PROFILE.
23671 (gimple_gen_ic_profiler): Likewise.
23672 * value-prof.c (dump_histogram_value): Likewise.
23673 (stream_in_histogram_value): Likewise.
23674 (gimple_indirect_call_to_profile): Likewise.
23675 (gimple_find_values_to_profile): Likewise.
23676 * value-prof.h (enum hist_type): Likewise.
23677
23678 2019-06-07 Martin Liska <mliska@suse.cz>
23679
23680 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
23681 function.
23682
23683 2019-06-07 Martin Liska <mliska@suse.cz>
23684
23685 PR tree-optimization/78902
23686 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
23687 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
23688 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23689 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23690 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
23691 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23692 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
23693 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
23694 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23695 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23696 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23697 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
23698 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
23699 New.
23700 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
23701 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
23702 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
23703 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23704 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23705 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
23706 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23707 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23708 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
23709 warn_unused_result attribute.
23710 (BUILT_IN_STRDUP): Likewise.
23711 (BUILT_IN_STRNDUP): Likewise.
23712 (BUILT_IN_ALLOCA): Likewise.
23713 (BUILT_IN_CALLOC): Likewise.
23714 (BUILT_IN_MALLOC): Likewise.
23715 (BUILT_IN_REALLOC): Likewise.
23716
23717 2019-06-06 Jim Wilson <jimw@sifive.com>
23718
23719 PR target/89955
23720 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
23721 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
23722 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
23723
23724 2019-06-06 Martin Sebor <msebor@redhat.com>
23725
23726 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
23727 (handle_builtin_malloc): Remove trailing spaces.
23728 (handle_builtin_memset): Same.
23729 (handle_builtin_memcmp): Same.
23730 (compute_string_length): Same.
23731 (determine_min_objsize): Same.
23732 (handle_builtin_string_cmp): Same.
23733 (handle_char_store): Same. Break up excessively long line.
23734
23735 2019-06-06 Martin Jambor <mjambor@suse.cz>
23736
23737 * tree-sra.c (build_reconstructed_reference): Drop the alignment
23738 check.
23739
23740 2019-06-06 Martin Jambor <mjambor@suse.cz>
23741
23742 * tree-sra.c (struct access): New field grp_same_access_path.
23743 (dump_access): Dump it.
23744 (build_reconstructed_reference): New function.
23745 (build_ref_for_model): Use it if possible.
23746 (path_comparable_for_same_access): New function.
23747 (same_access_path_p): Likewise.
23748 (sort_and_splice_var_accesses): Set the new flag.
23749 (analyze_access_subtree): Likewise.
23750 (propagate_subaccesses_across_link): Propagate zero value of the new
23751 flag down the access tree.
23752
23753 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
23754
23755 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
23756 * config/gcn/gcn.opt (gpu_type): Add gfx906.
23757 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
23758 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
23759 Add gfx906.
23760
23761 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23762
23763 PR tree-optimization/90332
23764 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
23765 Handle VALS containing two vectors.
23766 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
23767 to...
23768 (@aarch64_combinez<mode>): ... This.
23769 (*aarch64_combinez_be<mode>): Rename to...
23770 (@aarch64_combinez_be<mode>): ... This.
23771 (vec_init<mode><Vhalf>): New define_expand.
23772 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
23773
23774 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23775
23776 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
23777 library functions only when not optimizing for size.
23778 (ashlsi3): Likewise.
23779 (ashrhi3): Likewise.
23780 (ashrsi3): Likewise.
23781 (lshrhi3): Likewise.
23782 (lshrsi3): Likewise.
23783
23784 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
23785
23786 PR rtl-optimization/88751
23787 * ira.c (ira): Use the number of the actually referenced registers
23788 when calculating the threshold.
23789
23790 2019-06-06 Jakub Jelinek <jakub@redhat.com>
23791
23792 * configure: Regenerate.
23793
23794 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23795
23796 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
23797 register if it is in memory, so the shift can be emulated with a rotate
23798 instruction.
23799 (ashrhi3): Likewise.
23800 (lshrhi3): Likewise.
23801
23802 2019-06-06 Martin Liska <mliska@suse.cz>
23803
23804 PR tree-optimization/87954
23805 * match.pd: Simplify mult where both arguments are 0 or 1.
23806
23807 2019-06-06 Richard Biener <rguenther@suse.de>
23808
23809 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
23810 put equivalences on UNDEFINED ranges.
23811 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
23812 Make sure to drop defs of stmts added during simplification
23813 to VARYING.
23814
23815 2019-06-06 Richard Biener <rguenther@suse.de>
23816
23817 * tree-ssa-structalias.c: Include tree-cfg.h.
23818 (make_heapvar): Do not make heap vars artificial.
23819 (find_func_aliases_for_builtin_call): Handle stack allocation
23820 functions.
23821 (find_func_aliases): Delay processing of simple enough returns
23822 in non-IPA mode.
23823 (set_uids_in_ptset): Adjust.
23824 (find_what_var_points_to): Likewise.
23825 (solve_constraints): Do not dump points-to sets here.
23826 (compute_points_to_sets): Post-process return statements,
23827 amending the escaped solution. Dump points-to sets afterwards.
23828 (ipa_pta_execute): Dump points-to sets.
23829
23830 2019-06-06 Martin Liska <mliska@suse.cz>
23831
23832 PR web/87933
23833 * doc/install.texi: Fix HTML headers and
23834 titles for 'Installing GCC' pages.
23835
23836 2019-06-06 Martin Liska <mliska@suse.cz>
23837
23838 * ipa-icf-gimple.h (dump_message_1): Remove.
23839 (dump_message): Likewise.
23840 (return_false_with_message_1): Print also file.
23841 (return_false_with_msg): Likewise.
23842 (return_with_result): Likewise.
23843 (return_with_debug): Likewise.
23844 * ipa-icf.c (sem_function::equals_private): Remove call
23845 to dump_message.
23846
23847 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23848
23849 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
23850 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
23851 memory operand for it.
23852 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
23853
23854 2019-06-05 Martin Sebor <msebor@redhat.com>
23855
23856 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
23857 Adjust quoting and hyphenation.
23858 * convert.c (convert_to_real_1): Same.
23859 * gcc.c (driver_wrong_lang_callback): Same.
23860 (driver::handle_unrecognized_options): Same.
23861 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
23862 * opts-common.c (cmdline_handle_error): Same.
23863 (read_cmdline_option): Same.
23864 * opts-global.c (complain_wrong_lang): Same.
23865 (print_ignored_options): Same.
23866 (handle_common_deferred_options): Same.
23867 * pretty-print.h: Same.
23868 * print-rtl.c (debug_bb_n_slim): Same.
23869 * sched-rgn.c (make_pass_sched_fusion): Same.
23870 * tree-cfg.c (verify_gimple_assign_unary): Same.
23871 (verify_gimple_label): Same.
23872 * tree-ssa-operands.c (verify_ssa_operands): Same.
23873 * varasm.c (do_assemble_alias): Same.
23874 (assemble_alias): Same.
23875
23876 2019-06-05 Richard Henderson <rth@twiddle.net>
23877
23878 * config/alpha/alpha.c (direct_return): Move down after
23879 struct machine_function definition; use saved frame_size;
23880 return bool.
23881 (struct machine_function): Add sa_mask, sa_size, frame_size.
23882 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
23883 (alpha_compute_frame_layout): ... new function.
23884 (TARGET_COMPUTE_FRAME_LAYOUT): New.
23885 (alpha_initial_elimination_offset): Use saved sa_size.
23886 (alpha_vms_initial_elimination_offset): Likewise.
23887 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
23888 (alpha_expand_prologue): Use saved frame data. Merge integer
23889 and fp register save loops.
23890 (alpha_expand_epilogue): Likewise.
23891 (alpha_start_function): Use saved frame data.
23892 * config/alpha/alpha-protos.h (direct_return): Update.
23893 (alpha_sa_size): Remove.
23894
23895 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
23896
23897 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
23898 multiplication by a power-of-two value.
23899 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
23900 and turn the modulo operation into a masking operation.
23901
23902 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23903
23904 PR debug/90733
23905 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
23906 with VOIDmode inner operands.
23907
23908 2019-06-05 Richard Biener <rguenther@suse.de>
23909
23910 PR middle-end/90726
23911 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23912 turn an expression graph into a tree.
23913
23914 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23915
23916 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
23917 member.
23918 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
23919 treat it like explicit monotonic schedule modifier.
23920 (expand_omp_for): Initialize has_lastprivate_conditional.
23921 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
23922 schedule modifier.
23923
23924 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
23925 references, lookup in in hash map MEM_REF operand instead of the
23926 MEM_REF itself.
23927 (lower_omp_1): When looking for lastprivate conditional assignments,
23928 handle MEM_REFs with REFERENCE_TYPE operands.
23929
23930 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
23931 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
23932 and references a VLA. Handle references to non-VLAs if is_simd
23933 all privatization clauses like reductions.
23934 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
23935 If omp_is_reference, use always omp simd arrays and set
23936 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
23937 fails, emit reference initialization.
23938
23939 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23940
23941 PR target/89803
23942 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
23943 _mm_mask_fpclass_sd_mask): New intrinsics.
23944 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
23945 * config/i386/i386-builtin.def
23946 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
23947 New builtins.
23948 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
23949 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
23950 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
23951 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
23952 case QI_FTYPE_V2SF_INT): Ditto.
23953 * config/i386/sse.md
23954 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
23955 Extended to insnstructions with mask operands.
23956
23957 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23958
23959 * config/rs6000/constraints.md (define_register_constraint "wp"):
23960 Delete.
23961 (define_register_constraint "wq"): Delete.
23962 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23963 (rs6000_init_hard_regno_mode_ok): Adjust.
23964 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23965 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
23966 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
23967 (define_mode_attr VSa): Delete.
23968 (define_mode_attr VSisa): New.
23969 (rest of file): Adjust.
23970 * doc/md.texi (Machine Constraints): Adjust.
23971
23972 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23973
23974 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
23975 (define_attr "enabled"): Handle those new isa values.
23976
23977 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23978
23979 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
23980 (define_mode_attr VSr5): Delete.
23981 (define_mode_attr VStype_sqrt): Delete.
23982 (define_mode_iterator VSX_SPDP): Delete.
23983 (define_mode_attr VS_spdp_res): Delete.
23984 (define_mode_attr VS_spdp_insn): Delete.
23985 (define_mode_attr VS_spdp_type): Delete.
23986 (*vsx_sqrt<mode>2): Adjust.
23987 (vsx_<VS_spdp_insn>): Delete, split to...
23988 (vsx_xscvdpsp): ... this. New. And...
23989 (vsx_xvcvspdp): ... this. New. And...
23990 (vsx_xvcvdpsp): ... this. New.
23991
23992 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23993
23994 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
23995 and V2DF.
23996 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
23997 (rest of file): Adjust.
23998
23999 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24000
24001 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24002 (vsx_extract_<mode>_var): Ditto.
24003
24004 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24005
24006 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24007 with just "wa".
24008
24009 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24010
24011 * config/rs6000/constraints.md (define_register_constraint "ww"):
24012 Delete.
24013 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24014 (rs6000_init_hard_regno_mode_ok): Adjust.
24015 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24016 RS6000_CONSTRAINT_ww.
24017 * config/rs6000/rs6000.md: Adjust.
24018 * config/rs6000/vsx.md: Adjust.
24019 * doc/md.texi (Machine Constraints): Adjust.
24020
24021 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24022
24023 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24024 (define_mode_attr sd): New.
24025 (define_mode_attr s): New.
24026 (define_mode_attr Ftrad): Delete.
24027 (define_mode_attr Fvsx): Delete.
24028 (define_mode_attr Fs): Delete.
24029 (rest of file): Use the new mode attributes.
24030 * config.rs6000/vsx.md: Use the new mode attributes.
24031
24032 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24033
24034 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24035 with just "wa".
24036
24037 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24038
24039 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24040 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24041 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24042
24043 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24044
24045 PR target/78263
24046 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24047 C++ with strict ANSI requirements.
24048
24049 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24050
24051 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24052 computations when step is 1.
24053
24054 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24055
24056 * config/rs6000/constraints.md (define_register_constraint "wf"):
24057 Delete.
24058 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24059 (rs6000_init_hard_regno_mode_ok): Adjust.
24060 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24061 RS6000_CONSTRAINT_wf.
24062 * config/rs6000/rs6000.md: Adjust.
24063 * config/rs6000/vsx.md: Adjust.
24064 * doc/md.texi (Machine Constraints): Adjust.
24065
24066 2019-06-04 Andrew Pinski <apinski@marvell.com>
24067
24068 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24069 Fix ILP32 value.
24070
24071 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24072
24073 * config/rs6000/constraints.md (define_register_constraint "wd"):
24074 Delete.
24075 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24076 (rs6000_init_hard_regno_mode_ok): Adjust.
24077 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24078 RS6000_CONSTRAINT_wd.
24079 * config/rs6000/rs6000.md: Adjust.
24080 * config/rs6000/vsx.md: Adjust.
24081 * doc/md.texi (Machine Constraints): Adjust.
24082
24083 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24084
24085 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24086 (rest of file): Adjust.
24087
24088 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24089
24090 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24091 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24092 (vsx_splat_<mode>_reg): Adjust.
24093
24094 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24095
24096 * config/rs6000/constraints.md (define_register_constraint "ws"):
24097 Delete.
24098 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24099 (rs6000_init_hard_regno_mode_ok): Adjust.
24100 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24101 RS6000_CONSTRAINT_ws.
24102 * config/rs6000/rs6000.md: Adjust.
24103 * config/rs6000/vsx.md: Adjust.
24104 * doc/md.texi (Machine Constraints): Adjust.
24105
24106 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24107
24108 * config/rs6000/constraints.md (define_register_constraint "wv"):
24109 Delete.
24110 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24111 (rs6000_init_hard_regno_mode_ok): Adjust.
24112 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24113 RS6000_CONSTRAINT_wv.
24114 * config/rs6000/rs6000.md: Adjust.
24115 * config/rs6000/vsx.md: Adjust.
24116 * doc/md.texi (Machine Constraints): Adjust.
24117
24118 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24119
24120 * config/rs6000/constraints.md (define_register_constraint "wi"):
24121 Delete.
24122 (define_register_constraint "wt"): Delete.
24123 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24124 (rs6000_init_hard_regno_mode_ok): Adjust.
24125 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24126 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24127 * config/rs6000/rs6000.md: Adjust.
24128 * config/rs6000/vsx.md: Adjust.
24129 * doc/md.texi (Machine Constraints): Adjust.
24130
24131 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24132
24133 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24134 const.
24135 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24136 default_elf_asm_output_external.
24137
24138 2019-06-04 Martin Liska <mliska@suse.cz>
24139
24140 * ipa-icf.c (INCLUDE_LIST): Remove.
24141 (sem_item_optimizer::execute): Remove call to init_wpa.
24142 * ipa-icf.h (init_wpa): Remove.
24143
24144 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24145
24146 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24147 conditional on combined for simd.
24148 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24149 member.
24150 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24151 constructs, don't remove lastprivate_conditional_map, but instead set
24152 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24153 to parent construct temporaries.
24154 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24155 like !ctx->lastprivate_conditional_map.
24156 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24157 use up->outer context instead of up.
24158 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24159 gimple_omp_for_combined_p.
24160 (expand_omp_for_static_nochunk): Likewise.
24161 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24162 probably moved over into expand_omp_for_generic rather than being copied
24163 there.
24164
24165 2019-06-04 Martin Liska <mliska@suse.cz>
24166
24167 * value-prof.c (dump_histogram_value): Fix typo.
24168 (gimple_mod_subtract_transform): Likewise.
24169
24170 2019-06-04 Richard Biener <rguenther@suse.de>
24171
24172 PR middle-end/90726
24173 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24174 (tree_contains_chrecs): Likewise.
24175 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24176 exponential behaivor from ...
24177 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24178 ... here.
24179 (expression_expensive_p): Avoid exponential behavior and compute
24180 expanded size, rejecting any expansion.
24181 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24182 (idx_contains_abnormal_ssa_name_p): Likewise.
24183 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24184 (contains_abnormal_ssa_name_p): Simplify and use
24185 walk_tree_without_duplicates.
24186
24187 2019-06-04 Richard Biener <rguenther@suse.de>
24188
24189 PR tree-optimization/90738
24190 Revert
24191 2019-06-03 Richard Biener <rguenther@suse.de>
24192
24193 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24194 full reference tree and record in ref->ref.
24195 (vn_reference_lookup_3): Pass in original ref to
24196 ao_ref_init_from_vn_reference.
24197 (vn_reference_lookup): Likewise.
24198 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24199 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24200 Handle non-decl bases in the original reference.
24201
24202 2019-06-04 Martin Liska <mliska@suse.cz>
24203
24204 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24205 number of references.
24206 (sem_item_optimizer::do_congruence_step):
24207 (sem_item_optimizer::worklist_push): Dump how references
24208 a class has.
24209 (sem_item_optimizer::worklist_pop): Use heap.
24210 (sem_item_optimizer::process_cong_reduction): Likewise.
24211 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24212
24213 2019-06-04 Martin Liska <mliska@suse.cz>
24214
24215 * ipa-icf.h (struct sem_usage_pair_hash): New.
24216 (sem_usage_pair_hash::hash): Likewise.
24217 (sem_usage_pair_hash::equal): Likewise.
24218 (struct sem_usage_hash): Likewise.
24219 * ipa-icf.c (sem_item::sem_item): Initialize
24220 referenced_by_count.
24221 (sem_item::add_reference): Register a reference
24222 in ref_map and not in target->usages.
24223 (sem_item::setup): Remove initialization of
24224 dead vectors.
24225 (sem_item::~sem_item): Remove usage of dead vectors.
24226 (sem_item::dump): Remove dump of references.
24227 (sem_item_optimizer::sem_item_optimizer): Initialize
24228 m_references.
24229 (sem_item_optimizer::read_section): Remove useless
24230 dump.
24231 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24232 (sem_item_optimizer::build_graph): Pass m_references
24233 to ::add_reference.
24234 (sem_item_optimizer::verify_classes): Remove usage of dead
24235 vectors.
24236 (sem_item_optimizer::traverse_congruence_split): Return true
24237 when a class is split.
24238 (sem_item_optimizer::do_congruence_step_for_index): Use
24239 hash_map for look up of (sem_item *, index). That brings
24240 significant speed up.
24241 (sem_item_optimizer::do_congruence_step): Return true
24242 when a split is done.
24243 (congruence_class::is_class_used): Use referenced_by_count.
24244
24245 2019-06-04 Alan Modra <amodra@gmail.com>
24246
24247 PR target/90689
24248 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24249 error.
24250
24251 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24252
24253 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24254 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24255 (rs6000_secondary_reload_simple_move): Adjust.
24256 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24257 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24258 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24259 comment.
24260 (power6x): Adjust.
24261 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24262 (floatunssi<mode>2_lfiwzx): Adjust.
24263 (fix_trunc<mode>si2_stfiwx): Adjust.
24264 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24265 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24266 (mfpgpr): Mark as deprecated.
24267 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24268 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24269 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24270
24271 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24272
24273 * config/rs6000/constraints.md (define_register_constraint "wg"):
24274 Delete.
24275 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24276 RS6000_CONSTRAINT_wg.
24277 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24278 (rs6000_init_hard_regno_mode_ok): Adjust.
24279 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24280 Delete "wg" alternatives.
24281 * doc/md.texi (Machine Constraints): Adjust.
24282
24283 2019-06-03 Alan Modra <amodra@gmail.com>
24284
24285 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24286 (get_uncond_jump_length): Assert length less than INT_MAX and
24287 non-negative.
24288
24289 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24290
24291 PR middle-end/64242
24292 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24293 block.
24294 (expand_builtin_nonlocal_goto): Likewise.
24295
24296 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24297
24298 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24299 (aarch64_asm_output_external): Declare.
24300 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24301 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24302 (aarch64_asm_output_alias): New.
24303 (aarch64_asm_output_external): New.
24304 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24305 (ASM_OUTPUT_EXTERNAL): Define.
24306
24307 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24308 * tree-vrp.h (value_range_base::nonzero_p): New.
24309 (value_range_base::set_nonnull): Rename to...
24310 (value_range_base::set_nonzero): ...this.
24311 (value_range_base::set_null): Rename to...
24312 (value_range_base::set_zero): ...this.
24313 (value_range::set_nonnull): Remove.
24314 (value_range::set_null): Remove.
24315 * tree-vrp.c (range_is_null): Remove.
24316 (range_is_nonnull): Remove.
24317 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24318 instead of range_is_*null.
24319 (extract_range_from_unary_expr): Same.
24320 (value_range_base::set_nonnull): Rename to...
24321 (value_range_base::set_nonzero): ...this.
24322 (value_range::set_nonnull): Remove.
24323 (value_range_base::set_null): Rename to...
24324 (value_range_base::set_zero): ...this.
24325 (value_range::set_null): Remove.
24326 (extract_range_from_binary_expr): Rename set_*null uses to
24327 set_*zero.
24328 (extract_range_from_unary_expr): Same.
24329 (union_helper): Same.
24330 * vr-values.c (get_value_range): Use set_*zero instead of
24331 set_*null.
24332 (vr_values::extract_range_from_binary_expr): Same.
24333 (vr_values::extract_range_basic): Same.
24334
24335 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24336
24337 PR driver/90684
24338 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24339
24340 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24341
24342 * config/aarch64/iterators.md (MAX_OPP): New code attr.
24343 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24344 Rename to...
24345 (aarch64_<su>abd<mode>_3): ... This.
24346 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24347
24348 2019-06-03 Richard Biener <rguenther@suse.de>
24349
24350 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24351 full reference tree and record in ref->ref.
24352 (vn_reference_lookup_3): Pass in original ref to
24353 ao_ref_init_from_vn_reference.
24354 (vn_reference_lookup): Likewise.
24355 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24356 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24357 Handle non-decl bases in the original reference.
24358
24359 2019-06-03 Martin Liska <mliska@suse.cz>
24360
24361 * doc/generic.texi: Remove Java Trees.
24362
24363 2019-06-03 Martin Liska <mliska@suse.cz>
24364
24365 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24366 returns 0 when operands are equal.
24367
24368 2019-06-03 Richard Biener <rguenther@suse.de>
24369
24370 PR tree-optimization/90716
24371 * tree-loop-distribution.c (destroy_loop): Process blocks in
24372 correct order.
24373
24374 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24375
24376 PR target/88837
24377 * vector-builder.h (vector_builder::count_dups): New method.
24378 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
24379 Declare prototype.
24380 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
24381 (vec_init<mode><Vel>): New pattern.
24382 * config/aarch64/aarch64.c (emit_insr): New function.
24383 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
24384 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
24385 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
24386 (aarch64_sve_expand_vector_init): Define two overloaded functions.
24387
24388 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24389
24390 PR tree-optimization/90681
24391 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
24392 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
24393 special case for SLP, but fail on non-groupped loads.
24394
24395 2019-06-03 Martin Liska <mliska@suse.cz>
24396
24397 * cfg.c (debug): Use TDF_DETAILS for debug and
24398 print edge info only once.
24399
24400 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
24401
24402 PR fortran/90539
24403 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
24404
24405 2019-06-01 Martin Sebor <msebor@redhat.com>
24406
24407 PR middle-end/90694
24408 * tree-pretty-print.c (dump_generic_node): Add parentheses.
24409
24410 2019-05-31 Jan Hubicka <jh@suse.cz>
24411
24412 * alias.c: Include ipa-utils.h.
24413 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
24414 * ipa-devirt.c (prevailing_odr_type): New.
24415 * ipa-utils.h (previaling_odr_type): Declare.
24416
24417 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
24418 Hongtao Liu <hongtao.liu@intel.com>
24419
24420 PR target/89355
24421 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
24422 NOTE_INSN_DELETED_LABEL check.
24423
24424 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
24425 Robert Suchanek <robert.suchanek@mips.com>
24426
24427 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
24428 and 3rd operands of the fmadd/fmsub/maddv builtin.
24429
24430 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24431
24432 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
24433 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24434 on OMP_SIMD if not nested inside of worksharing loop that also has
24435 lastprivate conditional clause for the same decl.
24436 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
24437 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
24438 on simd.
24439 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
24440 on simd construct.
24441 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
24442 on simd construct.
24443 (lower_lastprivate_clauses): Likewise.
24444 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
24445 calling lower_rec_input_clauses.
24446 (lower_omp_for): Likewise.
24447 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
24448 clause on simd construct.
24449 * omp-expand.c (expand_omp_simd): Initialize cond_var if
24450 OMP_CLAUSE__CONDTEMP_ clause is present.
24451
24452 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
24453 ivar and lvar.
24454
24455 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
24456
24457 PR c/43673
24458 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
24459 TEX_D32, TEX_D64 or TEX_D128.
24460
24461 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24462
24463 * match.pd (~(vec?cst1:cst2)): New transformation.
24464
24465 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24466
24467 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
24468 ((size_t)(A /[ex] B) CMP C): New transformation.
24469
24470 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
24471
24472 * doc/md.texi: Document define_insn_and_rewrite.
24473 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
24474 * gensupport.c (queue_elem): Update comment.
24475 (replace_operands_with_dups): New function.
24476 (gen_rewrite_sequence): Likewise.
24477 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
24478 * read-rtl.c (apply_subst_iterator): Likewise.
24479 (add_condition_to_rtx, named_rtx_p): Likewise.
24480 (rtx_reader::read_rtx_operand): Likewise.
24481 * config/aarch64/aarch64-sve.md
24482 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
24483 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
24484 define_insn_and_rewrite.
24485 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
24486 Remove separate define_split.
24487
24488 2019-05-31 Jan Hubicka <jh@suse.cz>
24489
24490 * tree-ssa-alias.c (type_has_components_p): New function.
24491 (aliasing_component_refs_p): Use it.
24492
24493 2019-05-31 Martin Liska <mliska@suse.cz>
24494
24495 * gdbhooks.py: Add const_tree to TreePrinter.
24496
24497 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
24498
24499 PR debug/86964
24500 * common.opt (feliminate-unused-debug-symbols): Enable by default.
24501 * doc/invoke.texi (Debugging Options): Document new default of
24502 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
24503
24504 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24505
24506 PR tree-optimization/90671
24507 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
24508 template_block used to be empty on the first call, don't use
24509 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
24510 seq with bb_seq and set it with set_bb_seq.
24511
24512 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
24513
24514 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
24515
24516 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24517 Michael Meissner <meissner@linux.ibm.com>
24518
24519 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
24520 (prefixed_mem_operand): Likewise.
24521 (non_prefixed_mem_operand): Likewise.
24522 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
24523 prototype.
24524 * config/rs6000/rs6000.c (print_operand_address): Handle
24525 PC-relative addresses.
24526 (mode_supports_prefixed_address_p): New function.
24527 (rs6000_prefixed_address): New function.
24528 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
24529 (SYMBOL_REF_PCREL_P): Likewise.
24530
24531 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24532
24533 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
24534 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
24535 (gimplify_omp_for): If worksharing loop with lastprivate conditional
24536 is nested inside of parallel region, add _condtemp_ clause to both.
24537 * tree-nested.c (convert_nonlocal_omp_clauses,
24538 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
24539 assertion failure.
24540 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
24541 member.
24542 * omp-general.c (omp_extract_for_data): Compute it.
24543 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
24544 (lower_rec_input_clauses): Likewise.
24545 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
24546 clause is already present, just add one further one after it.
24547 (lower_lastprivate_clauses): Handle cond_ptr with array type.
24548 (lower_send_shared_vars): Clear _condtemp_ vars.
24549 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
24550 or section or taskgroup.
24551 * omp-expand.c (determine_parallel_type): Disallow combining only if
24552 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
24553 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
24554 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24555 expand_omp_for_static_chunk, expand_omp_for): Use
24556 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
24557 determine if a special set of API routines are needed and if condtemp
24558 needs to be initialized, while always initialize cond_var if
24559 fd->lastprivate_conditional is non-zero.
24560
24561 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24562 Michael Meissner <meissner@linux.ibm.com>
24563
24564 * config/rs6000/constraints.md (eI): New constraint.
24565 * config/rs6000/predicates.md (cint34_operand): New predicate.
24566 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
24567 (SIGNED_34BIT_OFFSET_P): Likewise.
24568 * doc/md.texi (eI): Document constraint.
24569
24570 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
24571
24572 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
24573
24574 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24575 Michael Meissner <meissner@linux.ibm.com>
24576
24577 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
24578 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
24579 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
24580 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
24581 (OTHER_FUTURE_MASKS): Likewise.
24582 (POWERPC_MASKS): Likewise.
24583 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
24584 specified without -mprefixed-addr or -mcpu=future. Error if
24585 -mprefixed-addr is specified without -mcpu=future.
24586 (rs6000_opt_masks): Add entry for prefixed-addr.
24587 * rs6000.opt (mprefixed-addr): New option.
24588
24589 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
24590
24591 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
24592 cfun->is_thunk check.
24593
24594 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24595
24596 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
24597 to length.
24598
24599 2019-05-30 Martin Liska <mliska@suse.cz>
24600
24601 * gdbinit.in: Fix 'ptc' command. Add trt
24602 that prints TREE_TYPE($).
24603
24604 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
24605 Alan Modra <amodra@gmail.com>
24606
24607 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
24608 calls here...
24609 (rs6000_indirect_call_template_1): ...and here.
24610 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
24611 plt16_ha, plt16_lo, mtctr indirect calls. Use
24612 rs6000_pltseq_enum.
24613 (rs6000_decl_ok_for_sibcall): New function.
24614 (rs6000_function_ok_for_sibcall): Refactor.
24615 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
24616 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
24617 when pcrel. Reorganize.
24618 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
24619 * rs6000.h (rs6000_pltseq_enum): New enum.
24620 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
24621 (*pltseq_tocsave): Use rs6000_pltseq_enum.
24622 (*pltseq_plt16_ha): Likewise.
24623 (*pltseq_plt16_lo): Likewise.
24624 (*pltseq_mtctr): Likewise.
24625 (*pltseq_plt_pcrel): New insn.
24626 (*call_local_aix): Handle @notoc calls.
24627 (*call_value_local_aix): Likewise.
24628 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
24629 (*call_value_nonlocal_aix): Likewise.
24630 (*call_indirect_pcrel): New insn.
24631 (*call_value_indirect_pcrel): Likewise.
24632
24633 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
24634
24635 * config/i386/sse.md (*save_multiple<mode>): Rename from
24636 save_multiple<mode>.
24637 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
24638 (*restore_multiple_and_return<mode>): Rename from
24639 restore_multiple_and_return<mode>.
24640 (*restore_multiple_leave_return<mode>): Rename from
24641 restore_multiple_leave_return<mode>.
24642
24643 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
24644
24645 * config.gcc (rx-*-linux*): New target.
24646 * config/rx/elf.opt: New file.
24647 * config/rx/linux.h: Likewise.
24648 * config/rx/t-linux: Likewise.
24649 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
24650 make it zero.
24651 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
24652 (ASM_APP_OFF): Likewise.
24653 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
24654 moved elsewhere.
24655
24656 2019-05-29 Jan Hubicka <jh@suse.cz>
24657
24658 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
24659 variants are pointer equivalent.
24660
24661 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24662
24663 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
24664 * config/aarch64/aarch64-sve2.md: New file.
24665 (<u>avg<mode>3_floor): New pattern.
24666 (<u>avg<mode>3_ceil): Likewise.
24667 (*<sur>h<addsub><mode>): Likewise.
24668 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
24669 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
24670
24671 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24672
24673 PR bootstrap/90543
24674 * optc-save-gen.awk: In cl_optimization_print, use correct condition
24675 for var_opt_string printing. In cl_optimization_print_diff, print
24676 (null) instead of invoking undefined behavior if one of the
24677 var_opt_string pointers is NULL and use && instead of first || in the
24678 guarding condition. For var_target_other options, handle const char *
24679 target variables similarly to const char * optimize node variables.
24680
24681 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
24682
24683 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
24684 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
24685 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
24686 Add autib1716 and pacib1716 initialisation.
24687 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
24688 for autib1716 and pacib1716.
24689 * config/aarch64/aarch64-protos.h (aarch64_key_type,
24690 aarch64_post_cfi_startproc): Define.
24691 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
24692 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
24693 aarch64_handle_pac_ret_protection): Set default sign key to A.
24694 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
24695 aarch64_expand_prologue): Add check for b-key.
24696 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
24697 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
24698 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
24699 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
24700 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
24701 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
24702 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24703 * config/aarch64/aarch64.md (do_return): Add check for b-key.
24704 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
24705 pauth_hint_num_a with pauth_hint_num.
24706 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
24707 pauth_hint_num_a with pauth_hint_num.
24708 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
24709 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
24710 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24711 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
24712 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
24713 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
24714 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
24715 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24716 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
24717 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
24718 UNSPEC_AUTIA1716 respectively.
24719 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
24720 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
24721 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
24722 * doc/invoke.texi (-mbranch-protection): Add b-key type.
24723 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
24724 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
24725
24726 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24727
24728 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
24729 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
24730 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
24731 explicit clause on combined parallel into implicit shared clause.
24732 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
24733 and firstprivate if the decl has one too from combined parallel to
24734 the worksharing construct.
24735
24736 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
24737 Michael Meissner <meissner@linux.ibm.com>
24738
24739 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
24740
24741 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
24742
24743 * rtl.h (LABEL_REF_P): New #define.
24744
24745 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
24746
24747 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
24748
24749 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24750
24751 * internal-fn.c: Marked mask_load_direct as vectorizable.
24752 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
24753 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
24754 combined even if masks different with allow_slp_p param.
24755 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
24756 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
24757 dissolve SLP-only vectorizable groups when SLP has been discarded.
24758 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
24759 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
24760 masks.
24761 (vect_build_slp_tree_1): Fixed comment typo.
24762 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
24763 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
24764 loads for SLP only.
24765 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
24766 vectorizable.
24767 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
24768
24769 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24770
24771 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
24772 Remove obsolete use_thunk reference.
24773 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24774 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24775 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24776 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24777 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24778 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24779 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24780 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24781 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24782
24783 2019-05-28 Nathan Sidwell <nathan@acm.org>
24784
24785 * tree.h (IDENTIFIER_ANON_P): New.
24786 (anon_aggrname_format, anon_aggname_p): Don't declare.
24787 (make_anon_name): Declare.
24788 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
24789 (hash_tree): Likewise.
24790 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
24791 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
24792 (anon_cnt, make_anon_name): New.
24793
24794 2019-05-28 Martin Liska <mliska@suse.cz>
24795
24796 PR other/90315
24797 * opts-global.c (decode_options): Print help for all
24798 help_option_arguments.
24799 * opts.c (print_help): Add new argument.
24800 (common_handle_option): Remember all values into
24801 help_option_arguments.
24802 * opts.h (print_help): Add new argument.
24803
24804 2019-05-28 Martin Liska <mliska@suse.cz>
24805
24806 PR ipa/90555
24807 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
24808 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
24809 (func_checker::compare_bb): Call compare_loops.
24810
24811 2019-05-27 Jakub Jelinek <jakub@redhat.com>
24812
24813 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24814 on sections construct.
24815 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
24816 construct.
24817 (lower_omp_sections): Handle lastprivate conditional.
24818 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
24819 lastprivate_conditional_map.
24820 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
24821
24822 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
24823 critical, taskgroup and section regions when looking for a region
24824 with non-NULL lastprivate_conditional_map.
24825
24826 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24827
24828 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
24829 (*ix86_gen_sub3): Ditto.
24830 (*ix86_gen_sub3_carry): Ditto.
24831 (*ix86_gen_one_cmpl2): Ditto.
24832 (*ix86_gen_andsp): Ditto.
24833 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
24834 (gen_and2_insn): New static function.
24835 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
24836 Use gen_add3_insn instead of ix86_gen_add3.
24837 (ix86_expand_split_stack_prologue): Use gen_add2_insn
24838 instead of ix86_gen_add3.
24839 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
24840 Use gen_sub3_insn instead of ix86_gen_sub3.
24841 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
24842 instead of ix86_gen_add3.
24843 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
24844 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
24845 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
24846 * config/i386/i386-options.c (ix86_option_override_internal):
24847 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
24848 ix86_gen_one_cmpl2 and ix86_gen_andsp.
24849
24850 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
24851
24852 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
24853 and DW_OP_GNU_const_index opcodes.
24854
24855 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24856
24857 * config/i386/i386.h (STACK_SIZE_MODE): Define.
24858
24859 2019-05-27 Richard Biener <rguenther@suse.de>
24860
24861 PR tree-optimization/90637
24862 * tree-ssa-sink.c (statement_sink_location): Honor the
24863 computed sink location for single-uses.
24864
24865 2019-05-27 Richard Biener <rguenther@suse.de>
24866
24867 PR middle-end/90610
24868 * match.pd (vec_perm): Avoid clobbering op0 when not generating
24869 a bit-insert.
24870
24871 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24872
24873 * config/i386/i386.md (@sub<mode>3_carry): Rename
24874 from sub<mode>3_carry.
24875 (@leave_<mode>): New expander.
24876 (*leave): Rename from leave.
24877 (*leave_rex64): Rename from leave_rex64.
24878 (@monitorx_<mode>): Rename from monitorx_<mode>.
24879 (@clzero_<mode>): Rename from clzero_<mode>.
24880 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
24881 from sse3_monitor_<mode>.
24882 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
24883 (*ix86_gen_leave): Ditto.
24884 (*ix86_gen_monitor): Ditto.
24885 (*ix86_gen_monitorx): Ditto.
24886 (*ix86_gen_clzero): Ditto.
24887 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
24888 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
24889 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
24890 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
24891 Use gen_sse3_monitor instead of ix86_gen_monitor.
24892 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
24893 instead of ix86_gen_monitorx.
24894 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
24895 instead of ix86_gen_clzero.
24896 * config/i386/i386-options.c (ix86_option_override_internal):
24897 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
24898 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
24899
24900 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24901
24902 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
24903 Rename from tls_global_dynamic_64_<mode>.
24904 (@tls_local_dynamic_base_64_<mode>): Rename from
24905 tls_local_dynamic_base_64_<mode>.
24906 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
24907 Remove indirect function.
24908 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
24909 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
24910 instead of ix86_gen_tls_global_dynamic_64.
24911 Use gen_tls_local_dynamic_base_64 instead of
24912 ix86_gen_tls_local_dynamic_base_64.
24913 * config/i386/i386-options.c (ix86_option_override_internal):
24914 Do not initialize ix86_gen_tls_global_dynamic_64 and
24915 ix86_gen_tls_local_dynamic_base_64.
24916
24917 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24918
24919 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
24920 Rename from pro_epilogue_adjust_stack_<mode>_add.
24921 (@pro_epilogue_adjust_stack_sub_<mode>)
24922 Rename from pro_epilogue_adjust_stack_<mode>_sub.
24923 (@allocate_stack_worker_probe_<mode>):
24924 Rename from allocate_stack_worker_probe_<mode>.
24925 (allocate_stack): Use gen_allocate_stack_worker_probe.
24926 (probe_stack): Use gen_probe_stack_1.
24927 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
24928 (@adjust_stack_and_probe_<mode>): Rename from
24929 adjust_stack_and_probe<mode>.
24930 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
24931 (stack_protect_set): Use gen_stack_protect_set_1.
24932 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
24933 (stack_protect_test): Use gen_stack_protect_test_1.
24934 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
24935 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
24936 Remove indirect function.
24937 (*ix86_gen_adjust_stack_and_probe): Ditto.
24938 (*ix86_gen_probe_stack_range): Ditto.
24939 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
24940 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
24941 (ix86_adjust_stack_and_probe_stack_clash): Use
24942 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
24943 (ix86_adjust_stack_and_probe): Ditto.
24944 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
24945 of ix86_gen_probe_stack_range.
24946 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
24947 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
24948 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
24949 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
24950 CODE_FOR_stack_protect_test_{si,di}.
24951 * config/i386/i386-options.c (ix86_option_override_internal):
24952 Do not initialize ix86_gen_allocate_stack_worker,
24953 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
24954
24955 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
24956
24957 * doc/invoke.texi (Link Options): Many editorial changes around
24958 -flinker-output.
24959
24960 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24961
24962 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
24963 pre-Solaris 11 referene and most Studio compiler details.
24964
24965 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
24966
24967 PR target/90530
24968 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
24969 DImode to SImode in floating-point registers on 64-bit target.
24970 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
24971 register_operand in xmpyu patterns.
24972
24973 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24974
24975 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
24976 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
24977 OMP_CLAUSE__REDUCTEMP_.
24978 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
24979 OMP_CLAUSE__CONDTEMP_.
24980 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
24981 * tree-pretty-print.c (dump_omp_clause): Likewise.
24982 * tree-nested.c (convert_nonlocal_omp_clauses,
24983 convert_local_omp_clauses): Likewise.
24984 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
24985 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
24986 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
24987 on OMP_FOR.
24988 (gimplify_omp_for): Warn and disable conditional modifier from
24989 lastprivate on loop iterators.
24990 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
24991 member.
24992 * omp-general.c (omp_extract_for_data): Initialize it.
24993 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
24994 member.
24995 (delete_omp_context): Delete it.
24996 (lower_lastprivate_conditional_clauses): New function.
24997 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
24998 handle lastprivate conditional clauses.
24999 (lower_reduction_clauses): Add CLIST argument, emit it into
25000 the critical section if any.
25001 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25002 lower_reduction_clauses callers.
25003 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25004 to lower_lastprivate_clauses.
25005 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25006 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25007 clist into a critical section if not emitted there already by
25008 lower_reduction_clauses.
25009 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25010 callers.
25011 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25012 conditional variables.
25013 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25014 clause is present.
25015 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25016 expand_omp_for_static_chunk): Handle lastprivate conditional.
25017 (expand_omp_for): Handle fd.lastprivate_conditional like
25018 fd.have_reductemp.
25019
25020 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25021
25022 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25023 kernel does not exit cleanly.
25024 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25025
25026 2019-05-24 Jason Merrill <jason@redhat.com>
25027
25028 Revert:
25029 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25030
25031 2019-05-24 Richard Biener <rguenther@suse.de>
25032
25033 PR testsuite/90607
25034 * tree-loop-distribution.c (struct partition): Add location
25035 member.
25036 (partition_alloc): Initialize all fields.
25037 (generate_memset_builtin): Use the location recorded in the
25038 partition for the generated call.
25039 (generate_memcpy_builtin): Likewise.
25040 (classify_partition): Record the location of a single store
25041 as location for the partition.
25042
25043 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25044
25045 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25046 for lo-part.
25047
25048 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25049
25050 PR target/90588
25051 * common/config/aarch64/aarch64-common.c
25052 (aarch64_rewrite_selected_cpu): Change local temporary variable
25053 type from unsigned long to uint64_t.
25054 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25055 aarch64_get_extension_string_for_isa_flags): Change declaration to
25056 match new definition by replacing unsigned long with uint64_t.
25057
25058 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25059
25060 PR target/90568
25061 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25062 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25063 Handle stack_protect_test_<mode> codegen similarly to corresponding
25064 sub instruction.
25065
25066 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25067
25068 * config/i386/darwin.h: Reject -mfentry*.
25069 * doc/sourcebuild.texi: Document mfentry target support.
25070
25071 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25072
25073 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25074 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25075 false for PC-relative functions.
25076 (rs6000_output_function_prologue): Change called function name to
25077 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25078 name,1" for PC-relative functions.
25079 (rs6000_elf_declare_function_name): Change called function name to
25080 rs6000_global_entry_point_prologue_needed_p.
25081
25082 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25083
25084 PR target/90552
25085 * config/i386/i386.c (gen_rtx_cost):
25086 Use ix86_tune_cost instead of ix86_cost.
25087
25088 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25089 Michael Meissner <meissner@linux.ibm.com>
25090 Segher Boessenkool <segher@kernel.crashing.org>
25091
25092 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25093 OPTION_MASK_PCREL.
25094 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25095 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25096 (rs6000_fndecl_pcrel_p): Likewise.
25097 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25098 error if -mpcrel is requested without -mcpu=future.
25099 (rs6000_opt_masks): Add entry for pcrel.
25100 (rs6000_fndecl_pcrel_p): New function.
25101 (rs6000_pcrel_p): Likewise.
25102 * config/rs6000/rs6000.opt (mpcrel): New option.
25103 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25104
25105 2019-05-23 Jan Hubicka <jh@suse.cz>
25106 Martin Liska <mliska@suse.cz>
25107
25108 PR tree-optimization/90576
25109 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25110 poly_int_tree_p.
25111 (aliasing_component_refs_p): Fix three way size compare conditional;
25112 give up earlier in case we can not decide on equivalence.
25113
25114 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25115 Michael Meissner <meissner@linux.ibm.com>
25116 Segher Boessenkool <segher@kernel.crashing.org>
25117
25118 * config.gcc: Add future cpu.
25119 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25120 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25121 #define.
25122 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25123 (RS6000_CPU): New instantiation for future cpu.
25124 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25125 PROCESSOR_FUTURE.
25126 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25127 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25128 * config/rs6000/rs6000-tables.opt: Regenerate.
25129 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25130 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25131 (rs6000_machine_from_flags): Handle future cpu.
25132 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25133 PROCESSOR_POWER9 for now.
25134 (rs6000_adjust_cost): Likewise.
25135 (rs6000_issue_rate): Likewise.
25136 (rs6000_register_move_cost): Likewise.
25137 (rs6000_opt_masks): Add entry for future.
25138 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25139 (MASK_FUTURE): New #define.
25140 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25141 * config/rs6000/rs6000.opt (mfuture): New target option.
25142 * doc/invoke.texi (mcpu): Add future cpu.
25143
25144 2019-05-23 Martin Liska <mliska@suse.cz>
25145
25146 PR c++/90587
25147 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25148 operation points to a temporary (pointed via tree_to_wide_ref)
25149 that is out of scope after the &.
25150
25151 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25152
25153 PR c++/90592
25154 * doc/extend.texi (Function Names): Add missing word.
25155
25156 2019-05-23 Richard Biener <rguenther@suse.de>
25157
25158 PR tree-optimization/88440
25159 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25160 at -O[2s]+.
25161 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25162 generated call.
25163 (generate_memcpy_builtin): Likewise.
25164 (distribute_loop): Pass in whether to only distribute patterns.
25165 (prepare_perfect_loop_nest): Also allow size optimization.
25166 (pass_loop_distribution::execute): When optimizing a loop
25167 nest for size allow pattern replacement.
25168
25169 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25170
25171 PR target/90568
25172 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25173 of xor.
25174
25175 2019-05-23 Martin Liska <mliska@suse.cz>
25176
25177 PR sanitizer/90570
25178 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25179 expression similarly to gimplify_decl_expr.
25180
25181 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25182
25183 * cse.c (cse_dump_path): s/dump_file/f.
25184
25185 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25186
25187 PR c++/90462
25188 * diagnostic-format-json.cc: Include "selftest.h".
25189 (json_from_expanded_location): Only add "file" key for non-NULL
25190 file strings.
25191 (json_from_location_range): Don't add "start" and "finish"
25192 children if they are UNKNOWN_LOCATION.
25193 (selftest::test_unknown_location): New selftest.
25194 (selftest::test_bad_endpoints): New selftest.
25195 (selftest::diagnostic_format_json_cc_tests): New function.
25196 * json.cc (json::object::get): New function.
25197 (selftest::test_object_get): New selftest.
25198 (selftest::json_cc_tests): Call it.
25199 * json.h (json::object::get): New decl.
25200 * selftest-run-tests.c (selftest::run_tests): Call
25201 selftest::diagnostic_format_json_cc_tests.
25202 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25203 decl.
25204
25205 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25206 Andrew Stubbs <amd@codesourcery.com>
25207
25208 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25209 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25210 (kernel): Rename to...
25211 (main_kernel): ... this.
25212 (load_image): Load _init_array and _fini_array kernels.
25213 (run): Add argument for kernel to run.
25214 (main): Run init_array_kernel before main_kernel, and
25215 fini_array_kernel after.
25216 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25217 amdgpu_hsa_kernel attribute on functions.
25218 (gcn_disable_constructors): Delete.
25219 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25220 * config/gcn/crt0.c (size_t): Define.
25221 (_init_array, _fini_array): New.
25222 (__preinit_array_start, __preinit_array_end,
25223 __init_array_start, __init_array_end,
25224 __fini_array_start, __fini_array_end): Declare weak references.
25225
25226 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25227
25228 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25229
25230 2019-05-22 Jason Merrill <jason@redhat.com>
25231
25232 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25233
25234 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25235
25236 PR target/88483
25237 * config/i386/i386-options.c (ix86_init_machine_status): Set
25238 stack_frame_required to true.
25239 * config/i386/i386.c (ix86_get_frame_size): New function.
25240 (ix86_frame_pointer_required): Replace get_frame_size with
25241 ix86_get_frame_size.
25242 (ix86_compute_frame_layout): Likewise.
25243 (ix86_find_max_used_stack_alignment): Changed to void. Set
25244 stack_frame_required.
25245 (ix86_finalize_stack_frame_flags): Always call
25246 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25247 ix86_get_frame_size.
25248 * config/i386/i386.h (machine_function): Add stack_frame_required.
25249
25250 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25251
25252 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25253
25254 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25255
25256 * common/config/aarch64/aarch64-common.c
25257 (struct aarch64_option_extension, struct processor_name_to_arch,
25258 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25259 aarch64_contains_opt,
25260 aarch64_get_extension_string_for_isa_flags): Change type of
25261 variables storing flags to uint64_t.
25262 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25263 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25264 * config/aarch64/aarch64.c (struct processor,
25265 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25266 aarch64_validate_march, aarch64_override_options,
25267 aarch64_option_print, aarch64_handle_attr_isa_flags,
25268 aarch64_declare_function_name, aarch64_start_file): Make flag
25269 variables uint64_t.
25270 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25271 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25272 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25273 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25274 * config/aarch64/driver-aarch64.c
25275 (struct aarch64_arch_extension, struct aarch64_core_data,
25276 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25277 flag variables uint64_t.
25278 * doc/invoke.texi: Add documentation for new arguments.
25279
25280 2019-05-22 Richard Biener <rguenther@suse.de>
25281
25282 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25283 rewrite ...
25284 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25285
25286 2019-05-22 Martin Liska <mliska@suse.cz>
25287
25288 PR lto/90500
25289 * doc/extend.texi: Document the change.
25290
25291 2019-05-22 Richard Biener <rguenther@suse.de>
25292
25293 PR tree-optimization/90450
25294 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25295 (mem_ref_hasher::equal): Check it.
25296 (mem_ref_alloc): Initialize it.
25297 (gather_mem_refs_stmt): Set it.
25298
25299 2019-05-22 Richard Biener <rguenther@suse.de>
25300
25301 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25302 Add ABS_EXPR.
25303 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25304 as ABSU_EXPR.
25305
25306 2019-05-22 Alan Modra <amodra@gmail.com>
25307
25308 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25309 (ASM_CPU_SPEC): Conditionally add -many.
25310 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25311 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25312 (rs6000_file_start): ..extracted from here, and modified to
25313 test all ISA bits.
25314 (rs6000_output_function_prologue): Emit .machine as necessary.
25315
25316 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25317
25318 PR middle-end/90553
25319 * ira-lives.c (process_bb_node_lives): Consider defs
25320 for a call insn to be die before the call, not after.
25321
25322 * function.c (assign_parm_setup_block): Raise alignment of
25323 stacked parameter only for STRICT_ALIGNMENT targets.
25324
25325 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25326
25327 * config/rs6000/constraints.md (define_register_constraint "wz"):
25328 Delete.
25329 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25330 RS6000_CONSTRAINT_wz.
25331 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25332 (rs6000_init_hard_regno_mode_ok): Adjust.
25333 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25334 * doc/md.texi (Machine Constraints): Adjust.
25335
25336 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25337
25338 * config/rs6000/constraints.md (define_register_constraint "wl"):
25339 Delete.
25340 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25341 RS6000_CONSTRAINT_wl.
25342 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25343 (rs6000_init_hard_regno_mode_ok): Adjust.
25344 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25345 * doc/md.texi (Machine Constraints): Adjust.
25346
25347 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25348
25349 * config/rs6000/constraints.md (define_register_constraint "wm"):
25350 Delete.
25351 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25352 RS6000_CONSTRAINT_wm.
25353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25354 (rs6000_init_hard_regno_mode_ok): Adjust.
25355 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25356 * doc/md.texi (Machine Constraints): Adjust.
25357
25358 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25359
25360 * config/rs6000/constraints.md (define_register_constraint "wk"):
25361 Delete.
25362 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25363 RS6000_CONSTRAINT_wk.
25364 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25365 (rs6000_init_hard_regno_mode_ok): Adjust.
25366 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25367 * doc/md.texi (Machine Constraints): Adjust.
25368
25369 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25370
25371 * config/rs6000/constraints.md (define_register_constraint "wj"):
25372 Delete.
25373 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25374 RS6000_CONSTRAINT_wj.
25375 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25376 (rs6000_init_hard_regno_mode_ok): Adjust.
25377 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25378 (VS_64dm): Delete.
25379 * config/rs6000/vsx.md: Ditto.
25380 * doc/md.texi (Machine Constraints): Adjust.
25381
25382 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25383
25384 * config/rs6000/constraints.md (define_register_constraint "wh"):
25385 Delete.
25386 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25387 RS6000_CONSTRAINT_wh.
25388 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25389 (rs6000_init_hard_regno_mode_ok): Adjust.
25390 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
25391 * doc/md.texi (Machine Constraints): Adjust.
25392
25393 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25394
25395 PR target/90547
25396 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25397 Avoid calling gen_lowpart with CONST operand.
25398
25399 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
25400
25401 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
25402 field template_last_to_copy.
25403 (ssa_create_duplicates): Set it, and use it. Attempt to
25404 preserve more debug stmts.
25405
25406 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25407
25408 * config/i386/sse.md (VF1_AVX2): New mode iterator.
25409 (signbit<mode>2): New expander
25410
25411 2019-05-21 James Clarke <jrtc27@jrtc27.com>
25412
25413 PR bootstrap/87338
25414 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
25415 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
25416
25417 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25418
25419 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
25420 %ebx and %ecx bafore calling cpuid with leaf 1 or
25421 non-constant leaf argument.
25422
25423 2019-05-21 Alan Modra <amodra@gmail.com>
25424
25425 PR target/90545
25426 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
25427 power9 direct move cost.
25428
25429 2019-05-21 Richard Biener <rguenther@suse.de>
25430
25431 PR middle-end/90510
25432 * fold-const.c (fold_read_from_vector): New function.
25433 * fold-const.h (fold_read_from_vector): Declare.
25434 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
25435 single-element insert permutations. Canonicalize selector
25436 further and fix issue with last commit.
25437
25438 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25439
25440 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
25441 parameter with default value false to declaration.
25442 (split_edges_for_insertion): New inline function. Wrapper for
25443 split_critical_edges with for_edge_insertion_p = true.
25444 * tree-cfg.c (split_critical_edges): Don't split non-critical
25445 edges if for_edge_insertion_p is false. Fix whitespace.
25446 * tree-ssa-pre.c (pass_pre::execute): Call
25447 split_edges_for_insertion instead of split_critical_edges.
25448 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
25449 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
25450 (pass_data_sink_code): Update function name in the comment.
25451
25452 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25453
25454 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
25455 around is_value_included_in that knows how to handle BIT_AND_EXPR.
25456 (is_pred_expr_subset_of): Use the new function. Handle more cases where
25457 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
25458 positives.
25459
25460 2019-05-21 Martin Liska <mliska@suse.cz>
25461
25462 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
25463 an extra newline.
25464 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
25465 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
25466 vec_lvsr.
25467 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25468 Quote a C type.
25469 (rs6000_function_arg): Likewise.
25470 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
25471 (rs6000_expand_ternop_builtin): Use interval syntax.
25472 (get_element_number): Likewise.
25473 (altivec_expand_builtin): Likewise.
25474 (rs6000_get_function_versions_dispatcher): Quote target_clones.
25475
25476 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25477
25478 PR c++/59813
25479 PR target/90418
25480 * function.h (struct function): Add calls_eh_return member.
25481 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
25482 gimplifying __builtin_eh_return call.
25483 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
25484 to cfun.
25485 (expand_call_inline): Or in src_cfun->calls_eh_return into
25486 dst_cfun->calls_eh_return.
25487 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
25488 cfun->calls_eh_return.
25489 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
25490 * lto-streamer-out.c (output_struct_function_base): Write
25491 calls_eh_return.
25492
25493 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
25494
25495 PR rtl-optimization/43147
25496 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
25497 IX86_BUILTIN_SHUFPD.
25498
25499 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25500
25501 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
25502 (refs_may_alias_p_1): ... here; update stats.
25503 (refs_may_alias_p): Do not update stats here.
25504
25505 2019-05-20 Richard Biener <rguenther@suse.de>
25506
25507 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
25508 doesn't produce pointers.
25509 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
25510 the first operand points to.
25511
25512 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25513
25514 * tree-ssa-alias.c (compare_sizes): New function.
25515 (sompare_type_sizes): New function
25516 (aliasing_component_refs_p): Use it.
25517 (indirect_ref_may_alias_decl_p): Likewise.
25518
25519 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25520
25521 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
25522
25523 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25524
25525 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
25526 (LIBLSAN_EARLY_SPEC): Likewise.
25527 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
25528
25529 2019-05-20 Martin Liska <mliska@suse.cz>
25530
25531 * config/i386/i386.c (ix86_libc_has_fast_function):
25532 Add ATTRIBUTE_UNUSED for the argument.
25533
25534 2019-05-20 Richard Biener <rguenther@suse.de>
25535
25536 * gimple-match-head.c: Include vec-perm-indices.h.
25537 * generic-match-head.c: Likewise.
25538 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
25539 is included.
25540 * fold-const.c (fold_vec_perm): Export.
25541 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
25542 (match.pd): ...here.
25543
25544 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25545
25546 * cfgloop.h (struct loop): Add simdlen member.
25547 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
25548 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
25549 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
25550 as new argument to autovectorize_vector_sizes target hook. If
25551 loop->simdlen, pick up vector size where the vectorization factor
25552 is equal to loop->simd, and if there is none, fall back to the first
25553 successful one.
25554 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
25555 caller.
25556 * omp-low.c (omp_clause_aligned_alignment): Likewise.
25557 * omp-general.c (omp_max_vf): Likewise.
25558 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
25559 * tree-vect-slp.c (vect_slp_bb): Likewise.
25560 * target.def (autovectorize_vector_sizes): Add ALL argument and
25561 document it.
25562 * doc/tm.texi: Adjust documentation.
25563 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
25564 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
25565 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
25566 bool argument.
25567 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
25568 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
25569 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
25570 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
25571 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
25572 preferred vector size is not 512-bit or 256-bit, just put those
25573 unpreferred ones last.
25574
25575 2019-05-20 Martin Liska <mliska@suse.cz>
25576
25577 * targhooks.c (default_libc_has_fast_function): New function.
25578 * targhooks.h (default_libc_has_fast_function): Likewise.
25579
25580 2019-05-20 Martin Liska <mliska@suse.cz>
25581
25582 PR middle-end/90263
25583 * builtins.c (expand_builtin_memory_copy_args): When having a
25584 target with fast mempcpy implementation do now use memcpy.
25585 * config/i386/i386.c (ix86_libc_has_fast_function): New.
25586 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
25587 * doc/tm.texi: Likewise.
25588 * doc/tm.texi.in: Likewise.
25589 * target.def:
25590 * expr.c (emit_block_move_hints): Add 2 new arguments.
25591 * expr.h (emit_block_move_hints): Bail out when libcall
25592 to memcpy would be used.
25593
25594 2019-05-20 Martin Liska <mliska@suse.cz>
25595
25596 * profile-count.c: Add vertical spacing in order
25597 to separate functions.
25598 * profile-count.h: Likewise.
25599
25600 2019-05-20 Martin Liska <mliska@suse.cz>
25601
25602 * profile-count.h: Do not use full qualified
25603 names if possible.
25604 * profile-count.c (profile_count::to_frequency): Likewise.
25605
25606 2019-05-20 Martin Liska <mliska@suse.cz>
25607
25608 * profile-count.h (enum profile_quality): Use capital letters
25609 for enum value names. Use the adjusted names.
25610 * profile-count.c: Use the adjusted names.
25611
25612 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25613
25614 * config/rs6000/constraints.md (define_register_constraint "wH"):
25615 Delete.
25616 (define_register_constraint "wI"): Delete.
25617 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25618 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
25619 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25620 (rs6000_init_hard_regno_mode_ok): Adjust.
25621 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
25622 resp. "d", or with "wa" as appropriate, all with "p8v".
25623 * config/rs6000/vsx.md: Ditto.
25624 * doc/md.texi (Machine Constraints): Adjust.
25625
25626 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25627
25628 * config/rs6000/constraints.md (define_register_constraint "wy"):
25629 Delete.
25630 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25631 RS6000_CONSTRAINT_wy.
25632 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25633 (rs6000_init_hard_regno_mode_ok): Adjust.
25634 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
25635 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
25636 (define_mode_attr Fisa): New.
25637 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
25638 * doc/md.texi (Machine Constraints): Adjust.
25639
25640 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25641
25642 * config/rs6000/constraints.md (define_register_constraint "wu"):
25643 Delete.
25644 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25645 RS6000_CONSTRAINT_wu.
25646 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25647 (rs6000_init_hard_regno_mode_ok): Adjust.
25648 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
25649 both with "p8v".
25650 (define_mode_attr Fa): Delete.
25651 * config/rs6000/vsx.md: Ditto.
25652 * doc/md.texi (Machine Constraints): Adjust.
25653
25654 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25655
25656 * config/rs6000/constraints.md (define_register_constraint "wJ"):
25657 Delete.
25658 (define_register_constraint "wK"): Delete.
25659 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25660 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
25661 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25662 (rs6000_init_hard_regno_mode_ok): Adjust.
25663 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
25664 Replace "wK" constraint by "wH" with "p9v".
25665 * config/rs6000/vsx.md: Ditto.
25666 * doc/md.texi (Machine Constraints): Adjust.
25667
25668 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25669
25670 * config/rs6000/constraints.md (define_register_constraint "wb"):
25671 Delete.
25672 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25673 RS6000_CONSTRAINT_wb.
25674 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25675 (rs6000_init_hard_regno_mode_ok): Adjust.
25676 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
25677 * config/rs6000/vsx.md: Ditto.
25678 * doc/md.texi (Machine Constraints): Adjust.
25679
25680 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25681
25682 * config/rs6000/constraints.md (define_register_constraint "wo"):
25683 Delete.
25684 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25685 RS6000_CONSTRAINT_wo.
25686 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25687 (rs6000_init_hard_regno_mode_ok): Adjust.
25688 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
25689 * config/rs6000/altivec.md: Ditto.
25690 * doc/md.texi (Machine Constraints): Adjust.
25691
25692 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25693
25694 * config/darwin-c.c (darwin_register_objc_includes): Do not
25695 prepend the sysroot when building gnu-runtime header search
25696 paths.
25697
25698 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25699
25700 * config/darwin.c (darwin_file_end): Use switch_to_section ()
25701 instead of direct output of the asm.
25702
25703 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25704
25705 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
25706 argument to be type bool (was int before).
25707 (rs6000_emit_epilogue): Simplify some code. Declare some variables
25708 at first use. Use type bool for some variables. Fix a theoretical
25709 eh_return bug for svr4.
25710
25711 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25712
25713 * config/rs6000/rs6000.md (isa): New attribute.
25714 (enabled): New attribute.
25715
25716 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
25717
25718 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
25719 assemble_start_function and assemble_end_function.
25720
25721 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
25722
25723 PR middle-end/89433
25724 * omp-general.c (oacc_verify_routine_clauses): Change formal
25725 parameters. Add checking if already marked with an OpenACC
25726 'routine' directive. Adjust all users.
25727
25728 PR middle-end/89433
25729 * omp-general.c (oacc_build_routine_dims): Move some of its
25730 processing into...
25731 (oacc_verify_routine_clauses): ... this new function.
25732 * omp-general.h (oacc_verify_routine_clauses): New prototype.
25733
25734 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25735
25736 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
25737 formating of picbase labels to match other ports.
25738
25739 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25740
25741 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
25742 in the generated code.
25743
25744 2019-05-16 Martin Sebor <msebor@redhat.com>
25745
25746 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
25747 identifiers, keywords, operators, and types in diagnostics. Correct
25748 quoting, spelling, and sentence capitalization issues.
25749 (expand_builtin_atomic_is_lock_free): Same.
25750 (fold_builtin_next_arg): Same.
25751 * cfgexpand.c (expand_one_var): Same.
25752 (tree_conflicts_with_clobbers_p): Same.
25753 (expand_asm_stmt): Same.
25754 (verify_loop_structure): Same.
25755 * cgraphunit.c (process_function_and_variable_attributes): Same.
25756 * collect-utils.c (collect_execute): Same.
25757 * collect2.c (maybe_run_lto_and_relink): Same.
25758 (is_lto_object_file): Same.
25759 (scan_prog_file): Same.
25760 * convert.c (convert_to_real_1): Same.
25761 * dwarf2out.c (dwarf2out_begin_prologue): Same.
25762 * except.c (verify_eh_tree): Same.
25763 * gcc.c (execute): Same.
25764 (eval_spec_function): Same.
25765 (run_attempt): Same.
25766 (driver::set_up_specs): Same.
25767 (compare_debug_auxbase_opt_spec_function): Same.
25768 * gcov-tool.c (unlink_gcda_file): Same.
25769 (do_merge): Same.
25770 (do_rewrite): Same.
25771 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
25772 * gimplify.c (gimplify_asm_expr): Same.
25773 (gimplify_adjust_omp_clauses): Same.
25774 * hsa-gen.c (gen_hsa_addr_insns): Same.
25775 (gen_hsa_insns_for_load): Same.
25776 (gen_hsa_cmp_insn_from_gimple): Same.
25777 (gen_hsa_insns_for_operation_assignment): Same.
25778 (gen_get_level): Same.
25779 (gen_hsa_alloca): Same.
25780 (omp_simple_builtin::generate): Same.
25781 (gen_hsa_atomic_for_builtin): Same.
25782 (gen_hsa_insns_for_call): Same.
25783 * input.c (dump_location_info): Same.
25784 * ipa-devirt.c (compare_virtual_tables): Same.
25785 * ira.c (ira_setup_eliminable_regset): Same.
25786 * lra-assigns.c (lra_assign): Same.
25787 * lra-constraints.c (lra_constraints): Same.
25788 * lto-streamer-in.c (lto_input_mode_table): Same.
25789 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
25790 (merge_and_complain): Same.
25791 (compile_offload_image): Same.
25792 (compile_images_for_offload_targets): Same.
25793 (debug_objcopy): Same.
25794 (run_gcc): Same.
25795 (main): Same.
25796 * opts.c (print_specific_help): Same.
25797 (parse_no_sanitize_attribute): Same.
25798 (print_help): Same.
25799 (handle_param): Same.
25800 * plugin.c (add_new_plugin): Same.
25801 (parse_plugin_arg_opt): Same.
25802 (try_init_one_plugin): Same.
25803 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
25804 operators, and types in diagnostics. Correct quoting and spelling
25805 issues.
25806 * read-rtl-function.c (parse_edge_flag_token): Same.
25807 (function_reader::parse_enum_value): Same.
25808 * reg-stack.c (check_asm_stack_operands): Same.
25809 * regcprop.c (validate_value_data): Same.
25810 * sched-rgn.c (make_pass_sched_fusion): Same.
25811 * stmt.c (check_unique_operand_names): Same.
25812 * targhooks.c (default_target_option_pragma_parse): Same.
25813 * tlink.c (recompile_files): Same.
25814 * toplev.c (process_options): Same.
25815 (do_compile): Same.
25816 * trans-mem.c (diagnose_tm_1): Same.
25817 (ipa_tm_scan_irr_block): Same.
25818 (ipa_tm_diagnose_transaction): Same.
25819 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
25820 format a tree code name in a diagnostic.
25821 (verify_types_in_gimple_min_lval): Same.
25822 (verify_types_in_gimple_reference): Same.
25823 (verify_gimple_call): Same.
25824 (verify_gimple_assign_unary): Same.
25825 (verify_gimple_assign_binary): Same.
25826 (verify_gimple_assign_ternary): Same.
25827 (verify_gimple_assign_single): Same.
25828 (verify_gimple_switch): Same.
25829 (verify_gimple_label): Same.
25830 (verify_gimple_phi): Same.
25831 (verify_gimple_in_seq): Same.
25832 (verify_eh_throw_stmt_node): Same.
25833 (collect_subblocks): Same.
25834 (gimple_verify_flow_info): Same.
25835 (do_warn_unused_result): Same.
25836 * tree-inline.c (expand_call_inline): Same.
25837 * tree-into-ssa.c (update_ssa): Same.
25838 * tree.c (tree_int_cst_elt_check_failed): Same.
25839 (tree_vec_elt_check_failed): Same.
25840 (omp_clause_operand_check_failed): Same.
25841 (verify_type_variant): Same.
25842 (verify_type): Same.
25843 * value-prof.c (verify_histograms): Same.
25844 * varasm.c (assemble_start_function): Same.
25845
25846 2019-05-16 Martin Sebor <msebor@redhat.com>
25847
25848 * config/i386/i386-expand.c (get_element_number): Quote keywords
25849 and other internal names in diagnostics. Adjust other diagnostic
25850 formatting issues noted by -Wformat-diag.
25851 * config/i386/i386-features.c
25852 (ix86_mangle_function_version_assembler_name): Same.
25853 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
25854 * config/i386/i386.c (ix86_function_type_abi): Same.
25855 (ix86_function_ms_hook_prologue): Same.
25856 (classify_argument): Same.
25857 (ix86_expand_prologue): Same.
25858 (ix86_md_asm_adjust): Same.
25859 (ix86_memmodel_check): Same.
25860
25861 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
25862
25863 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
25864 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
25865 and fpxx modes.
25866
25867 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
25868
25869 PR target/90497
25870 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
25871 intrinsics without SSE/SSE2/SSSE3.
25872 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
25873 check.
25874 (*mmx_uavgv8qi3): Likewise.
25875
25876 2019-05-17 Richard Biener <rguenther@suse.de>
25877
25878 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
25879 VEC_PERM_EXPR as __VEC_PERM with -gimple.
25880
25881 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
25882
25883 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
25884 vec_sldw insn pattern.
25885
25886 2019-05-17 Richard Biener <rguenther@suse.de>
25887
25888 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
25889
25890 2019-05-17 Martin Liska <mliska@suse.cz>
25891
25892 PR driver/90496
25893 * toplev.c (output_stack_usage): With LTO and sanitizer it
25894 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
25895 has no file location.
25896
25897 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25898
25899 PR c++/90484
25900 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
25901 sz0 is equal to sz1, instead return false in that case.
25902
25903 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
25904 has non-constant expression, force sctx.lane and use two
25905 argument IFN_GOMP_SIMD_LANE instead of single argument.
25906 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
25907 two argument IFN_GOMP_SIMD_LANE without lhs.
25908 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
25909 member.
25910 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
25911 Define.
25912 (LOOP_REQUIRES_VERSIONING): Or in
25913 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
25914 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
25915 simd_if_cond.
25916 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
25917 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
25918 from simd if clause if needed.
25919
25920 2019-05-16 Richard Biener <rguenther@suse.de>
25921
25922 * tree-affine.c (expr_to_aff_combination): New function split
25923 out from...
25924 (tree_to_aff_combination): ... here.
25925 (aff_combination_expand): Avoid building a GENERIC tree.
25926
25927 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
25928
25929 * cgraphunit.c (cgraph_node::expand_thunk): Remove
25930 assemble_start_function and assemble_end_function calls.
25931 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
25932 assemble_start_function and assemble_end_function.
25933 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
25934 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
25935 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
25936 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
25937 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
25938 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
25939 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
25940 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
25941 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25942 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25943 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
25944 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
25945 Likewise.
25946 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
25947 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
25948 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
25949 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
25950 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25951 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25952 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
25953 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
25954 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25955 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25956 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25957 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25958 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
25959 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
25960 Likewise.
25961 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25962 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25963 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
25964
25965 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
25966
25967 * tree-ssa-alias.c (alias_stats): Add
25968 aliasing_component_refs_p_may_alias and
25969 aliasing_component_refs_p_no_alias.
25970 (dump_alias_stats): Print aliasing_component_refs_p stats.
25971 (aliasing_component_refs_p): Update stats.
25972
25973 2019-05-16 Martin Liska <mliska@suse.cz>
25974
25975 PR lto/90500
25976 * multiple_target.c (expand_target_clones): Do not allow
25977 target_clones being used with a symbol that is an alias.
25978
25979 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
25980
25981 PR tree-optimization/90394
25982 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
25983 positives rather than ICE for cases where (code2 == NE_EXPR
25984 && code1 == BIT_AND_EXPR).
25985
25986 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25987
25988 PR fortran/90329
25989 * tree-core.h (struct tree_decl_common): Document
25990 decl_nonshareable_flag for PARM_DECLs.
25991 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
25992 * calls.c (expand_call): Don't try tail call if caller
25993 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
25994 passed on the stack and callee needs to pass any arguments on the
25995 stack.
25996 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
25997 else if instead of series of mutually exclusive ifs. Handle
25998 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
25999 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26000
26001 * lto-streamer.h (LTO_major_version): Bump to 9.
26002
26003 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26004
26005 PR tree-optimization/90106
26006 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26007 new parameter as new internal function call, also move it to new
26008 basic block.
26009 (use_internal_fn): Pass internal function call to
26010 shrink_wrap_one_built_in_call_with_conds.
26011
26012 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26013
26014 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26015 max_vf to 1.
26016 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26017 safelen_int and set loop->dont_vectorize.
26018
26019 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26020
26021 PR target/89021
26022 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26023 SSE/SSE2/SSSE3.
26024 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26025 Likewise.
26026 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26027 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26028 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26029 is defined.
26030
26031 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26032
26033 PR target/89021
26034 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26035 define_insn_and_split to support SSE emulation.
26036 (*vec_extractv2sf_0): Likewise.
26037 (*vec_extractv2sf_1): Likewise.
26038 (*vec_extractv2si_0): Likewise.
26039 (*vec_extractv2si_1): Likewise.
26040 (*vec_extractv2si_zext_mem): Likewise.
26041 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26042 (vec_extractv2sf_1 splitter): Likewise.
26043 (vec_extractv2sfsf): Likewise.
26044 (vec_setv2si): Likewise.
26045 (vec_extractv2si_1 splitter): Likewise.
26046 (vec_extractv2sisi): Likewise.
26047 (vec_setv4hi): Likewise.
26048 (vec_extractv4hihi): Likewise.
26049 (vec_setv8qi): Likewise.
26050 (vec_extractv8qiqi): Likewise.
26051 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26052 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26053 (vec_extractv2sisi): Likewise.
26054 (vec_extractv4hihi): Likewise.
26055 (vec_extractv8qiqi): Likewise.
26056 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26057 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26058 (vec_initv2sisi): Likewise.
26059 (vec_initv4hihi): Likewise.
26060 (vec_initv8qiqi): Likewise.
26061 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26062 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26063 (vec_setv4hi): Likewise.
26064 (vec_setv8qi): Likewise.
26065
26066 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26067
26068 PR target/89021
26069 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26070 TARGET_MMX_WITH_SSE.
26071 (MMXMODE:*mov<mode>_internal): Likewise.
26072 (MMXMODE:movmisalign<mode>): Likewise.
26073
26074 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26075
26076 PR target/89021
26077 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26078 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26079 (sse2_cvtpd2pi): Ditto.
26080 (sse2_cvttpd2pi): Ditto.
26081 (*vec_concatv2sf_sse4_1): Ditto.
26082 (*vec_concatv2sf_sse): Ditto.
26083 (*vec_concatv2si_sse4_1): Ditto.
26084 (*vec_concatv2si): Ditto.
26085 (*vec_concatv4si_0): Ditto.
26086 (*vec_concatv2di_0): Ditto.
26087
26088 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26089
26090 PR target/89021
26091 * config/i386/sse.md (abs<mode>2): Add 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_palignrdi): Changed to
26097 define_insn_and_split to support SSE emulation.
26098
26099 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26100
26101 PR target/89021
26102 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26103
26104 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26105
26106 PR target/89021
26107 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26108 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26109 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_pmulhrswv4hi3): Require TARGET_MMX
26115 or TARGET_MMX_WITH_SSE.
26116 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26117
26118 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26119
26120 PR target/89021
26121 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26122
26123 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26124
26125 PR target/89021
26126 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26127 Changed to define_insn_and_split to support SSE emulation.
26128
26129 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26130
26131 PR target/89021
26132 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26133 Changed to define_insn_and_split to support SSE emulation.
26134
26135 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26136
26137 PR target/89021
26138 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26139 (*mmx_<emms>): This.
26140 (mmx_<emms>): New expander.
26141
26142 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26143
26144 PR target/89021
26145 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26146 support.
26147 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26148
26149 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26150
26151 PR target/89021
26152 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26153
26154 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26155
26156 PR target/89021
26157 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26158
26159 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26160
26161 PR target/89021
26162 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26163 TARGET_MMX_WITH_SSE.
26164 (*mmx_uavgv4hi3): Add SSE emulation.
26165
26166 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26167
26168 PR target/89021
26169 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26170 and TARGET_MMX_WITH_SSE.
26171 (*mmx_uavgv8qi3): Add SSE emulation.
26172
26173 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26174
26175 PR target/89021
26176 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26177 maskmovdqu for __MMX_WITH_SSE__.
26178
26179 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26180
26181 PR target/89021
26182 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26183 TARGET_MMX and TARGET_MMX_WITH_SSE.
26184 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26185
26186 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26187
26188 PR target/89021
26189 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26190 define_insn_and_split to support 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_<code>v4hi3): Also check TARGET_MMX
26196 and TARGET_MMX_WITH_SSE.
26197 (mmx_<code>v8qi3): Likewise.
26198 (smaxmin:<code>v4hi3): New.
26199 (umaxmin:<code>v8qi3): Likewise.
26200 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26201 (umaxmin:*mmx_<code>v8qi3): Likewise.
26202
26203 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26204
26205 PR target/89021
26206 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26207 TARGET_MMX_WITH_SSE.
26208 (*mmx_pinsrw): Add SSE emulation.
26209
26210 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26211
26212 PR target/89021
26213 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26214
26215 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26216
26217 PR target/89021
26218 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26219 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26220 SSE emulation.
26221
26222 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26223
26224 PR target/89021
26225 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26226 (sse_cvttps2pi): Likewise.
26227
26228 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26229
26230 PR target/89021
26231 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26232 TARGET_MMX_WITH_SSE.
26233 (mmx_pshufw_1): Add SSE emulation.
26234 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26235 TARGET_MMX_WITH_SSE to support SSE emulation.
26236
26237 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26238
26239 PR target/89021
26240 * config/i386/constraints.md (Yw): New constraint.
26241 * config/i386/mmx.md (*vec_dupv2si): Changed to
26242 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26243 support SSE emulation.
26244
26245 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26246
26247 PR target/89021
26248 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26249 TARGET_MMX_WITH_SSE.
26250 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26251 support.
26252 (mmx_gt<mode>3): Likewise.
26253
26254 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26255
26256 PR target/89021
26257 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26258 TARGET_MMX_WITH_SSE. Add SSE support.
26259
26260 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26261
26262 PR target/89021
26263 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26264 TARGET_MMX_WITH_SSE.
26265 (any_logic:<code><mode>3): New.
26266 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26267 Add SSE support.
26268
26269 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26270
26271 PR target/89021
26272 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26273 TARGET_MMX_WITH_SSE. Add SSE emulation.
26274 (mmx_<shift_insn><mode>3): Likewise.
26275 (ashr<mode>3): New.
26276 (<shift_insn><mode>3): Likewise.
26277
26278 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26279
26280 PR target/89021
26281 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26282 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26283
26284 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26285
26286 PR target/89021
26287 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26288 TARGET_MMX_WITH_SSE.
26289 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26290 SSE support.
26291
26292 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26293
26294 PR target/89021
26295 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26296 TARGET_MMX_WITH_SSE.
26297 (mulv4hi3): New.
26298 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26299 support.
26300
26301 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26302
26303 PR target/89021
26304 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26305 (plusminus:mmx_<plusminus_insn><mode>3): Check
26306 TARGET_MMX_WITH_SSE.
26307 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26308 (<plusminus_insn><mode>3): New.
26309 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26310 (*mmx_<plusminus_insn><mode>3): Likewise.
26311
26312 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26313
26314 PR target/89021
26315 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26316 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26317 prototype.
26318 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26319 define_insn_and_split to support SSE emulation.
26320 (mmx_punpcklbw): Likewise.
26321 (mmx_punpckhwd): Likewise.
26322 (mmx_punpcklwd): Likewise.
26323 (mmx_punpckhdq): Likewise.
26324 (mmx_punpckldq): Likewise.
26325
26326 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26327 Uros Bizjak <ubizjak@gmail.com>
26328
26329 PR target/89021
26330 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26331 New function.
26332 (ix86_split_mmx_pack): Likewise.
26333 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26334 New prototype.
26335 (ix86_split_mmx_pack): Likewise.
26336 * config/i386/i386.md (mmx_isa): New.
26337 (enabled): Also check mmx_isa.
26338 * config/i386/mmx.md (any_s_truncate): New code iterator.
26339 (s_trunsuffix): New code attr.
26340 (mmx_packsswb): Removed.
26341 (mmx_packssdw): Likewise.
26342 (mmx_packuswb): Likewise.
26343 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26344 MMX packsswb/packuswb with SSE2.
26345 (mmx_packssdw): Likewise.
26346 * config/i386/predicates.md (register_mmxmem_operand): New.
26347
26348 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26349
26350 PR target/89021
26351 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26352 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26353 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26354 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26355 (ix86_vector_mode_supported_p): Likewise.
26356 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26357
26358 2019-05-15 Martin Liska <mliska@suse.cz>
26359
26360 PR middle-end/90478
26361 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26362 Check for overflow.
26363
26364 2019-05-15 Richard Biener <rguenther@suse.de>
26365
26366 * tree-into-ssa.c (pass_build_ssa::execute): Run
26367 update_address_taken before going into SSA.
26368
26369 2019-05-15 Richard Biener <rguenther@suse.de>
26370
26371 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26372 as __BIT_FIELD_REF with type with -gimple.
26373
26374 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
26375
26376 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26377 semantically equivalent branches (left over after prior refactorings).
26378
26379 2019-05-15 Richard Biener <rguenther@suse.de>
26380
26381 PR tree-optimization/88828
26382 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
26383 bogus check.
26384
26385 2019-05-14 Richard Biener <rguenther@suse.de>
26386
26387 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
26388 as __VIEW_CONVERT with -gimple.
26389
26390 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26391
26392 PR target/82920
26393 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
26394 Darwin.
26395
26396 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26397
26398 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
26399 define_split to become a define_insn_and_split.
26400
26401 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26402
26403 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
26404 arguments.
26405 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
26406 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
26407 (sibcall_epilogue): Adjust.
26408 (epilogue): Adjust.
26409
26410 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26411
26412 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
26413 to unsupported ones.
26414 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
26415 * config.host: Likewise.
26416 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
26417 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
26418 __svr4__]: Remove "brand" fallback.
26419 [!KSTAT_DATA_STRING]: Remove.
26420 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
26421 to *-*-solaris2*.
26422 (comdat_group): Likewise.
26423 (set_have_as_tls): Likewise.
26424 (gcc_cv_target_dl_iterate_phdr): Likewise.
26425 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
26426 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
26427 * configure: Regenerate.
26428 * doc/install.texi: Simplify Solaris target triplets.
26429 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
26430 (Specific, *-*-solaris2*): Document Solaris 10 removal.
26431 Remove Solaris 10 references.
26432 Remove obsolete Solaris bug reference.
26433 (Specific, sparc-sun-solaris2.10): Remove.
26434
26435 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
26436
26437 * config/i386/i386.md (any_div): New code iterator.
26438 (paired_mod): New code attribute.
26439 (sgnprefix): Handle DIV and UDIV RTXes.
26440 (u): Ditto.
26441 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
26442 and udivmod<mode>4 patterns using any_div code iterator.
26443 (divmod splitters): Macroize splitters using any_div code iterator.
26444 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
26445 (*udivmodsi4_pow2_zext_2): Ditto.
26446 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
26447 and *udivmod<mode>4_noext patterns using any_div code iterator.
26448 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
26449 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
26450 patterns using any_div code iterator.
26451 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
26452 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
26453 patterns using any_div code iterator.
26454 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
26455 udivmodhiqi3 patterns using any_extend code iterator.
26456
26457 2019-05-14 Richard Biener <rguenther@suse.de>
26458 H.J. Lu <hongjiu.lu@intel.com>
26459
26460 PR tree-optimization/88828
26461 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
26462 permuting in a single non-constant element not extracted
26463 from a vector.
26464
26465 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
26466
26467 * internal-fn.def (SIGNBIT): New.
26468 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
26469 defined.
26470 (signbitv4sf2): Likewise.
26471
26472 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
26473
26474 PR target/90357
26475 * config/mips/mips.c (mips_split_move): Skip forward SRC into
26476 next insn when the SRC reg is dead.
26477
26478 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
26479
26480 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
26481 (alloc_cand_and_find_basis): Ditto.
26482 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
26483 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
26484 (create_add_imm_cand, slsr_process_cast): Ditto.
26485 (slsr_process_copy, replace_mult_candidate): Ditto.
26486 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
26487 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
26488 (pass_strength_reduction::execute): Init the first NULL element.
26489
26490 2019-05-13 Nathan Sidwell <nathan@acm.org>
26491
26492 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
26493 (run_attempt): Reformat line break.
26494
26495 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
26496
26497 PR target/90418
26498 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
26499 data registers in sibcall epilogues.
26500 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26501
26502 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
26503
26504 PR target/89221
26505 * configure.ac (--enable-frame-pointer):
26506 Disable by default for cygwin and mingw.
26507 * configure: Regenerate.
26508
26509 2019-05-13 Nathan Sidwell <nathan@acm.org>
26510
26511 * dwarf2out.c (breakout_comdat_types): Move comment to correct
26512 piece of code.
26513 (const_ok_for_output_1): Balance parens around #if/#else/#endif
26514 (gen_member_die): Move abstract origin check earlier. Only VARs
26515 can be static_inline_p. Simplify splicing control flow.
26516
26517 2019-05-13 Richard Biener <rguenther@suse.de>
26518
26519 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
26520 VIEW_CONVERT_EXPR.
26521 (vect_build_slp_tree_1): Likewise.
26522
26523 2019-05-13 Richard Biener <rguenther@suse.de>
26524
26525 PR tree-optimization/90402
26526 * tree-if-conv.c (tree_if_conversion): Value number only
26527 the loop body by making the latch an exit of the region
26528 as well.
26529 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
26530 processing PHIs.
26531 (do_rpo_vn): Deal with multiple edges into the entry block
26532 that are not backedges inside the region by skipping PHIs
26533 of the entry block.
26534
26535 2019-05-13 Richard Biener <rguenther@suse.de>
26536
26537 PR tree-optimization/90316
26538 * tree-ssa-pre.c (insert_aux): Fold into ...
26539 (insert): ... this function. Use a RPO walk to reduce the
26540 number of required iterations.
26541
26542 2019-05-13 Martin Liska <mliska@suse.cz>
26543
26544 PR tree-optimization/90416
26545 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
26546 string instead of passing the second part as va_arg argument.
26547
26548 2019-05-13 Martin Liska <mliska@suse.cz>
26549
26550 PR gcov-profile/90380
26551 * gcov.c (handle_cycle): Do not support zero cycle count,
26552 it should not be possible.
26553 (path_contains_zero_cycle_arc): New function.
26554 (circuit): Ignore zero cycle arc counts.
26555
26556 2019-05-13 Martin Liska <mliska@suse.cz>
26557
26558 PR gcov-profile/90380
26559 * gcov.c (enum loop_type): Remove the enum and
26560 the operator.
26561 (handle_cycle): Assert that we should not reach
26562 a negative count.
26563 (circuit): Use loop_found instead of a tri-state loop_type.
26564 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
26565 happen.
26566
26567 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26568
26569 PR target/82920
26570 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
26571 (ix86_output_indirect_branch_via_reg): Use output mechanism
26572 accounting for __USER_LABEL_PREFIX__.
26573 (ix86_output_indirect_branch_via_push): Likewise.
26574 (ix86_output_function_return): Likewise.
26575 (ix86_output_indirect_function_return): Likewise.
26576
26577 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
26578
26579 * doc/md.texi: Document use of code attributes in rtx patterns.
26580 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
26581 * read-rtl.c (find_code): Split out search loops into...
26582 (maybe_find_code): ...this new function.
26583 (check_code_iterator): Make the error message more informative.
26584 (check_code_attribute): New function.
26585 (rtx_reader::rtx_alloc_for_name): Likewise.
26586 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
26587 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
26588 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
26589 <max_opp> directly as an rtx code instead of via a match_operator.
26590 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
26591 (<su>abd<mode>_3): Update accordingly.
26592
26593 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26594
26595 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
26596 is given, print the state of the EH "save world" computation for
26597 Darwin.
26598
26599 2019-05-11 Jakub Jelinek <jakub@redhat.com>
26600
26601 PR c++/59813
26602 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
26603 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26604
26605 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
26606
26607 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
26608 Use pinsrd for TARGET_SSE4_1.
26609 * config/i386/sse.md (movdi_to_sse): Ditto.
26610
26611 2019-05-10 Richard Biener <rguenther@suse.de>
26612
26613 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
26614 (do_rpo_vn): Initialize next_value_id.
26615
26616 2019-05-10 Martin Liska <mliska@suse.cz>
26617
26618 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26619 Fix plural form.
26620
26621 2019-05-10 Jakub Jelinek <jakub@redhat.com>
26622
26623 PR tree-optimization/90385
26624 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
26625 arguments of the exit phis.
26626
26627 PR c++/90383
26628 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
26629 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
26630 id->do_not_fold.
26631 (copy_tree_body_r): Likewise.
26632 (copy_fn): Set id.do_not_fold to true.
26633
26634 2019-05-10 Martin Liska <mliska@suse.cz>
26635
26636 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
26637 Reapply changes from r269790.
26638
26639 2019-05-10 Martin Liska <mliska@suse.cz>
26640
26641 PR middle-end/90340
26642 * doc/invoke.texi: New params.
26643 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
26644 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
26645 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26646 Use it.
26647 * tree-switch-conversion.h (struct jump_table_cluster):
26648 Likewise.
26649
26650 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
26651
26652 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
26653
26654 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
26655
26656 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
26657
26658 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
26659
26660 PR rtl-optimization/88879
26661 * sel-sched.c (sel_target_adjust_priority): Remove assert.
26662
26663 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
26664
26665 PR target/90405
26666 * config/arm/arm.c (callee_saved_reg_p): Move before
26667 thumb_find_work_register.
26668 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
26669 thumb_find_work_register. Only call df_get_live_out once.
26670 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
26671 (thumb_find_work_register): Use
26672 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
26673 algorithms to locate a spare call clobbered reg.
26674
26675 2019-05-09 Martin Liska <mliska@suse.cz>
26676
26677 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
26678 and MAX_EXPR in GIMPLE FE format.
26679
26680 2019-05-09 Martin Liska <mliska@suse.cz>
26681
26682 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
26683 * gimple-pretty-print.c (dump_gimple_bb_header):
26684 Dump BB count.
26685 (pp_cfg_jump): Dump edge probability.
26686 * profile-count.c (profile_quality_as_string): Simplify
26687 with a static array.
26688 (parse_profile_quality): New function.
26689 (profile_count::dump): Simplify with a static array.
26690 (profile_count::from_gcov_type): Add new argument.
26691 * profile-count.h (parse_profile_quality): Likewise.
26692 * predict.h (set_hot_bb_threshold): New.
26693 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26694 New param.
26695 * predict.c (get_hot_bb_threshold): Set from the new param.
26696 (set_hot_bb_threshold): New.
26697
26698 2019-05-09 Richard Biener <rguenther@suse.de>
26699
26700 PR tree-optimization/90395
26701 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
26702 rewrite vector stores that throw internally.
26703
26704 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
26705
26706 * cif-code.def (CHKP): Remove.
26707
26708 PR target/89221
26709 * configure.ac (--enable-frame-pointer): Disable by default for
26710 GNU systems.
26711 * configure: Regenerate.
26712
26713 2019-05-09 Alan Modra <amodra@gmail.com>
26714
26715 PR target/89271
26716 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
26717 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
26718 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
26719 cost for general <-> vsx when direct moves are available.
26720 Cost union classes at minimal cost for any reg in the class.
26721 Correct calculation for moves between vsx, float, and altivec.
26722 Don't return a low cost for moves between special regs. Don't
26723 use hard coded register numbers.
26724 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
26725 (rs6000_ira_change_pseudo_allocno_class): New function.
26726 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
26727 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
26728 alternatives.
26729 (movsi_internal1): Don't disparage vector alternatives.
26730 (mov<mode>_internal): Likewise, excepting alternative that
26731 will be split.
26732 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
26733 we <- b alternative.
26734
26735 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26736
26737 PR c++/59813
26738 PR tree-optimization/89060
26739 * tree-ssa-live.h (live_vars_map): New typedef.
26740 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
26741 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
26742 (struct compute_live_vars_data): New type.
26743 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
26744 live_vars_at_stmt, destroy_live_vars): New functions.
26745 * tree-tailcall.c: Include tree-ssa-live.h.
26746 (live_vars, live_vars_vec): New global variables.
26747 (find_tail_calls): Perform variable life analysis before punting.
26748 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
26749 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
26750 member.
26751 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
26752 Perform variable life analysis to select variables that really need
26753 clobbers added.
26754 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
26755 instead set id->eh_landing_pad_dest and assert it is the same.
26756 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
26757
26758 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
26759 Richard Earnshaw <rearnsha@arm.com>
26760
26761 PR target/88167
26762 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
26763 function.
26764 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
26765 (thumb1_compute_save_core_reg_mask): Don't force a spare work
26766 register if both the epilogue and prologue can use call-clobbered
26767 regs.
26768 (thumb1_unexpanded_epilogue): Use
26769 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
26770 picking temporaries for restoring high regs to match that of the
26771 prologue where possible.
26772 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
26773 the list of work registers. Detect if the return address is still live
26774 at the end of the prologue and avoid using it for a work register if so.
26775 If the return address is not live, add LR to the list of pushable regs
26776 after the first pass.
26777
26778 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26779
26780 PR tree-optimization/90078
26781 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
26782 (INFTY): Increase the value for infinite cost.
26783 (struct comp_cost): Promote type of members to int64_t.
26784 (infinite_cost): Don't set complexity in initialization.
26785 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
26786 overflows to infinite_cost.
26787 (adjust_setup_cost): Promote type of parameter and cost computation
26788 to int64_t.
26789 (struct ainc_cost_data, struct iv_ca): Promote type of member to
26790 int64_t.
26791 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
26792 cost computation to int64_t.
26793 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
26794 int64_t's format specifier in dump.
26795
26796 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26797
26798 PR tree-optimization/90240
26799 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
26800 with respect to scaling factor pre-computed for each basic block.
26801 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
26802 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
26803 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
26804 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
26805 live range for array of loop's basic blocks. Cleanup aux field of
26806 loop's basic blocks.
26807
26808 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26809
26810 PR tree-optimization/90356
26811 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
26812
26813 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
26814
26815 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
26816 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
26817 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
26818 (ix86_handle_option): Handle -mavx512bf16.
26819 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
26820 to extra_headers.
26821 * config/i386/avx512bf16vlintrin.h: New.
26822 * config/i386/avx512bf16intrin.h: New.
26823 * config/i386/cpuid.h (bit_AVX512BF16): New.
26824 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
26825 * config/i386/i386-builtin-types.def: Add new types.
26826 * config/i386/i386-builtin.def: Add new builtins.
26827 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26828 __AVX512BF16__.
26829 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
26830 (ix86_option_override_internal): Handle BF16.
26831 (ix86_valid_target_attribute_inner_p): Ditto.
26832 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
26833 * config/i386/i386-builtin.c (enum processor_features): Add
26834 F_AVX512BF16.
26835 (static const _isa_names_table isa_names_table): Ditto.
26836 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
26837 (PTA_AVX512BF16): Ditto.
26838 * config/i386/i386.opt: Add -mavx512bf16.
26839 * config/i386/immintrin.h: Include avx512bf16intrin.h
26840 and avx512bf16vlintrin.h.
26841 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
26842 avx512f_cvtneps2bf16_<mode><mask_name>,
26843 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
26844 * config/i386/subst.md (mask_half): Add new subst.
26845 * doc/invoke.texi: Document -mavx512bf16.
26846
26847 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26848
26849 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
26850 Delete declaration.
26851 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
26852 (rs6000_debug_legitimize_reload_address): Delete.
26853 (rs6000_legitimize_reload_address_ptr): Delete.
26854 (rs6000_option_override_internal): Adjust.
26855 (mem_operand_gpr): Adjust comment.
26856 (legitimate_lo_sum_address_p): Ditto.
26857 (rs6000_legitimize_reload_address): Delete.
26858 (rs6000_debug_legitimize_reload_address): Delete.
26859 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
26860
26861 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
26862
26863 PR target/89765
26864 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26865 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
26866 to compute vector element selector for both constant and variable
26867 operands.
26868
26869 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26870
26871 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
26872 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
26873 ashrdi3_cvt using SWI48 mode iterator.
26874
26875 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26876
26877 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
26878 (aarch64_<su>abd<mode>_3): Likewise.
26879 (*aarch64_<su>abd<mode>_3): New define_insn.
26880 (<sur>sad<vsi2qi>): New define_expand.
26881 * config/aarch64/iterators.md: Added MAX_OPP attribute.
26882 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
26883 (build_vect_cond_expr): Likewise.
26884
26885 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26886
26887 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
26888 clobbers outside of accessible_reg_set.
26889 * config/i386/i386.c (ix86_conditional_register_usage):
26890 Disable register sets by clearing corresponding bits in
26891 accessible_reg_set. Do not set corresponding bits in fixed_regs,
26892 call_used_regs and don't clear corresponding reg_names array members.
26893
26894 2019-05-07 Richard Biener <rguenther@suse.de>
26895
26896 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
26897 not specified still compute a comp_vectype for invariant
26898 compares.
26899
26900 2019-05-07 Richard Biener <rguenther@suse.de>
26901
26902 PR tree-optimization/90316
26903 * tree-ssa-pre.c (translate_vuse_through_block): When
26904 same_valid is NULL do not bother to search for a virtual
26905 PHI continuation.
26906 (phi_translate_1): When operands changed we cannot keep
26907 the same value-number so do not bother to ask whether
26908 that's possible from translate_vuse_through_block.
26909
26910 2019-05-07 Martin Liska <mliska@suse.cz>
26911
26912 * bitmap.c (bitmap_register): Come up with
26913 alloc_descriptor_max_uid and assign it for
26914 a new bitmap.
26915 (register_overhead): Use get_descriptor as
26916 a descriptor.
26917 (release_overhead): New.
26918 (bitmap_elem_to_freelist): Call it.
26919 (bitmap_elt_clear_from): Likewise.
26920 (bitmap_obstack_free): Likewise.
26921 (bitmap_move): Sensitively release memory.
26922 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
26923 (bitmap_initialize): Initialize alloc_descriptor to zero.
26924 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
26925
26926 2019-05-07 Richard Biener <rguenther@suse.de>
26927
26928 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
26929 we build a SLP node. Remove max_size and limiting.
26930 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
26931
26932 2019-05-07 Richard Biener <rguenther@suse.de>
26933
26934 PR tree-optimization/90316
26935 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
26936 limit by reference.
26937 (walk_non_aliased_vuses): Take walking limit argument.
26938 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
26939 walking if it is reached instead of just counting.
26940 (get_continuation_for_phi): Likewise.
26941 (walk_non_aliased_vuses): Likewise, instead of leaving counter
26942 limiting to the callback.
26943 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
26944 (vn_reference_lookup_3): Likewise.
26945 (vn_reference_lookup_pieces): Likewise.
26946 (vn_reference_lookup): Likewise.
26947 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
26948 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
26949 (avail_exprs_stack::lookup_avail_expr): Likewise.
26950
26951 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
26952
26953 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
26954 for comparaible types in the second direction even if first one
26955 hits incomparable type.
26956
26957 2019-05-07 Richard Biener <rguenther@suse.de>
26958
26959 PR lto/90369
26960 * lto-wrapper.c (debug_objcopy): Use the original filename
26961 including archive offset for the filename used for -save-temps.
26962
26963 2019-05-07 Li Jia He <helijia@linux.ibm.com>
26964
26965 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
26966 detection.
26967
26968 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
26969 Hongtao Liu <hongtao.liu@intel.com>
26970
26971 PR target/89750
26972 PR target/86444
26973 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
26974 Modified, original implementation isn't correct.
26975
26976 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26977
26978 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
26979 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
26980 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
26981 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
26982 (FRAME_POINTER_REGNUM): Change numbering.
26983 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
26984 (alt_reg_names): Adjust.
26985 (rs6000_conditional_register_usage): Don't mark hard register 64 as
26986 fixed.
26987 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26988 (DWARF_FRAME_REGISTERS): Delete.
26989 (DWARF2_FRAME_REG_OUT): Fix whitespace.
26990 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26991 Adjust.
26992 (REG_ALLOC_ORDER): Adjust.
26993 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
26994 (REG_CLASS_CONTENTS): Adjust.
26995 (RETURN_ADDR_RTX): Change comment.
26996 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
26997 instead of 67.
26998 (REGISTER_NAMES): Adjust.
26999 (ADDITIONAL_REGISTER_NAMES): Adjust.
27000 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27001
27002 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27003
27004 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27005 Delete.
27006 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27007 (DWARF_FRAME_REGISTERS): Adjust.
27008 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27009 Adjust.
27010 (REG_ALLOC_ORDER): Adjust.
27011 (enum reg_class): Delete SPR_REGS.
27012 (REG_CLASS_NAMES): Delete SPR_REGS.
27013 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27014 (REGISTER_NAMES): Adjust.
27015 (ADDITIONAL_REGISTER_NAMES): Adjust.
27016 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27017 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27018 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27019 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27020 (htm_spr_regno): Delete.
27021 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27022 argument.
27023 (rs6000_dbx_register_number): Adjust.
27024
27025 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27026
27027 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27028
27029 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27030
27031 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27032 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27033
27034 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27035
27036 PR tree-optimization/88709
27037 PR tree-optimization/90271
27038 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27039 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27040 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27041 variable.
27042 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27043 of the store merging group is larger than
27044 PARAM_STORE_MERGING_MAX_SIZE parameter.
27045 (split_group): Add bzero_first argument. If set, always emit first
27046 the first store which must be = {} of the whole area and then for the
27047 rest of the stores consider all zero bytes as paddings.
27048 (imm_store_chain_info::output_merged_store): Check if first store
27049 is = {} of the whole area and if yes, determine which setting of
27050 bzero_first for split_group gives smaller number of stores. Adjust
27051 split_group callers.
27052 (lhs_valid_for_store_merging_p): Allow decls.
27053 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27054 no elts.
27055 (pass_store_merging::process_store): Likewise.
27056
27057 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27058
27059 PR target/89424
27060 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27061 handling of V1TImode.
27062
27063 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27064
27065 PR target/89221
27066 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27067 and enable_frame_pointer ...
27068 * configure.ac: ... here. Update help strings for
27069 --enable-frame-pointer.
27070 * configure: Regenerate.
27071 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27072 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27073 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27074 (USE_X86_64_FRAME_POINTER): Ditto.
27075
27076 2019-05-06 Martin Liska <mliska@suse.cz>
27077
27078 * config.gcc: Append to target_gtfiles and fix indentation.
27079
27080 2019-05-06 Richard Biener <rguenther@suse.de>
27081
27082 PR tree-optimization/90358
27083 * tree-vect-stmts.c (get_group_load_store_type): Properly
27084 detect unused upper half of load.
27085 (vectorizable_load): Likewise.
27086
27087 2019-05-06 Richard Biener <rguenther@suse.de>
27088
27089 PR tree-optimization/88828
27090 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27091 (simplify_vector_constructor): ...here. Handle constants in
27092 the constructor.
27093
27094 2019-05-06 Richard Biener <rguenther@suse.de>
27095
27096 PR tree-optimization/90328
27097 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27098 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27099 is valid in the loop nest before using it.
27100 (initialize_data_dependence_relation): Adjust.
27101 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27102 loop as loop-nest to dr_may_alias_p.
27103
27104 2019-05-06 Richard Biener <rguenther@suse.de>
27105
27106 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27107
27108 2019-05-06 Richard Biener <rguenther@suse.de>
27109
27110 PR tree-optimization/90316
27111 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27112 compute target on demand.
27113 (get_continuation_for_phi): Remove code walking stmts to
27114 get to a target virtual operand which could end up being
27115 quadratic.
27116
27117 2019-05-06 Martin Liska <mliska@suse.cz>
27118
27119 PR sanitizer/90312
27120 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27121 when -mabi is selected to a non-default version.
27122
27123 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27124 Martin Liska <mliska@suse.cz>
27125
27126 * Makefile.in: Add lto-dump.texi.
27127 * cgraph.h: Add new functions get_visibility_string and
27128 get_symtab_type_string.
27129 * doc/gcc.texi: Include lto-dump section.
27130 * doc/lto-dump.texi: New file.
27131 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27132 (parse_dump_option): Factor out this function.
27133 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27134 (parse_dump_option): Export the function.
27135 * symtab.c (symtab_node::get_visibility_string): New function.
27136 (symtab_node::get_symtab_type_string): Likewise.
27137
27138 2019-05-06 Martin Liska <mliska@suse.cz>
27139
27140 * config/i386/i386-builtins.c: New file.
27141 * config/i386/i386-builtins.h: New file.
27142 * config/i386/i386-expand.c: New file.
27143 * config/i386/i386-expand.h: New file.
27144 * config/i386/i386-features.c: New file.
27145 * config/i386/i386-features.h: New file.
27146 * config/i386/i386-options.c: New file.
27147 * config/i386/i386-options.h: New file.
27148 * config.gcc: Add new files into extra_objs and
27149 target_gtfiles.
27150 * config/i386/i386.c: Split content of the file
27151 into newly introduced files.
27152 * config/i386/i386.h: Declare common variables
27153 and macros.
27154 * config/i386/t-i386: Define dependencies for new files.
27155
27156 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27157
27158 PR target/89400
27159 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27160 Restrict 'all' variant to 32-bit configurations.
27161 (unaligned_loadhiu): Likewise.
27162 (unaligned_storehi): Likewise.
27163 (unaligned_storesi): Likewise.
27164 (unaligned_loadhis): Disable when compiling for thumb1.
27165
27166 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27167
27168 PR tree-optimization/90269
27169 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27170 Ignore clobbers.
27171
27172 2019-05-03 Martin Liska <mliska@suse.cz>
27173
27174 * hash-map.h: Add is_empty function.
27175 * hash-set.h: Likewise.
27176 * hash-table.h: Likewise.
27177 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27178 elements () == 0 (and similar usages).
27179 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27180 * gimplify.c (gimplify_bind_expr): Likewise.
27181 (gimplify_switch_expr): Likewise.
27182 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27183 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27184 * postreload-gcse.c (dump_hash_table): Likewise.
27185 (gcse_after_reload_main): Likewise.
27186 * predict.c (combine_predictions_for_bb): Likewise.
27187 * tree-parloops.c (reduction_phi): Likewise.
27188 (separate_decls_in_region): Likewise.
27189 (transform_to_exit_first_loop): Likewise.
27190 (gen_parallel_loop): Likewise.
27191 (gather_scalar_reductions): Likewise.
27192 (try_create_reduction_list): Likewise.
27193 * var-tracking.c (dump_vars): Likewise.
27194 (emit_notes_for_changes): Likewise.
27195 (vt_emit_notes): Likewise.
27196
27197 2019-05-03 Richard Biener <rguenther@suse.de>
27198
27199 PR tree-optimization/90316
27200 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27201 before running VN.
27202
27203 2019-05-03 Richard Biener <rguenther@suse.de>
27204
27205 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27206 peeling for gaps by loading only lower halves of vectors
27207 if possible.
27208 (vectorizable_load): Likewise.
27209
27210 2019-05-03 Richard Biener <rguenther@suse.de>
27211
27212 PR middle-end/89518
27213 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27214
27215 2019-05-03 Richard Biener <rguenther@suse.de>
27216
27217 PR middle-end/87314
27218 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27219 Handle STRING_CST vs DECL or STRING_CST.
27220
27221 2019-05-03 Richard Biener <rguenther@suse.de>
27222
27223 PR tree-optimization/88963
27224 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27225 vector loads feeding only BIT_FIELD_REFs to component
27226 loads. Rewrite stores fed by CONSTRUCTORs to component
27227 stores.
27228
27229 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27230
27231 * opts.h (finish_options): Remove lang_mask argument.
27232 (print_help, help_option_argument): Declare.
27233 * opts.c (print_help): Remove forward declaration, no longer static.
27234 (finish_options): Remove lang_mask argument, don't call print_help
27235 here.
27236 * opts-global.c (decode_options): Adjust finish_option caller, call
27237 print_help here.
27238
27239 PR tree-optimization/90303
27240 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27241 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27242
27243 2019-05-03 Richard Biener <rguenther@suse.de>
27244
27245 PR tree-optimization/89698
27246 * gimple-fold.c (canonicalize_constructor_val): Early out
27247 for constants, handle unfolded INTEGER_CSTs as they appear in
27248 C++ virtual table ctors.
27249
27250 2019-05-03 Richard Biener <rguenther@suse.de>
27251
27252 * passes.c (execute_function_todo): Remove dead code.
27253
27254 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27255
27256 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27257 the internal register number, for any "real" register.
27258
27259 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27260
27261 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27262 correct numbers for TFHAR, TFIAR, TEXASR.
27263
27264 2019-05-02 Richard Biener <rguenther@suse.de>
27265
27266 PR tree-optimization/89653
27267 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27268 update-address-taken before the pass.
27269 * passes.def (pass_tree_loop_init): Put comment before it.
27270
27271 2019-05-02 Richard Biener <rguenther@suse.de>
27272
27273 PR tree-optimization/89509
27274 * tree-ssa-structalias.c (compute_dependence_clique): Look
27275 at the first subvar when determining whether it is restrict.
27276
27277 2019-05-02 Richard Biener <rguenther@suse.de>
27278
27279 PR tree-optimization/90273
27280 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27281 useless debug stmts.
27282
27283 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27284
27285 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27286 ACLE branch.
27287 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27288 SVE ACLE branch.
27289 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27290 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27291 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27292 (vectorizable_reduction): Use the functions above to vectorize in a
27293 fully masked loop codes that don't have a conditional internal
27294 function.
27295
27296 2019-05-02 Martin Liska <mliska@suse.cz>
27297
27298 * cgraphclones.c: Call valid_attribute_p with 1 for
27299 target_clone.
27300 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27301 it's for target attribute.
27302 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27303 Add new boolean argument.
27304 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27305 Likewise.
27306 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27307 to ix86_valid_target_attribute_inner_p.
27308 (ix86_valid_target_attribute_p): Pass flags argument to
27309 ix86_valid_target_attribute_inner_p.
27310 (get_builtin_code_for_version): Use 0 as it's target attribute.
27311
27312 2019-05-02 Martin Liska <mliska@suse.cz>
27313
27314 * gcc.c (process_command): Add dummy file only
27315 if n_infiles == 0.
27316 * opts-global.c (decode_options): Pass lang_mask.
27317 * opts.c (print_help): New function.
27318 (finish_options): Print --help if help_option_argument
27319 is set.
27320 (common_handle_option): Factor out content of OPT__help_
27321 into print_help.
27322 * opts.h (finish_options): Add new argument.
27323
27324 2019-05-02 Martin Liska <mliska@suse.cz>
27325
27326 PR target/88809
27327 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27328 With -minline-all-stringops use inline expansion using 4B loop.
27329 * doc/invoke.texi: Document the change of
27330 -minline-all-stringops.
27331
27332 2019-05-01 Jeff Law <law@redhat.com>
27333
27334 PR tree-optimization/88797
27335 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27336 PHI feeds a conditional on the RHS of an assignment.
27337
27338 2019-04-30 Andrew Waterman <andrew@sifive.com>
27339 Jim Wilson <jimw@sifive.com>
27340
27341 * config/riscv/constraints.md (L): New.
27342 * config/riscv/predicates.md (lui_operand): New.
27343 (sfb_alu_operand): New.
27344 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27345 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27346 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27347 * config/riscv/risc.md (type): Add sfb_alu.
27348 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
27349 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
27350 (branch_zero<mode>): Delete.
27351 (mov<mode>cc): New.
27352 (mov<GPR:mode><X:mode>cc): Likewise.
27353 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
27354
27355 2019-04-30 Nathan Sidwell <nathan@acm.org>
27356
27357 * tree.h (MARK_TS_EXP): New.
27358
27359 2019-04-30 Martin Liska <mliska@suse.cz>
27360
27361 * opts.c (enable_warning_as_error): Provide hints
27362 for unknown options.
27363
27364 2019-04-30 Martin Liska <mliska@suse.cz>
27365
27366 PR debug/90288
27367 * doc/invoke.texi: Add missing dash for gas-locview-support
27368 and gno-as-locview-support.
27369
27370 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27371
27372 PR target/89093
27373 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27374 whitespace at the start of target attribute string.
27375
27376 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27377
27378 PR target/86538
27379 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27380 Define __ARM_FEATURE_ATOMICS.
27381
27382 2019-04-30 Martin Liska <mliska@suse.cz>
27383
27384 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
27385 into built_in_function enum. Remove code for endp == 2 and
27386 use BUILT_IN_* constants.
27387 (gimple_fold_builtin): Call the function with fcode.
27388
27389 2019-04-30 Martin Liska <mliska@suse.cz>
27390
27391 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
27392 DECL_FUNCTION_CODE into ix86_builtins enum before
27393 the switch statement.
27394
27395 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27396
27397 PR tree-optimization/89475
27398 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
27399 calls.
27400
27401 2019-04-30 Martin Liska <mliska@suse.cz>
27402
27403 PR translation/90274
27404 * opts.c (print_filtered_help): Wrap string in _(...).
27405
27406 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
27407
27408 PR tree-optimization/90240
27409 Revert:
27410 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27411
27412 PR tree-optimization/90078
27413 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27414 checks for infinite_cost overflow.
27415
27416 2019-04-29 Jeff Law <law@redhat.com>
27417
27418 * passes.def: Move -Wrestrict pass after copy propagation.
27419
27420 2019-04-29 Maya Rashish <coypu@sdf.org>
27421
27422 * config.gcc (default_gnu_indirect_function): Default to yes
27423 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
27424 sparc*-*-netbsd*, x86_64-*-netbsd*.
27425
27426 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
27427
27428 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
27429 where cond2 is NE_EXPR.
27430 (is_value_included_in): Update comment.
27431
27432 2019-04-29 Richard Biener <rguenther@suse.de>
27433
27434 PR tree-optimization/90278
27435 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
27436 EH on comparison simplification.
27437
27438 2019-04-29 Jason Merrill <jason@redhat.com>
27439
27440 PR c++/82081 - tail call optimization breaks noexcept
27441 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
27442 nothrow function to a might-throw function into a tail call.
27443
27444 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
27445
27446 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
27447 (DDR_INNER_LOOP): Likewise.
27448 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
27449 (initialize_data_dependence_relation): Likewise.
27450 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
27451
27452 2019-04-29 Jakub Jelinek <jakub@redhat.com>
27453
27454 PR rtl-optimization/90257
27455 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
27456 return value.
27457
27458 Revert the revert:
27459 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27460
27461 PR target/90178
27462 Revert:
27463 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27464
27465 Revert the revert:
27466 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27467
27468 Revert:
27469 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27470
27471 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27472
27473 2019-04-29 Richard Biener <rguenther@suse.de>
27474
27475 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
27476 rhs issue a reset.
27477
27478 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
27479
27480 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
27481 varasm.h, and netbsd-protos.h.
27482
27483 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
27484
27485 PR target/89261
27486 * config/i386/i386-protos.h (ix86_data_alignment): Change
27487 the second argument type to unsigned int.
27488 * config/i386/i386.c (ix86_data_alignment): Change "align"
27489 argument type to unsigned int.
27490
27491 2019-04-27 Martin Liska <mliska@suse.cz>
27492
27493 PR middle-end/90258
27494 * opt-suggestions.c (option_proposer::build_option_suggestions):
27495 When get_valid_option_values returns empty values, add the
27496 misspelling candidate.
27497
27498 2019-04-26 Jim Wilson <jimw@sifive.com>
27499
27500 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
27501 parameter.
27502 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
27503 Pass orig_mode to riscv_build_integer.
27504 (riscv_split_integer): Pass mode to riscv_move_integer.
27505 (riscv_legitimize_const_move): Likewise.
27506 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
27507 promoted_mode. Replace force_reg call with code to load constant into
27508 promoted reg and then subreg it for the store.
27509 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
27510 riscv_move_integer.
27511
27512 2018-04-26 Eugene Sharygin <eush@ispras.ru>
27513
27514 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
27515 corrupt codes.
27516
27517 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
27518
27519 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
27520 commentary about the encoding of precision.
27521
27522 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
27523
27524 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
27525 * config/i386/t-freebsd64: New file.
27526 * config.gcc: Add the t-freebsd64 for multilib support.
27527
27528 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
27529
27530 * doc/extend.texi (vector_size): Add missing comma after @xref.
27531
27532 2019-04-25 Jakub Jelinek <jakub@redhat.com>
27533
27534 * BASE-VER: Set to 10.0.0.
27535
27536 2019-04-25 Richard Biener <rguenther@suse.de>
27537
27538 PR middle-end/89765
27539 * gimplify.c (gimplify_expr): Avoid turning a lvalue
27540 VIEW_CONVERT_EXPR into one operating on an rvalue.
27541
27542 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
27543
27544 PR target/89929
27545 * config/i386/i386.c (feature_priority): Moved to file scope.
27546 (processor_features): Likewise.
27547 (processor_model): Likewise.
27548 (_arch_names_table): Likewise.
27549 (arch_names_table): Likewise.
27550 (_feature_list): Removed.
27551 (feature_list): Likewise.
27552 (_isa_names_table): Moved to file scope. Add priority.
27553 (isa_names_table): Likewise.
27554 (get_builtin_code_for_version): Replace feature_list with
27555 isa_names_table. Update error message for P_ZERO priority.
27556
27557 2019-04-25 Richard Biener <rguenther@suse.de>
27558
27559 * tree-pass.h (make_pass_phi_only_cprop): Remove.
27560 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
27561
27562 2019-04-24 Jeff Law <law@redhat.com>
27563
27564 PR tree-optimization/90037
27565 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
27566 * passes.def: Replace all instance of phi-only cprop with the
27567 lattice propagator. Move propagation pass from after erroneous
27568 path isolation to before erroneous path isolation.
27569 * tree-ssa-phionlycprop.c: Remove.
27570
27571 2019-04-24 Richard Biener <rguenther@suse.de>
27572
27573 PR middle-end/90213
27574 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
27575 by size and BITS_PER_UNIT on poly-wide-ints.
27576
27577 2019-04-25 Richard Biener <rguenther@suse.de>
27578
27579 PR middle-end/90194
27580 * match.pd: Add pattern to simplify view-conversion of an
27581 empty constructor.
27582
27583 2019-04-24 Clement Chigot <clement.chigot@atos.net>
27584
27585 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
27586 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
27587 for Go on 32 bit AIX.
27588 * config/rs6000/aix72.h: Likewise.
27589
27590 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27591
27592 PR target/90193
27593 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
27594 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
27595
27596 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
27597
27598 PR target/89952
27599 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
27600 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
27601 for restored hard frame pointer.
27602 (s390_sched_dependencies_evaluation): Implement new target hook.
27603 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
27604
27605 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
27606
27607 * config/arc/arc-options.def: Fix typos and spelling mistakes.
27608 * config/arc/arc.c (arc_init): Cleanup warning message.
27609 (arc_override_options): Likewise.
27610
27611 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27612
27613 PR target/90187
27614 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
27615 a register if both if_true and if_false are MEMs.
27616
27617 PR tree-optimization/90208
27618 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
27619 after labels of new_bb, not before them.
27620
27621 PR tree-optimization/90211
27622 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
27623 which are not SSA_NAMEs.
27624
27625 2018-04-23 Sudakshina Das <sudi.das@arm.com>
27626
27627 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
27628 AArch64.
27629 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
27630
27631 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27632
27633 PR rtl-optimization/87979
27634 * modulo-sched.c (sms_schedule): Start ii value "mii" should
27635 not equal zero.
27636
27637 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27638
27639 PR rtl-optimization/84032
27640 * modulo-sched.c (ps_insn_find_column): Change condition so that
27641 branch will always be the last insn in a row inside partial
27642 schedule.
27643
27644 2019-04-23 Richard Biener <rguenther@suse.de>
27645
27646 PR debug/90131
27647 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
27648 dest_single_pred_p argument.
27649 (remove_forwarder_block): Adjust.
27650 (remove_forwarder_block_with_phi): Likewise.
27651
27652 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27653 Bernd Edlinger <bernd.edlinger@hotmail.de>
27654 Jakub Jelinek <jakub@redhat.com>
27655
27656 PR target/89093
27657 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
27658 if used with general-regs-only.
27659 (arm_conditional_register_usage): Don't add non-general regs if
27660 general-regs-only.
27661 (arm_valid_target_attribute_rec): Handle general-regs-only.
27662 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
27663 general-regs-only.
27664 (TARGET_HARD_FLOAT_SUB): Define.
27665 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
27666 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
27667 (TARGET_REALLY_IWMMXT2): Likewise.
27668 * config/arm/arm.opt: Add -mgeneral-regs-only.
27669 * doc/extend.texi: Document ARM general-regs-only target.
27670 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
27671
27672 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27673
27674 PR tree-optimization/90078
27675 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27676 checks for infinite_cost overflow.
27677
27678 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27679
27680 PR tree-optimization/90021
27681 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
27682 and check univariate against it.
27683 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
27684 * tree-data-ref.c (add_other_self_distances): Pass new argument.
27685
27686 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27687
27688 PR target/90178
27689 Revert:
27690 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27691
27692 Revert the revert:
27693 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27694
27695 Revert:
27696 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27697
27698 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27699
27700 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
27701
27702 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
27703 names using operand format, rather than hard-wired.
27704 (speculation_barrier): Likewise.
27705
27706 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
27707
27708 PR tree-optimization/88055
27709 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
27710 (gen_one_condition): Use it if !HONOR_NANS.
27711
27712 2019-04-19 Jakub Jelinek <jakub@redhat.com>
27713
27714 PR middle-end/90139
27715 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
27716 assign_temp instead of gen_reg_rtx.
27717
27718 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
27719
27720 PR translation/90118
27721 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27722 Add missing space before %<.
27723
27724 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
27725
27726 PR rtl-optimization/87871
27727 * ira-lives.c (make_object_dead): Don't add conflicts to
27728 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
27729
27730 2019-04-18 Martin Sebor <msebor@redhat.com>
27731
27732 PR middle-end/89797
27733 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
27734 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
27735 assuming type size fits in SHWI.
27736
27737 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
27738
27739 PR ipa/85051
27740 * ipa-inline.c (flatten_function): New parameter UPDATE.
27741 (ipa_inline, early_inliner): Use it.
27742
27743 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27744
27745 * fold-const.c (int_const_binop): Return early on failure.
27746
27747 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27748
27749 PR middle-end/85164
27750 * combine.c (force_int_to_mode): Cast the argument rather than
27751 the result of known_alignment.
27752 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
27753
27754 2019-04-18 Richard Biener <rguenther@suse.de>
27755
27756 PR debug/90131
27757 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
27758 out from ...
27759 (remove_forwarder_block): ... here.
27760 (remove_forwarder_block_with_phi): Also move debug stmts here.
27761
27762 2019-04-18 Jakub Jelinek <jakub@redhat.com>
27763
27764 PR translation/79183
27765 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
27766 inform where appropriate.
27767
27768 2019-04-18 Richard Biener <rguenther@suse.de>
27769
27770 * tree.c (get_qualified_type): Put found type variants at the
27771 head of the variant list.
27772
27773 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27774
27775 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
27776
27777 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
27778
27779 PR target/90125
27780 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
27781 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
27782 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
27783 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
27784 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
27785
27786 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
27787
27788 * ira-conflicts.c (print_allocno_conflicts): Always print something,
27789 even for allocno's with no conflicts.
27790 (print_conflicts): Print an extra newline.
27791
27792 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27793
27794 * auto-inc-dec.c (attempt_change): Set the alignment of the
27795 temporary memory to that of the original.
27796
27797 2019-04-17 Joao Moreira <jmoreira@suse.de>
27798
27799 * targhooks.c (default_print_patchable_function_entry): Emit
27800 __patchable_function_entries section with writable flags to allow
27801 relocation resolution.
27802
27803 2019-04-17 Jonny Grant <jg@jguk.org>
27804
27805 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
27806
27807 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27808
27809 PR middle-end/90095
27810 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
27811 on lowpart SUBREGs.
27812
27813 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
27814
27815 * config/arc/arc.c (arc_init): Format diagnostic string.
27816 (arc_override_options): Likewise.
27817 (check_if_valid_regno_const): Likewise.
27818 (arc_reorg): Likewise.
27819
27820 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27821
27822 PR target/17108
27823 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
27824 name.
27825 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
27826 name.
27827 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
27828 (*movdi_update1): Use Pmode.
27829 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
27830 (movdi_<mode>_update_stack): Rename to ...
27831 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
27832 use Pmode.
27833 (*movsi_update1): Use Pmode.
27834 (*movsi_update2): Use Pmode.
27835 (movsi_update): Rename to ...
27836 (movsi_<mode>_update): ... this. Use Pmode.
27837 (movsi_update_stack): Fix condition.
27838 (*movhi_update1): Use Pmode. Fix argument to
27839 avoiding_indexed_address_p.
27840 (*movhi_update2): Ditto.
27841 (*movhi_update3): Ditto.
27842 (*movhi_update4): Ditto.
27843 (*movqi_update1): Ditto.
27844 (*movqi_update2): Ditto.
27845 (*movqi_update3): Ditto.
27846 (*movsf_update1, *movdf_update1): Merge, rename to...
27847 (*mov<mode>_update1): This. Use Pmode. Fix argument to
27848 avoiding_indexed_address_p. Add "size" attribute.
27849 (*movsf_update2, *movdf_update2): Merge, rename to...
27850 (*mov<mode>_update2): This. Ditto.
27851 (*movsf_update3): Use Pmode. Fix argument to
27852 avoiding_indexed_address_p.
27853 (*movsf_update4): Ditto.
27854 (allocate_stack): Simplify condition. Adjust pattern names.
27855
27856 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27857
27858 PR target/89093
27859 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
27860 whitespace at the start of target attribute string.
27861
27862 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
27863
27864 PR target/84369
27865 * config/rs6000/power9.md: Add store forwarding bypass.
27866
27867 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
27868
27869 PR debug/89528
27870 * valtrack.c (dead_debug_insert_temp): Reset debug references
27871 to the return value of a call being removed.
27872
27873 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27874
27875 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
27876 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
27877 implement target hook.
27878 (arc_memory_move_cost): New function.
27879 (TARGET_REGISTER_MOVE_COST): Define.
27880 (TARGET_MEMORY_MOVE_COST): Likewise.
27881 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
27882 (MEMORY_MOVE_COST): Likewise.
27883
27884 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27885
27886 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
27887 (sibcall_value_insn): Likewise.
27888 * config/arc/constraints.md (Rs5): Remove.
27889
27890 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27891
27892 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
27893 for last two fake registers.
27894 (arc_conditional_register_usage): Make sure fake frame and arg
27895 pointer regs are in general regs class.
27896 (FRAME_POINTER_MASK): Remove.
27897 (RETURN_ADDR_MASK): Remove.
27898 (arc_must_save_register): Use hard frame regnum.
27899 (frame_restore_reg): Use hard_frame_pointer_rtx.
27900 (arc_save_callee_saves): Likewise.
27901 (arc_restore_callee_saves): Likewise.
27902 (arc_save_callee_enter): Likewise.
27903 (arc_restore_callee_leave): Likewise.
27904 (arc_save_callee_milli): Likewise.
27905 (arc_eh_return_address_location): Likewise.
27906 (arc_check_multi): Use hard frame regnum.
27907 (arc_can_eliminate): Likewise.
27908 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
27909 for register allocator.
27910 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
27911 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
27912 (FRAME_POINTER_REGNUM): Change it to a fake register.
27913 (HARD_FRAME_POINTER_REGNUM): Defined.
27914 (ARG_POINTER_REGNUM): Change it to a new fake register.
27915 (ELIMINABLE_REGS): Update.
27916 (REGISTER_NAMES): Update names.
27917 * config/arc/arc.md (LP_START): Remove.
27918 (LP_END): Likewise.
27919 (shift_si3_loop): Update pattern.
27920
27921 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27922
27923 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
27924 to avoid delay slot scheduling.
27925 (arc_must_save_register): Don't save SP.
27926 * config/arc/arc.md (stack_tie): Remove.
27927 (UNSPEC_ARC_STKTIE): Likewise.
27928
27929 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
27930 Shiva Chen <shiva0217@gmail.com>
27931
27932 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
27933 code gen with large shift amount.
27934
27935 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
27936
27937 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
27938 subreg.
27939
27940 2019-04-16 Jakub Jelinek <jakub@redhat.com>
27941
27942 PR target/90096
27943 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
27944 print -m64/-mx32/-m32 if it is true.
27945 (ix86_debug_options, ix86_function_specific_print): Pass true as
27946 ADD_ABI_P to ix86_target_string.
27947 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
27948 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
27949 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
27950
27951 PR rtl-optimization/90082
27952 * dce.c (can_delete_call): New function.
27953 (deletable_insn_p, mark_insn): Use it.
27954
27955 PR tree-optimization/90090
27956 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
27957 throw internally.
27958 (is_division_by_square): Likewise. Formatting fix.
27959
27960 2019-04-16 Richard Biener <rguenther@suse.de>
27961
27962 PR tree-optimization/56049
27963 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
27964 equality check if alias-set zero will prevail.
27965
27966 2019-04-15 Jeff Law <law@redhat.com>
27967
27968 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
27969 size and alignment as unsigned.
27970
27971 2019-04-15 Richard Biener <rguenther@suse.de>
27972
27973 PR debug/90074
27974 * tree-loop-distribution.c (destroy_loop): Preserve correct
27975 debug info.
27976
27977 2019-04-15 Richard Biener <rguenther@suse.de>
27978
27979 PR tree-optimization/90071
27980 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
27981 abnormal operands from def stmts.
27982
27983 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
27984
27985 PR rtl-optimization/89794
27986 * combine.c (count_auto_inc): New function.
27987 (try_combine): Count how many auto_inc expressions there were in the
27988 original instructions. Ensure we have the same number in the new
27989 instructions. Remove the code that tried to ensure auto_inc side
27990 effects on i1 and i0 are not lost.
27991
27992 2019-04-15 Richard Biener <rguenther@suse.de>
27993
27994 PR ipa/88936
27995 * tree.h (auto_var_p): Declare.
27996 * tree.c (auto_var_p): New function, split out from ...
27997 (auto_var_in_fn_p): ... here.
27998 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
27999 member.
28000 (new_var_info): Initialize it.
28001 (set_uids_in_ptset): Also set the shadow variable uid if required.
28002 (ipa_pta_execute): Postprocess points-to solutions assigning
28003 shadow variable uids for locals that may reach their containing
28004 function recursively.
28005 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28006 assert but instead check whether the points-to solution is
28007 a singleton.
28008
28009 2019-04-15 Martin Jambor <mjambor@suse.cz>
28010
28011 PR ipa/pr89693
28012 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28013 the thunk chain.
28014
28015 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28016
28017 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28018
28019 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28020 Kito Cheng <kito.cheng@gmail.com>
28021 Shiva Chen <shiva0217@gmail.com>
28022
28023 * config/nds32/nds32-md-auxiliary.c
28024 (nds32_legitimize_pic_address): Use new PIC pattern.
28025 (nds32_legitimize_tls_address): Use new TLS pattern.
28026 (nds32_output_symrel): New.
28027 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28028 (nds32_alloc_relax_group_id): Ditto.
28029 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28030 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28031 relax_group_id.
28032 (nds32_group_tls_insn): Ditto.
28033 (nds32_group_float_insns): Ditto.
28034 * config/nds32/nds32.md (tls_le): New.
28035 (sym_got): Ditto.
28036
28037 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28038
28039 * configure: Add nds32 target for dwarf2 debug_line checking.
28040 * configure.ac: Regenerated.
28041
28042 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28043
28044 PR lto/89358
28045 * ipa-devirt.c (skip_in_fields_list_p): New.
28046 (odr_types_equivalent_p): Use it.
28047
28048 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28049
28050 PR target/89093
28051 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28052 instead of strncmp when checking for thumb and arm. Formatting fixes.
28053
28054 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28055
28056 * doc/install.texi: Document --with-target-system-zlib.
28057
28058 2019-04-12 Martin Sebor <msebor@redhat.com>
28059
28060 PR c/88383
28061 PR c/89288
28062 PR c/89798
28063 PR c/89797
28064 * targhooks.c (default_vector_alignment): Avoid assuming
28065 argument fits in SHWI.
28066 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28067 a shift expression.
28068 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28069
28070 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28071
28072 PR rtl-optimization/89965
28073 * dce.c: Include rtl-iter.h.
28074 (struct check_argument_load_data): New type.
28075 (check_argument_load): New function.
28076 (find_call_stack_args): Check for loads from stack slots still tracked
28077 in sp_bytes and punt if any is found.
28078
28079 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28080
28081 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28082
28083 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28084 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28085
28086 2019-04-12 Martin Liska <mliska@suse.cz>
28087
28088 PR middle-end/89970
28089 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28090 in error message.
28091 (separate_attrs): Handle multiple 'default's.
28092 (expand_target_clones): Rework error handling code.
28093
28094 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28095
28096 PR target/87532
28097 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28098 mode of vector rather than mode of destination for move instruction.
28099 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28100 Use QI inner mode with V16QI vector mode.
28101
28102 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28103
28104 PR target/52726
28105 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28106 "invalid %%t operand" in output_operand_lossage message.
28107
28108 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28109
28110 * config/s390/predicates.md (permute_pattern_operand): New
28111 predicate.
28112 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28113 operand for the permute pattern.
28114 ("*vec_perm<mode>"): New insn definition.
28115 ("bswap<mode>"): Generate the permute pattern operand in the
28116 expander and perform the operand reloads for pre arch13 level
28117 already.
28118 ("*bswap<mode>_emu"): Rename to ...
28119 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28120 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28121 Add the USE operand for the permute pattern.
28122 ("*vec_set_bswap_vec<mode>"): Likewise.
28123
28124 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28125
28126 PR c/89946
28127 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28128 and gcc_unreachable if it fails, just call tree_to_uhwi which
28129 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28130 Start warning message with a lower-case letter. Formatting fixes.
28131
28132 PR rtl-optimization/90026
28133 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28134 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28135 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28136 in cfglayout mode, use emit_barrier_after_bb.
28137
28138 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28139
28140 PR rtl-optimization/87763
28141 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28142 New Instruction.
28143
28144 2019-04-11 Tom de Vries <tdevries@suse.de>
28145
28146 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28147 max macro using statement expression.
28148
28149 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28150
28151 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28152 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28153 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28154 read_only_private_data_section using xcoff_private_rodata_section_name.
28155 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28156
28157 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28158
28159 PR target/90016
28160 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28161
28162 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28163
28164 PR rtl-optimization/89965
28165 * dce.c (sp_based_mem_offset): New function.
28166 (find_call_stack_args): Use sp_based_mem_offset.
28167
28168 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28169
28170 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28171
28172 2019-04-11 Richard Biener <rguenther@suse.de>
28173
28174 PR tree-optimization/90020
28175 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28176 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28177 * tree-ssa-pre.c (compute_avail): Use it to not put
28178 possibly trapping references after a call that might not
28179 return into EXP_GEN.
28180 * gcse.c (compute_hash_table_work): Do not elide
28181 marking a block containing a call if the call might not
28182 return.
28183
28184 2019-04-11 Richard Biener <rguenther@suse.de>
28185
28186 PR tree-optimization/90018
28187 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28188 Test both SLP and interleaving variants.
28189
28190 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28191
28192 * config/s390/8561.md: New file.
28193 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28194 Add arch13 cpu model.
28195 * config/s390/s390-opts.h (enum processor_type): Likewise.
28196 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28197 (s390_get_unit_mask): Likewise.
28198 (s390_is_fpd): Likewise.
28199 (s390_is_fxd): Likewise.
28200 * config/s390/s390.h (s390_tune_attr): Likewise.
28201 * config/s390/s390.md: Include arch13 pipeline description.
28202 * config/s390/s390.opt: Add arch13.
28203
28204 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28205
28206 PR rtl-optimization/87763
28207 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28208 New prototype.
28209 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28210 New function.
28211 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28212 New instruction.
28213 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28214 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28215 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28216 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28217
28218 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28219
28220 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28221 "Although" in -fipa-icf documentation.
28222
28223 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28224 of using multiple -g options.
28225
28226 2019-04-10 Martin Liska <mliska@suse.cz>
28227
28228 PR gcov-profile/89959
28229 * doc/gcov.texi: Make documentation of -x option
28230 more precise.
28231
28232 2019-04-10 Richard Biener <rguenther@suse.de>
28233
28234 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28235 member.
28236 (DR_GROUP_SAME_DR_STMT): Remove.
28237 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28238 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28239 replace with assert.
28240 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28241 (vect_record_grouped_load_vectors): Remove unreachable code.
28242
28243 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28244
28245 PR target/90016
28246 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28247 obsolete reference to N.
28248
28249 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28250
28251 PR middle-end/90025
28252 * expr.c (store_expr): Set properly size on the MEM passed to
28253 clear_storage.
28254
28255 PR c++/90010
28256 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28257 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28258 translation is needed, and when translation is needed, only append
28259 ... if the string length is hostsz or more bytes long. Avoid using
28260 strncpy or strcat.
28261
28262 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28263
28264 PR target/90024
28265 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28266 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28267 into three.
28268 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28269 differences directly.
28270 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28271
28272 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28273
28274 PR translation/90011
28275 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28276 from diagnostics.
28277 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28278 diagnostics.
28279 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28280 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28281 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28282 trailing space from -gsplit-dwarf diagnostics.
28283
28284 PR tree-optimization/89998
28285 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28286 instead of integer_type_node if possible, don't add ranges if return
28287 type is not compatible with int.
28288 * gimple-fold.c (gimple_fold_builtin_sprintf,
28289 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28290 integer_type_node.
28291
28292 2019-04-09 Martin Liska <mliska@suse.cz>
28293
28294 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28295 * doc/install.texi: Document the new config.
28296
28297 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28298
28299 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28300 use gimple_expr_type for load and store calls. Skip over the
28301 condition argument in a conditional internal function.
28302 Protect use of TREE_INT_CST_LOW.
28303
28304 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28305
28306 PR target/90015
28307 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28308 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28309 trailing period from it too.
28310
28311 2019-04-08 wu yuan <wuyuan5@huawei.com>
28312
28313 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28314 * config/aarch64/aarch64.md: Add "tsv110.md".
28315 * config/aarch64/tsv110.md: New file.
28316
28317 2019-04-08 Richard Biener <rguenther@suse.de>
28318
28319 PR tree-optimization/90006
28320 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28321 calls like lrint.
28322
28323 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28324
28325 PR target/83033
28326 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28327 construction.
28328 (fma_root_node): Likewise.
28329 (func_fma_steering): Likewise.
28330
28331 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28332
28333 PR rtl-optimization/89865
28334 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28335
28336 PR rtl-optimization/89865
28337 * config/i386/i386.md
28338 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28339 numbers not to clash with the additional operands[4].
28340 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28341 with extra register copy in the middle.
28342
28343 2019-04-08 Martin Liska <mliska@suse.cz>
28344
28345 PR gcov-profile/89961
28346 * doc/gcov.texi: Document data_file.
28347 * gcov.c (generate_results): Add data_info into JSON output.
28348
28349 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28350
28351 PR tree-optimization/89725
28352 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
28353 loop's chrec as invariant symbol.
28354 * tree-chrec.h (chrec_contains_symbols): New parameter.
28355 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28356 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28357 function of loops not in DDR's loop_nest.
28358 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28359
28360 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
28361
28362 PR target/89623
28363 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28364 Mask.
28365
28366 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
28367
28368 PR target/89945
28369 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28370 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28371
28372 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
28373
28374 * sched-deps.c (sched_macro_fuse_insns): Check return value of
28375 targetm.fixed_condition_code_regs.
28376
28377 2019-04-05 Richard Biener <rguenther@suse.de>
28378
28379 PR debug/89892
28380 PR debug/89905
28381 * tree-cfgcleanup.c (remove_forwarder_block): Always move
28382 debug bind stmts but reset them if they are not valid at the
28383 destination.
28384
28385 2019-04-05 Martin Liska <mliska@suse.cz>
28386
28387 PR translation/89936
28388 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
28389 order to wrap keywords or arguments.
28390 * collect2.c (main): Likewise.
28391 (scan_prog_file): Likewise.
28392 (scan_libraries): Likewise.
28393 * common/config/riscv/riscv-common.c
28394 (riscv_subset_list::parsing_subset_version): Likewise.
28395 (riscv_subset_list::parse_std_ext): Likewise.
28396 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28397 Likewise.
28398 * config/arm/arm.c (arm_option_override): Likewise.
28399 * config/cris/cris.c (cris_print_operand): Likewise.
28400 * config/darwin-c.c (darwin_pragma_options): Likewise.
28401 (darwin_pragma_unused): Likewise.
28402 (darwin_pragma_ms_struct): Likewise.
28403 * config/ft32/ft32.c (ft32_print_operand): Likewise.
28404 * config/i386/i386.c (print_reg): Likewise.
28405 (ix86_print_operand): Likewise.
28406 * config/i386/xm-djgpp.h: Likewise.
28407 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
28408 * config/m32c/m32c.c (m32c_option_override): Likewise.
28409 * config/msp430/msp430.c (msp430_option_override): Likewise.
28410 * config/nds32/nds32.c (nds32_option_override): Likewise.
28411 * config/nvptx/mkoffload.c (main): Likewise.
28412 * config/rx/rx.c (rx_print_operand): Likewise.
28413 (valid_psw_flag): Likewise.
28414 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
28415 (vms_pragma_nomember_alignment): Likewise.
28416 (vms_pragma_extern_model): Likewise.
28417 * lto-wrapper.c (compile_offload_image): Likewise.
28418 * omp-offload.c (oacc_parse_default_dims): Likewise.
28419 * symtab.c (symtab_node::verify_base): Likewise.
28420 * tlink.c (recompile_files): Likewise.
28421 (start_tweaking): Likewise.
28422 * tree-profile.c (parse_profile_filter): Likewise.
28423
28424 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
28425
28426 PR tree-optimization/89956
28427 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
28428 multiple negates of the same value.
28429
28430 2019-04-04 Martin Sebor <msebor@redhat.com>
28431
28432 PR middle-end/89957
28433 PR middle-end/89911
28434 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
28435 have the same precision since the function crashes otherwise.
28436 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
28437 has non-zero arguments.
28438
28439 2019-04-04 Martin Sebor <msebor@redhat.com>
28440
28441 PR middle-end/89934
28442 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
28443 out if the number of arguments is less than expected.
28444
28445 2019-04-04 Jeff Law <law@redhat.com>
28446
28447 PR rtl-optimization/89399
28448 * ree.c (combine_set_extension): Use single_set rather than
28449 digging into PATTERN for items on the candidate list.
28450 (combine_reaching_defs): Likewise.
28451
28452 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
28453
28454 PR rtl-optimization/46590
28455 * loop-invariant.c (find_defs): Move df_remove_problem and
28456 df_process_deferred_rescans to move_invariants.
28457 Move df_live_add_problem and df_live_set_all_dirty calls
28458 to move_invariants.
28459 (move_invariants): Likewise.
28460 (move_loop_invariants): Likewise, making the df_live calls
28461 conditional on -O. Remove the problem again if we added it
28462 locally.
28463
28464 2019-04-03 qing zhao <qing.zhao@oracle.com>
28465
28466 PR tree-optimization/89730
28467 * ipa-inline.c (can_inline_edge_p): Delete the checking for
28468 -flive-patching=inline-only-static.
28469 (can_inline_edge_by_limits_p): Add the checking for
28470 -flive-patching=inline-only-static and grant always_inline
28471 even when -flive-patching=inline-only-static is specified.
28472
28473 2019-04-03 Jeff Law <law@redhat.com>
28474
28475 PR rtl-optimization/81025
28476 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
28477
28478 2019-04-03 Richard Biener <rguenther@suse.de>
28479
28480 PR tree-optimization/84101
28481 * tree-vect-stmts.c: Include explow.h for hard_function_value,
28482 regs.h for hard_regno_nregs.
28483 (cfun_returns): New helper.
28484 (vect_model_store_cost): When vectorizing a store to a decl
28485 we return and the function ABI returns in a multi-reg location
28486 account for the possible spilling that will happen.
28487
28488 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
28489
28490 * config/s390/s390.c (s390_legitimate_address_p): Reject long
28491 displacement addresses for vector mode operands.
28492
28493 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
28494
28495 * config/arc/arc.c (GMASK_LEN): Define.
28496 (arc_restore_callee_saves): Restore first blink when
28497 !optimize_size.
28498
28499 2019-04-03 Sudakshina Das <sudi.das@arm.com>
28500
28501 * doc/extend.texi: Add deprecated comment on sign-return-address
28502 function attribute and add mbranch-protection.
28503 * doc/invoke.texi: Add bti to the options for mbranch-protection.
28504
28505 2019-04-03 Richard Biener <rguenther@suse.de>
28506
28507 PR lto/89896
28508 * lto-wrapper.c (run_gcc): Avoid implicit rules making
28509 the all target phony.
28510
28511 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
28512
28513 PR target/89902
28514 PR target/89903
28515 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
28516 Return false for variable DImode shifts.
28517 (dimode_scalar_chain::compute_convert_gain): Do not handle
28518 register count operand in variable DImode shifts.
28519 (dimode_scalar_chain::make_vector_copies): Remove support to copy
28520 count argument of a variable shift instruction to a vector register.
28521 (dimode_scalar_chain::convert_reg): Remove support to convert
28522 count argument of a variable shift instruction.
28523
28524 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28525
28526 PR rtl-optimization/84206
28527 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
28528 iterating over loop headers.
28529
28530 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28531
28532 PR rtl-optimization/85876
28533 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
28534 beyond the original fence.
28535
28536 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
28537
28538 * config.gcc: Mark spu* targets as deprecated/obsolete.
28539
28540 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28541
28542 * config/s390/s390-builtin-types.def: New builtin function type
28543 definitions. Remove unused types.
28544 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
28545 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
28546 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
28547 overloaded builtins.
28548 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
28549 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
28550 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
28551 (vec_double, vec_signed, vec_unsigned): Define to use the new
28552 overloaded builtins.
28553 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
28554 Remove expanders.
28555
28556 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28557
28558 * config/s390/s390-builtin-types.def: New builtin function type
28559 definitions.
28560 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
28561 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
28562 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
28563 (s390_vstrszh, s390_vstrszf): New low-level builtins.
28564 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
28565 constant definitions.
28566 * config/s390/vecintrin.h (vec_search_string_cc)
28567 (vec_search_string_until_zero_cc): New builtin name definitions.
28568 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
28569 expanders.
28570 ("vec_vstrs<mode>"): New insn definition.
28571
28572 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28573
28574 * config/s390/s390-builtin-types.def: Add new builtin function
28575 types.
28576 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
28577 New overloaded builtins.
28578 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
28579 s390_vsrd.
28580 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
28581 (UNSPEC_VEC_SLDBYTE): ... this.
28582 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
28583 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
28584 definitions.
28585 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
28586 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
28587 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
28588
28589 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28590
28591 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
28592 New insn definition.
28593 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
28594 * config/s390/vector.md (V_HW_HSD): ... here.
28595
28596 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28597
28598 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
28599 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
28600 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
28601 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
28602 New insn definitions.
28603
28604 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28605
28606 * config/s390/s390-builtin-types.def: Add new builtin function type.
28607 * config/s390/s390-builtins.def: Add overloaded builtin
28608 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
28609 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
28610 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
28611 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
28612 ("eltswap<mode>"): New expander.
28613 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
28614 insn definitions.
28615
28616 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28617
28618 * config/s390/s390-builtin-types.def: Add new builtin function types.
28619 * config/s390/s390-builtins.def: Add overloaded builtin
28620 s390_vec_revb. Add low-level builtins for vlbr and vstbr
28621 instructions.
28622 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
28623 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
28624 ("bswap<mode>"): New expander.
28625 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
28626
28627 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28628
28629 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
28630 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
28631 vector builtin version number in __VEC__.
28632
28633 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28634
28635 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
28636 iterators.
28637 (SFSI): New mode attribute.
28638 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
28639 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
28640 rename to ...
28641 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
28642 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
28643 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
28644 ("floatsi<mode>2"): Add wcefb instruction.
28645
28646 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28647
28648 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
28649 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
28650 mode iterators.
28651 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
28652 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
28653 support 32 bit fp-int conversions. Rename to ...
28654 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28655 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28656 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
28657 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
28658 ... to these.
28659
28660 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28661
28662 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
28663 if-then-else constructs if we can use the select instruction.
28664 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
28665
28666 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28667
28668 * config/s390/s390.md ("*popcountdi_arch13_cc")
28669 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
28670 definition.
28671 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
28672 Append _z196 to make it ...
28673 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
28674 ("popcounthi2_z196"): ... this.
28675 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
28676 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
28677
28678 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28679
28680 * config/s390/s390.c (s390_canonicalize_comparison): Convert
28681 certain compares for arch13 in order to make use of the condition
28682 code result produced by the new instructions.
28683 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
28684 nxrk, and nxgrk instruction patterns.
28685 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
28686 (inv_no): Add new code iterator together with some attributes.
28687 ("*andc_split_<mode>"): Disable splitter for arch13.
28688 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
28689 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
28690 ("*<ANDOR:bitops_name>c<GPR:mode>")
28691 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
28692 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
28693 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
28694 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
28695
28696 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28697
28698 * common/config/s390/s390-common.c (processor_flags_table): New
28699 entry for arch13.
28700 * config.gcc: Support arch13 with the --with-arch= configure flag.
28701 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28702 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
28703 * config/s390/s390.c (s390_get_sched_attrmask)
28704 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
28705 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
28706 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
28707 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
28708 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
28709 definitions.
28710 * config/s390/s390.opt: Support arch13 as processor type in
28711 command line options.
28712
28713 2019-04-02 Martin Liska <mliska@suse.cz>
28714
28715 PR translation/89912
28716 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
28717 Fix param description of graphite-max-arrays-per-scop.
28718
28719 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
28720
28721 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
28722 (ASAN_CC1_SPEC): Use it in 64-bit mode.
28723 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
28724
28725 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28726
28727 PR rtl-optimization/85412
28728 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
28729 sel_sched_region_1, not after.
28730
28731 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28732
28733 PR rtl-optimization/86928
28734 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
28735 compute_live if necessary.
28736 (sel_redirect_edge_and_branch): Likewise.
28737
28738 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
28739
28740 PR rtl-optimization/89865
28741 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
28742 register if it is a part of small class.
28743
28744 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28745
28746 PR rtl-optimization/87273
28747 * sel-sched-ir.c (merge_fences): Remove assert.
28748
28749 2019-04-01 Richard Biener <rguenther@suse.de>
28750
28751 PR tree-optimization/46590
28752 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
28753 (dom_walker::m_reachability): Add in place of...
28754 (dom_walker::m_skip_unreachable_blocks): ...this.
28755 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
28756 Move complex initialization ...
28757 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
28758 lazily and initialize edge flags on each invocation.
28759 (dom_walker::bb_reachable): Use m_reachability.
28760
28761 2019-04-01 Martin Liska <mliska@suse.cz>
28762
28763 PR driver/89861
28764 * opt-suggestions.c (option_proposer::build_option_suggestions):
28765 Add variant without any argument in order to provide better
28766 hints.
28767
28768 2019-04-01 Richard Biener <rguenther@suse.de>
28769
28770 PR c/71598
28771 * gimple.c: Include langhooks.h.
28772 (gimple_get_alias_set): Treat enumeral types as the underlying
28773 integer type.
28774
28775 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
28776 Eric Botcazou <ebotcazou@adacore.com>
28777
28778 PR rtl-optimization/89862
28779 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
28780 that operates on the full registers for WORD_REGISTER_OPERATIONS
28781 architectures.
28782
28783 2019-03-29 Jim Wilson <jimw@sifive.com>
28784
28785 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
28786 Clear MASK_RVC and then set if C subset supported.
28787
28788 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28789
28790 PR c/89872
28791 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
28792 non-addressable complit into its initializer if it is volatile.
28793
28794 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
28795
28796 * opts-common.c (integral_argument): Set errno properly in one case.
28797
28798 2019-03-29 Martin Liska <mliska@suse.cz>
28799
28800 * doc/invoke.texi: Remove -Wchkp from documentation.
28801
28802 2019-03-29 Martin Liska <mliska@suse.cz>
28803
28804 * dbgcnt.c (print_limit_reach): New function.
28805 (dbg_cnt): Use it.
28806
28807 2019-03-29 Martin Liska <mliska@suse.cz>
28808
28809 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
28810 (dbg_cnt_process_opt): Parse first tokens aas
28811 dbg_cnt_process_single_pair is also using strtok.
28812
28813 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28814
28815 PR rtl-optimization/87485
28816 * function.c (expand_function_end): Move stack_protect_epilogue
28817 before loading of return value into hard register(s).
28818
28819 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28820
28821 PR middle-end/89621
28822 * tree-inline.h (struct copy_body_data): Add
28823 dont_remap_vla_if_no_change flag.
28824 * tree-inline.c (remap_type_3, remap_type_2): New functions.
28825 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
28826 and remap_type_2 returns false.
28827 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
28828 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
28829 only from where it is copied to nested contexts.
28830
28831 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28832
28833 PR target/89865
28834 * config/i386/i386.md (RMW operation with LEA peephole):
28835 Use LEAMODE mode attribute instead of SWI mode iterator for
28836 LEA pattern.
28837
28838 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28839
28840 PR target/89848
28841 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
28842 Also process XEXP (src, 0) of a shift insn.
28843
28844 2019-03-28 David Malcolm <dmalcolm@redhat.com>
28845
28846 PR middle-end/89725
28847 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
28848 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
28849
28850 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28851
28852 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
28853 test.
28854 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
28855 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
28856 immediately after first one with df_analyze in between, but rather
28857 process all bbs, queueing ones that need second pass in a worklist,
28858 df_analyze, process queued debug insn changes and if second pass is
28859 needed, process bbs from worklist, df_analyze, process queued debug
28860 insns again.
28861
28862 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
28863 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
28864 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
28865
28866 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
28867
28868 PR c/79022
28869 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
28870 definition.
28871
28872 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
28873
28874 PR target/85667
28875 * config/i386/i386.c (ix86_function_value_1): Call the newly added
28876 function for 32-bit MS_ABI.
28877 (function_value_ms_32): New function.
28878
28879 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
28880
28881 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
28882 (movdi): Call gen_movdi_symbol_save_scc.
28883 (gen_movdi_symbol_save_scc): New insn and split.
28884
28885 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
28886
28887 PR rtl-optimization/89313
28888 * function.c (matching_constraint_num): New static function.
28889 (match_asm_constraints_1): Use it. Fixup white space and comment.
28890 Don't replace inputs with non-matching constraints which conflict
28891 with early clobber outputs.
28892
28893 2019-03-27 Jeff Law <law@redhat.com>
28894
28895 PR rtl-optimization/87761
28896 PR rtl-optimization/89826
28897 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
28898 slightly later.
28899 (pass_cprop_hardreg::execute): Call df_analyze after adding the
28900 note problem to get REG_DEAD/REG_UNUSED notes updated.
28901
28902 2019-03-27 Richard Biener <rguenther@suse.de>
28903
28904 PR tree-optimization/89463
28905 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
28906 queue edges to remove.
28907 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
28908 dead stmts. Delay edge removal until PHIs are removed to
28909 make debug-stmt creation not confused by seemingly degenerate
28910 PHIs.
28911
28912 2019-03-27 Alan Modra <amodra@gmail.com>
28913
28914 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
28915 throughout file.
28916 * config/rs6000/darwin.h: Likewise.
28917 * config/rs6000/rs6000.c: Likewise.
28918
28919 2019-03-27 Alan Modra <amodra@gmail.com>
28920
28921 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
28922 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
28923
28924 2019-03-26 Andrew Waterman <andrew@sifive.com>
28925 Jim Wilson <jimw@sifive.com>
28926
28927 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
28928 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
28929 (generic_idivdi, generic_fmul_single, generic_fmul_double)
28930 (generic_fdiv, generic_fsqrt): Add check for generic tune.
28931 (generic_alu): Add auipc to type list.
28932 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
28933 (riscv_microarchitecture): Declare.
28934 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
28935 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
28936 field.
28937 (riscv_microarchitecture): New.
28938 (sifive_7_tune_info): New.
28939 (riscv_cpu_info_table): Add microarchitecture value for rocket and
28940 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
28941 entries.
28942 (riscv_store_data_bypass_p): New.
28943 (riscv_option_override): Set riscv_microarchitecture from
28944 cpu->microarchitecture.
28945 * config/riscv/riscv.md: Include sifive-7.md.
28946 (type): Add auipc.
28947 (tune): New.
28948 (auipc<mode>): Change type to auipc.
28949 (restore_stack_nonlocal): New.
28950 * config/riscv/sifive-7.md: New.
28951 * doc/invoke.texi (RISC-V Options): Update mtune docs.
28952
28953 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
28954
28955 PR target/89827
28956 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
28957 Also process XEXP (src, 0) of a shift insn.
28958
28959 2019-03-26 Richard Biener <rguenther@suse.de>
28960
28961 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
28962 (copy_debug_stmt): Likewise.
28963 (expand_call_inline): Likewise.
28964 (copy_bb): Avoid redundant lookup & set of gimple_block.
28965 * gimple-low.c (lower_gimple_return): Likewise.
28966 (lower_builtin_setjmp): Likewise.
28967
28968 2019-03-26 Jakub Jelinek <jakub@redhat.com>
28969
28970 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
28971 is constant 0, turn into static const data member initialized to false.
28972 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
28973 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
28974
28975 2019-03-26 Jason Merrill <jason@redhat.com>
28976 Jakub Jelinek <jakub@redhat.com>
28977
28978 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
28979 method.
28980 (mem_alloc_description::release_object_overhead): Fix comment typos.
28981 * hash-table.h (hash_table::~hash_table): Call
28982 release_instance_overhead only if m_entries is non-NULL, otherwise
28983 call unregister_descriptor.
28984
28985 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
28986
28987 PR tree-optimization/81740
28988 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28989 In case of outer loop vectorization, check for backward dependence
28990 at the inner loop if outer loop dependence is reversed.
28991
28992 2019-03-26 Alan Modra <amodra@gmail.com>
28993
28994 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
28995 rs6000_vector_mem init. Correct wI and wJ comment.
28996
28997 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
28998
28999 PR rtl-optimization/88347
29000 PR rtl-optimization/88423
29001 * sched-deps.c (sched_analyze_insn): Take into account that for
29002 tablejumps the barrier appears after a label and a jump_table_data.
29003
29004 2019-03-25 Martin Sebor <msebor@redhat.com>
29005
29006 PR c/89812
29007 * c-common.c (check_user_alignment): Rename local. Correct maximum
29008 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29009 convert it to UHWI when it fits.
29010
29011 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29012
29013 PR debug/86964
29014 * dwarf2out.c (premark_used_variables): New function.
29015 (prune_unused_types_walk): Do not mark not premarked external
29016 variables.
29017 (prune_unused_types): Call premark_used_variables.
29018
29019 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29020
29021 PR rtl-optimization/89676
29022 * lra-constraints.c (curr_insn_transform): Do match reload for
29023 early clobbers when the match was successful only for different
29024 registers.
29025
29026 2019-03-25 Martin Sebor <msebor@redhat.com>
29027
29028 * doc/extend.texi (Common Type Attributes): Document vector_size.
29029 (Common Variable Attributes): Mention size constraint. Correct
29030 quoting and typos.
29031 (Vector Extensions): Use @dfn when defining bas type. Clarify
29032 base type and size constraints.
29033
29034 2019-03-25 Richard Biener <rguenther@suse.de>
29035
29036 PR tree-optimization/89789
29037 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29038 changes from non-undefined back to undefined.
29039
29040 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29041
29042 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29043 heap string and a gc string, but since this variable is unknown to
29044 ggc the gc string might get reused and corrupted. Fixed by always
29045 using a heap string.
29046
29047 2019-03-25 Richard Biener <rguenther@suse.de>
29048
29049 PR tree-optimization/89779
29050 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29051 to remove IV defs, delay actual removal.
29052 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29053 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29054 very end, properly also reset loop control IV information.
29055
29056 2019-03-25 Richard Biener <rguenther@suse.de>
29057
29058 PR tree-optimization/89802
29059 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29060 move EH data to folded stmt.
29061
29062 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29063
29064 * config/s390/s390-builtin-types.def: Remove few unused types and
29065 fix sort order for others.
29066
29067 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29068
29069 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29070 expected and found types with -mdebug during builtin matching.
29071
29072 2019-03-25 Richard Biener <rguenther@suse.de>
29073
29074 PR middle-end/89790
29075 * fold-const.c (operand_equal_p): Revert last change with
29076 updated comment.
29077
29078 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29079
29080 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29081 notes for the result of the __tls_get_addr calls.
29082 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29083
29084 2019-03-24 Jeff Law <law@redhat.com>
29085
29086 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29087
29088 PR rtl-optimization/87761
29089 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29090 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29091 as needed.
29092 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29093 rescans. Reprocess blocks as needed, calling df_analyze before
29094 reprocessing. Always call df_analyze before fixing up debug bind
29095 insns.
29096
29097 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29098
29099 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29100 big endian.
29101
29102 2019-03-22 Andrew Pinski <apinski@marvell.com>
29103
29104 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29105 attrribute for uxtw.
29106
29107 2019-03-26 Jeff Law <law@redhat.com>
29108
29109 PR rtl-optimization/87761
29110 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29111 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29112 (mips_split_move): Accept new INSN argument. Try to forward SRC
29113 into the next instruction.
29114 (mips_split_move_insn): Pass INSN through to mips_split_move.
29115
29116 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29117
29118 PR rtl-optimization/89676
29119 * lra-constraints.c (curr_insn_transform): Do match reload for
29120 early clobbers even if the match was successful.
29121
29122 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29123
29124 PR c++/87481
29125 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29126
29127 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29128
29129 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29130
29131 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29132
29133 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29134 <avx512>_fmsub_<mode>_mask3<round_name>,
29135 <avx512>_fnmadd_<mode>_mask3<round_name>,
29136 <avx512>_fnmsub_<mode>_mask3<round_name>,
29137 avx512f_vmfmadd_<mode>_mask3<round_name>,
29138 avx512f_vmfmsub_<mode>_mask3<round_name>,
29139 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29140 instead of register_operand and %v instead of v for match_operand 1.
29141 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29142 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29143 <round_nimm_predicate> instead of register_operand and %v instead of v
29144 for match_operand 1.
29145
29146 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29147 <avx512>_fmadd_<mode>_mask3<round_name>,
29148 <avx512>_fmsub_<mode>_mask<round_name>,
29149 <avx512>_fmsub_<mode>_mask3<round_name>,
29150 <avx512>_fnmadd_<mode>_mask<round_name>,
29151 <avx512>_fnmadd_<mode>_mask3<round_name>,
29152 <avx512>_fnmsub_<mode>_mask<round_name>,
29153 <avx512>_fnmsub_<mode>_mask3<round_name>,
29154 <avx512>_fmaddsub_<mode>_mask<round_name>,
29155 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29156 <avx512>_fmsubadd_<mode>_mask<round_name>,
29157 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29158 <round_nimm_predicate> instead of nonimmediate_operand.
29159 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29160 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29161 Use register_operand instead of <round_nimm_predicate> for the
29162 operand that needs to match output.
29163 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29164 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29165 Likewise. Formatting fixes.
29166
29167 PR target/89784
29168 * config/i386/i386.c (enum ix86_builtins): Remove
29169 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29170 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29171 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29172 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29173 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29174 __builtin_ia32_vfmsubss3_mask3): New builtins.
29175 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29176 avx512f_vmfmadd_<mode>_mask3<round_name>,
29177 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29178 *avx512f_vmfmsub_<mode>_mask<round_name>,
29179 avx512f_vmfmsub_<mode>_mask3<round_name>,
29180 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29181 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29182 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29183 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29184 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29185 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29186 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29187 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29188 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29189 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29190 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29191 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29192 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29193 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29194 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29195 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29196 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29197 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29198 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29199 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29200 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29201 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29202 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29203 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29204 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29205 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29206 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29207 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29208
29209 2019-03-21 Martin Sebor <msebor@redhat.com>
29210
29211 PR tree-optimization/89350
29212 * builtins.c (compute_objsize): Also ignore offsets whose upper
29213 bound is negative.
29214 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29215 (builtin_memref::builtin_memref): Initialize new member.
29216 Allow EXPR to be null.
29217 (builtin_memref::extend_offset_range): Replace local with a member.
29218 Avoid assuming pointer offsets are unsigned.
29219 (builtin_memref::set_base_and_offset): Determine base object
29220 before computing offset range.
29221 (builtin_access::builtin_access): Handle memset.
29222 (builtin_access::generic_overlap): Replace local with a member.
29223 (builtin_access::strcat_overlap): Same.
29224 (builtin_access::overlap): Same.
29225 (maybe_diag_overlap): Same.
29226 (maybe_diag_access_bounds): Same.
29227 (wrestrict_dom_walker::check_call): Handle memset.
29228 (check_bounds_or_overlap): Same.
29229
29230 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29231 Jakub Jelinek <jakub@redhat.com>
29232
29233 PR lto/89692
29234 * tree.c (fld_type_variant, fld_incomplete_type_of,
29235 fld_process_array_type): Call fld->pset.add and don't call
29236 add_tree_to_fld_list if it returns true.
29237 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29238 non-marked types from TYPE_NEXT_VARIANT list.
29239 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29240
29241 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29242
29243 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29244 to false, if true, don't alloc_entries during construction, but defer
29245 it to the first method that needs m_entries allocated.
29246 (hash_table::hash_table, hash_table::~hash_table,
29247 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29248 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29249 hash_table::clear_slot, hash_table::traverse_noresize,
29250 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29251 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29252 false.
29253 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29254 NO_INSERT instead of find_with_hash.
29255 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29256 hash_set::m_table): Add Lazy to template params of hash_table.
29257 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29258 * attribs.c (test_attribute_exclusions): Likewise.
29259 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29260 hash_set. Add tests for hash_set with Lazy = true.
29261
29262 2019-03-21 Richard Biener <rguenther@suse.de>
29263
29264 PR tree-optimization/89779
29265 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29266 checks with respect to released SSA names now having error_mark_node
29267 type.
29268 * fold-const.c (operand_equal_p): Likewise.
29269
29270 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29271
29272 PR target/89775
29273 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29274 available to ...
29275 (s390_optimize_register_info): Use global_not_special_regno_p to
29276 check for global regs.
29277
29278 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29279
29280 PR target/89752
29281 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29282 update this_alternative nor this_alternative_set.
29283
29284 2019-03-19 Jim Wilson <jimw@sifive.com>
29285
29286 PR target/89411
29287 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29288 align, size, offset. Use them to handle a BLKmode reference. Update
29289 comment.
29290 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29291
29292 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29293
29294 PR rtl-optimization/89768
29295 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29296 instead of GEN_INT.
29297 (unroll_loop_runtime_iterations): Likewise.
29298
29299 2019-03-19 Martin Sebor <msebor@redhat.com>
29300
29301 PR tree-optimization/89644
29302 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29303 rather than endptr as an indicator of nul-termination.
29304
29305 PR tree-optimization/89644
29306 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29307 arrays in determining sequence sizes in strncpy and stpncpy.
29308
29309 2019-03-19 Martin Liska <mliska@suse.cz>
29310
29311 PR middle-end/89737
29312 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29313 unlikely_edges if there's an edge that belongs to both these sets.
29314
29315 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29316
29317 PR target/89746
29318 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29319 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29320 go via a stack temporary.
29321
29322 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29323
29324 PR target/89378
29325 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29326 instead of gen_rtx_SUBREG.
29327 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29328
29329 2019-03-19 Richard Biener <rguenther@suse.de>
29330
29331 PR debug/88389
29332 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29333
29334 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
29335
29336 PR lto/87809
29337 PR lto/89335
29338 * tree.c (free_lang_data_in_decl): Do not free context of C++
29339 destrutors.
29340
29341 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29342
29343 PR target/89506
29344 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29345 subs for the first alternative except when operands[3] is 1.
29346
29347 PR target/89752
29348 * gimplify.c (gimplify_asm_expr): For output argument with
29349 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29350 diagnose error.
29351
29352 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
29353
29354 PR rtl-optimization/89753
29355 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29356 explicit unrolling factor even more robust.
29357
29358 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29359
29360 PR target/89726
29361 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29362 compensation use x2 += 1 instead of x2 -= -1 and when honoring
29363 signed zeros, do another copysign after the compensation.
29364
29365 2019-03-18 Martin Sebor <msebor@redhat.com>
29366
29367 PR tree-optimization/89720
29368 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29369 more conservatively, the same as anti-range.
29370
29371 2019-03-18 Richard Biener <rguenther@suse.de>
29372
29373 PR middle-end/88945
29374 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29375 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29376 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
29377 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29378
29379 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
29380
29381 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
29382 Extend queue to 1024 entries.
29383 Add "consumed" field.
29384 (gomp_print_output): Remove print_index parameter.
29385 Add final parameter.
29386 Change limit to unsigned.
29387 Use consumed field to implement circular buffer.
29388 Detect interrupted print in final pass.
29389 Flush output at the end.
29390 (run): Update gomp_print_output usage.
29391 (main): Initialize kernargs->output_data.consumed.
29392
29393 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
29394
29395 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
29396 calculation of the minimum number of scalar iterations for
29397 fully-predicated loops.
29398
29399 2019-03-18 Martin Jambor <mjambor@suse.cz>
29400
29401 PR tree-optimization/89546
29402 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
29403 any propagation to its children took place.
29404
29405 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
29406
29407 PR target/89627
29408 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
29409 parameter, and make use of it.
29410 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
29411
29412 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29413
29414 * config/arc/arc.opt (mcode-density-frame): Get the inital value
29415 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
29416 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29417 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29418 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
29419 match what the ops is doing.
29420 (push_multi_fp_blink): Likewise.
29421 * config/arc/arc.c (arc_override_options): Enable enter/leave when
29422 compiling for size and elf target.
29423 (arc_save_callee_enter): Adjust note to match what enter/leave
29424 operation does.
29425
29426 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29427
29428 * config/arc/arc.md (tst_movb): Fix constraint.
29429
29430 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29431
29432 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
29433
29434 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29435
29436 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
29437 * config/arc/arc.c (arc_conditional_register_usage): Remove all
29438 reg_alloc_order references.
29439 (size_alloc_order): Define.
29440 (arc_adjust_reg_alloc_order): New function.
29441 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
29442 order.
29443 (ADJUST_REG_ALLOC_ORDER): Define.
29444 (HONOR_REG_ALLOC_ORDER): Likewise.
29445
29446 2019-03-18 Richard Biener <rguenther@suse.de>
29447
29448 PR target/87561
29449 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
29450 loads and stores a bit more.
29451
29452 2019-03-18 Richard Biener <rguenther@suse.de>
29453
29454 PR target/87561
29455 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
29456 load pessimization to stores as well.
29457
29458 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
29459
29460 PR middle-end/86979
29461 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
29462 successor, use NULL as its av set.
29463
29464 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29465
29466 PR rtl-optimization/89721
29467 * lra-constraints (invariant_p): Return false if side_effects_p holds.
29468
29469 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
29470
29471 PR target/87532
29472 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29473 When handling vec_extract, use modular arithmetic to allow
29474 constant selectors greater than vector length.
29475 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
29476 V1TImode vectors to have constant selector values greater than 0.
29477 Use modular arithmetic to compute vector index.
29478 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
29479 index for in-memory vectors. Correct code generation for
29480 in-register vectors.
29481 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
29482 compute index.
29483
29484 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
29485
29486 PR c++/88534
29487 PR c++/88537
29488 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
29489 VAR_DECL args.
29490
29491 2019-03-15 Jakub Jelinek <jakub@redhat.com>
29492
29493 PR c++/89709
29494 * tree.c (inchash::add_expr): Strip any location wrappers.
29495 * fold-const.c (operand_equal_p): Move stripping of location wrapper
29496 after hash verification.
29497
29498 PR debug/89704
29499 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
29500 SIGN_EXTEND and ZERO_EXTEND.
29501
29502 2019-03-14 Jason Merrill <jason@redhat.com>
29503 Jakub Jelinek <jakub@redhat.com>
29504
29505 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
29506 than if is_empty (*slot).
29507 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
29508 existing elt and for elt removal.
29509 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
29510 of already removed elt.
29511
29512 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
29513
29514 PR target/89650
29515 * config/i386/i386.c (remove_partial_avx_dependency): Handle
29516 REG_EH_REGION note.
29517
29518 2019-03-14 Martin Liska <mliska@suse.cz>
29519
29520 PR other/89712
29521 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
29522
29523 2019-03-14 Richard Biener <rguenther@suse.de>
29524
29525 PR target/89711
29526 * config/i386/i386.c (make_resolver_func): Properly set
29527 DECL_CONTEXT on the RESULT_DECL.
29528 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
29529
29530 2019-03-14 Richard Biener <rguenther@suse.de>
29531
29532 * gimple-pretty-print.c: Include cfgloop.h.
29533 (dump_gimple_phi): Adjust.
29534 (dump_gimple_bb_header): Dump loop header for GIMPLE.
29535 (pp_cfg_jump): Adjust.
29536 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
29537 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
29538 (lower_phi_internal_fn): Remove.
29539 (verify_gimple_call): Remove IFN_PHI special-casing.
29540 (dump_function_to_file): Dump IL state.
29541 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
29542 done to deal with PHI nodes being present in non-SSA state.
29543
29544 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29545
29546 PR ipa/89684
29547 * multiple_target.c (create_dispatcher_calls): Change
29548 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
29549 In the node->iterate_referring loop, push *ref rather than ref, call
29550 ref->remove_reference () and always pass 0 to iterate_referring.
29551
29552 PR rtl-optimization/89679
29553 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
29554 would contain a paradoxical SUBREG.
29555
29556 2019-03-14 Richard Biener <rguenther@suse.de>
29557
29558 PR tree-optimization/89710
29559 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
29560 safe_dyn_cast.
29561
29562 2019-03-14 Martin Liska <mliska@suse.cz>
29563
29564 * coverage.c (coverage_begin_function): Stream also
29565 end_column.
29566 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
29567 documentation about function declaration location.
29568 * gcov-dump.c (tag_function): Print whole range
29569 of function declaration.
29570 * gcov.c (struct function_info): Add end_column field.
29571 (function_info::function_info): Initialize it.
29572 (output_json_intermediate_file): Output {start,end}_column
29573 fields.
29574 (read_graph_file): Read end_column.
29575
29576 2019-03-14 Richard Biener <rguenther@suse.de>
29577
29578 PR middle-end/89698
29579 * fold-const.c (operand_equal_p): For INDIRECT_REF check
29580 that the access types are similar.
29581
29582 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29583
29584 PR tree-optimization/89703
29585 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
29586 aren't compatible also with builtin_decl_explicit. Check pure
29587 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
29588 and BUILT_IN_STPNCPY{,_CHK}.
29589
29590 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
29591
29592 PR target/89523
29593 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
29594 addr32 prefix to VSIB address for X32.
29595 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
29596 "%M2" to opcode.
29597 (*avx512pf_gatherpf<mode>df_mask): Likewise.
29598 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
29599 (*avx512pf_scatterpf<mode>df_mask): Likewise.
29600 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
29601 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
29602 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
29603 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
29604 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
29605 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
29606 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
29607 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
29608 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
29609 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
29610 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
29611 (*avx512f_scatterdi<mode>): Likewise.
29612
29613 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
29614
29615 PR target/85860
29616 * lra-constraints.c (inherit_in_ebb): Update
29617 potential_reload_hard_regs along with live_hard_regs.
29618
29619 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29620
29621 PR debug/89498
29622 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
29623 DWARF_OFFSET_SIZE.
29624 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
29625
29626 2019-03-13 Martin Sebor <msebor@redhat.com>
29627
29628 PR tree-optimization/89662
29629 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
29630 has a size.
29631
29632 2019-03-13 Richard Biener <rguenther@suse.de>
29633
29634 PR middle-end/89677
29635 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
29636 throw FP expressions at tree-affine.
29637
29638 2019-03-14 Richard Biener <rguenther@suse.de>
29639
29640 * tree-pretty-print.c (dump_generic_node): For -gimple properly
29641 dump negative integer constants using _Literal (type) -num.
29642
29643 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29644
29645 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
29646 nonlocal_value member.
29647
29648 PR middle-end/88588
29649 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
29650 (ipa_simd_modify_function_body): Handle PHIs.
29651
29652 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29653
29654 * config/s390/s390.c (s390_option_override_internal): Use more
29655 aggressive inlining parameters.
29656
29657 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29658
29659 * config/s390/3906.md: New file.
29660 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29661 (LONGRUNNING_THRESHOLD): Remove.
29662 (MAX_SCHED_MIX_SCORE): Decrease.
29663 (MAX_SCHED_MIX_DISTANCE): Decrease.
29664 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
29665 (struct s390_sched_state): New struct to hold scheduling state.
29666 (S390_SCHED_STATE_NORMAL): Remove.
29667 (S390_SCHED_STATE_CRACKED): Remove.
29668 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
29669 (s390_get_sched_attrmask): Use new attribute.
29670 (s390_get_unit_mask): Use new units.
29671 (s390_is_fpd): New function.
29672 (s390_is_fxd): New function.
29673 (s390_is_longrunning): New function.
29674 (s390_sched_score): Use new functions.
29675 (s390_sched_reorder): Likewise.
29676 (s390_sched_variable_issue): Rework and use new functions.
29677 (s390_sched_init): Use new functions.
29678 * config/s390/s390.h (s390_tune_attr): Add z14.
29679 * config/s390/s390.md: Add z14.
29680
29681 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29682
29683 * config/s390/2964.md: Update pipeline description.
29684 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29685 (LONGRUNNING_THRESHOLD): Remove.
29686 (LATENCY_FACTOR): Remove.
29687 (s390_get_unit_mask): Add unit.
29688 (s390_sched_score): Use fxd/fpd.
29689 (s390_sched_variable_issue): Use fxd/fpd.
29690
29691 2019-03-12 Martin Liska <mliska@suse.cz>
29692
29693 * config/i386/i386.c: Reword an error message.
29694
29695 2019-03-12 Martin Jambor <mjambor@suse.cz>
29696
29697 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
29698 terminate with newline.
29699
29700 2019-03-12 Jakub Jelinek <jakub@redhat.com>
29701
29702 PR target/52726
29703 * config/s390/s390.md (tabort): Use %wd instead of
29704 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
29705 letters and periods.
29706 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
29707 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
29708 's with %< and %>.
29709
29710 PR middle-end/89663
29711 * builtins.c (expand_builtin_int_roundingfn,
29712 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
29713 gcc_unreachable if validate_arglist fails.
29714
29715 2019-03-12 Richard Biener <rguenther@suse.de>
29716
29717 PR tree-optimization/89664
29718 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
29719 free the occurance tree after the early out.
29720
29721 2019-03-11 Jakub Jelinek <jakub@redhat.com>
29722
29723 PR middle-end/89655
29724 PR bootstrap/89656
29725 * vr-values.c (vr_values::update_value_range): If
29726 old_vr->varying_p (), don't update it, make new_vr also VARYING
29727 and return false.
29728
29729 2019-03-11 Martin Liska <mliska@suse.cz>
29730
29731 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29732 Fix double string quoting.
29733
29734 2019-03-11 Martin Liska <mliska@suse.cz>
29735
29736 * collect-utils.c (collect_wait): Wrap apostrophes
29737 in gcc internal format with %'.
29738 * collect2.c (main): Likewise.
29739 (scan_prog_file): Likewise.
29740 (scan_libraries): Likewise.
29741 * config/i386/i386.c (ix86_expand_call): Likewise.
29742 (ix86_handle_interrupt_attribute): Likewise.
29743 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
29744 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
29745 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
29746 * lto-wrapper.c (find_crtoffloadtable): Likewise.
29747 * symtab.c (symtab_node::verify_base): Likewise.
29748 * tree-cfg.c (verify_gimple_label): Likewise.
29749 * tree.c (verify_type_variant): Likewise.
29750
29751 2019-03-11 Martin Liska <mliska@suse.cz>
29752
29753 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
29754 in a string format message and fix GNU coding style.
29755 (expand_builtin_set_thread_pointer): Likewise.
29756 * common/config/aarch64/aarch64-common.c
29757 (aarch64_rewrite_selected_cpu): Likewise.
29758 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
29759 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
29760 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
29761 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
29762 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
29763 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
29764 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
29765 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
29766 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
29767 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
29768 Likewise.
29769 * common/config/riscv/riscv-common.c
29770 (riscv_subset_list::parsing_subset_version): Likewise.
29771 (riscv_subset_list::parse_std_ext): Likewise.
29772 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29773 (riscv_subset_list::parse): Likewise.
29774 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
29775 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
29776 (aarch64_override_options_internal): Likewise.
29777 (aarch64_validate_mcpu): Likewise.
29778 (aarch64_validate_march): Likewise.
29779 (aarch64_validate_mtune): Likewise.
29780 (aarch64_override_options): Likewise.
29781 * config/alpha/alpha.c (alpha_option_override): Likewise.
29782 * config/arc/arc.c (arc_init): Likewise.
29783 (parse_mrgf_banked_regs_option): Likewise.
29784 (arc_override_options): Likewise.
29785 (arc_expand_builtin_aligned): Likewise.
29786 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
29787 (arm_expand_builtin): Likewise.
29788 * config/arm/arm.c (arm_option_check_internal): Likewise.
29789 (arm_configure_build_target): Likewise.
29790 (arm_option_override): Likewise.
29791 (arm_options_perform_arch_sanity_checks): Likewise.
29792 (arm_handle_cmse_nonsecure_entry): Likewise.
29793 (arm_handle_cmse_nonsecure_call): Likewise.
29794 (arm_tls_referenced_p): Likewise.
29795 (thumb1_expand_prologue): Likewise.
29796 * config/avr/avr.c (avr_option_override): Likewise.
29797 * config/bfin/bfin.c (bfin_option_override): Likewise.
29798 * config/c6x/c6x.c (c6x_option_override): Likewise.
29799 * config/cr16/cr16.c (cr16_override_options): Likewise.
29800 * config/cris/cris.c (cris_option_override): Likewise.
29801 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
29802 * config/darwin-c.c (macosx_version_as_macro): Likewise.
29803 * config/darwin.c (darwin_override_options): Likewise.
29804 * config/frv/frv.c (frv_expand_builtin): Likewise.
29805 * config/h8300/h8300.c (h8300_option_override): Likewise.
29806 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
29807 (ix86_option_override_internal): Likewise.
29808 (warn_once_call_ms2sysv_xlogues): Likewise.
29809 (ix86_expand_prologue): Likewise.
29810 (split_stack_prologue_scratch_regno): Likewise.
29811 (ix86_warn_parameter_passing_abi): Likewise.
29812 * config/ia64/ia64.c (fix_range): Likewise.
29813 * config/m68k/m68k.c (m68k_option_override): Likewise.
29814 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
29815 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
29816 (mips_set_compression_mode): Likewise.
29817 * config/mmix/mmix.c (mmix_option_override): Likewise.
29818 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
29819 * config/msp430/msp430.c (msp430_option_override): Likewise.
29820 * config/nds32/nds32.c (nds32_option_override): Likewise.
29821 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
29822 (nios2_option_override): Likewise.
29823 (nios2_expand_custom_builtin): Likewise.
29824 * config/nvptx/mkoffload.c (main): Likewise.
29825 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
29826 * config/pa/pa.c (fix_range): Likewise.
29827 (pa_option_override): Likewise.
29828 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
29829 (riscv_option_override): Likewise.
29830 * config/rl78/rl78.c (rl78_option_override): Likewise.
29831 * config/rs6000/aix61.h: Likewise.
29832 * config/rs6000/aix71.h: Likewise.
29833 * config/rs6000/aix72.h: Likewise.
29834 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
29835 * config/rs6000/freebsd64.h: Likewise.
29836 * config/rs6000/linux64.h: Likewise.
29837 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
29838 (rs6000_expand_zeroop_builtin): Likewise.
29839 (rs6000_expand_mtfsb_builtin): Likewise.
29840 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
29841 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
29842 (rs6000_invalid_builtin): Likewise.
29843 (rs6000_expand_split_stack_prologue): Likewise.
29844 * config/rs6000/rtems.h: Likewise.
29845 * config/rx/rx.c (valid_psw_flag): Likewise.
29846 (rx_expand_builtin): Likewise.
29847 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
29848 * config/s390/s390.c (s390_expand_builtin): Likewise.
29849 (s390_function_profiler): Likewise.
29850 (s390_option_override_internal): Likewise.
29851 (s390_option_override): Likewise.
29852 * config/sh/sh.c (sh_option_override): Likewise.
29853 (sh_builtin_saveregs): Likewise.
29854 (sh_fix_range): Likewise.
29855 * config/sh/vxworks.h: Likewise.
29856 * config/sparc/sparc.c (sparc_option_override): Likewise.
29857 * config/spu/spu.c (spu_option_override): Likewise.
29858 (fix_range): Likewise.
29859 * config/visium/visium.c (visium_option_override): Likewise.
29860 (visium_handle_interrupt_attr): Likewise.
29861 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
29862 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
29863 (dbg_cnt_process_opt): Likewise.
29864 * dwarf2out.c (output_dwarf_version): Likewise.
29865 * except.c (expand_eh_return): Likewise.
29866 * gcc.c (defined): Likewise.
29867 (driver_handle_option): Likewise.
29868 (process_command): Likewise.
29869 (compare_files): Likewise.
29870 (driver::prepare_infiles): Likewise.
29871 (driver::do_spec_on_infiles): Likewise.
29872 (driver::maybe_run_linker): Likewise.
29873 * omp-offload.c (oacc_parse_default_dims): Likewise.
29874 * opts-global.c (handle_common_deferred_options): Likewise.
29875 * opts.c (parse_sanitizer_options): Likewise.
29876 (common_handle_option): Likewise.
29877 (enable_warning_as_error): Likewise.
29878 * passes.c (enable_disable_pass): Likewise.
29879 * plugin.c (parse_plugin_arg_opt): Likewise.
29880 (default_plugin_dir_name): Likewise.
29881 * targhooks.c (default_expand_builtin_saveregs): Likewise.
29882 (default_pch_valid_p): Likewise.
29883 * toplev.c (init_asm_output): Likewise.
29884 (process_options): Likewise.
29885 (toplev::run_self_tests): Likewise.
29886 * tree-cfg.c (verify_gimple_call): Likewise.
29887 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
29888 (tree_inlinable_function_p): Likewise.
29889 * var-tracking.c (vt_find_locations): Likewise.
29890
29891 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
29892
29893 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
29894 only on the else branch.
29895
29896 2019-03-11 Martin Liska <mliska@suse.cz>
29897
29898 * gcov.c (output_intermediate_json_line): Print function
29899 name of each line.
29900 (output_json_intermediate_file): Add new argument.
29901 * doc/gcov.texi: Document the change.
29902
29903 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
29904
29905 PR rtl-optimization/89588
29906 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29907 explicit unrolling factor more robust.
29908
29909 2019-03-11 Richard Biener <rguenther@suse.de>
29910
29911 PR tree-optimization/89649
29912 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
29913 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
29914 on the prolog and epilog loops.
29915 (vect_loop_versioning): Return copy of loop.
29916 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
29917 on the non-vectorized version of the loop.
29918
29919 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
29920
29921 PR target/68924
29922 * config/i386/sse.md (*vec_extractv2di_0_sse):
29923 Add (=r,x) alternative and corresponding splitter.
29924
29925 2019-03-10 Martin Jambor <mjambor@suse.cz>
29926
29927 PR tree-optimization/85762
29928 PR tree-optimization/87008
29929 PR tree-optimization/85459
29930 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
29931 it points to if there is a type changing MEM_REF. Adjust all callers.
29932 (build_accesses_from_assign): Disable total scalarization if
29933 contains_vce_or_bfcref_p returns true through the new parameter, for
29934 both rhs and lhs.
29935
29936 2019-03-09 Jakub Jelinek <jakub@redhat.com>
29937
29938 PR c/88568
29939 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
29940 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
29941
29942 PR target/79645
29943 * common.opt (fdiagnostics-show-labels,
29944 fdiagnostics-show-line-numbers, fdiagnostics-format=,
29945 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
29946 gas-locview-support, ginline-points, ginternal-reset-location-views):
29947 Terminate description text with a dot.
29948 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
29949 * config/mcore/mcore.opt (m210, m340): Likewise.
29950 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
29951 mnops=): Start description text with a capital letter.
29952 * config/arc/arc.opt (msize-level=): Likewise.
29953 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
29954 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
29955 mnewlib): Likewise.
29956 * config/ft32/ft32.opt (msim): Likewise.
29957 (mft32b, mcompress): Likewise. Terminate description text with a dot.
29958 (mnodiv, mnopm): Terminate description text with a dot.
29959 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
29960 a colon.
29961 * config/i386/i386.opt (prefer_vector_width, instrument_return):
29962 Likewise.
29963 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
29964 text.
29965
29966 PR rtl-optimization/89634
29967 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
29968 are modified in BB_END (e->src) instruction.
29969
29970 2019-03-08 David Malcolm <dmalcolm@redhat.com>
29971
29972 PR target/79926
29973 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
29974 messages more amenable to translation, and improve wording.
29975
29976 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
29977
29978 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
29979 ud- and du-chains between phases.
29980
29981 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
29982
29983 PR debug/89631
29984 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
29985 instead of POLY_INT_CST.
29986
29987 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
29988
29989 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
29990 requirement.
29991
29992 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
29993
29994 PR target/68924
29995 PR target/78782
29996 PR target/87558
29997 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
29998 (_mm_storeu_si64): Ditto.
29999
30000 2019-03-08 Martin Liska <mliska@suse.cz>
30001
30002 PR target/86952
30003 * config/i386/i386.c (ix86_option_override_internal): Disable
30004 jump tables when retpolines are used.
30005
30006 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30007
30008 PR go/63560
30009 * ipa-split.c (execute_split_functions): Do not split
30010 'noinline' or 'section' function.
30011
30012 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30013
30014 PR target/79846
30015 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30016 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30017 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30018
30019 PR ipa/80000
30020 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30021 from diagnostics. Formatting fixes.
30022
30023 PR target/85665
30024 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30025 warn_odr diagnostics.
30026
30027 PR other/80058
30028 * lra-constraints.c (process_alt_operands): Avoid one space before
30029 " at the end of line and another after " on another line in a string
30030 literal.
30031 * attribs.c (handle_dll_attribute): Likewise.
30032 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30033
30034 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30035 warning_at or inform messages in G_() if there is no ?:.
30036
30037 PR tree-optimization/89550
30038 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30039 returned true. Formatting fixes.
30040 (expand_builtin_strnlen): Formatting fixes.
30041 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30042 if warning_at returned true.
30043 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30044
30045 2019-03-08 Richard Biener <rguenther@suse.de>
30046
30047 PR middle-end/89578
30048 * cfgloop.h (struct loop): Add owned_clique field.
30049 * cfgloopmanip.c (copy_loop_info): Copy it.
30050 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30051 cliques.
30052 * tree-inline.c (copy_loops): Remap owned_clique.
30053 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30054 * lto-streamer-out.c (output_cfg): Likewise.
30055
30056 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30057
30058 PR target/80190
30059 * config/darwin.c: Include intl.h.
30060 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30061 composing the message out of two separate parts.
30062
30063 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30064
30065 PR target/80003
30066 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30067 doesn't start with a capital letter and doesn't end with a dot.
30068 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30069 with a capital letter.
30070 (ix86_mangle_function_version_assembler_name): Likewise.
30071 (ix86_generate_version_dispatcher_body): Likewise.
30072 (fold_builtin_cpu): Likewise.
30073 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30074 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30075 translators, wrap full type name in %qs.
30076
30077 PR translation/79999
30078 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30079 depend clause with source (or sink) modifier.
30080 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30081
30082 PR target/89602
30083 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30084 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30085 (avx512f_load<mode>_mask): New define_expand.
30086 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30087 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30088 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30089 __builtin_ia32_movess_mask): New builtins.
30090 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30091 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30092 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30093 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30094
30095 2019-03-07 Martin Jambor <mjambor@suse.cz>
30096
30097 PR lto/87525
30098 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30099 for extern inline functions.
30100
30101 2019-03-07 Martin Jambor <mjambor@suse.cz>
30102
30103 PR ipa/88235
30104 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30105 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30106 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30107 have multiple callees. At the end check if declarations match as
30108 opposed to cgraph_nodes.
30109
30110 2019-03-07 Martin Liska <mliska@suse.cz>
30111
30112 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30113 which is equivalent to searching for this in clones chain.
30114 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30115 names with a neighbour and special case first node in a chain.
30116
30117 2019-01-25 Jason Merrill <jason@redhat.com>
30118
30119 PR c++/80916 - spurious "static but not defined" warning.
30120 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30121 for an internal symbol with DECL_EXTERNAL.
30122
30123 2019-04-07 Richard Biener <rguenther@suse.de>
30124
30125 PR middle-end/89618
30126 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30127 * tree-inline.c (copy_loops): Simplify.
30128
30129 2019-03-07 Martin Liska <mliska@suse.cz>
30130
30131 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30132
30133 2019-03-07 Richard Biener <rguenther@suse.de>
30134
30135 PR tree-optimization/89595
30136 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30137 stmt iterator as reference, take boolean output parameter to
30138 indicate whether the stmt was removed and thus the iterator
30139 already advanced.
30140 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30141 stmts created by folding.
30142
30143 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30144
30145 PR c++/89585
30146 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30147 at toplevel.
30148
30149 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30150
30151 PR rtl-optimization/88845
30152 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30153 LRA.
30154 * lra.c (remove_scratches_1): New function.
30155 (remove_scratches): Use it.
30156 (lra_emit_move): Likewise.
30157
30158 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30159
30160 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30161 unaligned_access variable.
30162 * config/arc/arc.c (arc_override_options): Set unaligned access
30163 default on for HS CPUs.
30164 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30165
30166 2019-03-06 Martin Liska <mliska@suse.cz>
30167
30168 PR gcov-profile/89577
30169 * doc/gcov.texi: Prefer to use --coverage.
30170 * doc/sourcebuild.texi: Likewise.
30171
30172 2019-03-02 Jason Merrill <jason@redhat.com>
30173
30174 PR c++/86485 - -Wmaybe-unused with empty class ?:
30175 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30176
30177 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30178
30179 PR target/89587
30180 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30181 if_multiarch.
30182
30183 PR middle-end/89590
30184 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30185 exactly one argument.
30186
30187 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30188 Richard Sandiford <richard.sandiford@arm.com>
30189
30190 PR tree-optimization/89570
30191 * match.pd (vec_cond into cond_op simplification): Don't use
30192 get_conditional_internal_fn, use as_internal_fn (cond_op).
30193
30194 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30195
30196 PR target/89222
30197 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30198 to decide when to split off a non-zero offset from a symbol.
30199 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30200 in function symbols.
30201
30202 2019-03-05 Richard Biener <rguenther@suse.de>
30203
30204 PR tree-optimization/89594
30205 * tree-if-conv.c (pass_if_conversion::execute): Handle
30206 case where .LOOP_VECTORIZED_FUNCTION was removed.
30207
30208 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30209
30210 PR bootstrap/89560
30211 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30212 instead alloca it only when needed with the needed size.
30213
30214 PR tree-optimization/89570
30215 * match.pd (vec_cond into cond_op simplification): Guard with
30216 vectorized_internal_fn_supported_p test and #if GIMPLE.
30217
30218 PR tree-optimization/89566
30219 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30220 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30221 Punt if get_user_idx_format succeeds, but idx_format argument is
30222 not provided or doesn't have pointer type, or if idx_args is above
30223 number of provided arguments.
30224
30225 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30226
30227 PR tree-optimization/89437
30228 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30229
30230 2019-03-04 Richard Biener <rguenther@suse.de>
30231
30232 PR middle-end/89572
30233 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30234 safe_dyn_cast.
30235
30236 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30237
30238 PR tree-optimization/89487
30239 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30240 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30241 (distribute_loop): Don't do runtime alias check if there is non-
30242 addressable data reference.
30243 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30244 is a register variable.
30245
30246 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30247
30248 PR target/89506
30249 * config/arm/arm.md (cmpsi2_addneg): Use
30250 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30251 If operands[2] is 0 or INT_MIN, force use of subs.
30252 (*compare_scc splitter): Use gen_int_mode.
30253 (*negscc): Likewise.
30254 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30255
30256 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30257 Monk Chiang <sh.chiang04@gmail.com>
30258
30259 * common/config/riscv/riscv-common.c: Include sstream.
30260 (riscv_subset_list::to_string): New.
30261 (riscv_arch_str): Likewise.
30262 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30263 * config.in: Regen.
30264 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30265 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30266 (riscv_emit_attribute): New.
30267 (riscv_file_start): Emit attribute if needed.
30268 (riscv_option_override): Init riscv_emit_attribute_p.
30269 * config/riscv/riscv.opt (mriscv-attribute): New option.
30270 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30271 * configure: Regen.
30272 * doc/install.texi: Document --with-riscv-attribute.
30273 * doc/invoke.texi: Document -mriscv-attribute.
30274
30275 * common/config/riscv/riscv-common.c:
30276 Include config/riscv/riscv-protos.h.
30277 (INCLUDE_STRING): Defined.
30278 (RISCV_DONT_CARE_VERSION): Defined.
30279 (riscv_subset_t): Declare.
30280 (riscv_subset_t::riscv_subset_t): New.
30281 (riscv_subset_list): Declare.
30282 (riscv_subset_list::riscv_subset_list): New.
30283 (riscv_subset_list::~riscv_subset_list): Likewise.
30284 (riscv_subset_list::parsing_subset_version): Likewise.
30285 (riscv_subset_list::parse_std_ext): Likewise.
30286 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30287 (riscv_subset_list::add): Likewise.
30288 (riscv_subset_list::lookup): Likewise.
30289 (riscv_subset_list::xlen): Likewise.
30290 (riscv_subset_list::parse): Likewise.
30291 (riscv_supported_std_ext): Likewise.
30292 (current_subset_list): Likewise.
30293 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30294 parse.
30295
30296 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30297
30298 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30299 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30300 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30301
30302 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30303
30304 PR rtl-optimization/85899
30305 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30306 fallthru edges leading to the exit block.
30307
30308 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30309
30310 PR target/89517
30311 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30312 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30313
30314 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30315
30316 PR tree-optimization/89535
30317 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30318 for each operand. Calculate the fallback choice for mask operands
30319 and pass it to vect_get_vec_def_for_operand.
30320
30321 2019-03-01 Richard Biener <rguenther@suse.de>
30322
30323 PR middle-end/89541
30324 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30325 get virtual operands.
30326 (get_expr_operands): Handle CONST_DECL like other decls.
30327
30328 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30329
30330 PR middle-end/89503
30331 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30332 on DECL_P and EXPR_P.
30333
30334 2019-03-01 Richard Biener <rguenther@suse.de>
30335
30336 PR middle-end/89497
30337 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30338 argument, defaulted to zero.
30339 * passes.c (execute_function_todo): Pass down SSA update flags
30340 to cleanup_tree_cfg.
30341 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30342 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30343 form if requested.
30344 (cleanup_tree_cfg): Get and pass down SSA update flags.
30345
30346 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30347
30348 PR bootstrap/89539
30349 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30350 early_lto_debug argument.
30351
30352 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
30353
30354 PR tree-optimization/89536
30355 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30356 only whether bit #0 of the value is 0 instead of the entire value.
30357
30358 2019-02-28 Marek Polacek <polacek@redhat.com>
30359
30360 PR c++/87068 - missing diagnostic with fallthrough statement.
30361 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30362 at the end of a seq, save its location to walk_stmt_info.
30363 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30364 a switch.
30365
30366 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
30367
30368 PR lto/88585
30369 * tree.c (find_atomic_core_type): Move ahead in file.
30370 (check_base_type): Correctly compare alignments of atomic types.
30371
30372 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
30373
30374 PR target/89455
30375 * config/i386/i386.c (get_builtin_code_for_version): Identify
30376 Westmere from PCLMUL, instead of AES.
30377
30378 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30379
30380 PR target/89434
30381 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
30382 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
30383 -UINTVAL (...).
30384
30385 2019-02-28 Tamar Christina <tamar.christina@arm.com>
30386
30387 PR target/88530
30388 * config/aarch64/aarch64-option-extensions.def: Document it.
30389 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
30390 if empty hwcaps.
30391
30392 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30393
30394 PR c/89520
30395 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
30396 builtins if they don't have a single scalar floating point argument.
30397 Formatting fixes.
30398
30399 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
30400
30401 PR rtl-optimization/89490
30402 * varasm.c (get_block_for_section): Bail out for mergeable sections.
30403 (default_use_anchors_for_symbol_p, output_object_block): Assert the
30404 block section is not mergeable.
30405
30406 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30407
30408 PR target/70341
30409 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
30410 old define_insn to ...
30411 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
30412 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
30413 Rename old define_insn to ...
30414 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
30415 (thumb2_casesi_internal_pic): New define_expand. Rename old
30416 define_insn to ...
30417 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
30418 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
30419 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
30420
30421 2019-02-27 Richard Biener <rguenther@suse.de>
30422
30423 PR debug/88878
30424 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
30425
30426 2019-02-27 Richard Biener <rguenther@suse.de>
30427
30428 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
30429 building.
30430
30431 2019-02-27 Richard Biener <rguenther@suse.de>
30432
30433 PR debug/88878
30434 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
30435 parameter, prefix section name with .gnu.debuglto_ if true.
30436 (dwarf2out_finish): Pass false to output_comdat_type_unit.
30437 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
30438
30439 2019-02-27 Richard Biener <rguenther@suse.de>
30440
30441 PR debug/89514
30442 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
30443 rather than on use_debug_types, doing what output_die does.
30444 (value_format): Likewise.
30445
30446 2019-02-27 Martin Jambor <mjambor@suse.cz>
30447 Martin Sebor <msebor@redhat.com>
30448
30449 * doc/invoke.texi (Warning Options): Reword description of
30450 -Wno-absolute-value.
30451
30452 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30453
30454 PR tree-optimization/89280
30455 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
30456 builtin_setjmp_setup_bb): New functions.
30457 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
30458 When visiting __builtin_setjmp_setup block, queue in special
30459 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
30460 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
30461 from visited after the loop if they don't have any visited successor
30462 blocks.
30463
30464 2018-02-26 Steve Ellcey <sellcey@marvell.com>
30465
30466 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
30467 New function.
30468 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
30469
30470 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30471
30472 PR c++/89507
30473 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
30474 with types other than sizetype/ssizetype.
30475
30476 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30477
30478 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
30479 (enum sparc_processor_type): ...this.
30480 (enum sparc_code_model_type): New enumeration type.
30481 (enum sparc_memory_model_type): Tweak comments.
30482 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
30483 (mtune): Likewise.
30484 (mcmodel): Use sparc_code_model enumeration and variable.
30485 (sparc_code_model): New enumeration.
30486 (mdebug): Add Undocumented marker.
30487 * config/sparc/sparc.h (enum cmodel): Delete.
30488 (sparc_cmodel): Likewise.
30489 (TARGET_CM_MEDLOW): Adjust to above renaming.
30490 (TARGET_CM_MEDMID): Likewise.
30491 (TARGET_CM_MEDANY): Likewise.
30492 (TARGET_CM_EMBMEDANY): Likewise.
30493 * config/sparc/sparc.c (sparc_cmodel): Delete.
30494 (sparc_option_override): Remove string/value mapping support for the
30495 code model. Move code and memory model support to after the handling
30496 of target flags. Do private machine setup last.
30497 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
30498 (sparc_legitimize_reload_address): Likewise.
30499 (sparc_output_mi_thunk): Likewise.
30500 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
30501
30502 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30503
30504 PR tree-optimization/89500
30505 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
30506 (handle_builtin_strlen): Remove noncst_bound variable. Always
30507 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
30508 cst if the first cst bytes starting at x are known to be non-zero,
30509 even if the string is not zero terminated. Don't try to modify
30510 *si for strnlen. Update strlen_to_stridx only for strlen or if
30511 we can prove strnlen returns the same value as strlen would.
30512
30513 2019-02-26 Martin Liska <mliska@suse.cz>
30514
30515 * alloc-pool.h (struct pool_usage): Remove extra
30516 print_dash_line.
30517 * bitmap.h (struct bitmap_usage): Likewise.
30518 * ggc-common.c (struct ggc_usage): Likewise.
30519 * mem-stats.h (struct mem_usage): Likewise.
30520 (mem_alloc_description::dump): Print dash lines
30521 here and repeat header at the end of a table report.
30522 It's then more readable.
30523 * tree-phinodes.c (phinodes_print_statistics): Make
30524 horizontal alignment.
30525 * tree-ssanames.c (ssanames_print_statistics): Likewise.
30526 * vec.c (struct vec_usage): Remove extra print_dash_line.
30527 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
30528
30529 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
30530
30531 * doc/extend.texi (__builtin_object_size):
30532 Use @pxref instead of @xref inside parenthesis.
30533 (__builtin_has_attribute): Add missing comma after @xref.
30534 (__builtin_object_size): Ditto.
30535 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
30536
30537 2019-02-26 Jeff Law <law@redhat.com>
30538
30539 PR rtl-optimization/87761
30540 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
30541 detect obviously dead insns and delete them.
30542
30543 2019-02-26 Richard Biener <rguenther@suse.de>
30544
30545 PR tree-optimization/89505
30546 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
30547 to handle restrict pointed-to vars with multiple subvars
30548 correctly.
30549
30550 2019-02-26 Richard Biener <rguenther@suse.de>
30551
30552 PR tree-optimization/89489
30553 * tree-parloops.c (create_loop_fn): Copy over last_clique.
30554
30555 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30556
30557 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
30558 and move around comment.
30559 <BIT_AND_EXPR>: Likewise.
30560 <BIT_NOT_EXPR>: Add specific handling for boolean types.
30561
30562 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30563
30564 PR target/89474
30565 * config/i386/i386.c (remove_partial_avx_dependency): Call
30566 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
30567 after changing possibly many instructions to use that pseudo. Fix up
30568 insertion of v4sf_const0 setter at the start of bb.
30569
30570 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30571
30572 PR c/80409
30573 * doc/extend.texi (Variadic Pointer Args): New section.
30574
30575 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30576 Martin Sebor <msebor@gmail.com>
30577
30578 * common.opt (Wattribute-alias): Likewise.
30579 * doc/invoke.texi (Option Summary): List general form of
30580 -Wattribute-alias=. List positive form of -Wmissing-attributes.
30581 (-Wmissing-attributes): Invert entry, rewrite and correct default.
30582 Add cross-references.
30583 (-Wattribute-alias): Rewrite and correct default. Mention
30584 considered attributes (same as for -Wmissing-attributes).
30585
30586 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
30587
30588 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
30589 (_mm_cvtpd_ps): Likewise.
30590 (_mm_cvttpd_epi32): Likewise.
30591
30592 PR target/89338
30593 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
30594 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
30595
30596 PR target/89339
30597 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
30598
30599 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30600
30601 PR target/88530
30602 * common/config/aarch64/aarch64-common.c
30603 (struct aarch64_option_extension): Add is_synthetic.
30604 (all_extensions): Use it.
30605 (TARGET_OPTION_INIT_STRUCT): Define hook.
30606 (struct gcc_targetm_common): Moved to end.
30607 (all_extensions_by_on): New.
30608 (opt_ext_cmp, typedef opt_ext): New.
30609 (aarch64_option_init_struct): New.
30610 (aarch64_contains_opt): New.
30611 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
30612 * config/aarch64/aarch64-option-extensions.def
30613 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
30614 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
30615 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
30616 Set is_synthetic to false.
30617 (crypto): Set is_synthetic to true.
30618 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
30619 SYNTHETIC.
30620
30621 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30622
30623 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30624 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
30625 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30626 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
30627 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
30628 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
30629 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
30630 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
30631 Rename ...
30632 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
30633 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30634 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
30635 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
30636 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
30637 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
30638 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
30639 vfmlsl_laneq_high_f16): ... To this.
30640 * config/arm/neon.md: Update comments.
30641
30642 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30643
30644 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30645 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
30646 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30647 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
30648 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
30649 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
30650 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
30651 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
30652 Rename ...
30653 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
30654 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30655 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
30656 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
30657 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
30658 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
30659 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
30660 vfmlslq_laneq_high_f16): ... To this.
30661
30662 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
30663
30664 PR rtl-optimization/86096
30665 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
30666 comparing mw_order values.
30667
30668 2019-02-25 Jakub Jelinek <jakub@redhat.com>
30669
30670 PR target/89434
30671 * config/arm/arm.md (*subsi3_carryin_const): Use
30672 arm_neg_immediate_operand predicate instead of
30673 arm_not_immediate_operand, "L" constraint instead of "K" and
30674 print it using %n2 instead of %B2.
30675 (*subsi3_carryin_const0): New define_insn.
30676 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
30677 instead of arm_not_operand and "I" constraint instead of "K" and
30678 print it using %n3 instead of %B2. Instead of using match_dup 2 add
30679 another match_operand and in the condition check that it is negation
30680 of operands[2].
30681 (*subsi3_carryin_compare_const0): New define_ins.
30682 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
30683 *subsi3_carryin_const.
30684 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
30685 split into *subsi3_carryin_compare_const0 if the highpart is zero.
30686
30687 PR target/89438
30688 * config/arm.vfp.md (*negdf2_vfp): Use
30689 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
30690 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
30691
30692 2019-02-24 Jakub Jelinek <jakub@redhat.com>
30693
30694 PR rtl-optimization/89445
30695 * simplify-rtx.c (simplify_ternary_operation): Don't use
30696 simplify_merge_mask on operands that may trap.
30697 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
30698 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
30699 second operand is CONST_VECTOR, check if any element could be zero.
30700 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
30701 their operands can trap.
30702
30703 2019-02-23 Martin Sebor <msebor@redhat.com>
30704
30705 * gimple-ssa-sprintf.c (target_strtol): Rename...
30706 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
30707 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
30708 check for range error.
30709
30710 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
30711
30712 PR driver/69471
30713 * opts-common.c (prune_options): Also prune joined switches
30714 with Negative and RejectNegative.
30715 * config/i386/i386.opt (march=): Add Negative(march=).
30716 (mtune=): Add Negative(mtune=).
30717 * doc/options.texi: Document Negative used together with Joined
30718 and RejectNegative.
30719
30720 2019-02-22 Martin Sebor <msebor@redhat.com>
30721
30722 * doc/extend.texi (Other Builtins): Add
30723 __builtin_is_constant_evaluated.
30724
30725 2019-02-22 Richard Biener <rguenther@suse.de>
30726
30727 PR tree-optimization/87609
30728 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
30729
30730 2019-02-22 Jeff Law <law@redhat.com>
30731
30732 PR rtl-optimization/87761
30733 * config/mips/mips.md: Add new combiner pattern to recognize
30734 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
30735
30736 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
30737
30738 PR target/89324
30739 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
30740 destination register in peepholes generating patterns for ADDS/SUBS.
30741 (add<mode>3_compare0,
30742 *addsi3_compare0_uxtw, add<mode>3_compareC,
30743 add<mode>3_compareV_imm, add<mode>3_compareV,
30744 *adds_<optab><ALLX:mode>_<GPI:mode>,
30745 *subs_<optab><ALLX:mode>_<GPI:mode>,
30746 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
30747 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
30748 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
30749 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
30750 sub<mode>3_compare1): Allow stack pointer for source register.
30751 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
30752
30753 2019-02-22 Martin Sebor <msebor@redhat.com>
30754
30755 PR tree-optimization/88993
30756 PR tree-optimization/88853
30757 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
30758 New helper.
30759 (sprintf_dom_walker::call_info::is_string_func): New helper.
30760 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
30761 for formatted string functions.
30762 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
30763
30764 2019-02-22 Martin Sebor <msebor@redhat.com>
30765
30766 PR c/89425
30767 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
30768 unreachable subexpressions.
30769
30770 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
30771 Hongtao Liu <hongtao.liu@intel.com>
30772 Sunil K Pandey <sunil.k.pandey@intel.com>
30773
30774 PR target/87007
30775 * config/i386/i386-passes.def: Add
30776 pass_remove_partial_avx_dependency.
30777 * config/i386/i386-protos.h
30778 (make_pass_remove_partial_avx_dependency): New.
30779 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
30780 New function.
30781 (pass_data_remove_partial_avx_dependency): New.
30782 (pass_remove_partial_avx_dependency): Likewise.
30783 (make_pass_remove_partial_avx_dependency): Likewise.
30784 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
30785 (*extendsfdf2): Add avx_partial_xmm_update.
30786 (truncdfsf2): Likewise.
30787 (*float<SWI48:mode><MODEF:mode>2): Likewise.
30788 (SF/DF conversion splitters): Disabled for TARGET_AVX.
30789
30790 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
30791
30792 PR middle-end/85598
30793 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
30794 analysis for pass.
30795
30796 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
30797
30798 PR target/89444
30799 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
30800 (PTA_SKYLAKE): Add PTA_AES.
30801 (PTA_GOLDMONT): Likewise.
30802
30803 2019-02-22 Sudakshina Das <sudi.das@arm.com>
30804
30805 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
30806 instruction if enabled.
30807 (aarch64_override_options): Remove reference to return address key.
30808
30809 2019-02-22 Richard Biener <rguenther@suse.de>
30810
30811 PR tree-optimization/89440
30812 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
30813 not necessary assert.
30814
30815 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
30816
30817 PR fortran/72741
30818 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
30819 (oacc_replace_fn_attrib_attr): ... this new function.
30820 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
30821 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
30822
30823 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30824
30825 * config/arm/arm-cpus.in (ares): Rename to...
30826 (neoverse-n1): ... This. Add ares as alias.
30827 * config/arm/arm-tables.opt: Regenerate.
30828 * config/arm/arm-tune.md: Likewise.
30829 * doc/invoke.txt (ARM Options): Document neoverse-n1.
30830
30831 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30832
30833 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
30834 * config/aarch64/aarch64-tune.md: Regenerate.
30835 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
30836
30837 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30838
30839 * config/aarch64/aarch64.c (ares_tunings): Rename to...
30840 (neoversen1_tunings): ... This.
30841 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
30842 (neoverse-n1): New CPU.
30843 * config/aarch64/aarch64-tune.md: Regenerate.
30844 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
30845
30846 2019-02-22 Richard Biener <rguenther@suse.de>
30847
30848 PR middle-end/87609
30849 * cfghooks.h (dependence_hash): New typedef.
30850 (struct copy_bb_data): New type.
30851 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
30852 (duplicate_block): Likewise.
30853 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
30854 (copy_bbs): Create and pass down copy_bb_data.
30855 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
30856 (rtl_duplicate_bb): Likewise.
30857 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
30858 remap dependence info.
30859
30860 2019-02-22 Richard Biener <rguenther@suse.de>
30861
30862 PR tree-optimization/87609
30863 * tree-core.h (tree_base): Document special clique values.
30864 * tree-inline.c (remap_dependence_clique): Do not use the
30865 special clique value of one.
30866 (maybe_set_dependence_info): Use clique one.
30867 (clear_dependence_clique): New callback.
30868 (compute_dependence_clique): Clear clique one from all refs
30869 before assigning it (again).
30870
30871 2019-02-21 Martin Sebor <msebor@redhat.com>
30872
30873 * doc/extend.texi (__clear_cache): Correct signature.
30874
30875 2019-02-21 Ian Lance Taylor <iant@golang.org>
30876
30877 PR go/89170
30878 * varasm.c (decode_addr_const): Call lookup_constant_def rather
30879 than output_constant_def.
30880 (add_constant_to_table): New static function.
30881 (output_constant_def): Call add_constant_to_table.
30882 (tree_output_constant_def): Likewise.
30883
30884 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30885
30886 PR c++/89285
30887 * builtins.c (fold_builtin_arith_overflow): If first two args are
30888 INTEGER_CSTs, set intres and ovfres to constants rather than calls
30889 to ifn.
30890
30891 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
30892
30893 PR target/87412
30894 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
30895 error for -mindirect-branch/-mfunction-return with incompatible
30896 -fcf-protection.
30897
30898 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30899
30900 PR bootstrap/88714
30901 * constraints.md (q): Remove.
30902 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
30903 instead of q.
30904
30905 2019-02-21 Martin Jambor <mjambor@suse.cz>
30906
30907 PR hsa/89302
30908 * omp-general.c (omp_extract_for_data): Removed a duplicate call
30909 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
30910 (omp_adjust_for_condition): ...here. Added necessary parameters.
30911 * omp-general.h (omp_adjust_for_condition): Updated declaration.
30912 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
30913 proper values to new parameters of omp_adjust_for_condition.
30914
30915 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30916
30917 PR middle-end/89412
30918 * expr.c (expand_assignment): If result is a MEM, use change_address
30919 instead of simplify_gen_subreg.
30920
30921 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30922 David Malcolm <dmalcolm@redhat.com>
30923
30924 PR middle-end/89091
30925 * fold-const.c (decode_field_reference): Return NULL_TREE if
30926 lang_hooks.types.type_for_size returns NULL. Check it before
30927 overwriting *exp_. Use return NULL_TREE instead of return 0.
30928
30929 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30930
30931 PR middle-end/88074
30932 PR middle-end/89415
30933 * toplev.c (do_compile): Double the emin/emax exponents to workaround
30934 buggy mpc_norm.
30935
30936 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
30937
30938 PR target/89397
30939 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
30940 TARGET_SSE in addition to TARGET_SSE_MATH.
30941
30942 (ix86_excess_precision): Ditto.
30943 (ix86_float_exceptions_rounding_supported_p): Ditto.
30944 (use_rsqrt_p): Ditto.
30945 * config/i386/sse.md (rsqrt<mode>2): Ditto.
30946
30947 2019-02-20 David Malcolm <dmalcolm@redhat.com>
30948
30949 PR c/89410
30950 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
30951 linenum_arith_t when determining if two adjacent line spans are
30952 close enough to merge.
30953 (diagnostic_show_locus): Use linenum_arith_t when iterating over
30954 lines within each line_span.
30955
30956 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
30957
30958 PR target/86487
30959 * lra-constraints.c(uses_hard_regs_p): Fix handling of
30960 paradoxical SUBREGS.
30961
30962 2019-02-20 Li Jia He <helijia@linux.ibm.com>
30963
30964 PR target/88100
30965 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
30966 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
30967 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
30968 range checking it.
30969
30970 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
30971
30972 * config/gcn/gcn.c (print_operand): Fix typo.
30973
30974 2019-02-19 Richard Biener <rguenther@suse.de>
30975
30976 PR middle-end/88074
30977 * toplev.c (do_compile): Initialize mpfr's exponent range
30978 based on available float modes.
30979
30980 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
30981
30982 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
30983 as long as the epilogue isn't completed.
30984
30985 2019-02-18 Martin Sebor <msebor@redhat.com>
30986
30987 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
30988 __has_cpp_attribute, and __has_include.
30989
30990 2019-02-18 Martin Sebor <msebor@redhat.com>
30991
30992 * doc/invoke.texi (-Wreturn-type): Correct and expand.
30993
30994 2019-02-18 Martin Sebor <msebor@redhat.com>
30995
30996 PR middle-end/89294
30997 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
30998 expression.
30999 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31000
31001 2019-02-18 Richard Biener <rguenther@suse.de>
31002
31003 PR tree-optimization/89296
31004 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31005 of no-warning flag to cases that might emit the bogus warning.
31006
31007 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31008
31009 PR bootstrap/88714
31010 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31011 "q" constraint.
31012 * config/arm/vfp.md (*movdi_vfp): Likewise.
31013 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31014 "q" constraint for operands[0].
31015
31016 PR target/89369
31017 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31018 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31019 pattern in a temporary buffer.
31020 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31021 than 64-operands[2].
31022
31023 PR target/89361
31024 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31025 s390_indirect_branch_settings): Define unconditionally.
31026 (s390_set_current_function): Likewise, but guard the whole body except
31027 the s390_indirect_branch_settings call with
31028 #if S390_USE_TARGET_ATTRIBUTE.
31029 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31030
31031 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31032 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31033 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31034 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31035 HOST_WIDE_INT_1U instead of 1ULL.
31036 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31037 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31038 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31039 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31040 instead of 1UL.
31041 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31042 instead of 1ul.
31043
31044 2019-02-18 Martin Jambor <mjambor@suse.cz>
31045
31046 PR tree-optimization/89209
31047 * tree-sra.c (create_access_replacement): New optional parameter
31048 reg_tree. Use it as a type if non-NULL and access type is not of
31049 a register type.
31050 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31051 to create_access_replacement.
31052 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31053 Check lacc is non-NULL before attempting to re-create it on the RHS.
31054
31055 2019-02-18 Martin Liska <mliska@suse.cz>
31056
31057 PR ipa/89306
31058 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31059 by default.
31060 (symbol_table::free_edge): Recycle m_summary_id.
31061 * cgraph.h (get_summary_id): New.
31062 (symbol_table::release_symbol): Set m_summary_id to -1
31063 by default.
31064 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31065 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31066 function_summary to fast_function_summary.
31067 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31068 * ipa-pure-const.c (class funct_state_summary_t):
31069 Switch from function_summary to fast_function_summary.
31070 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31071 (class ipa_ref_opt_summary_t): Switch from function_summary
31072 to fast_function_summary.
31073 * symbol-summary.h (class function_summary_base): New class
31074 that is created from base of former function_summary.
31075 (function_summary_base::unregister_hooks): New.
31076 (class function_summary): Inherit from function_summary_base.
31077 (class call_summary_base): New class
31078 that is created from base of former call_summary.
31079 (class call_summary): Inherit from call_summary_base.
31080 (struct is_same): New.
31081 (class fast_function_summary): New summary class.
31082 (class fast_call_summary): New summary class.
31083 * vec.h (vec_safe_grow_cleared): New function.
31084
31085 2019-02-18 Martin Liska <mliska@suse.cz>
31086
31087 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31088 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31089 * doc/tm.texi: Document new target hook.
31090 * doc/tm.texi.in: Likewise.
31091 * target.def: Add new target macro.
31092 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31093 suffixes.
31094
31095 2019-02-17 Alan Modra <amodra@gmail.com>
31096
31097 PR target/89271
31098 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31099 output reg on add insn.
31100 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31101
31102 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31103
31104 PR target/89372
31105 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31106 (PMULHRSW): Likewise.
31107 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31108 TARGET_AVX2.
31109 (ssse3_pmulhrswv4hi3): New expander.
31110
31111 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31112
31113 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31114 MMX. Add isa attribute.
31115
31116 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31117
31118 PR rtl-optimization/66152
31119 * builtins.h (c_readstr): Declare.
31120 * builtins.c (c_readstr): Remove forward declaration. Add
31121 null_terminated_p argument, if false, read all bytes from the
31122 string instead of stopping after '\0'.
31123 * expr.c (string_cst_read_str): New function.
31124 (store_expr): Use string_cst_read_str instead of
31125 builtin_strncpy_read_str. Try to store by pieces the whole
31126 exp_len first, and only if that fails, split it up into
31127 store by pieces followed by clear_storage. Formatting fix.
31128
31129 * config/i386/i386.md (*movqi_internal): Remove static from
31130 buf variable. Use output_asm_insn (buf, operands); return "";
31131 instead of return buf;.
31132 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31133 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31134 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31135
31136 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31137
31138 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31139 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31140 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31141 (CC1_SPEC): Likewise.
31142 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31143
31144 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31145
31146 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31147 the base address on 64-bit strict-alignment platforms.
31148
31149 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31150
31151 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31152
31153 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31154
31155 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31156
31157 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31158
31159 PR rtl-optimization/88308
31160 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31161 on copied instruction.
31162
31163 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31164
31165 * final.c (insn_current_reference_address): Replace test on JUMP_P
31166 with test on jump_to_label_p.
31167 * config/visium/visium-passes.def: New file.
31168 * config/visium/t-visium (PASSES_EXTRA): Define.
31169 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31170 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31171 (TRAMPOLINE_ALIGNMENT): Define.
31172 * config/visium/visium.c (visium_option_override): Do not register
31173 the machine-specific reorg pass here.
31174 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31175 for the GR6.
31176 (output_branch): Adjust threshold for long branch instruction.
31177 * config/visium/visium.md (cpu): Move around.
31178 (length): Adjust for the GR6.
31179
31180 2019-02-15 Richard Biener <rguenther@suse.de>
31181 Jakub Jelinek <jakub@redhat.com>
31182
31183 PR tree-optimization/89278
31184 * tree-loop-distribution.c: Include tree-eh.h.
31185 (generate_memset_builtin, generate_memcpy_builtin): Call
31186 rewrite_to_non_trapping_overflow on builtin->size before passing it
31187 to force_gimple_operand_gsi.
31188
31189 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31190
31191 PR other/89342
31192 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31193 optimize_debug.
31194 * opth-gen.awk: Likewise.
31195
31196 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31197
31198 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31199 Enable MMX, SSE and SSE2 by default.
31200 * config/i386/i386.c (ix86_option_override_internal): Do not
31201 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31202
31203 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31204
31205 PR rtl-optimization/89354
31206 * combine.c (make_extraction): Punt if extraction_mode is narrower
31207 than len bits.
31208
31209 2019-02-14 Maya Rashish <coypu@sdf.org>
31210
31211 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31212 * config/netbsd-d.c: New file.
31213 * config/t-netbsd: Add netbsd-d.o
31214
31215 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31216
31217 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31218 affects_type_identity to true for aarch64_vector_pcs.
31219 (aarch64_comp_type_attributes): New function.
31220 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31221
31222 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31223
31224 PR target/88850
31225 * config/arm/iterators.md (ANY64): Add V4HF.
31226
31227 2019-02-14 Martin Liska <mliska@suse.cz>
31228
31229 PR rtl-optimization/89242
31230 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31231 process a transformation.
31232
31233 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31234
31235 PR tree-optimization/89314
31236 * fold-const.c (fold_binary_loc): Cast strlen argument to
31237 const char * before dereferencing it. Formatting fixes.
31238
31239 PR middle-end/89284
31240 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31241
31242 2019-02-13 Ian Lance Taylor <iant@golang.org>
31243
31244 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31245 and set current index for other optimizations.
31246
31247 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31248
31249 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31250 nonimmediate_operand as operand 2 predicate.
31251 (vec_set<VF2_512_256:mode>_0): Ditto.
31252 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31253 (*vec_concatv2si): Remove alternative 2.
31254 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31255 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31256 (vec_concatv2di): Split alternatives 4,5,6 to ...
31257 (*vec_concatv2di_0) ... new pattern.
31258
31259 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31260
31261 PR target/89190
31262 * config/arm/arm.c (ldm_stm_operation_p) Set
31263 addr_reg_in_reglist correctly for first register.
31264 (load_multiple_sequence): Remove dead base check.
31265 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31266
31267 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31268
31269 PR target/88847
31270 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31271 Expose as @aarch64_pred_mov.
31272 * config/aarch64/aarch64.c (aarch64_classify_address):
31273 Use expand_insn which legitimizes operands.
31274
31275 2019-02-13 Martin Liska <mliska@suse.cz>
31276
31277 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31278 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31279 and pointer_offset fields.
31280 (initialize_argument_information): Remove usage of dead
31281 fields.
31282 * cgraph.h (struct cgraph_thunk_info): Remove
31283 add_pointer_bounds_args.
31284 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31285 fields.
31286 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31287 fields.
31288 * config/i386/i386.c (ix86_function_arg_advance): Remove
31289 unrelated comment.
31290 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31291 (def_builtin): Remove usage of dead fields.
31292 (ix86_add_new_builtins): Likewise.
31293 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31294 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31295 (sem_function::init): Likewise.
31296 (sem_variable::merge): Likewise.
31297 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31298 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31299 * lto-cgraph.c (lto_output_node): Likewise.
31300 (lto_output_varpool_node): Likewise.
31301 (input_node): Likewise.
31302 (input_varpool_node): Likewise.
31303 * lto-streamer-out.c (lto_output): Likewise.
31304 * tree-inline.c (expand_call_inline): Remove usage of
31305 assign_stmts.
31306 * tree-inline.h (struct copy_body_data): Likewise.
31307 * varpool.c (varpool_node::dump): Likewise.
31308
31309 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31310
31311 PR middle-end/89303
31312 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31313 into pt->vars_contains_escaped_heap instead of setting
31314 pt->vars_contains_escaped_heap to it.
31315
31316 PR middle-end/89281
31317 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31318 INTVAL (size), compare it to GET_MODE_MASK instead of
31319 1 << GET_MODE_BITSIZE.
31320
31321 PR target/89290
31322 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31323 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31324 -mcmodel=large.
31325
31326 2019-02-13 Martin Liska <mliska@suse.cz>
31327
31328 PR lto/88858
31329 * cfgrtl.c (remove_barriers_from_footer): New function.
31330 (try_redirect_by_replacing_jump): Use it.
31331 (cfg_layout_redirect_edge_and_branch): Likewise.
31332
31333 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31334
31335 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31336 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31337 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31338 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31339 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31340 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31341 New BU_CRYPTO_2.
31342 * config/rs6000/rs6000.c (builtin_function_type)
31343 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31344 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31345 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31346 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31347 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31348
31349 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
31350
31351 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31352 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31353
31354 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
31355
31356 PR target/89229
31357 * config/i386/i386.md (*movoi_internal_avx): Revert revision
31358 268678 and revision 268657.
31359 (*movti_internal): Likewise.
31360
31361 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
31362
31363 PR target/89233
31364 * config/s390/s390.c (s390_decompose_address): Update comment.
31365 (s390_check_qrst_address): Reject invalid address forms after
31366 LRA.
31367
31368 2019-02-12 Martin Liska <mliska@suse.cz>
31369
31370 PR lto/88876
31371 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31372 we need default values of funct_state for a function that
31373 is not optimized.
31374
31375 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
31376
31377 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31378 the object to pick the size of stores on strict-alignment platforms.
31379
31380 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
31381 (*movdi_insn_sp32): Likewise.
31382 (*movdi_insn_sp64): Likewise.
31383
31384 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
31385
31386 PR lto/88677
31387 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
31388 types that needs constructiong.
31389 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
31390
31391 2019-02-12 Richard Biener <rguenther@suse.de>
31392
31393 PR tree-optimization/89253
31394 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
31395 duplicate the loop.
31396
31397 2019-02-11 David Malcolm <dmalcolm@redhat.com>
31398
31399 PR lto/88147
31400 * input.c (selftest::test_line_offset_overflow): New selftest.
31401 (selftest::input_c_tests): Call it.
31402
31403 2019-02-11 Martin Sebor <msebor@redhat.com>
31404
31405 PR tree-optimization/88771
31406 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
31407 when -Wstringop-overflow is set.
31408 (builtin_memref::builtin_memref): Adjust excessive upper bound
31409 only when lower bound is not excessive.
31410 (maybe_diag_overlap): Detect and diagnose excessive bounds via
31411 -Wstringop-ovefflow.
31412 (maybe_diag_offset_bounds): Rename...
31413 (maybe_diag_access_bounds): ...to this.
31414 (check_bounds_or_overlap): Adjust for name change above.
31415
31416 2019-02-11 Martin Sebor <msebor@redhat.com>
31417
31418 PR c++/87996
31419 * builtins.c (max_object_size): Move from here...
31420 * builtins.h (max_object_size): ...and here...
31421 * tree.c (max_object_size): ...to here...
31422 * tree.h (max_object_size): ...and here.
31423
31424 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
31425
31426 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
31427 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
31428 for correct semantics.
31429
31430 2019-02-11 Alan Modra <amodra@gmail.com>
31431
31432 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
31433 -mlongcall and -mpltseq.
31434 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
31435 (RS/6000 and PowerPC Options <-mpltseq>): Document.
31436 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
31437 * config/rs6000/sysv4.opt (mpltseq): New option.
31438 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
31439 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
31440 support is lacking. Don't allow -mpltseq with -mbss-plt.
31441 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
31442 -mpltseq given for ELFv1.
31443 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
31444 Only use UNSPEC_PLTSEQ for inline PLT calls.
31445 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
31446 use UNSPEC_PLTSEQ for inline PLT calls.
31447 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
31448 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
31449 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
31450 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31451 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31452 (pltseq_mtctr_<mode>): Likewise.
31453
31454 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31455
31456 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
31457 Solaris ld.
31458 * configure: Regenerate.
31459
31460 2019-02-11 Jakub Jelinek <jakub@redhat.com>
31461
31462 PR bootstrap/88714
31463 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
31464 instead of r.
31465
31466 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31467
31468 * function.c (assign_parm_setup_block): Use the stored
31469 size, not the passed size, when allocating stack-space,
31470 also for a parameter with alignment larger than
31471 MAX_SUPPORTED_STACK_ALIGNMENT.
31472
31473 2019-02-11 Martin Liska <mliska@suse.cz>
31474
31475 PR ipa/89009
31476 * ipa-cp.c (build_toporder_info): Remove usage of a param.
31477 * ipa-inline.c (inline_small_functions): Likewise.
31478 * ipa-pure-const.c (propagate_pure_const): Likewise.
31479 (propagate_nothrow): Likewise.
31480 * ipa-reference.c (propagate): Likewise.
31481 * ipa-utils.c (struct searchc_env): Remove unused field.
31482 (searchc): Always search across AVAIL_INTERPOSABLE.
31483 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
31484 the only called IPA pure const can properly not propagate
31485 across interposable boundary.
31486 * ipa-utils.h (ipa_reduced_postorder): Remove param.
31487
31488 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
31489
31490 * config/nds32/nds32.md (call_internal, call_value_internal,
31491 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
31492
31493 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31494
31495 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
31496 typo.
31497
31498 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
31499
31500 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
31501 in comments
31502
31503 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31504
31505 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
31506
31507 2019-02-10 Jakub Jelinek <jakub@redhat.com>
31508
31509 PR tree-optimization/89268
31510 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
31511 if preds is non-NULL.
31512
31513 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31514
31515 PR lto/89272
31516 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
31517 polymorphic types.
31518
31519 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31520
31521 * config/nds32/nds32.md (trap): New pattern.
31522
31523 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31524
31525 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
31526 dwarf span.
31527
31528 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31529
31530 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
31531 to split POST_INC.
31532
31533 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31534
31535 * ipa-visibility.c (localize_node): Also do not localize
31536 LDPR_PREVAILING_DEF_IRONLY_EXP.
31537
31538 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31539
31540 PR lto/87957
31541 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
31542 instead of type_with_linkage.
31543
31544 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31545
31546 PR ipa/88755
31547 * params.def (uninlined-function-insns, uninlined-function-time,
31548 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
31549 bound so we don't get overflows.
31550
31551 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
31552
31553 * config/rs6000/rs6000-string.c (expand_compare_loop,
31554 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
31555 memcmp/strncmp.
31556
31557 2019-02-09 Jakub Jelinek <jakub@redhat.com>
31558
31559 PR middle-end/89246
31560 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31561 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
31562 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
31563
31564 2019-02-09 Alan Modra <amodra@gmail.com>
31565
31566 PR target/88343
31567 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
31568 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
31569 setup.
31570
31571 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
31572
31573 PR middle-end/88560
31574 * lra-constraints.c (process_alt_operands): Don't increase reject
31575 for memory when offset memory is required.
31576
31577 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
31578
31579 * config/s390/vector.md: Implement vector copysign.
31580
31581 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31582
31583 * expr.c (expand_constructor): Correct indentations.
31584
31585 2019-02-08 Richard Biener <rguenther@suse.de>
31586
31587 PR tree-optimization/89247
31588 * tree-if-conv.c: Include tree-cfgcleanup.h.
31589 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
31590 (tree_if_conversion): Pass through predicate vector.
31591 (pass_if_conversion::execute): Do CFG cleanup and SSA update
31592 inline, see if any if-converted loops we refrece in
31593 LOOP_VECTORIZED calls vanished and fixup.
31594 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
31595
31596 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
31597
31598 * config/s390/constraints.md (jdd): New constraint.
31599
31600 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31601
31602 PR target/89229
31603 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
31604 upper 16 vector registers without TARGET_AVX512VL.
31605 (*movti_internal): Likewise.
31606
31607 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31608
31609 PR rtl-optimization/89234
31610 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
31611 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
31612 (copy_reg_eh_region_note_backward): Likewise.
31613
31614 2019-02-08 Richard Biener <rguenther@suse.de>
31615
31616 PR middle-end/89223
31617 * tree-data-ref.c (initialize_matrix_A): Fail if constant
31618 doesn't fit in HWI.
31619 (analyze_subscript_affine_affine): Handle failure from
31620 initialize_matrix_A.
31621
31622 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31623
31624 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
31625 cfun everywhere.
31626
31627 2019-02-07 David Malcolm <dmalcolm@redhat.com>
31628
31629 PR tree-optimization/86637
31630 PR tree-optimization/89235
31631 * tree-vect-loop.c (optimize_mask_stores): Add an
31632 auto_purge_vect_location sentinel to ensure that vect_location is
31633 purged on exit.
31634 * tree-vectorizer.c
31635 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
31636 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
31637 to ensure that vect_location is purged on exit.
31638 (pass_slp_vectorize::execute): Likewise, replacing the manual
31639 reset.
31640 * tree-vectorizer.h (class auto_purge_vect_location): New class.
31641
31642 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31643
31644 * config/aarch64/iterators.md (max_opp): New code_attr.
31645 (USMAX): New code iterator.
31646 * config/aarch64/predicates.md (aarch64_smin): New predicate.
31647 (aarch64_smax): Likewise.
31648 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
31649 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
31650 MINUS (MAX MIN).
31651
31652 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
31653
31654 PR target/89229
31655 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
31656 for TARGET_AVX512VL.
31657 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
31658
31659 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
31660
31661 * config/s390/s390-builtin-types.def: Add new types.
31662 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
31663 (s390_vec_xlw4): Make the memory operand into a const pointer.
31664 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
31665 float.
31666 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
31667 a new vector type with the alignment of the scalar memory operand.
31668
31669 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
31670 Jakub Jelinek <jakub@redhat.com>
31671
31672 PR bootstrap/88714
31673 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
31674 arm_count_ldrdstrd_insns): New declarations.
31675 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
31676 MINUS.
31677 (valid_operands_ldrd_strd): New function.
31678 (arm_count_ldrdstrd_insns): New function.
31679 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
31680 sets instead of single DImode set and define new insns to match this.
31681
31682 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31683
31684 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
31685 Make it a C initializer.
31686
31687 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31688
31689 PR/target 88850
31690 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
31691
31692 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31693
31694 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
31695 Use neon_dot<q> for type.
31696 (neon_<sup>dot_lane<vsi2qi>): Likewise.
31697
31698 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31699
31700 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
31701 Use neon_dot<q> for type.
31702 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
31703 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
31704
31705 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
31706
31707 PR rtl-optimization/89225
31708 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
31709 sizes check.
31710
31711 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
31712
31713 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
31714 after restoring registers saved to allocate the frame on Windows.
31715
31716 2019-02-06 Richard Biener <rguenther@suse.de>
31717
31718 PR tree-optimization/89182
31719 * graphite.h (cached_scalar_evolution_in_region): Declare.
31720 * graphite.c (struct seir_cache_key): New.
31721 (struct sese_scev_hash): Likewise.
31722 (seir_cache): New global.
31723 (cached_scalar_evolution_in_region): New function.
31724 (graphite_transform_loops): Allocate and release seir_cache.
31725 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
31726 cached_scalar_evolution_in_region.
31727 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31728 Simplify.
31729 (scop_detection::graphite_can_represent_expr: Use
31730 cached_scalar_evolution_in_region.
31731 (scop_detection::stmt_simple_for_scop_p): Likewise.
31732 (find_params_in_bb): Likewise.
31733 (gather_bbs::before_dom_children): Likewise.
31734 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
31735 (add_loop_constraints): Likewise.
31736
31737 2019-02-06 Jakub Jelinek <jakub@redhat.com>
31738
31739 PR middle-end/89210
31740 * fold-const-call.c (fold_const_vec_convert): Pass true as last
31741 operand to new_unary_operation only if both element types are integral
31742 and it isn't a widening conversion. Return NULL_TREE if
31743 new_unary_operation failed.
31744
31745 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
31746
31747 PR target/88856
31748 * config/s390/s390.md: Remove load and test FP splitter.
31749
31750 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31751
31752 PR target/89112
31753 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
31754 expand_compare_loop, expand_block_compare_gpr,
31755 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
31756 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
31757 #include "profile-count.h" and "predict.h" for types and functions
31758 needed to work with REG_BR_PROB notes.
31759
31760 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31761
31762 PR target/89112
31763 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
31764 for the long branch case.
31765
31766 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31767
31768 PR target/89188
31769 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
31770 can throw, non-call exceptions are enabled and we can't delete
31771 dead exceptions or alter cfg. Set must_clean if
31772 delete_insn_and_edges returns true, don't set it blindly for calls.
31773 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
31774
31775 PR rtl-optimization/89195
31776 * combine.c (make_extraction): For MEMs, don't extract bytes outside
31777 of the original MEM.
31778
31779 2019-02-05 Martin Liska <mliska@suse.cz>
31780
31781 PR gcov-profile/89000
31782 * gcov.c (function_summary): Remove argument.
31783 (file_summary): New function.
31784 (print_usage): Replace tabs with spaces.
31785 (generate_results): Use new function file_summary.
31786
31787 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31788
31789 PR target/89186
31790 * optabs.c (prepare_cmp_insn): Pass x and y to
31791 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
31792
31793 2019-02-05 Richard Biener <rguenther@suse.de>
31794
31795 PR middle-end/89150
31796 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
31797 (struct bitmap_element): Drop chain_prev so we properly recurse on
31798 the prev member, supporting tree views.
31799 (struct bitmap_head): GTY skip the obstack member.
31800
31801 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
31802
31803 PR c/88698
31804 * doc/extend.texi (Vector Extensions): Add an example of using vector
31805 types together with x86 intrinsics.
31806
31807 2019-02-04 Alan Modra <amodra@gmail.com>
31808
31809 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
31810 str[] size to 160, and comment.
31811
31812 2019-02-04 Alan Modra <amodra@gmail.com>
31813
31814 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
31815 (rs6000_pltseq_template): Guard output of TLS markers with
31816 TARGET_TLS_MARKERS.
31817 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
31818 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
31819 to use inline PLT sequences.
31820 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31821 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31822 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
31823
31824 2019-02-04 Martin Liska <mliska@suse.cz>
31825
31826 PR ipa/88985
31827 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
31828 out when ipa_fn_summaries does not contain entry for callee.
31829
31830 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
31831
31832 * config/sparc/sparc.h: Remove superfluous blank lines.
31833 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
31834 (got_register_rtx): ...this.
31835 (sparc_got): Adjust to above renaming.
31836 (sparc_tls_got): Likewise.
31837 (sparc_delegitimize_address): Likewise.
31838 (sparc_output_mi_thunk): Likewise.
31839 (sparc_init_pic_reg): Likewise.
31840 (save_local_or_in_reg_p): Fix test on the GOT register.
31841 (USE_HIDDEN_LINKONCE): Move around.
31842 (get_pc_thunk_name): Likewise.
31843 (gen_load_pcrel_sym): Likewise.
31844 (load_got_register): Likewise.
31845
31846 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
31847
31848 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
31849 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
31850
31851 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31852
31853 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
31854 into consideration.
31855
31856 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31857
31858 * config.gcc (with_nds32_lib, glibc):
31859 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
31860 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
31861 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
31862
31863 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
31864
31865 PR target/89071
31866 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
31867 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
31868 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
31869 (*rcpsf2_sse): Ditto.
31870 (*rsqrtsf2_sse): Ditto.
31871 (sse4_1_round<mode<2): Ditto.
31872
31873 2019-02-03 Richard Biener <rguenther@suse.de>
31874
31875 PR debug/87295
31876 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
31877 orig.
31878
31879 2019-02-02 Jakub Jelinek <jakub@redhat.com>
31880
31881 PR middle-end/87887
31882 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31883 Punt with warning on aggregate return or argument types. Ignore
31884 type/mode checking for uniform arguments.
31885
31886 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
31887
31888 * combine.c (try_combine): Do not print "Can't combine" messages unless
31889 printing failed combination attempts.
31890
31891 2019-02-01 Martin Jambor <mjambor@suse.cz>
31892
31893 PR hsa/87863
31894 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
31895 segment and global segment variables before making them static.
31896
31897 2019-02-01 Martin Jambor <mjambor@suse.cz>
31898
31899 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
31900 missed optimization dump with dump_enabled_p.
31901
31902 2019-02-01 Richard Biener <rguenther@suse.de>
31903
31904 PR middle-end/88597
31905 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
31906 the instantiate cache.
31907 (instantiate_scev_binary): Elide second operand procesing
31908 if equal to the first.
31909 * tree-chrec.c (chrec_contains_symbols): Add visited set.
31910 (chrec_contains_undetermined): Likewise.
31911 (tree_contains_chrecs): Likewise.
31912
31913 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
31914
31915 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
31916
31917 2019-02-01 Jakub Jelinek <jakub@redhat.com>
31918
31919 PR tree-optimization/89143
31920 * wide-int-range.h (wide_int_range_absu): Declare.
31921 * wide-int-range.cc (wide_int_range_absu): New function.
31922 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
31923
31924 PR tree-optimization/88107
31925 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
31926 instead of assertion that eh_region_outermost is non-NULL, if it
31927 is NULL, set *ALL to true and return NULL.
31928 (move_sese_region_to_fn): Adjust caller, if all is set, call
31929 duplicate_eh_regions with NULL region.
31930
31931 2019-02-01 Richard Biener <rguenth@suse.de>
31932
31933 PR rtl-optimization/88593
31934 * mode-switching.c (optimize_mode_switching): Free dominators before
31935 calling cleanup_cfg.
31936
31937 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
31938
31939 PR tree-optimization/88932
31940 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
31941
31942 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31943
31944 PR middle-end/89137
31945 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
31946 bogus clang warning.
31947
31948 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
31949
31950 PR target/89071
31951 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
31952 alternative to avoid partial SSE register stall for TARGET_AVX.
31953 (truncdfsf2): Ditto.
31954 (sse4_1_round<mode>2): Ditto.
31955
31956 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
31957
31958 PR tree-optimization/89008
31959 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
31960 process anything of the form X * 0.
31961
31962 2019-01-31 Richard Biener <rguenther@suse.de>
31963
31964 PR tree-optimization/89135
31965 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
31966 with abnormal preds.
31967
31968 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31969
31970 PR sanitizer/89124
31971 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
31972 always_inline callees into no_sanitize_address callers.
31973
31974 2019-01-31 Richard Biener <rguenther@suse.de>
31975
31976 PR rtl-optimization/89115
31977 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
31978
31979 2019-01-30 Martin Sebor <msebor@redhat.com>
31980
31981 PR other/89106
31982 * doc/extend.texi (cast to a union): Correct and expand.
31983
31984 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
31985
31986 PR rtl-optimization/87246
31987 * lra-constraints.c (simplify_operand_subreg): Reload memory
31988 in subreg if the address became invalid.
31989
31990 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
31991
31992 PR target/87064
31993 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
31994 Disable for little-endian.
31995
31996 2019-01-30 Richard Biener <rguenther@suse.de>
31997
31998 PR rtl-optimization/89115
31999 * opts.c (default_options_optimization): Reduce
32000 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32001 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32002 to the default.
32003
32004 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32005
32006 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32007 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32008 type of vector element when vec_extract is implemented by direct
32009 move.
32010
32011 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32012
32013 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32014
32015 2019-01-30 Richard Biener <rguenther@suse.de>
32016
32017 PR tree-optimization/89111
32018 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32019 canonicalization to appropriately sized access types.
32020
32021 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32022
32023 PR c++/89105
32024 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32025 for arguments to functions that are TU-local and shouldn't be
32026 referenced by assembly.
32027
32028 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32029
32030 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32031 after '='.
32032
32033 2019-01-29 Martin Sebor <msebor@redhat.com>
32034
32035 PR c/88956
32036 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32037
32038 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32039
32040 PR c++/66676
32041 PR ipa/89104
32042 * omp-simd-clone.c (simd_clone_clauses_extract)
32043 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32044 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32045
32046 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32047
32048 * config.gcc: Force .init_array for ARC.
32049
32050 2019-01-29 Richard Biener <rguenther@suse.de>
32051
32052 PR debug/87295
32053 * dwarf2out.c (collect_skeleton_dies): New helper.
32054 (copy_decls_for_unworthy_types): Call it.
32055 (build_abbrev_table): Assert we do not try to replace
32056 DW_AT_signature refs with local refs.
32057
32058 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32059
32060 PR middle-end/89002
32061 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32062 for lastprivate/linear IV, push gimplify context around gimplify_assign
32063 and, if it needed any temporaries, pop it into a gimple bind around the
32064 sequence.
32065
32066 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32067
32068 * common.opt (-Wattribute-alias): Remove "no-" from name.
32069 Make -Wattribute-alias command line option and
32070 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32071
32072 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32073
32074 PR target/89073
32075 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32076 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32077 x86 ISA options.
32078 (bmi2): Add missing @opindex.
32079 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32080 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32081 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32082 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32083 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32084 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32085 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32086 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32087 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32088 xsavec, xsaveopt and xsaves options.
32089
32090 2019-01-28 Richard Biener <rguenther@suse.de>
32091
32092 PR debug/89076
32093 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32094 support removal.
32095
32096 2019-01-28 Richard Biener <rguenther@suse.de>
32097
32098 PR tree-optimization/88739
32099 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32100 BIT_FIELD_REFs only are applied to mode-precision operands
32101 when they are integral.
32102 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32103 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32104 BIT_FIELD_REFs of non-mode-precision integral operands.
32105
32106 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32107
32108 PR target/87214
32109 * config/i386/sse.md
32110 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32111 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32112 first constants in pairs are multiples of 2. Formatting fixes.
32113 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32114 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32115 first constants in each quadruple are multiples of 4. Formatting fixes.
32116
32117 2019-01-26 Martin Jambor <mjambor@suse.cz>
32118
32119 PR ipa/88933
32120 * tree-inline.c: Include tree-cfgcleanup.h.
32121 (delete_unreachable_blocks_update_callgraph): Move...
32122 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32123 ...here, make externally visible, make second argument bool, adjust
32124 all callers.
32125 * tree-cfgcleanup.c: Include cgraph.h.
32126 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32127 Declare.
32128 * ipa-prop.c: Include tree-cfgcleanup.h.
32129 (ipcp_transform_function): Call
32130 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32131
32132 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32133
32134 PR rtl-optimization/88846
32135 * ira.c (process_set_for_memref_referenced_p): New.
32136 (memref_referenced_p): Add new param. Use
32137 process_set_for_memref_referenced_p. Add new switch cases.
32138 (memref_used_between_p): Pass new arg to memref_referenced_p.
32139
32140 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32141
32142 PR target/88469
32143 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32144 argument ABI_BREAK. Set to true if the calculated alignment has
32145 changed in gcc-9. Check bit-fields for their base type alignment.
32146 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32147 (aarch64_function_arg_boundary): Likewise.
32148 (aarch64_gimplify_va_arg_expr): Likewise.
32149
32150 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32151
32152 PR middle-end/89037
32153 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32154 instead of accessing TREE_INT_CST_ELT directly.
32155
32156 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32157
32158 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32159 fenv_exceptions description.
32160
32161 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32162
32163 PR rtl-optimization/87763
32164 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32165 Allow SUBREG when matching CC_NZmode compare.
32166
32167 2019-01-25 Richard Biener <rguenther@suse.de>
32168
32169 PR tree-optimization/89049
32170 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32171 Look at the pattern stmt to determine if the stmt is vectorized.
32172
32173 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32174
32175 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32176 (pred_mov<mode>): Handle all-register forms using both a new
32177 alternative and a split.
32178
32179 2019-01-25 Richard Biener <rguenther@suse.de>
32180
32181 PR tree-optimization/86865
32182 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32183 Reject non-do-while loops.
32184
32185 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32186
32187 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32188 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32189 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32190 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32191 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32192 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32193 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32194 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32195 vlogical_operand, gpc_reg_operand, int_reg_operand,
32196 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32197 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32198 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32199 (save_world_operation, restore_world_operation, lmw_operation,
32200 stmw_operation): Use MEM_P and REG_P.
32201 (tie_operand): Use MEM_P.
32202 (vrsave_operation, crsave_operation): Use REG_P.
32203 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32204 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32205 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32206 (call_operand): Use HARD_REGISTER_P.
32207 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32208 Use CONST_INT_P.
32209 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32210 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32211 quad_aligned_load_p, replace_swapped_aligned_store,
32212 recombine_lvx_pattern, replace_swapped_aligned_load,
32213 recombine_stvx_pattern): Use MEM_P.
32214 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32215 Use MEM_P and SYMBOL_REF_P.
32216 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32217 (insn_is_swappable_p): Use REG_P and MEM_P.
32218 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32219 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32220 Use CONST_INT_P.
32221 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32222 Use CONST_DOUBLE_P.
32223 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32224 CONST_WIDE_INT_P.
32225 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32226 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32227 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32228 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32229 reg_or_subregno:
32230 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32231 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32232 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32233 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32234 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32235 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32236 rs6000_split_logical_di): Use CONST_INT_P.
32237 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32238 REG_P and SYMBOL_REF_P.
32239 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32240 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32241 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32242 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32243 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32244 (small_data_operand, print_operand_address): Use CONST_INT_P and
32245 SYMBOL_REF_P.
32246 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32247 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32248 Use HARD_REGISTER_NUM_P.
32249 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32250 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32251 SUBREG_P and SYMBOL_REF_P.
32252 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32253 and HARD_REGISTER_NUM_P.
32254 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32255 reg_or_subregno.
32256 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32257 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32258 MEM_P and REG_P.
32259 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32260 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32261 find_addr_reg): Use REG_P.
32262 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32263 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32264 (offsettable_ok_by_alignment, constant_pool_expr_p,
32265 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32266 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32267 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32268 rs6000_assemble_integer, create_TOC_reference,
32269 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32270 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32271 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32272 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32273 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32274 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32275 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32276 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32277 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32278 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32279 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32280 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32281 and cbranch<mode>4): Use CONST_INT_P.
32282 (multiple define_splits): Use REG_P and SUBREG_P.
32283 (define_expands call, call_value): Use MEM_P.
32284 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32285 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32286 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32287 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32288 and HARD_REGISTER_NUM_P.
32289 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32290
32291 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32292
32293 PR rtl-optimization/88948
32294 * rtl.h (prepare_copy_insn): New prototype.
32295 * gcse.c (prepare_copy_insn): New function, split out from
32296 process_insert_insn.
32297 (process_insert_insn): Use prepare_copy_insn.
32298 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32299 instead of gen_move_insn.
32300
32301 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32302
32303 PR debug/89006
32304 * config/i386/i386.c (ix86_pic_register_p): Return true for
32305 UNSPEC_SET_GOT too.
32306
32307 PR tree-optimization/88964
32308 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32309 punt if HONOR_SNANS (chrec).
32310
32311 PR middle-end/89015
32312 * tree-nested.c (convert_nonlocal_reference_stmt,
32313 convert_local_reference_stmt, convert_tramp_reference_stmt,
32314 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32315 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32316 or GIMPLE_OMP_TASK.
32317
32318 PR tree-optimization/89027
32319 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32320 for "omp simd array" variables.
32321
32322 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32323
32324 PR target/88469
32325 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32326 force the alignment of m_val.
32327
32328 2019-01-24 Richard Biener <rguenther@suse.de>
32329
32330 PR lto/87187
32331 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32332 When in "legacy" debug mode make sure to reset self-origins.
32333
32334 2019-01-24 Martin Liska <mliska@suse.cz>
32335
32336 PR gcov-profile/88994
32337 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32338 result will be always smaller or equal to the original.
32339 * gcov.c (mangle_name): Fix else branch where we should
32340 also copy to PTR and shift the pointer.
32341
32342 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32343
32344 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32345 * vr-values.c (find_case_label_ranges): Fix a comment typo.
32346
32347 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
32348
32349 * common/config/i386/i386-common.c
32350 (OPTION_MASK_ISA_ENQCMD_SET,
32351 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32352 (ix86_handle_option): Handle -menqcmd.
32353 * config.gcc (enqcmdintrin.h): New header file.
32354 * config/i386/cpuid.h (bit_ENQCMD): New bit.
32355 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32356 -menqcmd.
32357 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32358 function type.
32359 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32360 __builtin_ia32_enqcmds): New builtins.
32361 * config/i386/i386-c.c (__ENQCMD__): New macro.
32362 * config/i386/i386-option.c (ix86_target_string): Add
32363 -menqcmd.
32364 (ix86_valid_target_attribute_inner_p): Likewise.
32365 * config/i386/i386-expand.c
32366 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32367 IX86_BUILTIN_ENQCMDS.
32368 * config/i386/i386.h (TARGET_ENQCMD): New.
32369 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32370 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32371 (movdir64b_<mode>): Parameterize to enable share expansion code
32372 with ENQCMD in function ix86_expand_builtin.
32373 * config/i386/i386.opt: Add -menqcmd.
32374 * config/i386/immintrin.h: Include enqcmdintrin.h.
32375 * config/i386/enqcmdintrin.h: New intrinsic file.
32376 * doc/invoke.texi: Add -menqcmd.
32377
32378 2019-01-23 Bin Cheng <bin.cheng@arm.com>
32379 Steve Ellcey <sellcey@marvell.com>
32380
32381 PR target/85711
32382 * recog.c (address_operand): Return false on wrong mode for address.
32383 (constrain_operands): Check for mode with 'p' constraint.
32384
32385 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
32386
32387 PR target/88998
32388 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
32389 Disparage MMX alternative.
32390 (sse2_cvtpd2pi): Ditto.
32391 (sse2_cvttpd2pi): Ditto.
32392
32393 2019-01-23 David Malcolm <dmalcolm@redhat.com>
32394
32395 PR driver/89014
32396 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
32397 use-after-free of the result of
32398 aarch64_get_extension_string_for_isa_flags.
32399
32400 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32401
32402 PR c/44715
32403 * doc/extend.texi: Document break and continue behavior in
32404 statement expressions.
32405
32406 2019-01-23 Richard Biener <rguenther@suse.de>
32407
32408 PR tree-optimization/89008
32409 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
32410 not leave another stray operand.
32411
32412 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32413
32414 * BASE-VER: Bump to 9.0.1.
32415
32416 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
32417
32418 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
32419 thunk that returns by reference, use the type of the return object
32420 of the thunk instead of that of the alias to build the dereference.
32421
32422 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
32423
32424 * config/arc/atomic.md: Add operand to DMB instruction.
32425
32426 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32427
32428 PR tree-optimization/88964
32429 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
32430 build_zero_cst instead of build_int_cst. Return false for loop
32431 invariants which honor signed zeros.
32432
32433 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
32434
32435 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
32436
32437 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32438
32439 PR target/88965
32440 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
32441 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
32442 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
32443
32444 PR middle-end/88968
32445 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
32446 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
32447
32448 PR target/87064
32449 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
32450 Disable for little endian.
32451
32452 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32453
32454 PR target/88469
32455 * config/arm/arm.c (arm_needs_double_word_align): Check
32456 DECL_BIT_FIELD_TYPE.
32457
32458 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
32459 H.J. Lu <hongjiu.lu@intel.com>
32460
32461 PR target/88909
32462 * config/i386/i386-builtin.def: Add mask2 to all builtin
32463 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
32464 SPECIAL_ARGS.
32465 * config/i386/i386.c (BDESC): Add mask2 to the definition.
32466 (BDESC_FIRST): Likewise.
32467 (define_builtin): Add an argument for mask2. Updated to handle
32468 both ix86_isa_flags and ix86_isa_flags2.
32469 (define_builtin_const): Likewise.
32470 (define_builtin_pure): Likewise.
32471 (define_builtin2): Deleted.
32472 (define_builtin_const2): Likewise.
32473 (builtin_description): Add a member, mask2.
32474 (bdesc_*): Add mask2 to builtin initializations.
32475 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
32476 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
32477 support.
32478 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
32479
32480 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
32481
32482 PR target/88954
32483 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
32484 noplt attribute.
32485
32486 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32487
32488 PR target/88469
32489 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
32490 alignment is dominated by a bitfield with 64-bit aligned base type.
32491 (arm_function_arg): Emit a warning if the alignment has changed since
32492 earlier GCC releases.
32493 (arm_function_arg_boundary): Likewise.
32494 (arm_setup_incoming_varargs): Likewise.
32495
32496 2019-01-22 Richard Biener <rguenther@suse.de>
32497
32498 PR tree-optimization/88862
32499 * graphite-scop-detection.c
32500 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
32501
32502 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
32503
32504 * doc/extend.tex (AMD GCN Function Attributes): New section.
32505 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
32506 * doc/invoke.texi (AMD GCN Options): New section.
32507 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
32508
32509 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
32510
32511 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
32512 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
32513
32514 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32515
32516 PR tree-optimization/88044
32517 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
32518 is false in the first iteration, but !every_iteration, return false
32519 instead of true with niter->niter zero.
32520
32521 PR rtl-optimization/88904
32522 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
32523 any nonequal registers before processing BB_END (b).
32524
32525 PR target/88905
32526 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
32527 GET_MODE (op0).
32528 (expand_binop_directly, expand_doubleword_clz,
32529 expand_doubleword_popcount, expand_ctz, expand_ffs,
32530 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
32531
32532 PR rtl-optimization/49429
32533 PR target/49454
32534 PR rtl-optimization/86334
32535 PR target/88906
32536 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
32537 addressable from here...
32538 (emit_block_op_via_libcall): ... to here.
32539
32540 2019-01-22 Richard Biener <rguenther@suse.de>
32541
32542 * tree-vect-loop.c (vect_analyze_loop_operations): Use
32543 auto_vec for cost vector to fix memleak.
32544 (vectorize_fold_left_reduction): Properly gather SLP defs.
32545 (vectorizable_comparison): Do not swap operands to properly
32546 gather SLP defs.
32547
32548 2019-01-22 Alan Modra <amodra@gmail.com>
32549
32550 PR target/88614
32551 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
32552 stays a reg. Allow a const_int.
32553 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
32554 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
32555 (IS_NOMARK_TLSGETADDR): Define.
32556 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
32557 (rs6000_output_tlsargs): New function.
32558 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
32559 __tls_get_addr call takes an arg.
32560 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
32561 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
32562 delete split..
32563 (call_value_nonlocal_sysv): ..or here, delete split.
32564 (tls_gdld_nomark): Delete.
32565 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
32566 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
32567 (call_value_nonlocal_sysv): Likewise.
32568 (call_value_nonlocal_sysv_secure): Likewise.
32569 (call_value_nonlocal_aix): Likewise.
32570 (call_value_indirect_aix): Likewise.
32571 (call_value_indirect_elfv2): Likewise.
32572 (call_value_local32, call_value_local64): Disable for no-mark tls.
32573 (call_value_local_aix): Likewise.
32574
32575 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
32576
32577 PR target/88938
32578 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
32579 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
32580
32581 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
32582
32583 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
32584 string contents as hash_map keys.
32585
32586 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32587
32588 PR c/88928
32589 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
32590 for rvalue context. Handle rvalues correctly. Use min_align_of_type
32591 instead of TYPE_ALIGN.
32592 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
32593 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
32594 pointer from TYPE_STUB_DECL.
32595
32596 2019-01-21 Richard Biener <rguenther@suse.de>
32597
32598 PR tree-optimization/88934
32599 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
32600 at the possibly non-constant operand.
32601 (vect_get_constant_vectors): Adjust.
32602
32603 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
32604
32605 PR target/71659
32606 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
32607 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
32608 instead of _X86INTRIN_H_INCLUDED.
32609 * onfig/i386/clwbintrin.h: Likewise.
32610 * config/i386/pkuintrin.h: Likewise.
32611 * config/i386/prfchwintrin.h: Likewise.
32612 * config/i386/rdseedintrin.h: Likewise.
32613 * config/i386/wbnoinvdintrin.h: Likewise.
32614 * config/i386/xsavecintrin.h: Likewise.
32615 * config/i386/xsavesintrin.h: Likewise.
32616 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
32617 * config/i386/xsaveintrin.h: Likewise.
32618 * config/i386/xsaveoptintrin.h: Likewise.
32619 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
32620 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
32621 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
32622 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
32623 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
32624 * config/i386/immintrin.h: Here.
32625
32626 2019-01-20 Martin Jambor <mjambor@suse.cz>
32627
32628 PR ipa/87615
32629 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
32630 with aa_walk_budget.
32631 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
32632 aa_walk_budget_p parameter.
32633 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
32634 walk. Updated all callers.
32635 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
32636 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
32637 unmodified_parm.
32638 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
32639 parameter info. Extract info from fbi. Pass fbi to recursive calls
32640 and to unmodified_parm.
32641 (phi_result_unknown_predicate): New parameter fbi, removed parameter
32642 info, updated call to will_be_nonconstant_expr_predicate.
32643 (param_change_prob): New parameter fbi, limit AA walking.
32644 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
32645 calls to various above functions.
32646 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
32647 parameter. Use it to limit AA walking.
32648 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
32649 fbi, limit AA walk.
32650 (detect_type_change): New parameter fbi, pass it on to
32651 detect_type_change_from_memory_writes.
32652 (detect_type_change_ssa): Likewise.
32653 (aa_overwalked): Removed.
32654 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
32655 accordingly, adjust to the neew AA limiting scheme.
32656 (parm_ref_data_preserved_p): Likewise.
32657 (ipa_compute_jump_functions_for_edge): Adjust call to
32658 get_dynamic_type.
32659 (ipa_analyze_call_uses): Likewise.
32660 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
32661 (ipa_analyze_node): Initialize aa_walk_budget.
32662 (ipcp_transform_function): Likewise.
32663 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
32664 to get_dynamic_type.
32665
32666 2019-01-19 Jakub Jelinek <jakub@redhat.com>
32667
32668 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
32669 outside of #if CHECKING_P code.
32670
32671 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
32672
32673 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
32674 New function, split out from...
32675 (loop_versioning::analyze_stride): ...here.
32676 (loop_versioning::find_per_loop_multiplication): Use gassign.
32677 (loop_versioning::analyze_term_using_scevs): Return a success code.
32678 (loop_versioning::analyze_arbitrary_term): New function.
32679 (loop_versioning::analyze_address_fragment): Use
32680 analyze_arbitrary_term if all else fails.
32681
32682 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
32683
32684 PR target/88892
32685 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
32686 operands.
32687
32688 2019-01-18 Richard Biener <rguenther@suse.de>
32689
32690 PR tree-optimization/88903
32691 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
32692 scalar stmts a SLP shift amount is composed of when detecting
32693 shifts by scalars.
32694
32695 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
32696
32697 PR target/88799
32698 * config/arm/arm-cpus.in (mp): New feature.
32699 (sec): New feature.
32700 (fgroup ARMv7ve): Add mp and sec features.
32701 (arch armv7-a): Add options to allow mp and sec extensions.
32702 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
32703 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
32704 extenstions to the base architecture.
32705 (cpu cortex-a8): Add sec extension to the base architecture.
32706 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
32707 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
32708 variants down to the base v7-a varaint.
32709 * config/arm/t-multilib (v7_a_arch_variants): New variable.
32710 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
32711 of permitted extensions for -march=armv7-a and for
32712 -mcpu=generic-armv7-a.
32713
32714 2019-01-18 Martin Liska <mliska@suse.cz>
32715
32716 * params.def: Fix comment.
32717 * tree-profile.c (gimple_init_gcov_profiler): Bump function
32718 name.
32719 (gimple_gen_ic_func_profiler): Likewise.
32720
32721 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32722
32723 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
32724 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
32725 and put in error checks for stack protector guard options.
32726 (aarch64_stack_protect_guard): New.
32727 (TARGET_STACK_PROTECT_GUARD): Define.
32728 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
32729 (reg_stack_protect_address<mode>): New.
32730 (stack_protect_set): Adjust for SSP_GLOBAL.
32731 (stack_protect_test): Likewise.
32732 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
32733 (-mstack-protector-guard): Likewise.
32734 (-mstack-protector-guard-offset): Likewise.
32735
32736 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32737
32738 PR tree-optimization/86214
32739 * tree-inline.h (struct copy_body_data): Add
32740 add_clobbers_to_eh_landing_pads member.
32741 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
32742 (copy_edges_for_bb): Call it if EH edge destination is <
32743 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
32744 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
32745 if flag_stack_reuse != SR_NONE and clear it afterwards.
32746
32747 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
32748
32749 PR target/85596
32750 * doc/install.texi (with-multilib-list): Document for aarch64.
32751
32752 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32753
32754 PR target/88734
32755 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
32756 (("..."))) with ("...").
32757
32758 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
32759
32760 * doc/extend.texi (Built-in Functions for Memory Model Aware
32761 Atomic Operations): Document atomic fetch and nand.
32762
32763 2019-01-18 Martin Liska <mliska@suse.cz>
32764 Richard Biener <rguenther@suse.de>
32765
32766 PR middle-end/88587
32767 * cgraph.h (create_version_clone_with_body): Add new argument
32768 with attributes.
32769 * cgraphclones.c (cgraph_node::create_version_clone): Add
32770 DECL_ATTRIBUTES to a newly created decl. And call
32771 valid_attribute_p so that proper cl_target_optimization_node
32772 is set for the newly created declaration.
32773 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
32774 for declaration.
32775 (expand_target_clones): Do not call valid_attribute_p, it must
32776 be already done.
32777 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
32778 vector types.
32779
32780 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32781
32782 PR target/88734
32783 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
32784 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
32785 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
32786
32787 2019-01-17 Martin Sebor <msebor@redhat.com>
32788
32789 PR middle-end/88273
32790 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
32791 Handle anti-ranges the same as no range at all.
32792
32793 2018-01-17 Steve Ellcey <sellcey@cavium.com>
32794
32795 * config/aarch64/aarch64.c (cgraph.h): New include.
32796 (intl.h): New include.
32797 (supported_simd_type): New function.
32798 (currently_supported_simd_type): Ditto.
32799 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
32800 (aarch64_simd_clone_adjust): Ditto.
32801 (aarch64_simd_clone_usable): Ditto.
32802 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
32803 (TARGET_SIMD_CLONE_ADJUST): Ditto.
32804 (TARGET_SIMD_CLONE_USABLE): Ditto.
32805 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
32806 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
32807 call.
32808
32809 2019-01-17 Martin Sebor <msebor@redhat.com>
32810
32811 PR tree-optimization/88800
32812 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
32813 NO_WARNING bit here. Avoid folding out-of-bounds calls.
32814 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
32815 redundant argument. Add new argument and issue diagnostics under
32816 its control. Detect out-of-bounds access even with warnings
32817 disabled.
32818 (check_bounds_or_overlap): Change return type. Add argument.
32819 (wrestrict_dom_walker::check_call): Adjust.
32820 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
32821 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
32822 check_bounds_or_overlap's return value.
32823 (handle_builtin_stxncpy): Same.
32824 (handle_builtin_strcat): Same.
32825
32826 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32827 Kwok Cheung Yeung <kcy@codesourcery.com>
32828 Julian Brown <julian@codesourcery.com>
32829 Tom de Vries <tom@codesourcery.com>
32830
32831 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
32832
32833 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32834
32835 * doc/sourcebuild.texi: Document dg-require-effective-target
32836 llvm_binutils and offload_gcn.
32837
32838 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32839 Kwok Cheung Yeung <kcy@codesourcery.com>
32840 Julian Brown <julian@codesourcery.com>
32841 Tom de Vries <tom@codesourcery.com>
32842
32843 * doc/sourcebuild.texi: Document dg-required-effective-target
32844 exceptions.
32845
32846 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32847 Kwok Cheung Yeung <kcy@codesourcery.com>
32848 Julian Brown <julian@codesourcery.com>
32849 Tom de Vries <tom@codesourcery.com>
32850 Jan Hubicka <hubicka@ucw.cz>
32851 Martin Jambor <mjambor@suse.cz>
32852
32853 * config.gcc: Add amdgcn*-*-amdhsa configuration.
32854 * configure.ac: Check for dlopen.
32855 * configure: Regenerate.
32856
32857 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32858 Kwok Cheung Yeung <kcy@codesourcery.com>
32859 Julian Brown <julian@codesourcery.com>
32860 Tom de Vries <tom@codesourcery.com>
32861 Jan Hubicka <hubicka@ucw.cz>
32862 Martin Jambor <mjambor@suse.cz>
32863
32864 * common/config/gcn/gcn-common.c: New file.
32865 * config/gcn/driver-gcn.c: New file.
32866 * config/gcn/gcn-builtins.def: New file.
32867 * config/gcn/gcn-hsa.h: New file.
32868 * config/gcn/gcn-modes.def: New file.
32869 * config/gcn/gcn-opts.h: New file.
32870 * config/gcn/gcn-passes.def: New file.
32871 * config/gcn/gcn-protos.h: New file.
32872 * config/gcn/gcn-run.c: New file.
32873 * config/gcn/gcn-tree.c: New file.
32874 * config/gcn/gcn.c: New file.
32875 * config/gcn/gcn.h: New file.
32876 * config/gcn/gcn.opt: New file.
32877 * config/gcn/t-gcn-hsa: New file.
32878
32879 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32880 Kwok Cheung Yeung <kcy@codesourcery.com>
32881 Julian Brown <julian@codesourcery.com>
32882 Tom de Vries <tom@codesourcery.com>
32883 Jan Hubicka <hubicka@ucw.cz>
32884 Martin Jambor <mjambor@suse.cz>
32885
32886 * config/gcn/constraints.md: New file.
32887 * config/gcn/gcn-valu.md: New file.
32888 * config/gcn/gcn.md: New file.
32889 * config/gcn/predicates.md: New file.
32890
32891 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
32892
32893 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
32894 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
32895 (stmt_uses_0_or_null_in_undefined_way): Likewise.
32896 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
32897
32898 2019-01-17 Tamar Christina <tamar.christina@arm.com>
32899
32900 PR target/88851
32901 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
32902 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
32903 it and document registers.
32904
32905 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32906
32907 * config/aarch64/aarch64.c (ares_tunings): Define.
32908 * config/aarch64/aarch64-cores.def (ares): Use the above.
32909
32910 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32911
32912 PR target/88794
32913 Revert:
32914 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
32915
32916 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
32917 (_mm512_fixupimm_round_pd): Update parameters and builtin.
32918 (_mm512_maskz_fixupimm_round_pd): Ditto.
32919 (_mm512_fixupimm_round_ps): Ditto.
32920 (_mm512_maskz_fixupimm_round_ps): Ditto.
32921 (_mm_fixupimm_round_sd): Ditto.
32922 (_mm_maskz_fixupimm_round_sd): Ditto.
32923 (_mm_fixupimm_round_ss): Ditto.
32924 (_mm_maskz_fixupimm_round_ss): Ditto.
32925 (_mm512_fixupimm_pd): Ditto.
32926 (_mm512_maskz_fixupimm_pd): Ditto.
32927 (_mm512_fixupimm_ps): Ditto.
32928 (_mm512_maskz_fixupimm_ps): Ditto.
32929 (_mm_fixupimm_sd): Ditto.
32930 (_mm_maskz_fixupimm_sd): Ditto.
32931 (_mm_fixupimm_ss): Ditto.
32932 (_mm_maskz_fixupimm_ss): Ditto.
32933 (_mm512_mask_fixupimm_round_pd): Update builtin.
32934 (_mm512_mask_fixupimm_round_ps): Ditto.
32935 (_mm_mask_fixupimm_round_sd): Ditto.
32936 (_mm_mask_fixupimm_round_ss): Ditto.
32937 (_mm512_mask_fixupimm_pd): Ditto.
32938 (_mm512_mask_fixupimm_ps): Ditto.
32939 (_mm_mask_fixupimm_sd): Ditto.
32940 (_mm_mask_fixupimm_ss): Ditto.
32941 * config/i386/avx512vlintrin.h:
32942 (_mm256_fixupimm_pd): Update parameters and builtin.
32943 (_mm256_maskz_fixupimm_pd): Ditto.
32944 (_mm256_fixupimm_ps): Ditto.
32945 (_mm256_maskz_fixupimm_ps): Ditto.
32946 (_mm_fixupimm_pd): Ditto.
32947 (_mm_maskz_fixupimm_pd): Ditto.
32948 (_mm_fixupimm_ps): Ditto.
32949 (_mm_maskz_fixupimm_ps): Ditto.
32950 (_mm256_mask_fixupimm_pd): Update builtin.
32951 (_mm256_mask_fixupimm_ps): Ditto.
32952 (_mm_mask_fixupimm_pd): Ditto.
32953 (_mm_mask_fixupimm_ps): Ditto.
32954 * config/i386/i386-builtin-types.def: Add new types and remove
32955 useless ones.
32956 * config/i386/i386-builtin.def: Update builtin definitions.
32957 * config/i386/i386.c: Handle new builtin types and remove useless ones.
32958 * config/i386/sse.md: Update VFIXUPIMM* patterns.
32959 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32960 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32961 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
32962 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32963 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32964 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
32965 * config/i386/subst.md:
32966 (round_saeonly_sd_mask_operand4): Add new subst_attr.
32967 (round_saeonly_sd_mask_op4): Ditto.
32968 (round_saeonly_expand_operand5): Ditto.
32969 (round_saeonly_expand): Update.
32970
32971 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32972
32973 PR target/88794
32974 Revert:
32975 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
32976
32977 * config/i386/sse.md: Combine VFIXUPIMM* patterns
32978 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32979 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32980 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
32981 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32982 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32983 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
32984
32985 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32986
32987 PR target/88794
32988 Revert:
32989 2018-12-15 Jakub Jelinek <jakub@redhat.com>
32990
32991 PR target/88489
32992 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
32993 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
32994 instead of UNSPEC_FIXUPIMM.
32995
32996 2019-01-17 Richard Biener <rguenther@suse.de>
32997
32998 PR lto/86736
32999 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33000 and friends for the LTO part of debug info.
33001
33002 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33003
33004 PR tree-optimization/86214
33005 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33006 if x == y.
33007
33008 PR rtl-optimization/88870
33009 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33010 throw if we can't alter the cfg or delete dead exceptions.
33011 (mark_insn): Don't call find_call_stack_args for such calls.
33012
33013 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33014
33015 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33016 prototypes for vec_st.
33017 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33018 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33019 mainly on signed/unsigned long long and double.
33020
33021 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33022
33023 PR target/88861
33024 * combine.c (delete_noop_moves): Convert to "bool" return,
33025 returning true if any edges are eliminated.
33026 (combine_instructions): Also return true if delete_noop_moves
33027 returns true.
33028
33029 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33030
33031 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33032 correct max nunits for endian swap.
33033 (aarch64_expand_fcmla_builtin): Correct subreg code.
33034 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33035 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33036 lane endianness.
33037
33038 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33039
33040 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33041 Handle split indirect COMPLEX_TYPE arguments.
33042
33043 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33044
33045 PR target/86891
33046 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33047 bit is set by add and compare.
33048 (CC_ADC): New CC_MODE.
33049 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33050 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33051 comparison. Add detection for CC_ADCmode.
33052 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33053 CC_ADCmode.
33054 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33055 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33056 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33057 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33058 to eliminate the need for zero-extending the operands.
33059 (add<mode>3_compareC_imm): Delete. Merge into ...
33060 (add<mode>3_compareC): ... this. Restructure the comparison to
33061 eliminate the need for zero-extending the operands.
33062 (add<mode>3_carryin): Use LTU for the overflow detection.
33063 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33064 Reexpress comparison for overflow.
33065 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33066 (add<mode>3_carryinC): Likewise.
33067 (add<mode>3_carryinV): Use LTU for carry between partials.
33068 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33069 handling of CC_Cmode and add CC_ADCmode.
33070 (aarch64_borrow_operation): Likewise.
33071
33072 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33073
33074 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33075 Remove patternmode.
33076 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33077 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33078 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33079 Remove endianness conversion.
33080
33081 2019-01-16 Martin Liska <mliska@suse.cz>
33082
33083 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33084 for GCC driver.
33085 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33086 a new argument.
33087 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33088 (path_prefix_reset): Move up in the source file.
33089 (find_fortran_preinclude_file): Make complex search for the
33090 fortran header files.
33091
33092 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33093
33094 * godump.c (go_output_typedef): When outputting a typedef, refer
33095 to the underlying type by its name and not its structure.
33096
33097 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33098
33099 PR c++/88795
33100 * tree.c (build_function_type): Assert that arg_types is not
33101 error_mark_node.
33102
33103 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33104
33105 PR inline-asm/52813
33106 * doc/extend.texi: Document that listing the stack pointer in the
33107 clobber list of an asm is a deprecated feature.
33108 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33109 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33110 warning instead of an error for clobbers of the stack pointer.
33111 Add a note explaining why.
33112
33113 2019-01-15 Richard Biener <rguenther@suse.de>
33114
33115 PR debug/88046
33116 * dwarf2out.c (gen_member_die): Do not generate inheritance
33117 DIEs late.
33118
33119 2019-01-15 Richard Biener <rguenther@suse.de>
33120
33121 PR tree-optimization/88855
33122 * tree-if-conv.c (combine_blocks): Collect
33123 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33124
33125 2019-01-15 Tom de Vries <tdevries@suse.de>
33126
33127 PR target/80547
33128 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33129 lhs == NULL_TREE for gang-level reduction.
33130
33131 2019-01-15 Richard Biener <rguenther@suse.de>
33132 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33133
33134 PR ipa/88788
33135 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33136 return true if SSA_NAME is already marked in visited bitmap.
33137 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33138
33139 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33140
33141 PR tree-optimization/88775
33142 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33143 equal == 0 equality pointer comparisons some more if compared in
33144 integral types and either one points to an automatic var and the
33145 other to a global, or we can prove at least one points to the middle
33146 or both point to start or both point to end.
33147
33148 2019-01-14 Andi Kleen <ak@linux.intel.com>
33149
33150 * Makefile.in: Lower autofdo sampling rate by 10x.
33151 * Makefile.tpl: Dito.
33152
33153 2019-01-14 Tom Honermann <tom@honermann.net>
33154
33155 * defaults.h: Define CHAR8_TYPE.
33156
33157 2019-01-14 Martin Sebor <msebor@redhat.com>
33158
33159 PR target/88638
33160 * doc/extend.texi (Darwin Format Checks): Clarify.
33161
33162 2019-01-14 Richard Biener <rguenther@suse.de>
33163
33164 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33165 whether we are in (simplify ...) or (match ...) context.
33166
33167 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33168
33169 PR rtl-optimization/88796
33170 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33171 * cfgexpand.c (stack_protect_prologue): Initialize
33172 crtl->stack_protect_guard_decl.
33173 * function.c (stack_protect_epilogue): Use it instead of calling
33174 targetm.stack_protect_guard again.
33175 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33176 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33177 crtl->stack_protect_guard_decl.
33178 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33179 on the returned MEM_EXPR.
33180
33181 2019-01-12 Tom de Vries <tdevries@suse.de>
33182
33183 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33184 vector length using -fopenacc-dim.
33185
33186 2019-01-12 Tom de Vries <tdevries@suse.de>
33187
33188 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33189 lengths into account.
33190
33191 2019-01-12 Svante Signell <svante.signell@gmail.com>
33192
33193 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33194 (TARGET_CAN_SPLIT_STACK): Define.
33195 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33196
33197 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33198
33199 * params.def (inline-unit-growth): Set to 40.
33200
33201 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33202
33203 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33204
33205 2019-01-12 Tom de Vries <tdevries@suse.de>
33206
33207 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33208 region calling vector-partitionable routine, set default_vector_length
33209 to WARP_SIZE.
33210
33211 2019-01-12 Tom de Vries <tdevries@suse.de>
33212
33213 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33214 variable default_vector_length.
33215
33216 2019-01-12 Tom de Vries <tdevries@suse.de>
33217
33218 PR middle-end/88703
33219 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33220 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33221 dimensions limits.
33222
33223 2019-01-12 Tom de Vries <tdevries@suse.de>
33224
33225 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33226 (nvptx_goacc_validate_dims): Add used parameter.
33227 * doc/tm.texi: Regenerate.
33228 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33229 argument to call to targetm.goacc.validate_dims.
33230 (default_goacc_validate_dims): Add used
33231 parameter.
33232 * target.def (validate_dims): Add used parameter in DEFHOOK.
33233 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33234
33235 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33236
33237 PR middle-end/85956
33238 PR lto/88733
33239 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33240 field.
33241 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33242 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33243 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33244 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33245
33246 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33247
33248 PR rtl-optimization/87305
33249 * lra-assigns.c
33250 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33251 for little endian pseudos used as paradoxical subreg.
33252
33253 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33254
33255 PR tree-optimization/88693
33256 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33257 for STRING_CSTs that don't contain any NUL characters in the first
33258 TREE_STRING_LENGTH bytes.
33259
33260 2019-01-11 Alan Modra <amodra@gmail.com>
33261
33262 PR 88777
33263 PR 88614
33264 * genattrtab.c (min_fn): Don't translate values.
33265 (min_attr_value): Return INT_MAX when the value can't be calculated.
33266 Return minimum among any values that can be calculated.
33267 (max_attr_value): Adjust.
33268
33269 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33270
33271 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33272
33273 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33274
33275 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33276 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33277 (aarch64_return_call_with_max_clobbers): New function.
33278 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33279 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33280 argument.
33281 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33282 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33283 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33284 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33285 * cselib.c (cselib_process_insn): Add argument to
33286 targetm.hard_regno_call_part_clobbered call.
33287 * ira-conflicts.c (ira_build_conflicts): Ditto.
33288 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33289 * lra-constraints.c (inherit_reload_reg): Ditto.
33290 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33291 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33292 argument. Call targetm.return_call_with_max_clobbers.
33293 Add argument to targetm.hard_regno_call_part_clobbered call.
33294 (calls_have_same_clobbers_p): New function.
33295 (process_bb_lives): Add call_insn and last_call_insn variables.
33296 Pass call_insn to check_pseudos_live_through_calls.
33297 Modify if stmt to check targetm.return_call_with_max_clobbers.
33298 Update setting of flush variable.
33299 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33300 to false.
33301 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33302 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33303 targetm.hard_regno_call_part_clobbered call.
33304 * reginfo.c (choose_hard_reg_mode): Ditto.
33305 * regrename.c (check_new_reg_p): Ditto.
33306 * reload.c (find_equiv_reg): Ditto.
33307 * reload1.c (emit_reload_insns): Ditto.
33308 * sched-deps.c (deps_analyze_insn): Ditto.
33309 * sel-sched.c (init_regs_for_mode): Ditto.
33310 (mark_unavailable_hard_regs): Ditto.
33311 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33312 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33313 (return_call_with_max_clobbers): New target function.
33314 * doc/tm.texi: Regenerate.
33315 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33316 * hooks.c (hook_bool_uint_mode_false): Change to
33317 hook_bool_insn_uint_mode_false.
33318 * hooks.h (hook_bool_uint_mode_false): Ditto.
33319
33320 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33321
33322 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33323 (aarch64_remove_extra_call_preserved_regs): New function.
33324 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33325 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33326 * doc/tm.texi: Regenerate.
33327 * final.c (get_call_reg_set_usage): Call new hook.
33328 * target.def (remove_extra_call_preserved_regs): New hook.
33329 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33330 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33331
33332 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33333
33334 PR bootstrap/88714
33335 * passes.c (finish_optimization_passes): Call print_combine_total_stats
33336 inside of pass_combine_1 dump rather than pass_profile_1.
33337
33338 2019-01-11 Tom de Vries <tdevries@suse.de>
33339
33340 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33341 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33342 (PTX_NUM_PER_WORKER_BARRIERS): Define.
33343 (nvptx_apply_dim_limits): Prevent vector_length 64 and
33344 num_workers 16.
33345
33346 2019-01-11 Tom de Vries <tdevries@suse.de>
33347
33348 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33349
33350 2019-01-11 Jan Beulich <jbeulich@suse.com>
33351
33352 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33353 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33354 sse2_cvtsi2sd): Add {l}.
33355 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33356 syntax.
33357
33358 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33359
33360 PR target/88785
33361 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33362 define_expand.
33363 (*float<floatunssuffix>v2div2sf2): New define_insn.
33364 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33365 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33366 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33367 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33368 match_operands with "const0_operand" "C".
33369
33370 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33371
33372 * config/aarch64/aarch64-builtins.c
33373 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33374 (aarch64_init_simd_builtins): ...Here
33375
33376 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
33377
33378 PR rtl-optimization/87305
33379 * lra-assigns.c
33380 (setup_live_pseudos_and_spill_after_risky_transforms): Check
33381 allocation for big endian pseudos used as paradoxical subregs and
33382 spill them if it is wrong.
33383 * lra-constraints.c (lra_constraints): Add a comment.
33384
33385 2019-01-10 Richard Biener <rguenther@suse.de>
33386
33387 PR tree-optimization/88792
33388 * tree-ssa-pre.c (get_representative_for): Do not return a
33389 value-number here.
33390
33391 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33392
33393 PR middle-end/84877
33394 PR bootstrap/88450
33395 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
33396 (assign_parm_setup_block): Do the argument slot realignment here
33397 instead.
33398
33399 2019-01-10 Stefan Agner <stefan@agner.ch>
33400
33401 PR target/88648
33402 * config/arm/arm.c (arm_option_override_internal): Force
33403 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
33404
33405 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33406
33407 PR c/88568
33408 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
33409 DECL_EXTERNAL.
33410
33411 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33412
33413 * config/arm/arm-builtins.c
33414 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
33415 (MAC_LANE_PAIR_QUALIFIERS): New.
33416 (arm_expand_builtin_args): Use it.
33417 (arm_expand_builtin_1): Likewise.
33418 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
33419 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
33420 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
33421 * config/arm/arm_neon.h:
33422 (vcadd_rot90_f16): New.
33423 (vcaddq_rot90_f16): New.
33424 (vcadd_rot270_f16): New.
33425 (vcaddq_rot270_f16): New.
33426 (vcmla_f16): New.
33427 (vcmlaq_f16): New.
33428 (vcmla_lane_f16): New.
33429 (vcmla_laneq_f16): New.
33430 (vcmlaq_lane_f16): New.
33431 (vcmlaq_laneq_f16): New.
33432 (vcmla_rot90_f16): New.
33433 (vcmlaq_rot90_f16): New.
33434 (vcmla_rot90_lane_f16): New.
33435 (vcmla_rot90_laneq_f16): New.
33436 (vcmlaq_rot90_lane_f16): New.
33437 (vcmlaq_rot90_laneq_f16): New.
33438 (vcmla_rot180_f16): New.
33439 (vcmlaq_rot180_f16): New.
33440 (vcmla_rot180_lane_f16): New.
33441 (vcmla_rot180_laneq_f16): New.
33442 (vcmlaq_rot180_lane_f16): New.
33443 (vcmlaq_rot180_laneq_f16): New.
33444 (vcmla_rot270_f16): New.
33445 (vcmlaq_rot270_f16): New.
33446 (vcmla_rot270_lane_f16): New.
33447 (vcmla_rot270_laneq_f16): New.
33448 (vcmlaq_rot270_lane_f16): New.
33449 (vcmlaq_rot270_laneq_f16): New.
33450 (vcadd_rot90_f32): New.
33451 (vcaddq_rot90_f32): New.
33452 (vcadd_rot270_f32): New.
33453 (vcaddq_rot270_f32): New.
33454 (vcmla_f32): New.
33455 (vcmlaq_f32): New.
33456 (vcmla_lane_f32): New.
33457 (vcmla_laneq_f32): New.
33458 (vcmlaq_lane_f32): New.
33459 (vcmlaq_laneq_f32): New.
33460 (vcmla_rot90_f32): New.
33461 (vcmlaq_rot90_f32): New.
33462 (vcmla_rot90_lane_f32): New.
33463 (vcmla_rot90_laneq_f32): New.
33464 (vcmlaq_rot90_lane_f32): New.
33465 (vcmlaq_rot90_laneq_f32): New.
33466 (vcmla_rot180_f32): New.
33467 (vcmlaq_rot180_f32): New.
33468 (vcmla_rot180_lane_f32): New.
33469 (vcmla_rot180_laneq_f32): New.
33470 (vcmlaq_rot180_lane_f32): New.
33471 (vcmlaq_rot180_laneq_f32): New.
33472 (vcmla_rot270_f32): New.
33473 (vcmlaq_rot270_f32): New.
33474 (vcmla_rot270_lane_f32): New.
33475 (vcmla_rot270_laneq_f32): New.
33476 (vcmlaq_rot270_lane_f32): New.
33477 (vcmlaq_rot270_laneq_f32): New.
33478 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
33479 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
33480 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
33481 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
33482 vcmlaq_lane270): New.
33483 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33484 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
33485 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
33486 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
33487 (arm_option_reconfigure_globals): Use them.
33488 * config/arm/iterators.md (VDF, VQ_HSF): New.
33489 (VCADD, VCMLA): New.
33490 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
33491 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
33492 New.
33493 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
33494 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
33495
33496 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33497
33498 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
33499 Add qualifier_lane_pair_index.
33500 (emit-rtl.h): Include.
33501 (TYPES_QUADOP_LANE_PAIR): New.
33502 (aarch64_simd_expand_args): Use it.
33503 (aarch64_simd_expand_builtin): Likewise.
33504 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
33505 New.
33506 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
33507 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
33508 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
33509 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
33510 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
33511 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
33512 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
33513 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
33514 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
33515 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
33516 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
33517 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
33518 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
33519 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
33520 Add __ARM_FEATURE_COMPLEX.
33521 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
33522 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
33523 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
33524 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
33525 fcmlaq_lane270): New.
33526 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33527 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
33528 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
33529 * config/aarch64/arm_neon.h:
33530 (vcadd_rot90_f16): New.
33531 (vcaddq_rot90_f16): New.
33532 (vcadd_rot270_f16): New.
33533 (vcaddq_rot270_f16): New.
33534 (vcmla_f16): New.
33535 (vcmlaq_f16): New.
33536 (vcmla_lane_f16): New.
33537 (vcmla_laneq_f16): New.
33538 (vcmlaq_lane_f16): New.
33539 (vcmlaq_rot90_lane_f16): New.
33540 (vcmla_rot90_laneq_f16): New.
33541 (vcmla_rot90_lane_f16): New.
33542 (vcmlaq_rot90_f16): New.
33543 (vcmla_rot90_f16): New.
33544 (vcmlaq_laneq_f16): New.
33545 (vcmla_rot180_laneq_f16): New.
33546 (vcmla_rot180_lane_f16): New.
33547 (vcmlaq_rot180_f16): New.
33548 (vcmla_rot180_f16): New.
33549 (vcmlaq_rot90_laneq_f16): New.
33550 (vcmlaq_rot270_laneq_f16): New.
33551 (vcmlaq_rot270_lane_f16): New.
33552 (vcmla_rot270_laneq_f16): New.
33553 (vcmlaq_rot270_f16): New.
33554 (vcmla_rot270_f16): New.
33555 (vcmlaq_rot180_laneq_f16): New.
33556 (vcmlaq_rot180_lane_f16): New.
33557 (vcmla_rot270_lane_f16): New.
33558 (vcadd_rot90_f32): New.
33559 (vcaddq_rot90_f32): New.
33560 (vcaddq_rot90_f64): New.
33561 (vcadd_rot270_f32): New.
33562 (vcaddq_rot270_f32): New.
33563 (vcaddq_rot270_f64): New.
33564 (vcmla_f32): New.
33565 (vcmlaq_f32): New.
33566 (vcmlaq_f64): New.
33567 (vcmla_lane_f32): New.
33568 (vcmla_laneq_f32): New.
33569 (vcmlaq_lane_f32): New.
33570 (vcmlaq_laneq_f32): New.
33571 (vcmla_rot90_f32): New.
33572 (vcmlaq_rot90_f32): New.
33573 (vcmlaq_rot90_f64): New.
33574 (vcmla_rot90_lane_f32): New.
33575 (vcmla_rot90_laneq_f32): New.
33576 (vcmlaq_rot90_lane_f32): New.
33577 (vcmlaq_rot90_laneq_f32): New.
33578 (vcmla_rot180_f32): New.
33579 (vcmlaq_rot180_f32): New.
33580 (vcmlaq_rot180_f64): New.
33581 (vcmla_rot180_lane_f32): New.
33582 (vcmla_rot180_laneq_f32): New.
33583 (vcmlaq_rot180_lane_f32): New.
33584 (vcmlaq_rot180_laneq_f32): New.
33585 (vcmla_rot270_f32): New.
33586 (vcmlaq_rot270_f32): New.
33587 (vcmlaq_rot270_f64): New.
33588 (vcmla_rot270_lane_f32): New.
33589 (vcmla_rot270_laneq_f32): New.
33590 (vcmlaq_rot270_lane_f32): New.
33591 (vcmlaq_rot270_laneq_f32): New.
33592 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
33593 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
33594 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
33595 (FCADD, FCMLA): New.
33596 (rot): New.
33597 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
33598
33599 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33600
33601 PR other/16615
33602
33603 * config/pa/pa.c: Change "can not" to "cannot".
33604 * gimple-ssa-evrp-analyze.c: Likewise.
33605 * ipa-icf.c: Likewise.
33606 * ipa-polymorphic-call.c: Likewise.
33607 * ipa-pure-const.c: Likewise.
33608 * lra-constraints.c: Likewise.
33609 * lra-remat.c: Likewise.
33610 * reload1.c: Likewise.
33611 * reorg.c: Likewise.
33612 * tree-ssa-uninit.c: Likewise.
33613
33614 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33615
33616 PR other/16615
33617
33618 * Makefile.in: Mechanically replace "can not" with "cannot".
33619 * alias.c: Likewise.
33620 * builtins.c: Likewise.
33621 * calls.c: Likewise.
33622 * cgraph.c: Likewise.
33623 * cgraph.h: Likewise.
33624 * cgraphclones.c: Likewise.
33625 * cgraphunit.c: Likewise.
33626 * combine-stack-adj.c: Likewise.
33627 * combine.c: Likewise.
33628 * common/config/i386/i386-common.c: Likewise.
33629 * config/aarch64/aarch64.c: Likewise.
33630 * config/alpha/sync.md: Likewise.
33631 * config/arc/arc.c: Likewise.
33632 * config/arc/predicates.md: Likewise.
33633 * config/arm/arm-c.c: Likewise.
33634 * config/arm/arm.c: Likewise.
33635 * config/arm/arm.h: Likewise.
33636 * config/arm/arm.md: Likewise.
33637 * config/arm/cortex-r4f.md: Likewise.
33638 * config/csky/csky.c: Likewise.
33639 * config/csky/csky.h: Likewise.
33640 * config/darwin-f.c: Likewise.
33641 * config/epiphany/epiphany.md: Likewise.
33642 * config/i386/i386.c: Likewise.
33643 * config/i386/sol2.h: Likewise.
33644 * config/m68k/m68k.c: Likewise.
33645 * config/mcore/mcore.h: Likewise.
33646 * config/microblaze/microblaze.md: Likewise.
33647 * config/mips/20kc.md: Likewise.
33648 * config/mips/sb1.md: Likewise.
33649 * config/nds32/nds32.c: Likewise.
33650 * config/nds32/predicates.md: Likewise.
33651 * config/pa/pa.c: Likewise.
33652 * config/rs6000/e300c2c3.md: Likewise.
33653 * config/rs6000/rs6000.c: Likewise.
33654 * config/s390/s390.h: Likewise.
33655 * config/sh/sh.c: Likewise.
33656 * config/sh/sh.md: Likewise.
33657 * config/spu/vmx2spu.h: Likewise.
33658 * cprop.c: Likewise.
33659 * dbxout.c: Likewise.
33660 * df-scan.c: Likewise.
33661 * doc/cfg.texi: Likewise.
33662 * doc/extend.texi: Likewise.
33663 * doc/fragments.texi: Likewise.
33664 * doc/gty.texi: Likewise.
33665 * doc/invoke.texi: Likewise.
33666 * doc/lto.texi: Likewise.
33667 * doc/md.texi: Likewise.
33668 * doc/objc.texi: Likewise.
33669 * doc/rtl.texi: Likewise.
33670 * doc/tm.texi: Likewise.
33671 * dse.c: Likewise.
33672 * emit-rtl.c: Likewise.
33673 * emit-rtl.h: Likewise.
33674 * except.c: Likewise.
33675 * expmed.c: Likewise.
33676 * expr.c: Likewise.
33677 * fold-const.c: Likewise.
33678 * genautomata.c: Likewise.
33679 * gimple-fold.c: Likewise.
33680 * hard-reg-set.h: Likewise.
33681 * ifcvt.c: Likewise.
33682 * ipa-comdats.c: Likewise.
33683 * ipa-cp.c: Likewise.
33684 * ipa-devirt.c: Likewise.
33685 * ipa-fnsummary.c: Likewise.
33686 * ipa-icf.c: Likewise.
33687 * ipa-inline-transform.c: Likewise.
33688 * ipa-inline.c: Likewise.
33689 * ipa-polymorphic-call.c: Likewise.
33690 * ipa-profile.c: Likewise.
33691 * ipa-prop.c: Likewise.
33692 * ipa-pure-const.c: Likewise.
33693 * ipa-reference.c: Likewise.
33694 * ipa-split.c: Likewise.
33695 * ipa-visibility.c: Likewise.
33696 * ipa.c: Likewise.
33697 * ira-build.c: Likewise.
33698 * ira-color.c: Likewise.
33699 * ira-conflicts.c: Likewise.
33700 * ira-costs.c: Likewise.
33701 * ira-int.h: Likewise.
33702 * ira-lives.c: Likewise.
33703 * ira.c: Likewise.
33704 * ira.h: Likewise.
33705 * loop-invariant.c: Likewise.
33706 * loop-unroll.c: Likewise.
33707 * lower-subreg.c: Likewise.
33708 * lra-assigns.c: Likewise.
33709 * lra-constraints.c: Likewise.
33710 * lra-eliminations.c: Likewise.
33711 * lra-lives.c: Likewise.
33712 * lra-remat.c: Likewise.
33713 * lra-spills.c: Likewise.
33714 * lra.c: Likewise.
33715 * lto-cgraph.c: Likewise.
33716 * lto-streamer-out.c: Likewise.
33717 * postreload-gcse.c: Likewise.
33718 * predict.c: Likewise.
33719 * profile-count.h: Likewise.
33720 * profile.c: Likewise.
33721 * recog.c: Likewise.
33722 * ree.c: Likewise.
33723 * reload.c: Likewise.
33724 * reload1.c: Likewise.
33725 * reorg.c: Likewise.
33726 * resource.c: Likewise.
33727 * rtl.def: Likewise.
33728 * rtl.h: Likewise.
33729 * rtlanal.c: Likewise.
33730 * sched-deps.c: Likewise.
33731 * sched-ebb.c: Likewise.
33732 * sched-rgn.c: Likewise.
33733 * sel-sched-ir.c: Likewise.
33734 * sel-sched.c: Likewise.
33735 * shrink-wrap.c: Likewise.
33736 * simplify-rtx.c: Likewise.
33737 * symtab.c: Likewise.
33738 * target.def: Likewise.
33739 * toplev.c: Likewise.
33740 * tree-call-cdce.c: Likewise.
33741 * tree-cfg.c: Likewise.
33742 * tree-complex.c: Likewise.
33743 * tree-core.h: Likewise.
33744 * tree-eh.c: Likewise.
33745 * tree-inline.c: Likewise.
33746 * tree-loop-distribution.c: Likewise.
33747 * tree-nrv.c: Likewise.
33748 * tree-profile.c: Likewise.
33749 * tree-sra.c: Likewise.
33750 * tree-ssa-alias.c: Likewise.
33751 * tree-ssa-dce.c: Likewise.
33752 * tree-ssa-dom.c: Likewise.
33753 * tree-ssa-forwprop.c: Likewise.
33754 * tree-ssa-loop-im.c: Likewise.
33755 * tree-ssa-loop-ivcanon.c: Likewise.
33756 * tree-ssa-loop-ivopts.c: Likewise.
33757 * tree-ssa-loop-niter.c: Likewise.
33758 * tree-ssa-phionlycprop.c: Likewise.
33759 * tree-ssa-phiopt.c: Likewise.
33760 * tree-ssa-propagate.c: Likewise.
33761 * tree-ssa-threadedge.c: Likewise.
33762 * tree-ssa-threadupdate.c: Likewise.
33763 * tree-ssa-uninit.c: Likewise.
33764 * tree-ssanames.c: Likewise.
33765 * tree-streamer-out.c: Likewise.
33766 * tree.c: Likewise.
33767 * tree.h: Likewise.
33768 * vr-values.c: Likewise.
33769
33770 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
33771
33772 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
33773 (ix86_split_xorsign): Ditto.
33774 * config/i386/i386.c (ix86_expand_xorsign): New function.
33775 (ix86_split_xorsign): Ditto.
33776 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
33777 (xorsign<mode>3): New expander.
33778 (xorsign<mode>3_1): New insn_and_split pattern.
33779 * config/i386/sse.md (xorsign<mode>3): New expander.
33780
33781 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33782
33783 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
33784 (*tablejump_sp64): Likewise.
33785 (*tablejump<P:mode>): ...this.
33786 (*call_address_sp32): Merge into...
33787 (*call_address_sp64): Likewise.
33788 (*call_address<P:mode>): ...this.
33789 (*call_symbolic_sp32): Merge into...
33790 (*call_symbolic_sp64): Likewise.
33791 (*call_symbolic<P:mode>): ...this.
33792 (call_value): Remove constraint and add predicate.
33793 (*call_value_address_sp32): Merge into...
33794 (*call_value_address_sp64): Likewise.
33795 (*call_value_address<P:mode>): ...this.
33796 (*call_value_symbolic_sp32): Merge into...
33797 (*call_value_symbolic_sp64): Likewise.
33798 (*call_value_symbolic<P:mode>): ...this.
33799 (*sibcall_symbolic_sp32): Merge into...
33800 (*sibcall_symbolic_sp64): Likewise.
33801 (*sibcall_symbolic<P:mode>): ...this.
33802 (sibcall_value): Remove constraint and add predicate.
33803 (*sibcall_value_symbolic_sp32): Merge into...
33804 (*sibcall_value_symbolic_sp64): Likewise.
33805 (*sibcall_value_symbolic<P:mode>): ...this.
33806 (window_save): Minor tweak.
33807 (*branch_sp32): Merge into...
33808 (*branch_sp64): Likewise.
33809 (*branch<P:mode>): ...this.
33810
33811 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33812 James Clarke <jrtc27@jrtc27.com>
33813
33814 PR target/84010
33815 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
33816 consistently in TLS address generation and adjust code to the renaming
33817 of patterns. Mark calls to __tls_get_addr as const.
33818 * config/sparc/sparc.md (tgd_hi22): Turn into...
33819 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
33820 (tgd_lo10): Turn into...
33821 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
33822 (tgd_add32): Merge into...
33823 (tgd_add64): Likewise.
33824 (tgd_add<P:mode>): ...this and use Pmode throughout.
33825 (tldm_hi22): Turn into...
33826 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
33827 (tldm_lo10): Turn into...
33828 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
33829 (tldm_add32): Merge into...
33830 (tldm_add64): Likewise.
33831 (tldm_add<P:mode>): ...this and use Pmode throughout.
33832 (tldm_call32): Merge into...
33833 (tldm_call64): Likewise.
33834 (tldm_call<P:mode>): ...this and use Pmode throughout.
33835 (tldo_hix22): Turn into...
33836 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
33837 (tldo_lox10): Turn into...
33838 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
33839 (tldo_add32): Merge into...
33840 (tldo_add64): Likewise.
33841 (tldo_add<P:mode>): ...this and use Pmode throughout.
33842 (tie_hi22): Turn into...
33843 (tie_hi22<P:mode>): ...this and use Pmode throughout.
33844 (tie_lo10): Turn into...
33845 (tie_lo10<P:mode>): ...this and use Pmode throughout.
33846 (tie_ld64): Use DImode throughout.
33847 (tie_add32): Merge into...
33848 (tie_add64): Likewise.
33849 (tie_add<P:mode>): ...this and use Pmode throughout.
33850 (tle_hix22_sp32): Merge into...
33851 (tle_hix22_sp64): Likewise.
33852 (tle_hix22<P:mode>): ...this and use Pmode throughout.
33853 (tle_lox22_sp32): Merge into...
33854 (tle_lox22_sp64): Likewise.
33855 (tle_lox22<P:mode>): ...this and use Pmode throughout.
33856 (*tldo_ldub_sp32): Merge into...
33857 (*tldo_ldub_sp64): Likewise.
33858 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
33859 (*tldo_ldub1_sp32): Merge into...
33860 (*tldo_ldub1_sp64): Likewise.
33861 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
33862 (*tldo_ldub2_sp32): Merge into...
33863 (*tldo_ldub2_sp64): Likewise.
33864 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
33865 (*tldo_ldsb1_sp32): Merge into...
33866 (*tldo_ldsb1_sp64): Likewise.
33867 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
33868 (*tldo_ldsb2_sp32): Merge into...
33869 (*tldo_ldsb2_sp64): Likewise.
33870 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
33871 (*tldo_ldub3_sp64): Use DImode throughout.
33872 (*tldo_ldsb3_sp64): Likewise.
33873 (*tldo_lduh_sp32): Merge into...
33874 (*tldo_lduh_sp64): Likewise.
33875 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
33876 (*tldo_lduh1_sp32): Merge into...
33877 (*tldo_lduh1_sp64): Likewise.
33878 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
33879 (*tldo_ldsh1_sp32): Merge into...
33880 (*tldo_ldsh1_sp64): Likewise.
33881 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
33882 (*tldo_lduh2_sp64): Use DImode throughout.
33883 (*tldo_ldsh2_sp64): Likewise.
33884 (*tldo_lduw_sp32): Merge into...
33885 (*tldo_lduw_sp64): Likewise.
33886 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
33887 (*tldo_lduw1_sp64): Use DImode throughout.
33888 (*tldo_ldsw1_sp64): Likewise.
33889 (*tldo_ldx_sp64): Likewise.
33890 (*tldo_stb_sp32): Merge into...
33891 (*tldo_stb_sp64): Likewise.
33892 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
33893 (*tldo_sth_sp32): Merge into...
33894 (*tldo_sth_sp64): Likewise.
33895 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
33896 (*tldo_stw_sp32): Merge into...
33897 (*tldo_stw_sp64): Likewise.
33898 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
33899 (*tldo_stx_sp64): Use DImode throughout.
33900
33901 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33902
33903 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
33904 check configure option to set BTI and Return Address Signing.
33905 * configure.ac: Add --enable-standard-branch-protection and
33906 --disable-standard-branch-protection.
33907 * configure: Regenerated.
33908 * doc/install.texi: Document the same.
33909
33910 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33911 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33912
33913 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
33914 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
33915 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
33916 if bti is enabled.
33917 * config/aarch64/aarch64-bti-insert.c: New file.
33918 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
33919 pass.
33920 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
33921 new bti pass.
33922 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
33923 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
33924 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
33925 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
33926
33927 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33928
33929 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
33930 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
33931 Disable bti for -mbranch-protection=none.
33932 (aarch64_handle_standard_branch_protection): Enable bti for
33933 -mbranch-protection=standard.
33934 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
33935 -mbranch-protection.
33936 (aarch64_bti_enabled): Check if bti is enabled.
33937 * config/aarch64/aarch64.opt: Declare target variable.
33938 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
33939
33940 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33941
33942 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
33943 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
33944 (aarch64_expand_epilogue): Likewise.
33945 (aarch64_output_mi_thunk): Likewise.
33946 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
33947 TAILCALL_ADDR_REGS to x16 and x17.
33948 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
33949
33950 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33951
33952 * config/aarch64/aarch64-option-extensions.def: Define
33953 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
33954 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
33955 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
33956 (AARCH64_FL_PREDRES): New.
33957 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
33958 AARCH64_FL_PREDRES by default.
33959 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
33960
33961 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33962
33963 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
33964 ARMv8.5-A.
33965 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
33966 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
33967 * doc/invoke.texi: Document ARMv8.5-A.
33968
33969 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
33970
33971 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
33972 (xorsign<mode>3): Likewise.
33973
33974 2019-01-09 Jelinek <jakub@redhat.com>
33975
33976 PR middle-end/88758
33977 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
33978 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
33979
33980 PR rtl-optimization/88331
33981 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
33982 not currently_expanding_to_rtl.
33983
33984 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33985
33986 * doc/invoke.texi (-Os): Remove trailing spaces.
33987 (-finline-functions): Remove reference to -O2.
33988
33989 2019-01-08 Jakub Jelinek <jakub@redhat.com>
33990
33991 PR rtl-optimization/79593
33992 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
33993
33994 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
33995 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
33996
33997 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
33998
33999 PR bootstrap/88721
34000 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34001 to -1 on entry.
34002
34003 PR debug/88723
34004 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34005 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34006
34007 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34008
34009 PR target/88717
34010 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34011 ix86_avx_u128_mode_entry.
34012
34013 2019-01-08 Martin Liska <mliska@suse.cz>
34014
34015 PR tree-optimization/88753
34016 * tree-switch-conversion.c (switch_conversion::build_one_array):
34017 Come up with local variable constructor. Convert first to
34018 type of constructor values.
34019
34020 2019-01-08 Richard Biener <rguenther@suse.de>
34021
34022 PR tree-optimization/86554
34023 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34024 rpo_avail): Move earlier.
34025 (visit_nary_op): When value-numbering to expressions
34026 with different overflow behavior make sure there's an
34027 available expression on the path.
34028
34029 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34030
34031 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34032 aarch64_parse_branch_protection,
34033 struct aarch64_branch_protect_type,
34034 aarch64_handle_no_branch_protection,
34035 aarch64_handle_standard_branch_protection,
34036 aarch64_validate_mbranch_protection,
34037 aarch64_handle_pac_ret_protection,
34038 aarch64_handle_attr_branch_protection,
34039 accepted_branch_protection_string,
34040 aarch64_pac_ret_subtypes,
34041 aarch64_branch_protect_types,
34042 aarch64_handle_pac_ret_leaf): Define.
34043 (aarch64_override_options_after_change_1, aarch64_override_options):
34044 Add check for accepted_branch_protection_string.
34045 (aarch64_option_save): Save accepted_branch_protection_string.
34046 (aarch64_option_restore): Save accepted_branch_protection_string.
34047 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34048 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34049 msign-return-address.
34050 * doc/invoke.texi: Add mbranch-protection.
34051
34052 2019-01-08 Alan Modra <amodra@gmail.com>
34053
34054 PR target/88614
34055 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34056 Delete "unknownp" parameter. Adjust callers. Handle
34057 CONST_INT, PLUS, MINUS, and MULT.
34058 (attr_value_aligned): Renamed from or_attr_value.
34059 (min_attr_value): Return INT_MIN for unhandled rtl case..
34060 (min_fn): ..and translate to INT_MAX here.
34061 (write_length_unit_log): Modify to cope without "unknown".
34062 (write_attr_value): Handle IF_THEN_ELSE.
34063
34064 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34065
34066 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34067 optimization for masked stores.
34068
34069 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34070
34071 PR middle-end/88567
34072 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34073 output vector directly to duplicate_and_interleave instead of
34074 going through a temporary. Postpone insertion of ctor_seq to
34075 the end of the loop.
34076
34077 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34078
34079 PR target/86891
34080 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34081 unsigned_p. Handle signed and unsigned overflow correction as
34082 required.
34083 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34084 prototype.
34085 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34086 for operand 2.
34087 (add<mode>3_compareV_imm): Make this callable for expanding.
34088 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34089 aarch64_plus_operand for operand 2.
34090 (subv<GPI:mode>_insn): New insn pattern.
34091 (subv<GPI:mode>_imm): Likewise.
34092 (negv<GPI:mode>3): New expand pattern.
34093 (negv<GPI:mode>_insn): New insn pattern.
34094 (negv<GPI:mode>_cmp_only): Likewise.
34095 (cmpv<GPI:mode>_insn): Likewise.
34096 (subvti4): Use register_operand for operand 1. Update call to
34097 aarch64_expand_subvti.
34098 (usubvti4): Likewise.
34099 (negvti3): New expand pattern.
34100 (negdi_carryout): New insn pattern.
34101 (negvdi_carryinV): New insn pattern.
34102 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34103 version the named version.
34104 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34105 operands.
34106 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34107 patterns.
34108 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34109 patterns.
34110 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34111 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34112 (sub<mode>3_carryinCV): Delete.
34113 (sub<GPI:mode>3_carryinV): New expand pattern.
34114 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34115
34116 2019-01-07 Richard Biener <rguenther@suse.de>
34117
34118 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34119 of tree_operand_hash.
34120
34121 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34122
34123 PR tree-optimization/88598
34124 * tree.h (single_nonzero_element): Declare.
34125 * tree.c (single_nonzero_element): New function.
34126 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34127 if I is the only nonzero element of CST.
34128
34129 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34130
34131 PR tree-optimization/88598
34132 * tree.h (initializer_each_zero_or_onep): Declare.
34133 * tree.c (initializer_each_zero_or_onep): New function.
34134 (signed_or_unsigned_type_for): Handle float types too.
34135 (unsigned_type_for, signed_type_for): Update comments accordingly.
34136 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34137 x & { 0 or -1, 0 or -1, ... }.
34138
34139 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34140
34141 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34142 with x86_64-pc-linux-gnu.
34143
34144 2019-01-07 Tom de Vries <tdevries@suse.de>
34145
34146 PR target/85486
34147 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34148 function.
34149 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34150 routines.
34151
34152 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34153
34154 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34155 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34156 TARGET_AVX512F as condition.
34157
34158 PR debug/88723
34159 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34160 const_not_ok_for_debug_p target hook.
34161 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34162 on UNSPEC and subexpressions thereof if all subexpressions of the
34163 UNSPEC are CONSTANT_P.
34164
34165 PR tree-optimization/88676
34166 * tree-ssa-phiopt.c (two_value_replacement): New function.
34167 (tree_ssa_phiopt_worker): Call it.
34168
34169 PR sanitizer/88619
34170 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34171 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34172
34173 PR c++/85052
34174 * tree-vect-generic.c: Include insn-config.h and recog.h.
34175 (expand_vector_piecewise): Add defaulted ret_type argument,
34176 if non-NULL, use that in preference to type for the result type.
34177 (expand_vector_parallel): Formatting fix.
34178 (do_vec_conversion, do_vec_narrowing_conversion,
34179 expand_vector_conversion): New functions.
34180 (expand_vector_operations_1): Call expand_vector_conversion
34181 for VEC_CONVERT ifn calls.
34182 * internal-fn.def (VEC_CONVERT): New internal function.
34183 * internal-fn.c (expand_VEC_CONVERT): New function.
34184 * fold-const-call.c (fold_const_vec_convert): New function.
34185 (fold_const_call): Use it for CFN_VEC_CONVERT.
34186 * doc/extend.texi (__builtin_convertvector): Document.
34187
34188 2019-01-07 Tom de Vries <tdevries@suse.de>
34189
34190 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34191 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34192 vector_red_partition, vector_red_sym): New global variables.
34193 (nvptx_option_override): Initialize vector_red_sym.
34194 (nvptx_declare_function_name): Restore red_partition register.
34195 (nvptx_file_end): Emit code to declare the vector reduction variables.
34196 (nvptx_output_red_partition): New function.
34197 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34198 large vector reductions.
34199 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34200 (nvptx_init_builtins): Add VECTOR_ADDR.
34201 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34202 Handle nvptx_expand_shared_addr.
34203 (nvptx_get_shared_red_addr): Add vector argument and handle large
34204 vectors.
34205 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34206 large vectors.
34207 (nvptx_goacc_reduction_init): Likewise.
34208 (nvptx_goacc_reduction_fini): Likewise.
34209 (nvptx_goacc_reduction_teardown): Likewise.
34210 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34211 init,fini,teardown}.
34212 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34213 (nvptx_set_current_function): Init vector_red_partition.
34214 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34215 (nvptx_red_partition): New insn.
34216 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34217
34218 2019-01-07 Tom de Vries <tdevries@suse.de>
34219
34220 PR target/85381
34221 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34222 empty loops.
34223
34224 2019-01-07 Tom de Vries <tdevries@suse.de>
34225
34226 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34227 (nvptx_option_override): Init oacc_bcast_partition.
34228 (nvptx_init_oacc_workers): New function.
34229 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34230 (nvptx_needs_shared_bcast): New function.
34231 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34232 to propagate state.
34233 (nvptx_shared_propagate): Initialize vector bcast partition and
34234 synchronization state.
34235 (nvptx_single): Generalize to enable vectors to use shared-memory
34236 to propagate state.
34237 (nvptx_process_pars): Likewise.
34238 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34239 * config/nvptx/nvptx.h (struct machine_function): Add
34240 bcast_partition and sync_bar members.
34241
34242 2019-01-07 Tom de Vries <tdevries@suse.de>
34243
34244 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34245 (nvptx_apply_dim_limits): New function.
34246 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34247 PTX_WARP_SIZE.
34248
34249 2019-01-07 Tom de Vries <tdevries@suse.de>
34250
34251 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34252 as late as possible.
34253
34254 2019-01-07 Tom de Vries <tdevries@suse.de>
34255
34256 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34257 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34258 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34259 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34260 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34261
34262 2019-01-07 Tom de Vries <tdevries@suse.de>
34263
34264 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34265
34266 2019-01-07 Tom de Vries <tdevries@suse.de>
34267
34268 * omp-offload.c (oacc_get_min_dim): New function.
34269 * omp-offload.h (oacc_get_min_dim): Declare.
34270
34271 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34272
34273 PR target/88521
34274 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34275 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34276
34277 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34278
34279 PR tree-opt/86020
34280 Revert:
34281 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34282
34283 * ipa-inline.c (edge_badness): Use inlined_time instead of
34284 inline_summaries->get.
34285
34286 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34287
34288 * opts.c (enable_fdo_optimizations): Enable
34289 version-loops-for-strides, loop-interchange, unrol-and-jam
34290 and tree-loop-distribution.
34291 * invoke.texi: Document newly enabled options.
34292
34293 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34294
34295 * doc/invoke.texi (max-inline-insns-small): New parameters.
34296 * ipa-inline.c (want_early_inline_function_p): simplify.
34297 (want_inline_small_function_p): Fix pasto from previous patch;
34298 use max-inline-insns-small bound.
34299 * params.def (max-inline-insns-small): New param.
34300 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34301 variables correctly.
34302
34303 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34304
34305 * doc/invoke.texi: Document max-inline-insns-size,
34306 uninlined-function-insns, uninlined-function-time,
34307 uninlined-thunk-insns and uninlined-thunk-time.
34308 * params.def: Add max-inline-insns-size,
34309 uninlined-function-insns, uninlined-function-time,
34310 uninlined-thunk-insns and uninlined-thunk-time.
34311 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34312 new parameters.
34313 * ipa-inline.c (can_inline_edge_by_limits_p,
34314 want_inline_small_function_p): Use new parameters.
34315
34316 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34317
34318 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34319
34320 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34321
34322 PR middle-end/82564
34323 PR target/88620
34324 * expr.c (expand_assignment): For calls returning VLA structures
34325 if to_rtx is not a MEM, force it into a stack temporary.
34326
34327 PR debug/88635
34328 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34329 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34330 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34331 subexpressions of both operands.
34332 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34333 subrtxes are CONSTANT_P.
34334 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34335 2018-11-09 changes.
34336
34337 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
34338
34339 * params.def (hot-bb-count-ws-permille): Set to 990.
34340
34341 2019-01-04 Martin Sebor <msebor@redhat.com>
34342
34343 PR c/88546
34344 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34345 leaf.
34346
34347 2019-01-04 Martin Sebor <msebor@redhat.com>
34348
34349 PR c/88363
34350 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34351
34352 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34353
34354 * gdbinit.in: Turn off pagination for the skip commands, restore
34355 it to previous state afterwards.
34356
34357 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34358
34359 PR target/88594
34360 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34361 of GET_MODE (opN) as modes of the libcall arguments.
34362
34363 2019-01-04 Jan Beulich <jbeulich@suse.com>
34364
34365 * config/i386/sse.md
34366 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34367 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34368 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34369 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34370 avx512f_vmcmp<mode>3<round_saeonly_name>,
34371 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34372 avx512f_maskcmp<mode>3,
34373 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34374 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34375 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34376 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34377 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34378 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34379 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34380 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34381 <avx512>_testm<mode>3<mask_scalar_merge_name>,
34382 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
34383 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
34384 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
34385 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
34386 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
34387 avx512cd_maskb_vec_dup<mode>,
34388 avx512cd_maskw_vec_dup<mode>,
34389 avx512dq_fpclass<mode><mask_scalar_merge_name>,
34390 avx512dq_vmfpclass<mode>,
34391 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
34392 instead of =Yk.
34393
34394 2019-01-03 Martin Sebor <msebor@redhat.com>
34395
34396 PR tree-optimization/88659
34397 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
34398
34399 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
34400
34401 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
34402 unaligned vsx and avoid lxvd2x/stxvd2x.
34403 (gen_lvx_v4si_move): New function.
34404
34405 2019-01-03 Tom de Vries <tdevries@suse.de>
34406
34407 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
34408 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
34409 function.
34410 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
34411
34412 2019-01-03 Tom de Vries <tdevries@suse.de>
34413
34414 * config/nvptx/nvptx.c (struct offload_attrs): New.
34415 (populate_offload_attrs): New function. Factor mask extraction out of
34416 nvptx_reorg. Add extraction of dimensions.
34417 (nvptx_reorg): Use populate_offload_attrs.
34418
34419 2019-01-03 Tom de Vries <tdevries@suse.de>
34420
34421 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
34422 cases for oacc_min_dims_p and routine_p. Add asserts for
34423 oacc_default_dims_p and offload_region_p.
34424
34425 2019-01-03 Tom de Vries <tdevries@suse.de>
34426
34427 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
34428 factored out of ...
34429 (nvptx_goacc_validate_dims): ... here.
34430
34431 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34432
34433 PR tree-optimization/85574
34434 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
34435 structure.
34436 (struct ssa_equip_hash_traits): Declare.
34437 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
34438
34439 2019-01-03 Jakub Jelinek <jakub@redhat.com>
34440
34441 PR debug/88644
34442 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
34443 change it to qualified_type.
34444
34445 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34446
34447 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
34448 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
34449
34450 2019-01-02 Martin Sebor <msebor@redhat.com>
34451 Jeff Law <law@redhat.com>
34452
34453 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
34454 (get_range_strlen_tree): Update appropriately.
34455 (get_range_strlen)
34456 * gimple-fold.h (get_range_strlen): Drop unused last argument.
34457
34458 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
34459 rather than set_range_info.
34460 * tree-ssa-strlen.c (set_strlen_range): Extracted from
34461 maybe_set_strlen_range. Handle potentially boundary crossing
34462 cases more conservatively.
34463 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
34464 Call set_strlen_range.
34465 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
34466
34467 PR middle-end/88663
34468 * gimple-fold.c (get_range_strlen): Update prototype to no longer
34469 need the flexp argument.
34470 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
34471 from calls to get_range_strlen. Update comments. Just update
34472 VAL for an unterminated const char array and let the reset of the
34473 code handle it normally. No longer try to set *flexp. Adjust
34474 return value.
34475 (get_range_strlen): Update for the new get_range_strlen API.
34476 (get_maxval_strlen): Similarly.
34477 (gimple_fold_builtin_strlen): Handle update meaning of return value
34478 from get_range_strlen.
34479 * gimple-ssa-sprintf.c (get_string_length): Update for the new
34480 get_range_strlen API.
34481
34482 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
34483
34484 PR lto/88130
34485 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
34486 false at WPA time when body was removed.
34487
34488 2019-01-02 Martin Liska <mliska@suse.cz>
34489
34490 PR tree-optimization/88650
34491 * predict.c (set_even_probabilities): Calculate probability
34492 remainer only when really used.
34493
34494 2019-01-02 Richard Biener <rguenther@suse.de>
34495
34496 PR middle-end/88651
34497 * tree-data-ref.c (analyze_subscript_affine_affine): Use
34498 widest_ints when mangling max_stmt_execution results.
34499
34500 2019-01-02 Richard Biener <rguenther@suse.de>
34501
34502 PR tree-optimization/88621
34503 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
34504 bitfields when canoncalizing.
34505
34506 2019-01-02 Richard Biener <rguenther@suse.de>
34507
34508 PR target/87545
34509 * config/i386/x86-tune-costs.h (intel_cost): Adjust
34510 cost of cheap SSE instruction.
34511
34512 2019-01-02 Richard Biener <rguenther@suse.de>
34513
34514 PR ipa/85574
34515 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
34516 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
34517 function.
34518 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
34519 set after UIDs before splitting them.
34520
34521 2019-01-01 Martin Sebor <msebor@redhat.com>
34522 Jeff Law <law@redhat.com>
34523
34524 * gimple-fold.c (get_range_strlen_tree): Record if the computed
34525 length is optimistic. If it is, then arrange to compute the
34526 conservative length as well.
34527
34528 * gimple-fold.h (get_range_strlen): Update prototype.
34529 * builtins.c (check_access): Update call to get_range_strlen to use
34530 c_strlen_data pointer. Change various variable accesses to instead
34531 pull data from the c_strlen_data structure.
34532 (check_strncat_sizes, expand_builtin_strncat): Likewise.
34533 * calls.c (maybe_warn_nonstring_arg): Likewise.
34534 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
34535 minimum length if maximum lengh is unknown.
34536 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
34537 that used c_strlen, it's no longer needed. Restructure slightly.
34538 (format_string): Set unlikely range appropriately.
34539 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
34540 formatting issues.
34541 (get_range_strlen): Accept c_strlen_data pointer for external
34542 call sites as well. Pass through to call to internal get_range_strlen.
34543 Adjust minlen, maxlen and maxbound as needed.
34544 (get_maxval_strlen): Update comments.
34545 (gimple_fold_builtin_strlen): Update call to get_range_strlen
34546 to use c_strlen_data pointer. Change variable accesses to instead
34547 use c_strlen_data data members.
34548
34549 * gimple-fold.c (get_range_strlen): Update prototype.
34550 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
34551 local variables. Use pdata to return information to caller.
34552 Update calls to get_range_strlen. Update pdata->maxbound.
34553 (get_range_strlen -- static version): Similarly.
34554 (get_range_strlen -- extern version): Update for internal
34555 get_range_strlen API change. Convert to external data format.
34556 (get_maxval_strlen): Similarly.
34557
34558 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
34559
34560 * coverage.c (get_coverage_counts): Use current_function_decl.
34561 * profile.c (read_thunk_profile): New function.
34562 (branch_prob): Add THUNK parameter.
34563 * tree-profile.c (tree_profiling): Handle thunks.
34564 * value-prof.c (init_node_map): Handle thunks.
34565 * value-prof.h (branch_prob): Upate prototype.
34566 (read_thunk_profile): Declare.
34567
34568 2019-01-01 Jakub Jelinek <jakub@redhat.com>
34569
34570 Update copyright years.
34571
34572 * gcc.c (process_command): Update copyright notice dates.
34573 * gcov-dump.c (print_version): Ditto.
34574 * gcov.c (print_version): Ditto.
34575 * gcov-tool.c (print_version): Ditto.
34576 * gengtype.c (create_file): Ditto.
34577 * doc/cpp.texi: Bump @copying's copyright year.
34578 * doc/cppinternals.texi: Ditto.
34579 * doc/gcc.texi: Ditto.
34580 * doc/gccint.texi: Ditto.
34581 * doc/gcov.texi: Ditto.
34582 * doc/install.texi: Ditto.
34583 * doc/invoke.texi: Ditto.
34584 \f
34585 Copyright (C) 2019 Free Software Foundation, Inc.
34586
34587 Copying and distribution of this file, with or without modification,
34588 are permitted in any medium without royalty provided the copyright
34589 notice and this notice are preserved.