re PR rtl-optimization/92283 (454.calculix miscomparison since r276645 with -O2 ...
[gcc.git] / gcc / ChangeLog
1 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
2
3 PR rtl-optimization/92283
4 * lra.c (lra): Update reg notes after inheritance sub-pass and
5 before constraint sub-pass.
6
7 2019-11-29 Richard Biener <rguenther@suse.de>
8
9 PR tree-optimization/91003
10 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
11 operand number, avoid handling the non-condition operands of
12 COND_EXPRs as comparisons.
13 (vect_get_constant_vectors): Pass down the operand number.
14 (vect_get_slp_defs): Likewise.
15
16 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
17
18 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
19 generic_expr_could_trap_p to check if the condition of COND_EXPR or
20 VEC_COND_EXPR can trap.
21
22 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
23
24 PR tree-optimization/92677
25 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
26 to zero when dissolving a group of strided accesses.
27
28 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
29
30 PR tree-optimization/92596
31 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
32 operations.
33 (vectorizable_operation): Likewise, instead of relying on
34 vect_get_mask_type_for_stmt to do this.
35 (vect_get_vector_types_for_stmt): Always return a vector type
36 immediately, rather than deferring the choice for boolean results.
37 Use a vector mask type instead of a normal vector if
38 vect_use_mask_type_p.
39 (vect_get_mask_type_for_stmt): Delete.
40 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
41 mask_producers argument and special boolean_type_node handling.
42 (vect_determine_vf_for_stmt): Remove mask_producers argument and
43 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
44 (vect_determine_vectorization_factor): Update call accordingly.
45 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
46 boolean_type_node handling.
47 (vect_slp_analyze_node_operations_1): Likewise.
48
49 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
50
51 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
52 (vect_use_mask_type_p): New function.
53 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
54 mask precision to the pattern statement.
55 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
56 and use it to initialize the new stmt's mask precision.
57 (search_type_for_mask_1): Delete.
58 (search_type_for_mask): Replace with...
59 (integer_type_for_mask): ...this new function. Use the information
60 cached in the stmt_vec_info.
61 (vect_recog_bool_pattern): Update accordingly.
62 (build_mask_conversion): Pass the scalar type associated with the
63 mask type to append_pattern_def_seq.
64 (vect_recog_mask_conversion_pattern): Likewise. Call
65 integer_type_for_mask instead of search_type_for_mask.
66 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
67 of search_type_for_mask.
68 (possible_vector_mask_operation_p): New function.
69 (vect_determine_mask_precision): Likewise.
70 (vect_determine_stmt_precisions): Call it.
71
72 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
73
74 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
75 the slp_tree parameter with a group size parameter.
76 (vect_get_mask_type_for_stmt): Likewise.
77 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
78 (vect_get_mask_type_for_stmt): Likewise.
79 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
80 call accordingly.
81
82 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
83
84 * tree-vect-stmts.c (vectorizable_operation): Punt early
85 on codes that are handled elsewhere.
86
87 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
88
89 * doc/sourcebuild.texi (vect_bool_cmp): Document.
90 * tree-vect-patterns.c (search_type_for_mask_1): If neither
91 operand to a boolean comparison is a natural vector mask,
92 handle both operands like normal integers instead.
93
94 2019-11-29 Richard Biener <rguenther@suse.de>
95
96 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
97 out early for too large objects.
98
99 2019-11-29 Martin Jambor <mjambor@suse.cz>
100
101 PR ipa/92476
102 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
103 the summary only if the summary exists.
104 (find_more_scalar_values_for_callers_subset): Check node_dead in
105 the summary only if the summary exists.
106 (ipcp_store_bits_results): Ignore nodes without lattices.
107 (ipcp_store_vr_results): Likewise.
108 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
109 header files required by them.
110 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
111
112 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
113
114 PR tree-optimization/92710
115 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
116 vector mask arguments.
117
118 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
119
120 * profile-count.c (profile_count::to_cgraph_frequency,
121 profile_count::to_sreal_scale): Check for compaibility of counts.
122 * profile-count.h (compatible_p): Make public; add checking for
123 global0 versus global types.
124 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
125
126 2019-11-29 Richard Biener <rguenther@suse.de>
127
128 PR tree-optimization/92715
129 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
130 out for uniform vectors and source vectors with less elements
131 than the destination.
132
133 2019-11-29 Martin Liska <mliska@suse.cz>
134
135 PR lto/91574
136 * ipa-devirt.c (types_same_for_odr): Check for existence
137 of TYPE_NAMEs first.
138
139 2019-11-29 Richard Biener <rguenther@suse.de>
140
141 PR tree-optimization/92704
142 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
143 in loops performing only loads.
144
145 2019-11-29 Julian Brown <julian@codesourcery.com>
146
147 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
148 BT_DFLOAT128_PTR) Remove.
149 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
150 TI_DFLOAT128_PTR_TYPE): Remove.
151 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
152 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
153 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
154 dfloat128_ptr_type_node): Remove macros.
155
156 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
157
158 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
159 formatting.
160 (*movdi_internal64): Ditto.
161
162 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
163
164 PR target/92602
165 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
166 indexed_or_indirect_operand to be memory_operand.
167 (bswap<mode>2_store for HSI): Ditto.
168 (bswapdi2_load): Ditto.
169 (bswapdi2_store): Ditto.
170
171 2019-11-28 Martin Liska <mliska@suse.cz>
172
173 PR debug/46558
174 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
175 headers for translation.
176
177 2019-11-28 Martin Liska <mliska@suse.cz>
178
179 PR lto/92609
180 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
181 consistently.
182
183 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
184
185 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
186 checks.
187
188 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
189
190 * profile-count.c (profile_count::combine_with_ipa_count): Return
191 uninitialized count if called on ininitialized count.
192
193 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
194
195 * ipa-inline-transform.c (inline_transform): Scale profile before
196 redirecting.
197
198 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
199
200 * profile-count.h (profile_count::max): Work on profiles of different
201 type.
202 (profile_count::apply_scale): Be sure that ret is not local or global0
203 type if num is global.
204
205 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
206
207 * profile-count.h (profile_count::max): Work on profiles of different
208 type.
209 (profile_count::apply_scale): Be sure that ret is not local or global0
210 type if num is global.
211
212 2019-11-28 Martin Jambor <mjambor@suse.cz>
213
214 PR ipa/92697
215 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
216 ifunc_resolvers.
217 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
218 Removed trailig whitespace.
219
220 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
221
222 * profile-count.h (profile_count::combine_with_ipa_count_within):
223 Declare.
224 * profile-count.c (profile_count::combine_with_ipa_count_within):
225 New.
226 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
227 it.
228
229 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
230
231 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
232 of counters are done same way.
233
234 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
235
236 * ipa-cp.c (update_profiling_info): Fix scaling.
237
238 2019-11-28 Richard Biener <rguenther@suse.de>
239
240 PR tree-optimization/92645
241 * tree-inline.c (remap_gimple_stmt): When the return value
242 is not wanted, elide GIMPLE_RETURN.
243
244 2019-11-28 Richard Biener <rguenther@suse.de>
245
246 PR tree-optimization/92645
247 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
248 conversions inside a mode class. Remove restriction on
249 preserving the element size.
250 (simplify_vector_constructor): Deal with the above and for
251 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
252 and VEC_PACK_TRUNC_EXPR.
253
254 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
255
256 Must use push insn to pass varargs arguments of DFmode because
257 otherwise the middle-end generates wrong code.
258
259 PR target/92055
260 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
261
262 2019-11-28 Jakub Jelinek <jakub@redhat.com>
263
264 PR tree-optimization/92691
265 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
266 in function comment.
267 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
268 calls, return !handle_printf_call rather than always returning true.
269 (check_and_optimize_stmt): Describe return value meaning in function
270 comment. Formatting fix.
271
272 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
273
274 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
275 combination of globa0 and global counters..
276
277 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
278
279 PR target/92566
280 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
281 by VECTOR_UNIT_NONE_P instead.
282
283 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
284
285 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
286 Refine VF to VF_AVX512VL.
287
288 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
289
290 * config/rs6000/rs6000.md (movsi_internal): Reformat.
291 (movdi_internal64): Reformat.
292
293 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
294
295 PR bootstrap/92661
296 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
297 builtin if we don't have an actual type.
298 (builtin_function_type): If the builtin function uses a DFP type
299 and decimal float has been disabled, then return NULL_TREE.
300
301 2019-11-27 Jakub Jelinek <jakub@redhat.com>
302
303 PR rtl-optimization/92510
304 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
305 of comparison into a comparison with different mode if both imode and
306 omode are scalar integral modes.
307
308 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
309
310 PR rtl-optimization/90007
311 * recog.c (constrain_operands): Permit hard registers too for
312 memory when LRA is used.
313
314 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
315
316 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
317 between Coldfire and regular m68k.
318 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
319
320 2019-11-27 Richard Biener <rguenther@suse.de>
321
322 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
323 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
324 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
325 * optabs-tree.c (supportable_convert_operation): Do not call
326 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
327 * optabs-tree.h (supportable_convert_operation): Adjust.
328 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
329 * doc/tm.texi: Regenerate.
330 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
331 * tree-vect-generic.c (expand_vector_conversion): Likewise.
332 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
333 unused decl parameter and adjust.
334 (vect_create_vectorized_promotion_stmts): Likewise.
335 (vectorizable_conversion): Adjust.
336
337 2019-11-27 Richard Biener <rguenther@suse.de>
338
339 PR tree-optimization/92690
340 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
341 converting elements not originally converted.
342
343 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
344
345 PR middle-end/92463
346 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
347 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
348 mpfr_rnd_t instead of mp_rnd_t.
349 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
350 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
351 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
352 Use mpfr_exp_t instead of mp_exp_t.
353 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
354 MPFR_RNDx instead of GMP_RNDx.
355 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
356 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
357 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
358 of mp_rnd_t and remove MPFR_RNDx poisoning.
359 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
360
361 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
362
363 PR tree-optimization/91790
364 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
365 DR for vect_setup_realignment when first_stmt_info is different
366 from first_stmt_info_for_drptr.
367
368 2019-11-27 Richard Biener <rguenther@suse.de>
369
370 PR tree-optimization/92645
371 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
372 CTORs with just a subset of the original vectors.
373
374 2019-11-27 Richard Biener <rguenther@suse.de>
375
376 PR middle-end/92674
377 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
378 edges and instead record blocks in bitmap.
379 (gimple_expand_calls_inline): Adjust.
380 (fold_marked_statements): Delay EH cleanup until all folding is
381 done.
382 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
383 inlining finished.
384
385 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
386
387 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
388 LRA is enabled.
389 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
390 disabled.
391
392 2019-11-27 Jakub Jelinek <jakub@redhat.com>
393
394 PR debug/92664
395 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
396
397 2019-11-26 Martin Sebor <msebor@redhat.com>
398
399 PR tree-optimization/92683
400 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
401 inadvertently removed in a previous change. Rename local variable
402 for clarity.
403
404 2019-11-26 Richard Biener <rguenther@suse.de>
405
406 PR middle-end/92669
407 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
408 NULL pre_order.
409
410 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
411
412 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
413
414 2019-11-26 Jakub Jelinek <jakub@redhat.com>
415
416 PR tree-optimization/92644
417 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
418 next to INTEGER_CST checks.
419
420 2019-11-26 Richard Biener <rguenther@suse.de>
421
422 PR tree-optimization/92645
423 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
424 do not build the operation from scalars if the operand is.
425
426 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
427
428 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
429 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
430 definitions.
431
432 2019-11-25 Martin Liska <mliska@suse.cz>
433
434 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
435 up used dump message.
436
437 2019-11-25 Martin Liska <mliska@suse.cz>
438
439 PR bootstrap/92653
440 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
441 too strict checking assert.
442
443 2019-11-25 Joseph Myers <joseph@codesourcery.com>
444
445 PR c/91985
446 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
447 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
448 error_mark_node if corresponding global tree node is NULL.
449 * tree.c (build_common_tree_nodes): Do not initialize
450 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
451 decimal floating-point not supported.
452
453 2019-11-25 Joseph Myers <joseph@codesourcery.com>
454
455 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
456 types.
457
458 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
459
460 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
461 Replace code for non-CONST_INT constants with gcc_unreachable.
462 * config/m68k/m68k.md (cbranchdi): Don't generate individual
463 compare and test.
464 (CMPMODE): New mode_iterator.
465 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
466 cbranch<mode>4.
467 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
468 cstore<mode>4.
469 (cmp<mode>_68881): Remove 'F' constraint from first comparison
470 operand.
471 (bit test insns patterns): Use nonimmediate_operand, not
472 register_operand, for source operands that allow memory in
473 their constraints.
474 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
475 Use register_operand, not nonimmediate_operand, for the
476 destinations.
477 (DBCC): New mode_iterator.
478 (dbcc peepholes): Use it to reduce duplication.
479 (trap): Use const_true_rtx, not const1_rtx.
480 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
481 from m68k_subword_comparison_operand and changed to handle
482 SImode.
483
484 PR target/91851
485 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
486 declaration.
487 (m68k_init_cc): New declaration.
488 (m68k_output_compare_di, m68k_output_compare_si)
489 (m68k_output_compare_hi, m68k_output_compare_qi)
490 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
491 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
492 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
493 m68k_output_branch_float, m68k_output_branch_float_rev):
494 Likewise.
495 (valid_dbcc_comparison_p_2, flags_in_68881)
496 (output_btst): Remove declaration.
497 * config/m68k/m68k.c (INCLDUE_STRING): Define.
498 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
499 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
500 (flags_compare_op0, flags_compare_op1, flags_operand1,
501 flags_operand2, flags_valid): New static variables.
502 (m68k_find_flags_value, m68k_init_cc): New functions.
503 (handle_flags_for_move, m68k_asm_final_postscan_insn,
504 remember_compare_flags): New static functions.
505 (output_dbcc_and_branch): New argument CODE. Use it, and add
506 PLUS and MINUS to the possible codes. All callers changed.
507 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
508 and INSN arguments, add CODE arg. Return the comparison code
509 to use. All callers changed. Use CODE instead of
510 next_insn_tests_no_inequality, and replace cc_status management
511 with changing the return code.
512 (m68k_rtx_costs): Instead of testing for COMPARE, test for
513 RTX_COMPARE or RTX_COMM_COMPARE.
514 (output_move_simode, output_move_qimode): Call
515 handle_flags_for_move.
516 (notice_update_cc): Delete function.
517 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
518 m68k_output_compare_hi, m68k_output_compare_qi,
519 m68k_output_compare_fp, m68k_output_branch_integer,
520 m68k_output_branch_integer_rev, m68k_output_scc,
521 m68k_output_branch_float, m68k_output_branch_float_rev,
522 m68k_output_scc_float): New functions.
523 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
524 once at the start, and set flags_valid and flags_operand1 if the
525 flags are usable.
526 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
527 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
528 definitions.
529 (CC_STATUS_INIT): Define.
530 * config/m68k/m68k.md (flags_valid): New define_attr.
531 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
532 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
533 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
534 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
535 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
536 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
537 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
538 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
539 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
540 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
541 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
542 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
543 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
544 ctrapqi4, conditional_trap): Delete patterns.
545 (cbranchdi4_insn): New pattern.
546 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
547 test high part only. When testing EQ or NE, generate beq0_di
548 and bne0_di patterns directly.
549 (cstoredi4): When testing LT or GE, test high part only.
550 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
551 patterns.
552 (scc0_constraints, cmp1_constraints, cmp2_constraints,
553 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
554 cmp2_cf_predicate): New define_mode_attrs.
555 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
556 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
557 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
558 New patterns.
559 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
560 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
561 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
562 New patterns.
563 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
564 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
565 Likewise.
566 (BTST): New define_mode_iterator.
567 (btst_predicate, btst_constraint, btst_range): New
568 define_mode_attrs.
569 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
570 patterns.
571 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
572 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
573 patterns): Set attr "flags_valid".
574 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
575 management. Set attr "flags_valid".
576 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
577 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
578 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
579 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
580 manual CC_STATUS management.
581 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
582 unnamed strict_lowpart subhi and subqi patterns): Set attr
583 "flags_valid".
584 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
585 Remove code to operate on address regs and assert the case
586 does not occur.
587 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
588 manual CC_STATUS_INIT.
589 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
590 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
591 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
592 one_cmplqi2, unnamed strict_lowpart patterns
593 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
594 one_cmplhi and one_cmplqi): Set attr "flags_valid".
595 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
596 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
597 CC_STATUS_INIT.
598 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
599 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
600 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
601 unnamed strict_low_part patterns for HI and
602 QI versions): Set attr "flags_valid".
603 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
604 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
605 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
606 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
607 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
608 (various unnamed peepholes): Adjust compare/branch sequences
609 for new cbranch patterns.
610 (dbcc peepholes): Likewise, and output the comparison here
611 as well.
612 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
613 (fp_src_operand): Allow constant zero.
614 (address_reg_operand): New predicate.
615
616 * rtl.h (inequality_comparisons_p): Remove declaration.
617 * recog.h (next_insn_tests_no_inequality): Likewise.
618 * rtlanal.c (inequality_comparisons_p): Delete function.
619 * recog.c (next_insn_tests_no_inequality): Likewise.
620
621 2019-11-25 Richard Biener <rguenther@suse.de>
622
623 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
624 (vect_detect_hybrid_slp): Swap lane and instance iteration,
625 properly re-building the visited hash-map for each lane.
626
627 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
628
629 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
630 gcn_md_reorg): Remove unused variables.
631 (gcn_emutls_var_init): Add missing (but unreachable) return
632 to silence warning.
633 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
634 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
635 an uninitialized variable.
636
637 2019-11-25 Martin Jambor <mjambor@suse.cz>
638
639 PR ipa/92109
640 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
641 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
642 (cgraph_materialize_clone): Move removel from clone tree to the
643 the new method and use it instead.
644 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
645 bodies of clones, also remove it from the clone tree.
646
647 2019-11-25 Martin Jambor <mjambor@suse.cz>
648
649 PR ipa/91956
650 * ipa-sra.c (process_isra_node_results): Put the new node to the
651 same comdat group as the original node.
652
653 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
654
655 Build double32 / long-double32 multilibs if needed.
656
657 PR target/92055
658 * config/avr/t-avr:
659 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
660 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
661 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
662 tm_defines and pass to genmultilib.awk.
663 * config/avr/genmultilib.awk: Use these variables to add double32
664 and / or long-double32 multilib(s) as needed.
665 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
666
667 2019-11-25 Richard Biener <rguenther@suse.de>
668
669 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
670 loop body, defaulted to NULL.
671 (single_likely_exit): Add exit vector argument
672 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
673 (number_of_iterations_exit): Likewise.
674 (number_of_iterations_exit_assumptions): Likewise.
675 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
676 if not NULL.
677 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
678 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
679 Compute exit vector around call to single_likely_exit.
680 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
681 loop body to loop_only_exit_p.
682 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
683 caller.
684 (number_of_iterations_exit_assumptions): Get loop body from caller
685 if not NULL.
686 (number_of_iterations_exit): Pass through new loop body arg.
687 (infer_loop_bounds_from_undefined): Get loop body from caller.
688 (estimate_numbers_of_iterations): Compute loop body once.
689
690 2019-11-25 Richard Biener <rguenther@suse.de>
691
692 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
693 auto_bb_flag instead of an sbitmap for visited handling.
694
695 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
696
697 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
698 iterator.
699 (vector_fp_comparison_complex): Likewise.
700 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
701 define_and_split.
702 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
703 Likewise.
704 (vector_lt<mode> for VEC_F): Refactor with
705 vector_fp_comparison_simple.
706 (vector_le<mode> for VEC_F): Likewise.
707 (vector_unge<mode> for VEC_F): Likewise.
708 (vector_unle<mode> for VEC_F): Likewise.
709 (vector_ne<mode> for VEC_F): Likewise.
710 (vector_ungt<mode> for VEC_F): Likewise.
711 (vector_unlt<mode> for VEC_F): Likewise.
712 (vector_ltgt<mode> for VEC_F): Refactor with
713 vector_fp_comparison_complex.
714 (vector_ordered<mode> for VEC_F): Likewise.
715 (vector_uneq<mode> for VEC_F): Likewise.
716 (vector_unordered<mode> for VEC_F): Likewise.
717
718 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
719
720 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
721 COMPARE, representing an overflow detection.
722
723 * combine.c (combine_instructions): Record costs for jumps.
724
725 * combine.c (can_combine_p): Allow autoinc in jumps.
726
727 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
728
729 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
730 * doc/invoke.texi (max-inline-insns-single-O2,
731 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
732 early-inlining-insns-O2): Remove documentation.
733 * ipa-fnsummary.c (analyze_function_body,
734 compute_fn_summary): Use opt_for_fn when accessing parameters.
735 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
736 inline_insns_auto, can_inline_edge_by_limits_p,
737 want_early_inline_function_p, big_speedup_p,
738 want_inline_small_function_p, want_inline_self_recursive_call_p,
739 recursive_inlining, compute_max_insns, inline_small_functions):
740 Likewise.
741 * opts.c (default_options): Add -O3 defaults for
742 OPT__param_early_inlining_insns_,
743 OPT__param_inline_heuristics_hint_percent_,
744 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
745 * params.opt (-param=early-inlining-insns-O2=,
746 -param=inline-heuristics-hint-percent-O2=,
747 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
748 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
749 -param=inline-min-speedup=, -param=inline-unit-growth=,
750 -param=large-function-growth=, -param=large-stack-frame=,
751 -param=large-stack-frame-growth=, -param=large-unit-insns=,
752 -param=max-inline-insns-recursive=,
753 -param=max-inline-insns-recursive-auto=,
754 -param=max-inline-insns-single=,
755 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
756 -param=max-inline-recursive-depth=,
757 -param=max-inline-recursive-depth-auto=,
758 -param=min-inline-recursive-probability=,
759 -param=partial-inlining-entry-probability=,
760 -param=uninlined-function-insns=, -param=uninlined-function-time=,
761 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
762 Optimization.
763
764 2019-11-23 Jakub Jelinek <jakub@redhat.com>
765
766 * ipa-fnsummary.c: Fix comment typos.
767 * ipa-ref.h: Likewise.
768 * ipa-predicate.h: Likewise.
769 * ipa-split.c: Likewise.
770 * ipa-inline-analysis.c: Likewise.
771 * ipa-predicate.c: Likewise.
772 * ipa-devirt.c: Likewise.
773 * ipa-icf.h: Likewise.
774 * profile-count.c: Likewise.
775 * ipa-icf.c: Likewise.
776 (sem_function::equals_wpa): Fix typos in dump messages.
777 * ipa-icf-gimple.h: Fix comment typos.
778 * ipa-inline-transform.c: Likewise.
779 * ipa-polymorphic-call.c: Likewise.
780 * ipa-fnsummary.h: Likewise.
781 * ipa-inline.c: Likewise.
782 (dump_inline_stats): Fix typo in debug dump message.
783 * profile-count.h: Fix comment typos.
784
785 PR target/92615
786 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
787 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
788 register_operand, force x into register before storing it into dest.
789 Formatting fix.
790
791 PR middle-end/83859
792 * doc/extend.texi (attribute access): Fix a typo.
793
794 PR rtl-optimization/92610
795 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
796 cse_cfg_altered is set, even when tem is 0.
797 (rest_of_handle_cse_after_global_opts): Likewise.
798
799 2019-11-22 Jakub Jelinek <jakub@redhat.com>
800
801 PR c++/92458
802 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
803 tree_hash): Move to ...
804 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
805 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
806 types.
807 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
808
809 PR tree-optimization/92618
810 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
811 containing the auto_vec and a tree.
812 (undistribute_bitref_for_vector): Handle the case when element type
813 of vec is not the same as type of the BIT_FIELD_REF. Formatting
814 fixes.
815
816 2019-11-22 Martin Sebor <msebor@redhat.com>
817
818 PR middle-end/83859
819 * attribs.h (struct attr_access): New.
820 * attribs.c (decl_attributes): Add an informational note.
821 * builtins.c (check_access): Make extern. Consistently set no-warning
822 after issuing a warning. Handle calls through function pointers. Set
823 no-warning.
824 * builtins.h (check_access): Declare.
825 * calls.c (rdwr_access_hash): New type.
826 (rdwr_map): Same.
827 (init_attr_rdwr_indices): New function.
828 (maybe_warn_rdwr_sizes): Same.
829 (initialize_argument_information): Call init_attr_rdwr_indices.
830 Call maybe_warn_rdwr_sizes.
831 (get_size_range): Avoid null argument.
832 * doc/extend.texi (attribute access): Document new attribute.
833
834 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
835
836 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
837 (ACC_LDS_SIZE): Define.
838 (OTHER_LDS_SIZE): Define.
839 (LDS_SIZE): Redefine using above.
840 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
841
842 2019-11-22 Martin Sebor <msebor@redhat.com>
843
844 PR middle-end/88226
845 * builtins.c (check_nul_terminated_array): New function.
846 (fold_builtin_0): Remove declaration.
847 (fold_builtin_1): Same.
848 (fold_builtin_2): Same.
849 (fold_builtin_3): Same.
850 (fold_builtin_strpbrk): Add argument.
851 (fold_builtin_strspn): Same.
852 (fold_builtin_strcspn): Same.
853 (expand_builtin_strcat): Call it. Remove unused argument.
854 (expand_builtin_stpncpy): Same.
855 (expand_builtin_strncat): Same.
856 (expand_builtin_strncpy): Same. Adjust indentation.
857 (expand_builtin_strcmp): Same.
858 (expand_builtin_strncmp): Same.
859 (expand_builtin_fork_or_exec): Same.
860 (expand_builtin): Handle more built-ins.
861 (fold_builtin_2): Add argument.
862 (fold_builtin_n): Make static. Add argument.
863 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
864 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
865 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
866 (fold_call_stmt): Pass new argument to fold_builtin_n.
867 * builtins.h: Correct a comment.
868 * gimple-fold.c (gimple_fold_builtin_strchr): Call
869 check_nul_terminated_array.
870 * tree-ssa-strlen.c (handle_builtin_strlen): Call
871 check_nul_terminated_array.
872 (handle_builtin_strchr): Same.
873 (handle_builtin_string_cmp): Same.
874
875 2019-11-22 Martin Sebor <msebor@redhat.com>
876
877 PR tree-optimization/92501
878 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
879 handle unterminated arrays. Rename local variables for clarity.
880
881 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
882
883 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
884 granulated_sgprs according to architecture.
885
886 2019-11-22 Jan Hubicka <jh@suse.cz>
887
888 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
889 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
890 (memory_block_pool::reduce_free_list): ... this one.
891 (memory_block_pool::trim): New static function.
892 * memory-block.h (memory_block_pool::freelist_size): New constant
893 (memory_block_pool::clear_free_list): Rename to ...
894 (memory_block_pool::reduce_free_list): ... this one.
895 (memory_block_pool::trim): Declare.
896
897 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
898
899 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
900 vect_cost_for_stmt.
901 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
902 here rather than...
903 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
904
905 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
906
907 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
908 (bic_cmp0_noout): New pattern.
909 (bic_cmp0): Likewise.
910 (neg_scc_insn): Remove pattern.
911 (not_scc_insn): Likewise.
912
913 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
914
915 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
916
917 2019-11-21 Joseph Myers <joseph@codesourcery.com>
918
919 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
920 pedwarn instead of warning_at for fallthrough not preceding a case
921 or default label.
922
923 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
924
925 PR tree-optimization/92608
926 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
927 of dyn_cast.
928
929 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
930
931 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
932 New predicate.
933 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
934 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
935 special for FP comparisons that need a cror instruction eventually.
936 (rs6000_emit_fp_cror): New function.
937 (rs6000_emit_sCOND): Expand all floating point comparisons to one
938 instruction, for normal FP modes, with HONOR_NANS.
939 (rs6000_emit_cbranch): Reformat.
940 * config/rs6000/rs6000.md (fp_rev): New iterator.
941 (fp_two): New iterator.
942 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
943 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
944 *cbranch_2insn: New define_insn_and_split.
945
946 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
947
948 PR tree-optimization/92526
949 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
950 versioning for alignment if the accesses do not have a consistent
951 mask, rather than asserting that the masks are consistent.
952
953 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
954
955 PR tree-optimization/92595
956 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
957 check.
958 (vectorizable_store, vectorizable_load): Likewise.
959
960 2019-11-21 Jan Hubicka <jh@suse.cz>
961
962 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
963 (resolve_noninline_speculation, inline_small_functions): Avoid
964 redundant updates.
965
966 2019-11-21 Richard Biener <rguenther@suse.de>
967
968 * lra.c (lra_insn_recog_data_pool): New.
969 (free_insn_recog_data): Adjust.
970 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
971 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
972
973 2019-11-21 Richard Biener <rguenther@suse.de>
974
975 PR tree-optimization/92596
976 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
977
978 2019-11-21 Jan Hubicka <jh@suse.cz>
979
980 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
981 ready for some vectors to not be allocated.
982 (evaluate_properties_for_edge): Document better; make
983 known_vals and known_aggs caller allocated; avoid determining
984 values of parameters which are not used.
985 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
986 known_aggs.
987 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
988 (do_estimate_edge_size): Likewise.
989 (do_estimate_edge_hints): Likewise.
990 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
991 values are not known.
992 (ipa_release_agg_values): Add option to not release vector itself.
993 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
994
995 2019-11-21 Richard Biener <rguenther@suse.de>
996
997 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
998 (loop_iterator::to_visit): Use an auto_vec with internal storage.
999 (loop_iterator::loop_iterator): Adjust.
1000 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1001 (compute_dominance_frontiers): ... this. Hoist invariant
1002 get_immediate_dominator call.
1003 (compute_idf): Use a work-set instead of a work-list for more
1004 optimal iteration order and duplicate avoidance.
1005 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1006 the vector all the time, instead pre-allocate the vector only
1007 once.
1008 (delete_update_ssa): Simplify.
1009 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1010
1011 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1012
1013 PR tree-optimization/91355
1014 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1015 for early_bb scaled count with best_bb count comparison.
1016
1017 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1018 preffer -> prefer.
1019 * ipa-inline.c (edge_badness): Likewise.
1020 * lto-streamer.h (class lto_location_cache): Likewise.
1021 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1022 gratutious -> gratuitous.
1023
1024 2019-11-21 Richard Biener <rguenther@suse.de>
1025
1026 Revert
1027 2019-09-17 Richard Biener <rguenther@suse.de>
1028
1029 PR tree-optimization/91790
1030 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1031 use the correct DR for setting up realignment.
1032
1033 2019-11-21 Richard Biener <rguenther@suse.de>
1034
1035 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1036 (equiv_class_obstack): New.
1037 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1038 (perform_var_substitution): Initialize equiv_class_obstack.
1039 (free_var_substitution_info): Free equiv_class_obstack.
1040
1041 2019-11-20 Jan Hubicka <jh@suse.cz>
1042
1043 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1044 edge growth when callee function is very large.
1045 * ipa-inline.h (estimate_min_edge_growth): New.
1046
1047 2019-11-20 Jan Hubicka <jh@suse.cz>
1048
1049 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1050 negative time in calls summary; correct roundoff errors
1051 leading to negative times.
1052 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1053 if present.
1054 (ipa_update_overall_fn_summary): Add RESET parameter.
1055 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1056 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1057
1058 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1059
1060 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1061 def types for two-operation SLP.
1062
1063 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1064
1065 PR testsuite/92366
1066 * doc/sourcebuild.texi (vect_char_add): Document.
1067
1068 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1069
1070 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1071 * function.c (record_final_call): Record even calls that might
1072 have been in the cgraph.
1073 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1074 callees.
1075
1076 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1077
1078 * configure.ac: Use https for gcc.gnu.org
1079 * configure: Regenerated.
1080 * doc/install.texi: Use https for gcc.gnu.org.
1081 * doc/sourcebuild.texi: Likewise.
1082
1083 2019-11-20 Julian Brown <julian@codesourcery.com>
1084
1085 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1086
1087 2019-11-20 Jan Hubicka <jh@suse.cz>
1088
1089 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1090 parameter and update call_size_time_table.
1091 (ipa_fn_summary::max_size_time_table_size): New constant.
1092 (estimate_calls_size_and_time_1): Break out from ...
1093 (estimate_calls_size_and_time): ... here; implement summary production.
1094 (summarize_calls_size_and_time): New function.
1095 (ipa_call_context::estimate_size_and_time): Bypass
1096 estimate_calls_size_and_time for leaf functions.
1097 (ipa_update_overall_fn_summary): Likewise.
1098 * ipa-fnsummary.h (call_size_time_table): New.
1099 (ipa_fn_summary::account_size_time): Update prototype.
1100
1101 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1102
1103 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1104
1105 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1106
1107 PR85678
1108 * common.opt (fcommon): Change init to 1.
1109 * doc/invoke.texi (-fcommon): Update documentation.
1110
1111 2019-11-20 Jan Hubicka <jh@suse.cz>
1112
1113 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1114 to ordinary array.
1115
1116 2019-11-20 Jan Hubicka <jh@suse.cz>
1117
1118 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1119 Add allocator parameter.
1120 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1121 (fibonacci_heap<K,V>::m_allocator): New.
1122 (fibonacci_heap<K,V>::m_own_allocator): New.
1123 (fibonacci_heap<K,V>::insert): Use allocator.
1124 (fibonacci_heap<K,V>::extract_min): Likewise.
1125 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1126 allocator.
1127 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1128 on stack.
1129 * fibonacci_heap.c: Include alloc-pool
1130 (test_empty_heap): Initialize allocator.
1131 (test_union): Likewise.
1132 * bb-reorder.c: Include alloc-pool.h.
1133 * tracer.c: Inlclude alloc-pool.h.
1134
1135 2019-11-20 Jan Hubicka <jh@suse.cz>
1136
1137 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1138 Preallocate for 32 entries.
1139 (DFS::worklist): Likewise.
1140 (DFS::DFS): Do not initialize sccstack and worklist.
1141 (DFS::~DFS): Do not release sccstack.
1142
1143 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1144
1145 PR target/92573
1146 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1147 Handle UNORDERED if !HONOR_NANS.
1148
1149 2019-11-20 Jan Hubicka <jh@suse.cz>
1150
1151 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1152 (edge_badness): ... here.
1153 (inline_small_functions): Use monotonicity of badness calculation
1154 to avoid redundant updates.
1155
1156 2019-11-20 Richard Biener <rguenther@suse.de>
1157
1158 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1159 constructors we are actually analyzing.
1160 (vect_slp_check_for_constructors): Do not vectorize uniform
1161 constuctors, do not dump here.
1162
1163 2019-11-20 Richard Biener <rguenther@suse.de>
1164
1165 PR tree-optimization/92537
1166 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1167 vectorization validity check...
1168 (vect_slp_analyze_operations): ... here.
1169
1170 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1171
1172 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1173 (make_pass_arc_predicate_delay_insns): Likewise.
1174 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1175 method, remove clone.
1176 (class pass_arc_predicate_delay_insns): Likewise.
1177 (arc_init): Remove registering of ARC specific passes.
1178 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1179 * config/arc/arc-passes.def: New file.
1180
1181 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1182
1183 PR middle-end/90840
1184 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1185 and has a mode that doesn't have corresponding integral type.
1186
1187 PR target/90867
1188 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1189 clear opts->x_ix86_isa_flags{,2} here...
1190 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1191 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1192
1193 PR c/90898
1194 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1195 assertion.
1196 (insert_clobbers_for_var): Fix a typo in function comment.
1197
1198 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1199 Jakub Jelinek <jakub@redhat.com>
1200
1201 PR middle-end/91195
1202 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1203 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1204 load.
1205
1206 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1207
1208 Make 0-series device specs work with older versions of avr-gcc.
1209
1210 PR target/92545
1211 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1212 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1213 <*link_pm_base_address>: Don't write spec.
1214 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1215
1216 2019-11-20 Richard Biener <rguenther@suse.de>
1217
1218 PR c/92088
1219 * builtins.c (compute_objsize): Deal with VLAs.
1220
1221 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1222
1223 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1224 from common code.
1225 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1226 call new function.
1227 (power9_sched_reorder2): Call new function.
1228 (rs6000_sched_reorder2): Likewise.
1229
1230 2019-11-18 Jan Hubicka <jh@suse.cz>
1231
1232 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1233 (estimate_calls_size_and_time): Update.
1234
1235 2019-11-18 Jan Hubicka <jh@suse.cz>
1236
1237 * ipa-inline.c (inlining_speedup): New function.
1238 (edge_badness): Use it.
1239
1240 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1241 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1242
1243 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1244 Mark as not having "likely" version.
1245 * config/mips/mips.md (insn_count): The simd_div instruction with
1246 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1247 (can_delay): Exclude simd_branch.
1248 (defile_delay *): Add simd_branch instructions.
1249 They have one regular delay slot.
1250
1251 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1252
1253 Revert:
1254 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1255
1256 * cse.c (cse_insn): Delete no-op register moves too.
1257 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1258 Take a second comparison to control the value for NE.
1259 (mask_to_comparison): Handle unsigned comparisons.
1260 (simplify_logical_relational_operation): Likewise. Update call
1261 to comparison_to_mask. Handle AND if !HONOR_NANs.
1262 (simplify_binary_operation_1): Call the above for AND too.
1263
1264 2019-11-19 Martin Liska <mliska@suse.cz>
1265
1266 * toplev.c (general_init): Move the call...
1267 (toplev::main): ... here as we need init_options_struct
1268 being called.
1269
1270 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1271
1272 PR target/79262
1273 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1274 vec_to_scalar_cost.
1275
1276 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1277
1278 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1279 (armv7-a): Likewise.
1280 (armv7ve): Likewise.
1281
1282 2019-11-19 Richard Biener <rguenther@suse.de>
1283
1284 PR tree-optimization/92581
1285 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1286 condition reduction chains gather all conditions involved
1287 for computing the index reduction vector.
1288
1289 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1290
1291 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1292 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1293 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1294 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1295 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1296 (aarch64_init_memtag_builtins): New.
1297 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1298 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1299 (aarch64_expand_builtin_memtag): New.
1300 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1301 (AARCH64_BUILTIN_SUBCODE): New macro.
1302 (aarch64_resolve_overloaded_memtag): New.
1303 (aarch64_resolve_overloaded_builtin_general): New. Call
1304 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1305 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1306 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1307 (aarch64_resolve_overloaded_builtin): Call
1308 aarch64_resolve_overloaded_builtin_general.
1309 * config/aarch64/aarch64-protos.h
1310 (aarch64_resolve_overloaded_builtin_general): New declaration.
1311 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1312 (TARGET_MEMTAG): Likewise.
1313 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1314 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1315 (irg, gmi, subp, addg, ldg, stg): New instructions.
1316 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1317 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1318 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1319 (__arm_mte_get_tag): Likewise.
1320 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1321 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1322 * config/arm/types.md (memtag): New.
1323 * doc/invoke.texi (-memtag): Update description.
1324
1325 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1326
1327 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1328 to define __GCC_ASM_FLAG_OUTPUTS__.
1329 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1330 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1331 depending on TARGET_THUMB1.
1332 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1333
1334 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1335
1336 PR target/92549
1337 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1338
1339 PR middle-end/91450
1340 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1341 operand is negative and one non-negative, compare the non-negative
1342 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1343 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1344 and s2 == 0, unless one of them is known to be negative. Remove
1345 tem2 variable, use tem where tem2 has been used before.
1346
1347 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1348
1349 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1350
1351 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1352
1353 PR tree-optimization/92557
1354 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1355 vmode rather than asserting it always is.
1356
1357 2019-11-19 Richard Biener <rguenther@suse.de>
1358
1359 PR tree-optimization/92554
1360 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1361 for the actual condition stmt and deal with sign-changes.
1362
1363 2019-11-19 Richard Biener <rguenther@suse.de>
1364
1365 PR tree-optimization/92555
1366 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1367 for non-SLP stmts.
1368
1369 2019-11-19 Martin Liska <mliska@suse.cz>
1370
1371 PR bootstrap/92540
1372 * config/riscv/riscv.c (riscv_address_insns): Initialize
1373 addr in order to remove boostrap -Wmaybe-uninitialized
1374 error.
1375
1376 2019-11-18 Martin Sebor <msebor@redhat.com>
1377
1378 PR tree-optimization/92493
1379 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1380 assignment.
1381
1382 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1383
1384 * cfgloop.c (get_loop_body_in_custom_order): New.
1385 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1386 * tree-loop-distribution.c (class loop_distribution): New.
1387 (bb_top_order_cmp): Remove.
1388 (bb_top_order_cmp_r): New.
1389 (create_rdg_vertices): Move into class loop_distribution.
1390 (stmts_from_loop): Same as above.
1391 (update_for_merge): Same as above.
1392 (partition_merge_into): Same as above.
1393 (get_data_dependence): Same as above.
1394 (data_dep_in_cycle_p): Same as above.
1395 (update_type_for_merge): Same as above.
1396 (build_rdg_partition_for-vertex): Same as above.
1397 (classify_builtin_ldst): Same as above.
1398 (classify_partition): Same as above.
1399 (share_memory_accesses): Same as above.
1400 (rdg_build_partitions): Same as above.
1401 (pg_add_dependence_edges): Same as above.
1402 (build_partition_graph): Same as above.
1403 (merge_dep_scc_partitions): Same as above.
1404 (break_alias_scc_partitions): Same as above.
1405 (finalize_partitions): Same as above.
1406 (distribute_loop): Same as above.
1407 (bb_top_order_init): New method
1408 (bb_top_order_destroy): New method.
1409 (get_bb_top_order_index_size): New method.
1410 (get_bb_top_order_index_index): New method.
1411 (get_bb_top_order_index_index): New method.
1412 (loop_distribution::execute): New method.
1413 (pass_loop_distribution::execute): Instantiate loop_distribution.
1414
1415 2019-11-18 Jan Hubicka <jh@suse.cz>
1416
1417 PR ipa/92508
1418 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1419 caches.
1420 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1421
1422 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1423
1424 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1425 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1426 * doc/md.texi: Document them.
1427 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1428 internal functions.
1429 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1430 * internal-fn.c (check_ptrs_direct): New macro.
1431 (expand_check_ptrs_optab_fn): Likewise.
1432 (direct_check_ptrs_optab_supported_p): Likewise.
1433 (internal_check_ptrs_fn_supported_p): New fuction.
1434 * tree-data-ref.c: Include internal-fn.h.
1435 (create_ifn_alias_checks): New function.
1436 (create_intersect_range_checks): Use it.
1437 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1438 (optab, cmp_op): Handle it.
1439 (raw_war, unspec): New int attributes.
1440 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1441 constants.
1442 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1443 New predicate.
1444 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1445 expander.
1446 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1447 pattern.
1448
1449 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1450
1451 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1452 empty constructors.
1453
1454 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1455
1456 * cse.c (cse_insn): Delete no-op register moves too.
1457 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1458 Take a second comparison to control the value for NE.
1459 (mask_to_comparison): Handle unsigned comparisons.
1460 (simplify_logical_relational_operation): Likewise. Update call
1461 to comparison_to_mask. Handle AND if !HONOR_NANs.
1462 (simplify_binary_operation_1): Call the above for AND too.
1463
1464 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1465
1466 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1467 splitting the main code out into...
1468 (native_encode_vector_part): ...this new function.
1469 (native_decode_vector_tree): New function.
1470 (fold_view_convert_vector_encoding): Likewise.
1471 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1472 to VECTOR_TYPEs.
1473
1474 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1475
1476 * tree-data-ref.c (create_intersect_range_checks_index): If the
1477 alias pair describes simple WAW and WAR dependencies, just check
1478 whether the first B access overlaps later A accesses.
1479 (create_waw_or_war_checks): New function that performs the same
1480 optimization on addresses.
1481 (create_intersect_range_checks): Call it.
1482
1483 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1484
1485 * lra-constraints.c (valid_address_p): Take the operand and a
1486 constraint as argument. If the operand is a MEM and the constraint
1487 is a memory constraint, check whether the eliminated form of the
1488 MEM already satisfies the constraint.
1489 (process_address_1): Update calls accordingly.
1490
1491 2019-11-18 Tom Tromey <tromey@adacore.com>
1492
1493 * doc/tm.texi: Rebuild.
1494 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1495 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1496
1497 2019-11-18 Richard Biener <rguenther@suse.de>
1498
1499 PR tree-optimization/92516
1500 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1501 argument, hoist bst_map creation/destruction to ...
1502 (vect_analyze_slp): ... here, forming a true graph with
1503 SLP instances being the entries.
1504 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1505 (vect_detect_hybrid_slp): Use one visited set for all
1506 graph entries.
1507 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1508 to hash-sets of slp_tree.
1509 (vect_slp_analyze_operations): Likewise.
1510 (vect_bb_slp_scalar_cost): Remove wrapper.
1511 (vect_bb_vectorization_profitable_p): Use one visited set for
1512 all graph entries.
1513 (vect_schedule_slp_instance): Elide bst_map use.
1514 (vect_schedule_slp): Likewise.
1515
1516 2019-11-18 Richard Biener <rguenther@suse.de>
1517
1518 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1519 was vectorized with just external refs fail.
1520
1521 2019-11-18 Martin Liska <mliska@suse.cz>
1522
1523 PR ipa/92525
1524 * ipa-icf.c (sem_function::init): Unset m_checker
1525 at the end of the function.
1526
1527 2019-11-18 Richard Biener <rguenther@suse.de>
1528
1529 PR tree-optimization/92558
1530 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1531 reducting the width of a reduction vector def update new_phis.
1532
1533 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1534
1535 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1536 and s390*-*-linux-musl* targets.
1537 * configure: Regenerate.
1538
1539 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1540
1541 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1542 (MUSL_DYNAMIC_LINKER64): Define.
1543
1544 2019-11-18 Martin Liska <mliska@suse.cz>
1545
1546 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1547 message for an unknown counter.
1548 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1549 (dbg_cnt_process_opt): Remove unreachable code.
1550
1551 2019-11-18 Martin Liska <mliska@suse.cz>
1552
1553 PR ipa/92529
1554 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1555 Compare LHS types of NOP_EXPR.
1556
1557 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1558
1559 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1560 "initial_pass_name" argument -- by running "*clean_state" pass.
1561 Also free the "initial_pass_name" when done.
1562
1563 2019-11-18 Richard Biener <rguenther@suse.de>
1564
1565 PR rtl-optimization/92462
1566 * alias.c (find_base_term): Restrict the look through ANDs.
1567 (find_base_value): Likewise.
1568
1569 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1570
1571 Add support for AVR devices from the 0-series.
1572
1573 PR target/92545
1574 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1575 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1576 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1577 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1578 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1579 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1580 for spec definitions.
1581 * doc/avr-mmcu.texi: Regenerate.
1582
1583 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1584
1585 PR target/92448
1586 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1587 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1588 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1589 (ix86_reassociation_width): Ditto.
1590 * config/i386/i386-options.c (ix86_option_override_internal):
1591 Replace TARGET_AVX128_OPTIAML with
1592 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1593 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1594 (TARGET_AVX128_OPTIMAL): Deleted.
1595 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1596 DEF_TUNE.
1597
1598 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1599
1600 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1601 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1602 just SI.
1603 (cceq_rev_compare): Rename to...
1604 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1605 just SI.
1606 (define_split for <bd>tf_<mode>): Add SImode first argument to
1607 gen_cceq_ior_compare.
1608
1609 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1610
1611 * common/config/powerpcspe: Delete.
1612
1613 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1614
1615 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1616 output in UNSPEC_WRFFR.
1617
1618 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1619
1620 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1621 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1622
1623 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1624
1625 * tree-data-ref.c (create_intersect_range_checks_index)
1626 (create_intersect_range_checks): Print dump messages.
1627
1628 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1629
1630 * tree-data-ref.c (dump_alias_pair): New function.
1631 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1632
1633 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1634
1635 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1636 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1637 merging data references with different steps.
1638 (create_intersect_range_checks_index): Take a
1639 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1640 Bail out if DR_ALIAS_MIXED_STEPS is set.
1641 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1642 instead of two dr_with_seg_lens. Update call to
1643 create_intersect_range_checks_index.
1644 (create_runtime_alias_checks): Update call accordingly.
1645
1646 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1647
1648 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1649 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1650 (dr_with_seg_len_pair_t::sequencing): New enum.
1651 (dr_with_seg_len_pair_t::flags): New member variable.
1652 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1653 parameter and initialize the flags member variable.
1654 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1655 call accordingly.
1656 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1657 Ensure the two data references in an alias pair are in statement
1658 order, if there is a defined order.
1659 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1660 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1661 swapped the references in a dr_with_seg_len_pair_t. OR together
1662 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1663 try to restore the original dr_with_seg_len order, updating the
1664 flags if that fails.
1665
1666 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1667
1668 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1669 swapping the dr_as based on init values until we've decided
1670 whether to merge them.
1671
1672 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1673
1674 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1675 two accesses in each dr_with_seg_len_pair_t before trying to
1676 combine separate dr_with_seg_len_pair_ts.
1677 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1678 that here.
1679 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1680
1681 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1682
1683 * config/aarch64/aarch64-sve.md
1684 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1685 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1686 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1687 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1688 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1689 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1690 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1691 pattern.
1692 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1693 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1694 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1695 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1696
1697 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1698
1699 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1700 (SVE_4HSI): New mode iterators.
1701 (ANY_EXTEND2): New code iterator.
1702 * config/aarch64/aarch64-sve.md
1703 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1704 Extend to...
1705 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1706 ...this, handling extension to partial modes as well as full modes.
1707 Describe the extension as a predicated rather than unpredicated
1708 extension.
1709 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1710 Likewise extend to...
1711 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1712 ...this, making the same adjustments.
1713 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1714 Likewise extend to...
1715 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1716 ...this, making the same adjustments.
1717 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1718 Likewise extend to...
1719 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1720 ...this, making the same adjustments.
1721 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1722 New pattern.
1723 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1724 extension predicate.
1725 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1726 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1727 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1728 Describe the extension as a predicated rather than unpredicated
1729 extension.
1730 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1731 Likewise. Canonicalize to a constant extension predicate.
1732 * config/aarch64/aarch64-sve-builtins-base.cc
1733 (svld1_gather_extend_impl::expand): Add an extra predicate for
1734 the extension.
1735 (svldff1_gather_extend_impl::expand): Likewise.
1736
1737 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1738
1739 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1740 iterators.
1741 * config/aarch64/aarch64-sve.md
1742 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1743 (gather_load<SVE_24:mode><v_int_container>): ...this.
1744 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1745 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1746 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1747 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1748 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1749 New pattern.
1750 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1751 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1752 Allow the nominal extension predicate to be different from the
1753 load predicate.
1754 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1755 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1756
1757 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1758
1759 * config/aarch64/aarch64-sve.md
1760 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
1761 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
1762 function.
1763 (aarch64_sve_adjust_stmt_cost): Call it.
1764
1765 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1766
1767 * config/aarch64/aarch64-sve.md
1768 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
1769 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1770 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1771 Combine into...
1772 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1773 ...this new pattern, handling extension to partial modes as well
1774 as full modes. Describe the extension as a predicated rather than
1775 unpredicated extension.
1776 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
1777 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1778 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1779 Combine into...
1780 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1781 ...this new pattern, handling extension to partial modes as well
1782 as full modes. Describe the extension as a predicated rather than
1783 unpredicated extension.
1784 * config/aarch64/aarch64-sve-builtins.cc
1785 (function_expander::use_contiguous_load_insn): Add an extra
1786 predicate for extending loads.
1787 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
1788 (aarch64_sve_adjust_stmt_cost): Likewise.
1789 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
1790 the cost of SVE vector stmts.
1791
1792 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1793
1794 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
1795 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
1796 * config/aarch64/aarch64-sve.md
1797 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
1798 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
1799 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
1800 comment. Avoid new narrower_mask ambiguity.
1801 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1802 (*cond_uxt<mode>_2): Update comment.
1803 (*cond_uxt<mode>_any): Likewise.
1804
1805 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1806
1807 * config/aarch64/aarch64-modes.def: Define partial SVE vector
1808 float modes.
1809 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
1810 function.
1811 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
1812 new vector float modes.
1813 (aarch64_sve_container_bits): New function.
1814 (aarch64_sve_pred_mode): Likewise.
1815 (aarch64_get_mask_mode): Use it.
1816 (aarch64_sve_element_int_mode): Handle structure modes and partial
1817 modes.
1818 (aarch64_sve_container_int_mode): New function.
1819 (aarch64_vectorize_related_mode): Return SVE modes when given
1820 SVE modes. Handle partial modes, taking the preferred number
1821 of units from the size of the given mode.
1822 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
1823 in registers.
1824 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
1825 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
1826 (aarch64_split_sve_subreg_move): Use the mode form of
1827 aarch64_sve_pred_mode.
1828 (aarch64_secondary_reload): Handle partial modes in the same way
1829 as full big-endian vectors.
1830 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
1831 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
1832 merging with the Advanced SIMD modes. If two modes have the
1833 same size, try the Advanced SIMD mode first.
1834 (aarch64_simd_valid_immediate): Use the container rather than
1835 the element mode for INDEX constants.
1836 (aarch64_simd_vector_alignment): Make the alignment of partial
1837 SVE vector modes the same as their minimum size.
1838 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
1839 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
1840 (mov<SVE_ALL:mode>): ...this.
1841 (movmisalign<SVE_FULL:mode>): Extend to...
1842 (movmisalign<SVE_ALL:mode>): ...this.
1843 (*aarch64_sve_mov<mode>_le): Rename to...
1844 (*aarch64_sve_mov<mode>_ldr_str): ...this.
1845 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
1846 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
1847 partial modes regardless of endianness.
1848 (aarch64_sve_reload_be): Rename to...
1849 (aarch64_sve_reload_mem): ...this and enable for little-endian.
1850 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
1851 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
1852 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
1853 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
1854 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
1855 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1856 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1857 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1858 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1859 (maskload<SVE_FULL:mode><vpred>): Extend to...
1860 (maskload<SVE_ALL:mode><vpred>): ...this.
1861 (maskstore<SVE_FULL:mode><vpred>): Extend to...
1862 (maskstore<SVE_ALL:mode><vpred>): ...this.
1863 (vec_duplicate<SVE_FULL:mode>): Extend to...
1864 (vec_duplicate<SVE_ALL:mode>): ...this.
1865 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
1866 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
1867 (sve_ld1r<SVE_FULL:mode>): Extend to...
1868 (sve_ld1r<SVE_ALL:mode>): ...this.
1869 (vec_series<SVE_FULL_I:mode>): Extend to...
1870 (vec_series<SVE_I:mode>): ...this.
1871 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
1872 (*vec_series<SVE_I:mode>_plus): ...this.
1873 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
1874 new VPRED ambiguity.
1875 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1876 (add<SVE_FULL_I:mode>3): Extend to...
1877 (add<SVE_I:mode>3): ...this.
1878 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
1879 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
1880 (VPRED, vpred): Likewise.
1881 (Vctype): New iterator.
1882 (vw): Remove SVE modes.
1883
1884 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1885
1886 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
1887 (SVE_PARTIAL_I): ...this.
1888 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1889
1890 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1891
1892 * config/aarch64/iterators.md (SVE_ALL): Rename to...
1893 (SVE_FULL): ...this.
1894 (SVE_I): Rename to...
1895 (SVE_FULL_I): ...this.
1896 (SVE_F): Rename to...
1897 (SVE_FULL_F): ...this.
1898 (SVE_BHSI): Rename to...
1899 (SVE_FULL_BHSI): ...this.
1900 (SVE_HSD): Rename to...
1901 (SVE_FULL_HSD): ...this.
1902 (SVE_HSDI): Rename to...
1903 (SVE_FULL_HSDI): ...this.
1904 (SVE_HSF): Rename to...
1905 (SVE_FULL_HSF): ...this.
1906 (SVE_SD): Rename to...
1907 (SVE_FULL_SD): ...this.
1908 (SVE_SDI): Rename to...
1909 (SVE_FULL_SDI): ...this.
1910 (SVE_SDF): Rename to...
1911 (SVE_FULL_SDF): ...this.
1912 (SVE_S): Rename to...
1913 (SVE_FULL_S): ...this.
1914 (SVE_D): Rename to...
1915 (SVE_FULL_D): ...this.
1916 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1917 * config/aarch64/aarch64-sve2.md: Likewise.
1918
1919 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1920
1921 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
1922 New option.
1923 * doc/invoke.texi: Document it.
1924 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1925 By default, return VECT_COMPARE_COSTS for SVE.
1926
1927 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1928
1929 * target.h (VECT_COMPARE_COSTS): New constant.
1930 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
1931 * doc/tm.texi: Regenerate.
1932 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
1933 * targhooks.c (default_autovectorize_vector_modes): Likewise.
1934 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1935 Likewise.
1936 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
1937 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
1938 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
1939 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
1940 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
1941 (_loop_vec_info::vec_inside_cost): New member variables.
1942 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
1943 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
1944 (vect_analyze_loop): When autovectorize_vector_modes returns
1945 VECT_COMPARE_COSTS, try vectorizing the loop with each available
1946 vector mode and picking the one with the lowest cost.
1947 (vect_estimate_min_profitable_iters): Record the computed costs
1948 in the loop_vec_info.
1949
1950 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1951
1952 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
1953 element type rather than an element mode.
1954 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1955 Use get_vectype_for_scalar_type to query the natural types
1956 for a given element type rather than basing everything on
1957 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
1958 query to MAX_FIXED_MODE_SIZE.
1959 (duplicate_and_interleave): Update call accordingly.
1960 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1961
1962 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1963
1964 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
1965 optional maximum nunits.
1966 (get_vectype_for_scalar_type): Likewise. Also declare a form that
1967 takes an slp_tree.
1968 (get_mask_type_for_scalar_type): Take an optional slp_tree.
1969 (vect_get_mask_type_for_stmt): Likewise.
1970 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
1971 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
1972 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
1973 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
1974 to get an assumed vector type for data references.
1975 * tree-vect-slp.c (vect_update_shared_vectype): New function.
1976 (vect_update_all_shared_vectypes): Likewise.
1977 (vect_build_slp_tree_1): Pass the group size to
1978 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
1979 for BB vectorization.
1980 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
1981 before building the vectof from scalars.
1982 (vect_analyze_slp_instance): Pass the group size to
1983 get_vectype_for_scalar_type.
1984 (vect_slp_analyze_node_operations_1): Don't recompute the vector
1985 types for BB vectorization here; just handle the case in which
1986 we deferred the choice for booleans.
1987 (vect_get_constant_vectors): Pass the slp_tree to
1988 get_vectype_for_scalar_type.
1989 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
1990 (vectorizable_call): Likewise.
1991 (vectorizable_simd_clone_call): Likewise.
1992 (vectorizable_conversion): Likewise.
1993 (vectorizable_shift): Likewise.
1994 (vectorizable_operation): Likewise.
1995 (vectorizable_comparison): Likewise.
1996 (vect_is_simple_cond): Take the slp_tree as argument and
1997 pass it to get_vectype_for_scalar_type.
1998 (vectorizable_condition): Update call accordingly.
1999 (get_vectype_for_scalar_type): Take a group_size argument.
2000 For BB vectorization, limit the the vector to that number
2001 of elements. Also define an overload that takes an slp_tree.
2002 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2003 pass it to get_vectype_for_scalar_type.
2004 (vect_get_vector_types_for_stmt): Add a group_size argument
2005 and pass it to get_vectype_for_scalar_type. Don't use the
2006 cached vector type for BB vectorization if a group size is given.
2007 Handle data references in that case.
2008 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2009 pass it to get_mask_type_for_scalar_type.
2010
2011 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2012
2013 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2014 parameter.
2015 (estimate_edge_time): Use it.
2016 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2017 ret_nonspec_time parameter.
2018
2019 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2020
2021 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2022
2023 2019-11-15 Nick Clifton <nickc@redhat.com>
2024 Szabolcs Nagy <szabolcs.nagy@arm.com>
2025
2026 PR target/65649
2027 * config/microblaze/microblaze.c (print_operand): Print value as long.
2028
2029 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2030
2031 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2032 accidental commit.
2033
2034 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2035
2036 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2037 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2038
2039 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2040
2041 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2042 (gcn_conditional_register_usage): Use constants in place of hard-coded
2043 values.
2044 (gcn_hsa_declare_function_name): Set lower bound for number of
2045 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2046 MAX_NORMAL_VGPR_COUNT.
2047
2048 2019-11-15 Martin Jambor <mjambor@suse.cz>
2049
2050 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2051 declaration.
2052
2053 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2054
2055 * config/gcn/gcn.c (default_requested_args): New.
2056 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2057 set with default_requested_args.
2058 (gcn_conditional_register_usage): Limit register usage of non-kernel
2059 functions. Reassign fixed registers if a non-standard set of args is
2060 requested.
2061 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2062
2063 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2064
2065 PR ipa/92528
2066 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2067 aggregate jump function when inlined-to caller has no edge summary.
2068
2069 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2070
2071 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2072
2073 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2074
2075 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2076 prologue use of v0.
2077 (print_operand_address): Use v1 for zero vector offset.
2078
2079 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2080
2081 PR tree-optimization/92515
2082 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2083 types when converting a vector/scalar shift into a vector/vector one,
2084 using tree_nop_conversion_p instead of useless_type_conversion_p.
2085 Move the conversion code to the transform block.
2086
2087 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2088
2089 * read-rtl-function.c
2090 (function_reader::add_fixup_source_location): Take additional
2091 parameter of a column.
2092 (function_reader::maybe_read_location): Optionally parse column
2093 information and pass to add_fixup_source_location.
2094
2095 2019-11-15 Richard Biener <rguenther@suse.de>
2096
2097 PR tree-optimization/92512
2098 * tree-vect-loop.c (check_reduction_path): Fix operand index
2099 computability check. Add check for second use in COND_EXPRs.
2100
2101 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2102
2103 PR target/92515
2104 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2105 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2106
2107 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2108
2109 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2110 register class for VCC_LO and VCC_HI.
2111 (gcn_spill_class): Use SGPR_REGS to spill registers in
2112 VCC_CONDITIONAL_REG.
2113
2114 2019-11-15 Richard Biener <rguenther@suse.de>
2115
2116 PR tree-optimization/92324
2117 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2118 singedness of SLP reduction epilouge operations. Also reduce
2119 the vector width for SLP reductions before doing elementwise
2120 operations if possible.
2121
2122 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2123
2124 * passes.c (skip_pass): Set epilogue_completed if skipping the
2125 pro_and_epilogue pass.
2126
2127 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2128
2129 * passes.c (should_skip_pass_p): Always run "dfinish".
2130
2131 2019-11-15 Richard Biener <rguenther@suse.de>
2132
2133 * ipa-inline.c (inline_small_functions): Move assignment
2134 to next before call destroying edge.
2135
2136 2019-11-15 Richard Biener <rguenther@suse.de>
2137
2138 PR tree-optimization/92039
2139 PR tree-optimization/91975
2140 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2141 previous change, treat invariants consistently as non-constant.
2142 (tree_estimate_loop_size): Ternary ops with just the first op
2143 constant are not optimized away.
2144
2145 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2146
2147 * gimplify.c (gimplify_call_expr): Don't call
2148 omp_resolve_declare_variant after gimplification.
2149 * omp-general.c (omp_context_selector_matches): For isa that might
2150 match in some other function, defer if in declare simd function.
2151 (omp_context_compute_score): Don't look for " score" in construct
2152 trait set. Set *score to -1 if it can't ever match.
2153 (omp_resolve_declare_variant): If any variants need to be deferred,
2154 don't punt immediately, but compute scores of all variants and if
2155 ther eis a score winner that doesn't need to be deferred, return that.
2156
2157 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2158
2159 * ipa-comdats.c: Fix comments typo.
2160 * ipa-profile.c: Fix comments typo.
2161 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2162 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2163 (gimple_gen_ic_func_profiler): Likewise.
2164 (pass_ipa_tree_profile::gate): Fix comments typo.
2165
2166 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2167
2168 * ipa-inline.c (inline_small_functions): Update iterator of next.
2169
2170 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2171
2172 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2173 register is suitable for the mode.
2174
2175 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2176
2177 * range-op.h (range_operator::fold_range): Return a bool.
2178 * range-op.cc (range_operator::wi_fold): Assert supported type.
2179 (range_operator::fold_range): Assert supported type and return true.
2180 (operator_equal::fold_range): Return true.
2181 (operator_not_equal::fold_range): Same.
2182 (operator_lt::fold_range): Same.
2183 (operator_le::fold_range): Same.
2184 (operator_gt::fold_range): Same.
2185 (operator_ge::fold_range): Same.
2186 (operator_plus::op1_range): Adjust call to fold_range.
2187 (operator_plus::op2_range): Same.
2188 (operator_minus::op1_range): Same.
2189 (operator_minus::op2_range): Same.
2190 (operator_exact_divide::op1_range): Same.
2191 (operator_lshift::fold_range): Return true and adjust fold_range call.
2192 (operator_rshift::fold_range): Same.
2193 (operator_cast::fold_range): Return true.
2194 (operator_logical_and::fold_range): Same.
2195 (operator_logical_or::fold_range): Same.
2196 (operator_logical_not::fold_range): Same.
2197 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2198 (operator_bitwise_not::op1_range): Same.
2199 (operator_cst::fold_range): Return true.
2200 (operator_identity::fold_range): Return true.
2201 (operator_negate::fold_range): Return true and adjust fold_range call.
2202 (operator_addr_expr::fold_range): Return true.
2203 (operator_addr_expr::op1_range): Adjust call to fold_range.
2204 (range_cast): Same.
2205 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2206 (range_fold_unary_symbolics_p): Same.
2207
2208 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2209
2210 PR tree-optimization/92506
2211 * range-op.cc (range_operator::fold_range): Start with range undefined.
2212 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2213 overflow is varying.
2214
2215 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2216
2217 * range-op.cc (*operator*::*range): Remove calls to
2218 range_intersect, range_invert, and range_union in favor of calling
2219 the in-place API methods.
2220 (range_tests): Same.
2221 * range.cc (range_intersect): Remove.
2222 (range_union): Remove.
2223 (range_invert): Remove.
2224 * range.h (range_intersect): Remove.
2225 (range_union): Remove.
2226 (range_intersect): Remove.
2227
2228 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2229
2230 PR rtl-optimization/92430
2231 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2232 (pass_jump_after_combine::execute): Perform jump threading
2233 unconditionally.
2234
2235 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2236 Doug Rupp <rupp@adacore.com>
2237 Olivier Hainque <hainque@adacore.com>
2238
2239 * config.gcc: Collapse the arm-vxworks entries into
2240 a single arm-wrs-vxworks7* one, bpabi based. Update
2241 the default cpu from arm8 to armv7-a
2242 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2243 we always use ARM_UNWIND_INFO.
2244 (DWARF2_UNWIND_INFO): Remove redefinition.
2245 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2246 (VXWORKS_PERSONALITY): Define, to "llvm".
2247 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2248
2249 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2250
2251 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2252 _VX_CPU instead of CPU and handle arm_arch8.
2253
2254 2019-11-14 Doug Rupp <rupp@adacore.com>
2255 Olivier Hainque <hainque@adacore.com>
2256 Jerome Lambourg <lambourg@adacore.com>
2257
2258 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2259 * config/aarch64/aarch64-vxworks.h: New file.
2260 * config/aarch64/t-aarch64-vxworks: New file.
2261
2262 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2263 Olivier Hainque <hainque@adacore.com>
2264
2265 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2266 definition, pointless with a VxWorks specific version
2267 of crtstuff.
2268 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2269 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2270 New local macros, controlling the addition of vxworks specific
2271 crtstuff objects depending on the EH mechanism and kind of
2272 module being linked.
2273 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2274
2275 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2276 Jerome Lambourg <lambourg@adacore.com>
2277 Olivier Hainque <hainque@adacore.com>
2278
2279 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2280 common macro definitions, conveying VXWORKS7 or 64bit general
2281 variations. Add a block to set gcc_cv_initfini_array
2282 unconditionally to "yes" for VxWorks7.
2283 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2284 by default. Update some comments.
2285 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2286 default, to be added the end of VXWORKS_LIBS_RTP.
2287 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2288 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2289 redefine.
2290 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2291 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2292 to account for the now available TLS abilities.
2293 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2294 (VXWORKS_HAVE_TLS): Likewise.
2295
2296 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2297
2298 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2299 (vect_slp_convert_to_external): Likewise.
2300 (vect_slp_analyze_node_operations): If analysis fails, try building
2301 the node from scalars instead.
2302
2303 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2304
2305 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2306 between vector types.
2307 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2308 non-widening and non-narrowing path to handle standard
2309 conversion codes, if the target supports them.
2310 * expr.c (convert_move): Try using the extend and truncate optabs
2311 for vectors.
2312 * optabs-tree.c (supportable_convert_operation): Likewise.
2313 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2314 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2315 (trunc<mode><Vnarrowq>2): New patterns.
2316
2317 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2318
2319 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2320 require vectype and nunits_vectype to have the same size;
2321 instead assert that nunits_vectype has at least as many
2322 elements as vectype. Don't compute a separate nunits_vectype
2323 if the scalar type is obviously the same as vectype's.
2324 Tweak dump messages.
2325
2326 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2327
2328 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2329 function.
2330 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2331 (TARGET_VECTORIZE_RELATED_MODE): Define.
2332
2333 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2334
2335 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2336 (vec_info::used_vector_mode): New member variable.
2337 (vect_chooses_same_modes_p): Declare.
2338 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2339 chosen vector mode in vec_info::used_vector_mode.
2340 (vect_chooses_same_modes_p): New function.
2341 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2342 the same vector statements multiple times.
2343 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2344
2345 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2346
2347 * machmode.h (opt_machine_mode::operator==): New function.
2348 (opt_machine_mode::operator!=): Likewise.
2349 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2350 (get_related_vectype_for_scalar_type): Delete.
2351 (get_vectype_for_scalar_type_and_size): Declare.
2352 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2353 whether analysis passed or failed, and with what vector modes.
2354 Use related_vector_mode to check whether trying a particular
2355 vector mode would be redundant with the autodetected mode,
2356 and print a dump message if we decide to skip it.
2357 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2358 (vect_create_epilog_for_reduction): Use
2359 get_related_vectype_for_scalar_type instead of
2360 get_vectype_for_scalar_type_and_size.
2361 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2362 with...
2363 (get_related_vectype_for_scalar_type): ...this new function.
2364 Take a starting/"prevailing" vector mode rather than a vector size.
2365 Take an optional nunits argument, with the same meaning as for
2366 related_vector_mode. Use related_vector_mode when not
2367 auto-detecting a mode, falling back to mode_for_vector if no
2368 target mode exists.
2369 (get_vectype_for_scalar_type): Update accordingly.
2370 (get_same_sized_vectype): Likewise.
2371 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2372
2373 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2374
2375 * tree-vect-stmts.c (vectorizable_call): Require the types
2376 to have the same size.
2377
2378 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2379
2380 * tree-vect-stmts.c (vectorizable_call): If an operand is
2381 constant or external, use get_vectype_for_scalar_type
2382 rather than get_same_sized_vectype to get its vector type.
2383 (vectorizable_conversion, vectorizable_shift): Likewise.
2384 (vectorizable_operation): Likewise.
2385
2386 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2387
2388 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2389 (vec_info::vector_mode): ...this new field.
2390 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2391 (vect_analyze_loop, vect_transform_loop): Likewise.
2392 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2393 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2394 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2395 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2396 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2397
2398 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2399
2400 * target.h (vector_sizes, auto_vector_sizes): Delete.
2401 (vector_modes, auto_vector_modes): New typedefs.
2402 * target.def (autovectorize_vector_sizes): Replace with...
2403 (autovectorize_vector_modes): ...this new hook.
2404 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2405 Replace with...
2406 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2407 * doc/tm.texi: Regenerate.
2408 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2409 (default_autovectorize_vector_modes): New function.
2410 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2411 (default_autovectorize_vector_modes): New function.
2412 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2413 of autovectorize_vector_sizes. Use the number of units in the mode
2414 to calculate the maximum VF.
2415 * omp-low.c (omp_clause_aligned_alignment): Use
2416 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2417 Use a loop based on related_mode to iterate through all supported
2418 vector modes for a given scalar mode.
2419 * optabs-query.c (can_vec_mask_load_store_p): Use
2420 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2421 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2422 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2423 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2424 Replace with...
2425 (aarch64_autovectorize_vector_modes): ...this new function.
2426 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2427 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2428 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2429 (arc_autovectorize_vector_modes): ...this new function.
2430 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2431 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2432 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2433 (arm_autovectorize_vector_modes): ...this new function.
2434 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2435 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2436 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2437 (ix86_autovectorize_vector_modes): ...this new function.
2438 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2439 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2440 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2441 (mips_autovectorize_vector_modes): ...this new function.
2442 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2443 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2444
2445 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2446
2447 * tree-vect-stmts.c (vectorizable_shift): Check the number
2448 of vector elements as well as the type mode when deciding
2449 whether an op1_vectype is compatible. Reuse the result of
2450 this check when generating vector statements.
2451
2452 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2453
2454 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2455 targetm.vectorize.preferred_simd_mode returns an integer mode,
2456 use mode_for_vector to decide what the vector type's mode
2457 should actually be. Use build_vector_type_for_mode instead
2458 of build_vector_type.
2459
2460 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2461
2462 * target.def (get_mask_mode): Take a vector mode itself as argument,
2463 instead of properties about the vector mode.
2464 * doc/tm.texi: Regenerate.
2465 * targhooks.h (default_get_mask_mode): Update to reflect new
2466 get_mode_mask interface.
2467 * targhooks.c (default_get_mask_mode): Likewise. Use
2468 related_int_vector_mode.
2469 * optabs-query.c (can_vec_mask_load_store_p): Update call
2470 to get_mask_mode.
2471 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2472 first that the original mode really is a vector.
2473 * tree.c (build_truth_vector_type_for): Likewise.
2474 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2475 get_mode_mask interface.
2476 (aarch64_expand_sve_vcond): Update call accordingly.
2477 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2478 get_mode_mask interface.
2479 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2480
2481 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2482
2483 * tree.h (build_truth_vector_type): Delete.
2484 (build_same_sized_truth_vector_type): Likewise.
2485 * tree.c (build_truth_vector_type): Rename to...
2486 (build_truth_vector_type_for): ...this. Make static and take
2487 a vector type as argument.
2488 (truth_type_for): Update accordingly.
2489 (build_same_sized_truth_vector_type): Delete.
2490 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2491 instead of build_same_sized_truth_vector_type.
2492 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2493 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2494 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2495 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2496 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2497 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2498 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2499 (vectorizable_store, vectorizable_condition): Likewise.
2500 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2501 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2502 build_truth_vector_type.
2503 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2504 Use truth_type_for instead of build_same_sized_truth_vector_type.
2505 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2506
2507 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2508
2509 * tree.h (build_truth_vector_type_for_mode): Declare.
2510 * tree.c (build_truth_vector_type_for_mode): New function,
2511 split out from...
2512 (build_truth_vector_type): ...here.
2513 (build_opaque_vector_type): Fix head comment.
2514 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2515 vec_info parameter.
2516 (vect_halve_mask_nunits): Replace vec_info parameter with the
2517 mode of the new vector.
2518 (vect_double_mask_nunits): Likewise.
2519 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2520 (vect_double_mask_nunits): Likewise.
2521 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2522 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2523 to vect_halve_mask_nunits, getting the required mode from the unpack
2524 patterns.
2525 (vect_set_loop_condition_masked): Update call accordingly.
2526 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2527 parameter and update call to vect_double_mask_nunits.
2528 (vectorizable_conversion): Update call accordingly.
2529 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2530 (vectorizable_call): Update call accordingly.
2531 (supportable_widening_operation): Update call to
2532 vect_halve_mask_nunits.
2533 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2534 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2535
2536 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2537
2538 * machmode.h (mode_for_int_vector): Delete.
2539 (related_int_vector_mode): Declare.
2540 * stor-layout.c (mode_for_int_vector): Delete.
2541 (related_int_vector_mode): New function.
2542 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2543 instead of mode_for_int_vector.
2544 (expand_vec_perm_const): Likewise.
2545 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2546 (aarch64_evpc_sve_tbl): Likewise.
2547 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2548 (s390_expand_vcond): Likewise.
2549
2550 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2551
2552 * target.def (related_mode): New hook.
2553 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2554 * doc/tm.texi: Regenerate.
2555 * targhooks.h (default_vectorize_related_mode): Declare.
2556 * targhooks.c (default_vectorize_related_mode): New function.
2557 * machmode.h (related_vector_mode): Declare.
2558 * stor-layout.c (related_vector_mode): New function.
2559 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2560 * optabs-query.c (qimode_for_vec_perm): Likewise.
2561 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2562 (vectorizable_store, vectorizable_load): Likewise
2563
2564 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2565
2566 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2567 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2568 * config/arm/arm-c.c (arm_cpu_builtins): Define
2569 __GCC_ASM_FLAG_OUTPUTS__.
2570 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2571 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2572 Define __GCC_ASM_FLAG_OUTPUTS__.
2573 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2574 * doc/extend.texi (FlagOutputOperands): Add documentation
2575 for ARM and AArch64.
2576
2577 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2578 * config/arm/predicates.md (nz_comparison_operator): Rename
2579 from noov_comparison_operator.
2580 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2581 (arm_gen_dicompare_reg): Likewise.
2582 (maybe_get_arm_condition_code): Likewise.
2583 (thumb1_final_prescan_insn): Likewise.
2584 (arm_emit_coreregs_64bit_shift): Likewise.
2585 * config/arm/arm.md (addsi3_compare0): Likewise.
2586 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2587 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2588 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2589 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2590 (*mulsi3addsi_compare0_scratch): Likewise.
2591 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2592 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2593 (*zeroextractsi_compare0_scratch): Likewise.
2594 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2595 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2596 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2597 (andsi_not_shiftsi_si_scc): Likewise.
2598 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2599 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2600 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2601 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2602 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2603 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2604 (return_addr_mask, *check_arch2): Likewise.
2605 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2606 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2607 (compare_scc splitters): Likewise.
2608 (movcond_addsi): Likewise.
2609 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2610 (*thumb2_addsi3_compare0_scratch): Likewise.
2611 (*thumb2_mulsi_short_compare0): Likewise.
2612 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2613 (compare peephole2s): Likewise.
2614 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2615 nz_comparison_operator names.
2616 (cbranchsi4_insn): Likewise.
2617
2618 * config/arm/constraints.md (c): Use cc_register predicate.
2619
2620 * config/aarch64/constraints.md (c): New constraint.
2621
2622 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2623
2624 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2625 ipa_merge_fn_summary_after_inlining): Micro optimize.
2626
2627 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2628
2629 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2630
2631 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2632
2633 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2634 (ipa_value_range_from_jfunc): New function.
2635 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2636 known_value_ranges parameter; use it to evalulate conditions.
2637 (evaluate_properties_for_edge): Compute known value ranges.
2638 (ipa_fn_summary_t::duplicate): Update use of
2639 evaluate_conditions_for_known_args.
2640 (estimate_ipcp_clone_size_and_time): Likewise.
2641 (ipa_merge_fn_summary_after_inlining): Likewise.
2642 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2643
2644 2019-11-14 Martin Liska <mliska@suse.cz>
2645
2646 * ipa-inline.c (want_inline_small_function_p): Use
2647 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2648 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2649
2650 2019-11-14 Martin Liska <mliska@suse.cz>
2651
2652 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2653 of a callee to get value of the param.
2654 * ipa-inline.c (inline_insns_auto): Use proper
2655 opt_for_fn.
2656 * opts.c (maybe_default_option): Do not overwrite param
2657 value if optimization level does not match. Note that
2658 params usually have default value set via Init() keyword.
2659 * params.opt: Remove -param=max-inline-insns-auto-O2.
2660 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2661 * doc/invoke.texi: Remove documentation of
2662 max-inline-insns-auto-O2.
2663
2664 2019-11-14 Martin Liska <mliska@suse.cz>
2665
2666 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2667 Do not initialize m_other_count.
2668 (switch_conversion::collect): Do not count m_default_count and
2669 m_other_count as we use frequencies for edges.
2670 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2671
2672 2019-11-14 Martin Liska <mliska@suse.cz>
2673
2674 PR other/92329
2675 * doc/invoke.texi: Document -fallocation-dce.
2676
2677 2019-11-14 Martin Liska <mliska@suse.cz>
2678
2679 PR target/92389
2680 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2681 PTA_ICELAKE_CLIENT which is later interited by
2682 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2683
2684 2019-11-14 Martin Liska <mliska@suse.cz>
2685
2686 * ipa-icf.c (sem_item_optimizer::execute): Save
2687 loaded_symbols.
2688 (sem_item_optimizer::parse_nonsingleton_classes):
2689 Return number of loaded symbols.
2690 (sem_item_optimizer::merge_classes): Print
2691 statistics about totally needed symbols.
2692 * ipa-icf.h (parse_nonsingleton_classes): Change return
2693 type.
2694 (merge_classes): Add one argument.
2695
2696 2019-11-14 Martin Liska <mliska@suse.cz>
2697
2698 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2699 func_checker::hash_operand by handling of FIELD_DECLs.
2700
2701 2019-11-14 Martin Liska <mliska@suse.cz>
2702
2703 * ipa-icf-gimple.h (func_checker::func_checker): Add
2704 default constructor.
2705 * ipa-icf.c (sem_function::init): Make operand_equal_p
2706 and hash_operand public.
2707 (sem_item::add_expr): Remove.
2708 (sem_item::add_type): Remove.
2709 (sem_function::hash_stmt): Use m_checker for hashing
2710 of GIMPLE statements.
2711 (sem_function::parse): Init with checker.
2712 (sem_variable::parse): Pass NULL as checker.
2713 (sem_item_optimizer::parse_funcs_and_vars):
2714 Pass checker to ::parse function.
2715 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2716 (sem_variable::parse): New function.
2717 (sem_variable::get_hash): Only return computed hash value.
2718 (sem_variable::init): Initialize hash of a variable.
2719 * ipa-icf.h: Remove add_expr, add_type and add func_checker
2720 to couple of functions as a new argument.
2721
2722 2019-11-14 Martin Liska <mliska@suse.cz>
2723
2724 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2725 bail out reason.
2726 (func_checker::compare_gimple_assign): Likewise.
2727
2728 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2729
2730 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2731 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2732 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2733
2734 * omp-general.c (omp_context_name_list_prop): New function.
2735 (omp_context_selector_matches): Use it. Return 0 if it returns
2736 NULL.
2737 (omp_context_selector_props_compare): Allow equivalency of an
2738 identifier and a string literal containing no embedded zeros.
2739
2740 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2741
2742 * range-op.cc (RANGE3): Remove.
2743 (range_tests): Remove all selftest that check for multi-ranges.
2744 Put tests in namespace selftest.
2745 * selftest.h: Move range_tests into namespace selftest.
2746 * value-range.h (class value_range): Unfriend range_tests.
2747
2748 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2749
2750 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2751 normalize_symbolics and normalize_addresses working in place.
2752 (range_fold_unary_symbolics_p): Same.
2753 (range_fold_unary_symbolics_p): Same.
2754 * value-range.cc (num_pairs): Same.
2755 (lower_bound): Same.
2756 (upper_bound): Same.
2757 (contains_p): Same.
2758 (normalize_addresses): Same.
2759 (normalize_symbolics): Same.
2760 * value-range.h (normalize_symbolics): Same.
2761 (normalize_addresses): Same.
2762
2763 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
2764
2765 PR ipa/91682
2766 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
2767 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
2768 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
2769 (ipa_agg_jump_function): Remove member function equal_to.
2770 (ipa_agg_jump_function_p): Remove typedef.
2771 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
2772 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
2773 information for aggregate jump function.
2774 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
2775 record last definition statement.
2776 (load_from_unmodified_param_or_agg): New function.
2777 (ipa_known_agg_contents_list): Add new field type and value, remove
2778 field constant.
2779 (build_agg_jump_func_from_list): Rename parameter const_count to
2780 value_count, build aggregate jump function from ipa_load_agg_data.
2781 (analyze_agg_content_value): New function.
2782 (extract_mem_content): Analyze memory store assignment to prepare
2783 information for aggregate jump function generation.
2784 (determine_known_aggregate_parts): Add new parameter fbi, remove
2785 parameter aa_walk_budeget_p.
2786 (update_jump_functions_after_inlining): Update aggregate jump function.
2787 (ipa_find_agg_cst_for_param): Change type of parameter agg.
2788 (try_make_edge_direct_simple_call): Add new parameter new_root.
2789 (try_make_edge_direct_virtual_call): Add new parameter new_root and
2790 new_root_info.
2791 (update_indirect_edges_after_inlining): Pass new argument to
2792 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
2793 (ipa_write_jump_function): Write aggregate jump function to file.
2794 (ipa_read_jump_function): Read aggregate jump function from file.
2795 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
2796 * ipa-cp.c (ipa_get_jf_arith_result): New function.
2797 (ipa_agg_value_from_node): Likewise.
2798 (ipa_agg_value_set_from_jfunc): Likewise.
2799 (propagate_vals_across_arith_jfunc): Likewise.
2800 (propagate_aggregate_lattice): Likewise.
2801 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
2802 (propagate_vals_across_pass_through): Call
2803 propagate_vals_across_arith_jfunc.
2804 (get_clone_agg_value): Move forward.
2805 (propagate_aggs_across_jump_function): Handle value propagation for
2806 aggregate jump function.
2807 (agg_jmp_p_vec_for_t_vec): Remove.
2808 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
2809 with vec<ipa_agg_value>.
2810 (copy_plats_to_inter, intersect_with_plats): Likewise.
2811 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
2812 (intersect_aggregate_with_edge): Likewise.
2813 (find_aggregate_values_for_callers_subset): Likewise.
2814 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
2815 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
2816 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2817 (gather_context_independent_values): Likewise.
2818 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
2819 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
2820 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2821 (evaluate_properties_for_edge): Likewise.
2822 (estimate_edge_devirt_benefit): Likewise.
2823 (estimate_edge_size_and_time): Likewise.
2824 (estimate_calls_size_and_time): Likewise.
2825 (ipa_call_context::ipa_call_context): Likewise.
2826 (estimate_ipcp_clone_size_and_time): Likewise.
2827 * ipa-fnsummary.h (ipa_call_context): Replace
2828 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2829 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
2830 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2831 (do_estimate_edge_size): Likewise.
2832 (do_estimate_edge_hints): Likewise.
2833
2834 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2835
2836 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
2837 binary operations.
2838
2839 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2840
2841 * ipa-profile.c (check_argument_count): Check properly that e_info
2842 is non-NULL; do not check descriptors.
2843
2844 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2845
2846 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
2847 check for ipa profiles.
2848
2849 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2850
2851 PR c++/92421
2852 * ipa-prop.c (update_indirect_edges_after_inlining):
2853 Mark parameter as used.
2854 * ipa-inline.c (recursive_inlining): Reset node cache
2855 after inlining.
2856 (inline_small_functions): Remove checking ifdef.
2857 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
2858 cache consistency.
2859
2860 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2861
2862 PR ipa/92498
2863 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
2864 is NULL.
2865 (ipa_profile): Fix reversed test.
2866
2867 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2868
2869 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
2870 (propagate_constants_topo): Fix typo.
2871
2872 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2873
2874 * Makefile.in (OBJS): Add value-range.o.
2875 (GTFILES): Add value-range.h.
2876 * gengtype.c (open_base_files): Add value-range.h to list of
2877 header files.
2878 * tree-vrp.c: Move the following value_range related functions:
2879 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
2880 constant_p, set_undefined, set_varying, may_contain_p,
2881 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
2882 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
2883 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
2884 value_inside_range, ranges_from_anti_range, union_ranges,
2885 intersect_ranges, intersect_helper, union_helper, union_,
2886 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
2887 upper_bound, contains_p, invert, intersect...
2888 * value-range.cc: ...to here.
2889 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
2890 associated inline methods from here...
2891 * value-range.h: ...to here.
2892
2893 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2894
2895 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
2896 instead of asserting its value.
2897
2898 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2899
2900 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
2901 constructors and set methods so value_range_kind is the last
2902 argument and defaults to VR_RANGE.
2903 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
2904 * ipa-cp.c (propagate_vr_across_jump_function): Same.
2905 * ipa-prop.c (ipa_get_value_range): Same.
2906 (ipa_compute_jump_functions_for_edge): Same.
2907 * range-op.cc (value_range_from_overflowed_bounds): Same.
2908 (operator_cast::op1_range): Same.
2909 (range_tests): Same.
2910 * range.cc (range_nonzero): Same.
2911 * tree-ssanames.c (get_range_info): Same.
2912 * tree-vrp.c (value_range_equiv::set): Same.
2913 (value_range::value_range): Same.
2914 (value_range_equiv::value_range_equiv): Same.
2915 (value_range_equiv::update): Same.
2916 (value_range_equiv::deep_copy): Same.
2917 (value_range_equiv::move): Same.
2918 (value_range_equiv::set_undefined): Same.
2919 (value_range::set): Same.
2920 (value_range::set_nonzero): Same.
2921 (ranges_from_anti_range): Same.
2922 (extract_range_from_plus_minus_expr): Same.
2923 (value_range::intersect_helper): Same.
2924 (value_range_equiv::intersect): Same.
2925 (value_range::union_helper): Same.
2926 (value_range_equiv::union_): Same.
2927 (value_range::normalize_symbolics): Same.
2928 (value_range::invert): Same.
2929 (determine_value_range_1): Same.
2930 * tree-vrp.h (class value_range): Same.
2931 (class value_range_equiv): Same.
2932 * vr-values.c (set_value_range_to_nonnegative): Same.
2933 (set_value_range_to_truthvalue): Same.
2934 (vr_values::update_value_range): Same.
2935 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2936 (vr_values::extract_range_from_binary_expr): Same.
2937 (vr_values::extract_range_from_comparison): Same.
2938 (vr_values::extract_range_basic): Same.
2939 (vr_values::adjust_range_with_scev): Same.
2940 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
2941 (vr_values::extract_range_from_phi_node): Same.
2942
2943 2019-11-13 Ulrich Drepper <drepper@redhat.com>
2944
2945 * tree-dump.c (dequeue_and_dump): Print first tree operand
2946 for VIEW_CONVERT_EXPR.
2947
2948 2019-11-13 Joseph Myers <joseph@codesourcery.com>
2949
2950 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
2951 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
2952 * real.c (get_max_float): Add norm_max argument.
2953 * real.h (get_max_float): Update prototype.
2954 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
2955 get_max_float.
2956
2957 2019-11-13 Martin Liska <mliska@suse.cz>
2958
2959 * dbgcnt.c (test_sorted_dbg_counters): New.
2960 (dbgcnt_c_tests): Likewise.
2961 * selftest-run-tests.c (selftest::run_tests): Likewise.
2962 * selftest.h (dbgcnt_c_tests): Likewise.
2963
2964 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2965 Martin Jambor <mjambor@suse.cz>
2966
2967 PR ipa/92454
2968 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
2969 (identify_dead_nodes): Likewise.
2970
2971 2019-11-13 Martin Liska <mliska@suse.cz>
2972
2973 * ipa-icf.c (sem_function::equals_private): Do not overuse
2974 push/pop_cfun functions.
2975
2976 2019-11-13 Martin Liska <mliska@suse.cz>
2977
2978 * common.opt: Document change of -fdbg-cnt option.
2979 * dbgcnt.c (DEBUG_COUNTER): Remove.
2980 (dbg_cnt_is_enabled): Remove.
2981 (dbg_cnt): Work with new intervals.
2982 (dbg_cnt_set_limit_by_index): Set to new
2983 list of intervals.
2984 (dbg_cnt_set_limit_by_name): Likewise.
2985 (dbg_cnt_process_single_pair): Process new format.
2986 (dbg_cnt_process_opt): Likewise.
2987 (dbg_cnt_list_all_counters): Likewise.
2988 * doc/invoke.texi: Document change of -fdbg-cnt option.
2989 (cmp_tuples): New.
2990
2991 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2992
2993 * ipa-inline.c (ipa_inline): Check that function is defined before
2994 flattening.
2995
2996 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2997 Julian Brown <julian@codesourcery.com>
2998
2999 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3000 flag_worker_partitioning is not set.
3001 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3002 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3003
3004 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3005
3006 * config/gcn/gcn-run.c (heap_region): New global variable.
3007 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3008 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3009 (get_kernarg_region): Move contents to ....
3010 (get_memory_region): .... here.
3011 (get_heap_region): New function.
3012 (init_device): Initialize the heap_region.
3013 (device_malloc): Add region parameter.
3014 (struct kernargs): Move heap ....
3015 (heap): ... to global scope.
3016 (main): Allocate heap separate to kernargs.
3017
3018 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3019
3020 * ipa-prop.c (ipa_print_node_jump_functions,
3021 ipa_print_node_params): Print info about missing summaries.
3022
3023 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3024
3025 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3026 the cost of generating loop masks.
3027
3028 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3029
3030 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3031 New function.
3032 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3033 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3034 (vect_transform_loop): Likewise.
3035 (vect_analyze_loop_costing): Don't take the cost of versioning
3036 into account for the static profitability threshold if it turns
3037 out that no versioning is needed.
3038
3039 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3040
3041 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3042 and target_option_default_node to get -fprofile-generate ctors working
3043 right with LTO.
3044
3045 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3046
3047 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3048 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3049 (vectorizable_assignment): Don't add a cost for nop conversions.
3050 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3051 Likewise.
3052 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3053
3054 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3055
3056 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3057 number of ncopies as an additional argument.
3058 (vectorizable_conversion): Update call accordingly. Use "modifier"
3059 to check whether a conversion is between vectors with the same
3060 numbers of units.
3061
3062 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3063
3064 * config/aarch64/aarch64-sve-builtins-functions.h
3065 (unary_count::expand): Use aarch64_sve_int_mode instead of
3066 mode_for_int_vector.
3067
3068 2019-11-13 Martin Liska <mliska@suse.cz>
3069
3070 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3071
3072 2019-11-13 Martin Liska <mliska@suse.cz>
3073
3074 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3075 Remove call to finalize_options_struct.
3076
3077 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3078
3079 PR target/92055
3080 * config/avr/t-avr (avr-mcus): Do not depend on
3081 $(srcdir)/config/avr/t-multilib.
3082
3083 2019-11-13 Richard Biener <rguenther@suse.de>
3084
3085 PR tree-optimization/92473
3086 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3087 direct optab reduction in the correct type.
3088
3089 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3090
3091 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3092 hexadecimal literal.
3093
3094 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3095
3096 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3097 UNORDERED if !HONOR_NANS (DFmode).
3098 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3099 if !HONOR_NANS (<MODE>mode).
3100
3101 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3102
3103 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3104 (ipcp_verify_propagated_values): Likewise.
3105 (propagate_constants_across_call): Likewise.
3106 (propagate_constants_topo): Likewise.
3107 (ipcp_propagate_stage): Likewise.
3108
3109 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3110
3111 PR ipa/92471
3112 * ipa-profile.c (check_argument_count): Break out from ...;
3113 watch for missing summaries.
3114 (ipa_profile): Here.
3115
3116 2019-11-12 Martin Sebor <msebor@redhat.com>
3117
3118 PR tree-optimization/92412
3119 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3120 extern variables.
3121
3122 2019-11-12 Martin Sebor <msebor@redhat.com>
3123
3124 PR middle-end/83688
3125 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3126 (directive::argno): New member.
3127 (format_result::aliases, format_result::alias_count): New data members.
3128 (format_result::append_alias): New member function.
3129 (fmtresult::dst_offset): New data member.
3130 (pass_sprintf_length::call_info::dst_origin): New data member.
3131 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3132 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3133 (get_origin_and_offset): Same.
3134 (format_string): Call it.
3135 (format_directive): Call append_alias and set directive argument
3136 number.
3137 (maybe_warn_overlap): New function.
3138 (pass_sprintf_length::compute_format_length): Call it.
3139 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3140 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3141
3142 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3143
3144 PR rtl-optimization/92430
3145 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3146 dominance info at the beginning.
3147
3148 2019-11-12 Richard Biener <rguenther@suse.de>
3149
3150 PR tree-optimization/92460
3151 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3152 expression before gimplifying.
3153
3154 2019-11-12 Richard Biener <rguenther@suse.de>
3155
3156 PR tree-optimization/92461
3157 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3158 stmt after propagation.
3159
3160 2019-11-12 Martin Liska <mliska@suse.cz>
3161
3162 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3163 Use SET_OPTION_IF_UNSET.
3164 (ix86_option_override_internal): Likewise.
3165 * opts.c (default_options_optimization): Likewise.
3166 (finish_options): Likewise.
3167 (enable_fdo_optimizations): Likewise.
3168 (common_handle_option): Likewise.
3169
3170 2019-11-12 Martin Liska <mliska@suse.cz>
3171
3172 * common/common-target.def: Remove option_validate_param and
3173 option_default_params.
3174 * common/common-targhooks.c (default_option_validate_param):
3175 Remove.
3176 * common/common-targhooks.h (default_option_validate_param):
3177 Remove.
3178 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3179 Remove usage of this.
3180 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3181 (aarch64_option_validate_param): Likewise.
3182 (aarch64_option_default_params): Likewise
3183 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3184 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3185 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3186 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3187 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3188 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3189 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3190 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3191 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3192 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3193 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3194 guard_size here.
3195 * doc/tm.texi: Remove option_default_params and option_validate_param.
3196 * doc/tm.texi.in: Likewise.
3197
3198 2019-11-12 Martin Liska <mliska@suse.cz>
3199
3200 * common/common-target.def:
3201 Do not mention set_default_param_value
3202 and set_param_value.
3203 * doc/tm.texi: Likewise.
3204
3205 2019-11-12 Martin Liska <mliska@suse.cz>
3206
3207 * common.opt: Remove param_values.
3208 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3209 Remove finalize_options_struct.
3210 * gcc.c (driver::decode_argv): Do not call global_init_params
3211 and finish_params.
3212 (driver::finalize): Do not call params_c_finalize
3213 and finalize_options_struct.
3214 * opt-suggestions.c (option_proposer::get_completions): Remove
3215 special casing of params.
3216 (option_proposer::find_param_completions): Remove.
3217 (test_completion_partial_match): Update expected output.
3218 * opt-suggestions.h: Remove find_param_completions.
3219 * opts-common.c (add_misspelling_candidates): Add
3220 --param with a space.
3221 * opts.c (handle_param): Remove.
3222 (init_options_struct):. Remove init_options_struct and
3223 similar calls.
3224 (finalize_options_struct): Remove.
3225 (common_handle_option): Use SET_OPTION_IF_UNSET.
3226 * opts.h (finalize_options_struct): Remove.
3227 * toplev.c (general_init): Do not call global_init_params.
3228 (toplev::finalize): Do not call params_c_finalize and
3229 finalize_options_struct.
3230
3231 2019-11-12 Martin Liska <mliska@suse.cz>
3232
3233 * Makefile.in: Remove PARAMS_H and params.list
3234 and params.options.
3235 * params-enum.h: Remove.
3236 * params-list.h: Remove.
3237 * params-options.h: Remove.
3238 * params.c: Remove.
3239 * params.def: Remove.
3240 * params.h: Remove.
3241 * asan.c: Do not include params.h.
3242 * auto-profile.c: Likewise.
3243 * bb-reorder.c: Likewise.
3244 * builtins.c: Likewise.
3245 * cfgcleanup.c: Likewise.
3246 * cfgexpand.c: Likewise.
3247 * cfgloopanal.c: Likewise.
3248 * cgraph.c: Likewise.
3249 * combine.c: Likewise.
3250 * common/config/aarch64/aarch64-common.c: Likewise.
3251 * common/config/gcn/gcn-common.c: Likewise.
3252 * common/config/ia64/ia64-common.c: Likewise.
3253 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3254 * common/config/rs6000/rs6000-common.c: Likewise.
3255 * common/config/sh/sh-common.c: Likewise.
3256 * config/aarch64/aarch64.c: Likewise.
3257 * config/alpha/alpha.c: Likewise.
3258 * config/arm/arm.c: Likewise.
3259 * config/avr/avr.c: Likewise.
3260 * config/csky/csky.c: Likewise.
3261 * config/i386/i386-builtins.c: Likewise.
3262 * config/i386/i386-expand.c: Likewise.
3263 * config/i386/i386-features.c: Likewise.
3264 * config/i386/i386-options.c: Likewise.
3265 * config/i386/i386.c: Likewise.
3266 * config/ia64/ia64.c: Likewise.
3267 * config/rs6000/rs6000-logue.c: Likewise.
3268 * config/rs6000/rs6000.c: Likewise.
3269 * config/s390/s390.c: Likewise.
3270 * config/sparc/sparc.c: Likewise.
3271 * config/visium/visium.c: Likewise.
3272 * coverage.c: Likewise.
3273 * cprop.c: Likewise.
3274 * cse.c: Likewise.
3275 * cselib.c: Likewise.
3276 * dse.c: Likewise.
3277 * emit-rtl.c: Likewise.
3278 * explow.c: Likewise.
3279 * final.c: Likewise.
3280 * fold-const.c: Likewise.
3281 * gcc.c: Likewise.
3282 * gcse.c: Likewise.
3283 * ggc-common.c: Likewise.
3284 * ggc-page.c: Likewise.
3285 * gimple-loop-interchange.cc: Likewise.
3286 * gimple-loop-jam.c: Likewise.
3287 * gimple-loop-versioning.cc: Likewise.
3288 * gimple-ssa-split-paths.c: Likewise.
3289 * gimple-ssa-sprintf.c: Likewise.
3290 * gimple-ssa-store-merging.c: Likewise.
3291 * gimple-ssa-strength-reduction.c: Likewise.
3292 * gimple-ssa-warn-alloca.c: Likewise.
3293 * gimple-ssa-warn-restrict.c: Likewise.
3294 * graphite-isl-ast-to-gimple.c: Likewise.
3295 * graphite-optimize-isl.c: Likewise.
3296 * graphite-scop-detection.c: Likewise.
3297 * graphite-sese-to-poly.c: Likewise.
3298 * graphite.c: Likewise.
3299 * haifa-sched.c: Likewise.
3300 * hsa-gen.c: Likewise.
3301 * ifcvt.c: Likewise.
3302 * ipa-cp.c: Likewise.
3303 * ipa-fnsummary.c: Likewise.
3304 * ipa-inline-analysis.c: Likewise.
3305 * ipa-inline.c: Likewise.
3306 * ipa-polymorphic-call.c: Likewise.
3307 * ipa-profile.c: Likewise.
3308 * ipa-prop.c: Likewise.
3309 * ipa-split.c: Likewise.
3310 * ipa-sra.c: Likewise.
3311 * ira-build.c: Likewise.
3312 * ira-conflicts.c: Likewise.
3313 * loop-doloop.c: Likewise.
3314 * loop-invariant.c: Likewise.
3315 * loop-unroll.c: Likewise.
3316 * lra-assigns.c: Likewise.
3317 * lra-constraints.c: Likewise.
3318 * modulo-sched.c: Likewise.
3319 * opt-suggestions.c: Likewise.
3320 * opts.c: Likewise.
3321 * postreload-gcse.c: Likewise.
3322 * predict.c: Likewise.
3323 * reload.c: Likewise.
3324 * reorg.c: Likewise.
3325 * resource.c: Likewise.
3326 * sanopt.c: Likewise.
3327 * sched-deps.c: Likewise.
3328 * sched-ebb.c: Likewise.
3329 * sched-rgn.c: Likewise.
3330 * sel-sched-ir.c: Likewise.
3331 * sel-sched.c: Likewise.
3332 * shrink-wrap.c: Likewise.
3333 * stmt.c: Likewise.
3334 * targhooks.c: Likewise.
3335 * toplev.c: Likewise.
3336 * tracer.c: Likewise.
3337 * trans-mem.c: Likewise.
3338 * tree-chrec.c: Likewise.
3339 * tree-data-ref.c: Likewise.
3340 * tree-if-conv.c: Likewise.
3341 * tree-inline.c: Likewise.
3342 * tree-loop-distribution.c: Likewise.
3343 * tree-parloops.c: Likewise.
3344 * tree-predcom.c: Likewise.
3345 * tree-profile.c: Likewise.
3346 * tree-scalar-evolution.c: Likewise.
3347 * tree-sra.c: Likewise.
3348 * tree-ssa-ccp.c: Likewise.
3349 * tree-ssa-dom.c: Likewise.
3350 * tree-ssa-dse.c: Likewise.
3351 * tree-ssa-ifcombine.c: Likewise.
3352 * tree-ssa-loop-ch.c: Likewise.
3353 * tree-ssa-loop-im.c: Likewise.
3354 * tree-ssa-loop-ivcanon.c: Likewise.
3355 * tree-ssa-loop-ivopts.c: Likewise.
3356 * tree-ssa-loop-manip.c: Likewise.
3357 * tree-ssa-loop-niter.c: Likewise.
3358 * tree-ssa-loop-prefetch.c: Likewise.
3359 * tree-ssa-loop-unswitch.c: Likewise.
3360 * tree-ssa-math-opts.c: Likewise.
3361 * tree-ssa-phiopt.c: Likewise.
3362 * tree-ssa-pre.c: Likewise.
3363 * tree-ssa-reassoc.c: Likewise.
3364 * tree-ssa-sccvn.c: Likewise.
3365 * tree-ssa-scopedtables.c: Likewise.
3366 * tree-ssa-sink.c: Likewise.
3367 * tree-ssa-strlen.c: Likewise.
3368 * tree-ssa-structalias.c: Likewise.
3369 * tree-ssa-tail-merge.c: Likewise.
3370 * tree-ssa-threadbackward.c: Likewise.
3371 * tree-ssa-threadedge.c: Likewise.
3372 * tree-ssa-uninit.c: Likewise.
3373 * tree-switch-conversion.c: Likewise.
3374 * tree-vect-data-refs.c: Likewise.
3375 * tree-vect-loop.c: Likewise.
3376 * tree-vect-slp.c: Likewise.
3377 * tree-vrp.c: Likewise.
3378 * tree.c: Likewise.
3379 * value-prof.c: Likewise.
3380 * var-tracking.c: Likewise.
3381
3382 2019-11-12 Martin Liska <mliska@suse.cz>
3383
3384 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3385 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3386 macro.
3387 (asan_sanitize_allocas_p): Likewise.
3388 (asan_emit_stack_protection): Likewise.
3389 (asan_protect_global): Likewise.
3390 (instrument_derefs): Likewise.
3391 (instrument_builtin_call): Likewise.
3392 (asan_expand_mark_ifn): Likewise.
3393 * auto-profile.c (auto_profile): Likewise.
3394 * bb-reorder.c (copy_bb_p): Likewise.
3395 (duplicate_computed_gotos): Likewise.
3396 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3397 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3398 (try_crossjump_bb): Likewise.
3399 * cfgexpand.c (defer_stack_allocation): Likewise.
3400 (stack_protect_classify_type): Likewise.
3401 (pass_expand::execute): Likewise.
3402 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3403 (estimate_reg_pressure_cost): Likewise.
3404 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3405 * combine.c (combine_instructions): Likewise.
3406 (record_value_for_reg): Likewise.
3407 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3408 (aarch64_option_default_params): Likewise.
3409 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3410 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3411 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3412 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3413 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3414 (aarch64_allocate_and_probe_stack_space): Likewise.
3415 (aarch64_expand_epilogue): Likewise.
3416 (aarch64_override_options_internal): Likewise.
3417 * config/alpha/alpha.c (alpha_option_override): Likewise.
3418 * config/arm/arm.c (arm_option_override): Likewise.
3419 (arm_valid_target_attribute_p): Likewise.
3420 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3421 * config/i386/i386.c (get_probe_interval): Likewise.
3422 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3423 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3424 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3425 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3426 (get_stack_clash_protection_guard_size): Likewise.
3427 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3428 * config/s390/s390.c (allocate_stack_space): Likewise.
3429 (s390_emit_prologue): Likewise.
3430 (s390_option_override_internal): Likewise.
3431 * config/sparc/sparc.c (sparc_option_override): Likewise.
3432 * config/visium/visium.c (visium_option_override): Likewise.
3433 * coverage.c (get_coverage_counts): Likewise.
3434 (coverage_compute_profile_id): Likewise.
3435 (coverage_begin_function): Likewise.
3436 (coverage_end_function): Likewise.
3437 * cse.c (cse_find_path): Likewise.
3438 (cse_extended_basic_block): Likewise.
3439 (cse_main): Likewise.
3440 * cselib.c (cselib_invalidate_mem): Likewise.
3441 * dse.c (dse_step1): Likewise.
3442 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3443 (get_max_insn_count): Likewise.
3444 (make_debug_insn_raw): Likewise.
3445 (init_emit): Likewise.
3446 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3447 * final.c (compute_alignments): Likewise.
3448 * fold-const.c (fold_range_test): Likewise.
3449 (fold_truth_andor): Likewise.
3450 (tree_single_nonnegative_warnv_p): Likewise.
3451 (integer_valued_real_single_p): Likewise.
3452 * gcse.c (want_to_gcse_p): Likewise.
3453 (prune_insertions_deletions): Likewise.
3454 (hoist_code): Likewise.
3455 (gcse_or_cprop_is_too_expensive): Likewise.
3456 * ggc-common.c: Likewise.
3457 * ggc-page.c (ggc_collect): Likewise.
3458 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3459 (MAX_DATAREFS): Likewise.
3460 (OUTER_STRIDE_RATIO): Likewise.
3461 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3462 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3463 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3464 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3465 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3466 (imm_store_chain_info::output_merged_store): Likewise.
3467 (pass_store_merging::process_store): Likewise.
3468 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3469 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3470 (scop_to_isl_ast): Likewise.
3471 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3472 (optimize_isl): Likewise.
3473 * graphite-scop-detection.c (build_scops): Likewise.
3474 * haifa-sched.c (set_modulo_params): Likewise.
3475 (rank_for_schedule): Likewise.
3476 (model_add_to_worklist): Likewise.
3477 (model_promote_insn): Likewise.
3478 (model_choose_insn): Likewise.
3479 (queue_to_ready): Likewise.
3480 (autopref_multipass_dfa_lookahead_guard): Likewise.
3481 (schedule_block): Likewise.
3482 (sched_init): Likewise.
3483 * hsa-gen.c (init_prologue): Likewise.
3484 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3485 (cond_move_process_if_block): Likewise.
3486 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3487 (merge_agg_lats_step): Likewise.
3488 (devirtualization_time_bonus): Likewise.
3489 (hint_time_bonus): Likewise.
3490 (incorporate_penalties): Likewise.
3491 (good_cloning_opportunity_p): Likewise.
3492 (ipcp_propagate_stage): Likewise.
3493 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3494 (set_switch_stmt_execution_predicate): Likewise.
3495 (analyze_function_body): Likewise.
3496 (compute_fn_summary): Likewise.
3497 * ipa-inline-analysis.c (estimate_growth): Likewise.
3498 * ipa-inline.c (caller_growth_limits): Likewise.
3499 (inline_insns_single): Likewise.
3500 (inline_insns_auto): Likewise.
3501 (can_inline_edge_by_limits_p): Likewise.
3502 (want_early_inline_function_p): Likewise.
3503 (big_speedup_p): Likewise.
3504 (want_inline_small_function_p): Likewise.
3505 (want_inline_self_recursive_call_p): Likewise.
3506 (edge_badness): Likewise.
3507 (recursive_inlining): Likewise.
3508 (compute_max_insns): Likewise.
3509 (early_inliner): Likewise.
3510 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3511 * ipa-profile.c (ipa_profile): Likewise.
3512 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3513 (ipa_analyze_node): Likewise.
3514 (ipcp_transform_function): Likewise.
3515 * ipa-split.c (consider_split): Likewise.
3516 * ipa-sra.c (allocate_access): Likewise.
3517 (process_scan_results): Likewise.
3518 (ipa_sra_summarize_function): Likewise.
3519 (pull_accesses_from_callee): Likewise.
3520 * ira-build.c (loop_compare_func): Likewise.
3521 (mark_loops_for_removal): Likewise.
3522 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3523 * loop-doloop.c (doloop_optimize): Likewise.
3524 * loop-invariant.c (gain_for_invariant): Likewise.
3525 (move_loop_invariants): Likewise.
3526 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3527 (decide_unroll_runtime_iterations): Likewise.
3528 (decide_unroll_stupid): Likewise.
3529 (expand_var_during_unrolling): Likewise.
3530 * lra-assigns.c (spill_for): Likewise.
3531 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3532 * modulo-sched.c (sms_schedule): Likewise.
3533 (DFA_HISTORY): Likewise.
3534 * opts.c (default_options_optimization): Likewise.
3535 (finish_options): Likewise.
3536 (common_handle_option): Likewise.
3537 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3538 (if): Likewise.
3539 * predict.c (get_hot_bb_threshold): Likewise.
3540 (maybe_hot_count_p): Likewise.
3541 (probably_never_executed): Likewise.
3542 (predictable_edge_p): Likewise.
3543 (predict_loops): Likewise.
3544 (expr_expected_value_1): Likewise.
3545 (tree_predict_by_opcode): Likewise.
3546 (handle_missing_profiles): Likewise.
3547 * reload.c (find_equiv_reg): Likewise.
3548 * reorg.c (redundant_insn): Likewise.
3549 * resource.c (mark_target_live_regs): Likewise.
3550 (incr_ticks_for_insn): Likewise.
3551 * sanopt.c (pass_sanopt::execute): Likewise.
3552 * sched-deps.c (sched_analyze_1): Likewise.
3553 (sched_analyze_2): Likewise.
3554 (sched_analyze_insn): Likewise.
3555 (deps_analyze_insn): Likewise.
3556 * sched-ebb.c (schedule_ebbs): Likewise.
3557 * sched-rgn.c (find_single_block_region): Likewise.
3558 (too_large): Likewise.
3559 (haifa_find_rgns): Likewise.
3560 (extend_rgns): Likewise.
3561 (new_ready): Likewise.
3562 (schedule_region): Likewise.
3563 (sched_rgn_init): Likewise.
3564 * sel-sched-ir.c (make_region_from_loop): Likewise.
3565 * sel-sched-ir.h (MAX_WS): Likewise.
3566 * sel-sched.c (process_pipelined_exprs): Likewise.
3567 (sel_setup_region_sched_flags): Likewise.
3568 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3569 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3570 * toplev.c (print_version): Likewise.
3571 (process_options): Likewise.
3572 * tracer.c (tail_duplicate): Likewise.
3573 * trans-mem.c (tm_log_add): Likewise.
3574 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3575 * tree-data-ref.c (split_constant_offset): Likewise.
3576 (compute_all_dependences): Likewise.
3577 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3578 * tree-inline.c (remap_gimple_stmt): Likewise.
3579 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3580 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3581 (create_parallel_loop): Likewise.
3582 * tree-predcom.c (determine_unroll_factor): Likewise.
3583 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3584 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3585 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3586 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3587 (dse_optimize_redundant_stores): Likewise.
3588 (dse_classify_store): Likewise.
3589 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3590 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3591 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3592 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3593 (try_peel_loop): Likewise.
3594 (tree_unroll_loops_completely): Likewise.
3595 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3596 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3597 (MAX_CONSIDERED_GROUPS): Likewise.
3598 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3599 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3600 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3601 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3602 (L1_CACHE_SIZE_BYTES): Likewise.
3603 (L2_CACHE_SIZE_BYTES): Likewise.
3604 (should_issue_prefetch_p): Likewise.
3605 (schedule_prefetches): Likewise.
3606 (determine_unroll_factor): Likewise.
3607 (volume_of_references): Likewise.
3608 (add_subscript_strides): Likewise.
3609 (self_reuse_distance): Likewise.
3610 (mem_ref_count_reasonable_p): Likewise.
3611 (insn_to_prefetch_ratio_too_small_p): Likewise.
3612 (loop_prefetch_arrays): Likewise.
3613 (tree_ssa_prefetch_arrays): Likewise.
3614 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3615 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3616 (convert_mult_to_fma): Likewise.
3617 (math_opts_dom_walker::after_dom_children): Likewise.
3618 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3619 (hoist_adjacent_loads): Likewise.
3620 (gate_hoist_loads): Likewise.
3621 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3622 (compute_partial_antic_aux): Likewise.
3623 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3624 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3625 (vn_reference_lookup): Likewise.
3626 (do_rpo_vn): Likewise.
3627 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3628 * tree-ssa-sink.c (select_best_block): Likewise.
3629 * tree-ssa-strlen.c (new_stridx): Likewise.
3630 (new_addr_stridx): Likewise.
3631 (get_range_strlen_dynamic): Likewise.
3632 (class ssa_name_limit_t): Likewise.
3633 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3634 (create_variable_info_for_1): Likewise.
3635 (init_alias_vars): Likewise.
3636 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3637 (tail_merge_optimize): Likewise.
3638 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3639 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3640 (thread_jumps::find_jump_threads_backwards): Likewise.
3641 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3642 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3643 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3644 (jump_table_cluster::can_be_handled): Likewise.
3645 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3646 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3647 (param_switch_conversion_branch_ratio): Likewise.
3648 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3649 (vect_enhance_data_refs_alignment): Likewise.
3650 (vect_prune_runtime_alias_test_list): Likewise.
3651 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3652 (vect_get_datarefs_in_loop): Likewise.
3653 (vect_analyze_loop): Likewise.
3654 * tree-vect-slp.c (vect_slp_bb): Likewise.
3655 * tree-vectorizer.h: Likewise.
3656 * tree-vrp.c (find_switch_asserts): Likewise.
3657 (vrp_prop::check_mem_ref): Likewise.
3658 * tree.c (wide_int_to_tree_1): Likewise.
3659 (cache_integer_cst): Likewise.
3660 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3661 (reverse_op): Likewise.
3662 (vt_find_locations): Likewise.
3663
3664 2019-11-12 Martin Liska <mliska@suse.cz>
3665
3666 * Makefile.in: Include params.opt.
3667 * flag-types.h (enum parloops_schedule_type): Add
3668 parloops_schedule_type used in params.opt.
3669 * params.opt: New file.
3670
3671 2019-11-12 Martin Liska <mliska@suse.cz>
3672
3673 * common.opt: Remove --param and --param= options.
3674 * opt-functions.awk: Mark CL_PARAMS for options
3675 that have Param keyword.
3676 * opts-common.c (decode_cmdline_options_to_array):
3677 Replace --param key=value with --param=key=value.
3678 * opts.c (print_filtered_help): Remove special
3679 printing of params.
3680 (print_specific_help): Update title for params.
3681 (common_handle_option): Do not handle OPT__param.
3682 opts.h (SET_OPTION_IF_UNSET): New macro.
3683 * doc/options.texi: Document Param keyword.
3684
3685 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3686 Frederik Harwath <frederik@codesourcery.com>
3687 Thomas Schwinge <thomas@codesourcery.com>
3688
3689 gcc/
3690 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3691 enumeration constant.
3692 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3693 (is_gimple_omp_offloaded): Likewise.
3694 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3695 constant. Adjust the value of ORT_NONE accordingly.
3696 (is_gimple_stmt): Handle OACC_SERIAL.
3697 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3698 (gomp_needs_data_present): Likewise.
3699 (gimplify_adjust_omp_clauses): Likewise.
3700 (gimplify_omp_workshare): Handle OACC_SERIAL.
3701 (gimplify_expr): Likewise.
3702 * omp-expand.c (expand_omp_target):
3703 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3704 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3705 * omp-low.c (is_oacc_parallel): Rename function to...
3706 (is_oacc_parallel_or_serial): ... this.
3707 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3708 (scan_sharing_clauses): Adjust accordingly.
3709 (scan_omp_for): Likewise.
3710 (lower_oacc_head_mark): Likewise.
3711 (convert_from_firstprivate_int): Likewise.
3712 (lower_omp_target): Likewise.
3713 (check_omp_nesting_restrictions): Handle
3714 GF_OMP_TARGET_KIND_OACC_SERIAL.
3715 (lower_oacc_reductions): Likewise.
3716 (lower_omp_target): Likewise.
3717 * tree.def (OACC_SERIAL): New tree code.
3718 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3719
3720 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3721
3722 2019-11-12 Jakub Jelinek <jakub@redhat.com>
3723
3724 PR target/92449
3725 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3726 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
3727
3728 PR tree-optimization/92452
3729 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3730 into NULL_TREE, set up_bound to NULL_TREE instead of computing
3731 MINUS_EXPR on it.
3732
3733 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
3734
3735 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3736 safelen with 0.
3737
3738 2019-11-12 Alan Modra <amodra@gmail.com>
3739
3740 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3741 element of unspec vec.
3742 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3743 PC-relative TLS.
3744 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3745 (tls_gd_pcrel, tls_ld_pcrel): New insns.
3746 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3747 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3748
3749 2019-11-12 Alan Modra <amodra@gmail.com>
3750
3751 * config/rs6000/rs6000.opt (mtls-markers): Delete.
3752 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
3753 (IS_NOMARK_TLSGETADDR): Likewise.
3754 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
3755 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
3756 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
3757 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
3758 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
3759 (rs6000_indirect_call_template_1): Likewise.
3760 (rs6000_pltseq_template): Likewise.
3761 (rs6000_opt_vars): Remove "tls-markers" entry.
3762 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
3763 with TARGET_ELF.
3764 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
3765 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
3766 (pltseq_plt_pcrel<mode>): Likewise.
3767 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
3768 (call_value_local64): Likewise.
3769 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
3770 output and length attribute sub-expression.
3771 (call_value_nonlocal_sysv<mode>),
3772 (call_value_nonlocal_sysv_secure<mode>),
3773 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
3774 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
3775 (call_value_indirect_pcrel<mode>): Likewise.
3776 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
3777 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
3778 * configure: Regenerate.
3779 * config.in: Regenerate.
3780
3781 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
3782
3783 * config/rs6000/predicates.md (prefixed_memory): New predicate.
3784 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
3785 address being a prefixed load/store.
3786 (stack_protect_testdi): Deal with either address being a prefixed
3787 load.
3788
3789 2019-11-11 Jakub Jelinek <jakub@redhat.com>
3790
3791 PR bootstrap/92433
3792 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
3793 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
3794 std::swap.
3795
3796 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
3797
3798 PR tree-optimization/92420
3799 * tree-vect-stmts.c (get_negative_load_store_type): Move further
3800 up file.
3801 (get_group_load_store_type): Use it for reversed SLP accesses.
3802
3803 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
3804
3805 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
3806 summary.
3807 (ipcp_transformation_t::duplicate): Break out from ...
3808 (ipa_node_params_t::duplicate): ... here; add copying of agg
3809 replacements.
3810 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
3811 (ipcp_transformation_t): Add duplicate.
3812
3813 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
3814
3815 PR fortran/91828
3816 * doc/install.texi: Document that the minimum MPFR version is
3817 3.1.0.
3818
3819 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3820
3821 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
3822 use new register constraint letters.
3823
3824 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3825
3826 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
3827 as well, if interesting recover the symbol and re-legitimize the
3828 pic address.
3829
3830 2019-11-11 Martin Liska <mliska@suse.cz>
3831
3832 * dbgcnt.def (DEBUG_COUNTER): Sort counters
3833 alphabetically.
3834
3835 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
3836
3837 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
3838 account when checking if there are enough iterations to vectorize
3839 epilogue.
3840
3841 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
3842 Kwok Cheung Yeung <kcy@codesourcery.com>
3843
3844 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
3845 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
3846 (LANG_HOOKS_DECLS): Rename also here.
3847 * langhooks.h (lang_hooks_for_decls): Rename
3848 omp_is_optional_argument to omp_check_optional_argument; take
3849 additional bool argument.
3850 * omp-general.h (omp_check_optional_argument): Likewise.
3851 * omp-general.h (omp_check_optional_argument): Likewise.
3852 * omp-low.c (lower_omp_target): Update calls; handle absent
3853 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
3854
3855 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
3856
3857 PR target/87833
3858 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
3859 -fPIC and -shared the last to create offload image.
3860
3861 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
3862
3863 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
3864 of 'offset'.
3865
3866 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
3867 (config.status): Use/depend on it.
3868 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
3869 * configure: Regenerate.
3870
3871 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
3872
3873 PR tree-optimization/88760
3874 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
3875 * gcc/common/config/rs6000/rs6000-common.c
3876 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
3877 Turn on -funroll-loops and -munroll-only-small-loops.
3878 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
3879 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3880 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
3881 Turn off -munroll-only-small-loops for explicit -funroll-loops.
3882 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
3883 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
3884
3885 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
3886
3887 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3888 Make scalar_load, vector_load, unaligned_load and
3889 vector_gather_load cost more to conform hardware latency and
3890 insn cost settings.
3891
3892 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
3893
3894 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
3895 (MACHO_SYMBOL_LINKER_VIS_P): New.
3896
3897 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
3898
3899 * lra-spills.c (assign_spill_hard_regs): Do not spill into
3900 registers in eliminable_regset.
3901
3902 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3903
3904 * ipa-inline.c (compute_uninlined_call_time,
3905 compute_inlined_call_time): Take edge frequency as
3906 parameter rather than computing it by itself.
3907 (big_speedup_p, edge_badness): Manually CSE sreal
3908 frequency calculations.
3909
3910 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3911
3912 * profile-count.c (profile_count::to_sreal_scale): Short circuit
3913 case where profiles are same.
3914
3915 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3916
3917 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
3918
3919 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3920
3921 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
3922 args summaries of inlined edge unless it holds info about
3923 described reference.
3924
3925 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
3926
3927 * config/rs6000/rs6000.md (CC_any): New mode iterator.
3928 (*movcc_internal1): Rename to...
3929 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
3930
3931 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3932
3933 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
3934 (cgraph_node::create_virtual_clone): Copy it.
3935 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
3936 summaries.
3937 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
3938 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
3939 is disabled.
3940 (propagate_constants_across_call): If callee is not analyzed, give up.
3941 (propagate_constants_topo): Lower to bottom latties of all callees of
3942 functions with ipa-cp disabled.
3943 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
3944 (cgraph_edge_brings_value_p): Check for availability first.
3945 (create_specialized_node): Set ipcp_clone.
3946 (ipcp_store_bits_results): Check that info is present.
3947 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
3948 thunks.
3949 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
3950 conservative when callee summary is missing.
3951 (remap_edge_summaries): Lookup call summary only when needed.
3952 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
3953 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
3954 Use get_create.
3955 (ipa_analyze_node): Use get_create.
3956 (propagate_controlled_uses): Do not propagate when function is not
3957 analyzed.
3958 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
3959 (ipa_read_node_info): Use get_create.
3960 * ipa-prop.h (IPA_NODE_REF): Use get.
3961 (IPA_NODE_REF_GET_CREATE): New.
3962
3963 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3964
3965 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
3966 on function symbol.
3967
3968 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3969
3970 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
3971 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3972 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
3973 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3974
3975 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3976
3977 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
3978 capping the growth cumulated.
3979 (offline_size): Break out from ...
3980 (estimate_growth): ... here.
3981 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
3982 parameters.
3983 (growth_likely_positive): Turn to ...
3984 (growth_positive_p): Re-implement.
3985 * ipa-inline.h (growth_likely_positive): Remove.
3986 (growth_positive_p): Declare.
3987 * ipa-inline.c (want_inline_small_function_p): Use
3988 growth_positive_p.
3989 (want_inline_function_to_all_callers_p): Likewise.
3990
3991 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3992
3993 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
3994 calculation of min_size.
3995 (ipa_update_overall_fn_summary): Likewise.
3996
3997 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3998
3999 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4000 estimate_edge_devirt_benefit when not computing hints;
4001 do not compute time when not asked for.
4002 (estimate_calls_size_and_time): Pass NULL hints and time when
4003 these are not computed; do not evaluate hint predicates when these are
4004 not computed.
4005 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4006 frequency.
4007
4008 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4009
4010 PR tree-optimization/92401
4011 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4012 if res_op->code is an expression with code length 1.
4013 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4014 if res_op->code is an expression with code length 2.
4015 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4016 if res_op->code is an expression with code length 3.
4017
4018 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4019
4020 * config/darwin.c (machopic_mcount_stub_name): Validate the
4021 symbol stub name when it is created.
4022 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4023 stub validation.
4024
4025 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4026
4027 * symtab.c: Fix comment typos.
4028 * cgraphunit.c: Likewise.
4029 * cgraph.h: Likewise.
4030 * cgraphclones.c: Likewise.
4031 * cgraph.c: Likewise.
4032 * varpool.c: Likewise.
4033 * tree-ssa-strlen.c: Likewise.
4034 * ipa-sra.c: Likewise.
4035 (scan_expr_access, check_all_callers_for_issues): Fix typo
4036 in a dump message.
4037
4038 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4039
4040 * config/darwin-protos.h: Add include quard.
4041
4042 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4043
4044 * range-op.h (range_operator::fold_range): Return result in a
4045 reference parameter instead of by value.
4046 (range_operator::wi_fold): Same.
4047 * range-op.cc (range_operator::wi_fold): Return result in a reference
4048 parameter instead of by value.
4049 (range_operator::fold_range): Same.
4050 (value_range_from_overflowed_bounds): Same.
4051 (value_range_with_overflow): Same
4052 (create_possibly_reversed_range): Same.
4053 (operator_equal::fold_range): Same.
4054 (operator_not_equal::fold_range): Same.
4055 (operator_lt::fold_range): Same.
4056 (operator_le::fold_range): Same.
4057 (operator_gt::fold_range): Same.
4058 (operator_ge::fold_range): Same.
4059 (operator_plus::wi_fold): Same.
4060 (operator_plus::op1_range): Change call to fold_range.
4061 (operator_plus::op2_range): Change call to fold_range.
4062 (operator_minus::wi_fold): Return result via reference parameter.
4063 (operator_minus::op1_range): Change call to fold_range.
4064 (operator_minus::op2_range): Change call to fold_range.
4065 (operator_min::wi_fold): Return result via reference parameter.
4066 (operator_max::wi_fold): Same.
4067 (cross_product_operator::wi_cross_product): Same.
4068 (operator_mult::wi_fold): Same.
4069 (operator_div::wi_fold): Same.
4070 (operator_div op_floor_div): Fix whitespace.
4071 (operator_exact_divide::op1_range): Change call to fold_range.
4072 (operator_lshift::fold_range): Return result via reference parameter.
4073 (operator_lshift::wi_fold): Same.
4074 (operator_rshift::fold_range): Same.
4075 (operator_rshift::wi_fold): Same.
4076 (operator_cast::fold_range): Same.
4077 (operator_cast::op1_range): Change calls to fold_range.
4078 (operator_logical_and::fold_range): Return result via reference.
4079 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4080 (operator_bitwise_and::wi_fold): Return result via reference.
4081 (operator_logical_or::fold_range): Same.
4082 (operator_bitwise_or::wi_fold): Same.
4083 (operator_bitwise_xor::wi_fold): Same.
4084 (operator_trunc_mod::wi_fold): Same.
4085 (operator_logical_not::fold_range): Same.
4086 (operator_bitwise_not::fold_range): Same.
4087 (operator_bitwise_not::op1_range): Change call to fold_range.
4088 (operator_cst::fold_range): Return result via reference.
4089 (operator_identity::fold_range): Same.
4090 (operator_abs::wi_fold): Same.
4091 (operator_absu::wi_fold): Same.
4092 (operator_negate::fold_range): Same.
4093 (operator_negate::op1_range): Change call to fold_range.
4094 (operator_addr_expr::fold_range): Return result via reference.
4095 (operator_addr_expr::op1_range): Change call to fold_range.
4096 (operator_pointer_plus::wi_fold): Return result via reference.
4097 (operator_pointer_min_max::wi_fold): Same.
4098 (operator_pointer_and::wi_fold): Same.
4099 (operator_pointer_or::wi_fold): Same.
4100 (range_op_handler): Change call to fold_range.
4101 (range_cast): Same.
4102 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4103 fold_range.
4104 (range_fold_unary_symbolics_p): Same.
4105 (range_fold_binary_expr): Same.
4106 (range_fold_unary_expr): Same.
4107
4108 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4109
4110 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4111 vector type as an argument rather than reading it from the
4112 stmt_vec_info.
4113 (vect_create_epilog_for_reduction): Update accordingly.
4114 (vectorizable_reduction): Likewise.
4115 (vect_transform_cycle_phi): Likewise.
4116
4117 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4118
4119 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4120 the comparison codes that make sense for the mode used, and only the
4121 codes that can be done with a single branch instruction.
4122
4123 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4124
4125 PR tree-optimization/92351
4126 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4127 peeling the main loop for alignment, make sure to set the misalignment
4128 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4129
4130 2019-11-08 Richard Biener <rguenther@suse.de>
4131
4132 * dbgcnt.def (ivopts_loop): Add.
4133 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4134 ivopts_loop before optimizing a loop.
4135
4136 2019-11-08 Richard Biener <rguenther@suse.de>
4137
4138 PR ipa/92409
4139 * tree-inline.c (declare_return_variable): Properly handle
4140 type mismatches for the return slot.
4141
4142 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4143
4144 PR target/92095
4145 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4146 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4147 change.
4148 (got_helper_needed): New static variable.
4149 (output_load_pcrel_sym): New function.
4150 (get_pc_thunk_name): Remove after inlining...
4151 (load_got_register): ...here. Rework the initialization of the GOT
4152 register and of the GOT helper.
4153 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4154 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4155 helper must be emitted. Use output_asm_insn instead of fprintf.
4156 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4157 if optimization is enabled.
4158 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4159 by calling output_load_pcrel_sym.
4160
4161 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4162
4163 * tree-sra.c (create_access): Delay disqualifying the base
4164 for poly_int values until we know we have a base.
4165
4166 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4167
4168 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4169 for loops with SIMDUID set. Enable epilogue vectorization for loops
4170 with SIMDLEN set after finding a main loop with a VF that matches it.
4171
4172 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4173
4174 PR target/92038
4175 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4176 value only, return non-NULL if there is a single non-clobber
4177 constituent store even if there are constituent clobbers and return
4178 one of clobber constituent stores if all constituent stores are
4179 clobbers.
4180 (split_group): Handle clobbers.
4181 (imm_store_chain_info::output_merged_store): When computing
4182 bzero_first, look after all clobbers at the start. Don't count
4183 clobber stmts in orig_num_stmts, except if the first orig store is
4184 a clobber covering the whole area and split_stores cover the whole
4185 area, consider equal number of stmts ok. Punt if split_stores
4186 contains only ->orig stores and their number plus number of original
4187 clobbers is equal to original number of stmts. For ->orig, look past
4188 clobbers in the constituent stores.
4189 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4190 stmts.
4191 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4192 rhs.
4193 (store_valid_for_store_merging_p): Allow clobber stmts.
4194 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4195
4196 PR c++/92384
4197 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4198 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4199 slot.
4200 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4201 force creation of a unique data.stack_parm slot.
4202
4203 2019-11-08 Richard Biener <rguenther@suse.de>
4204
4205 * genmatch.c (expr::gen_transform): Use the resimplify
4206 member function instead of hard-coding the gimple_resimplifyN variant.
4207 (dt_simplify::gen_1): Likewise.
4208
4209 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4210
4211 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4212 POLY_INT_CST.
4213
4214 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4215
4216 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4217 instead of INTEGER_CST.
4218
4219 2019-11-08 Richard Biener <rguenther@suse.de>
4220
4221 PR tree-optimization/92324
4222 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4223 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4224 sign-conversions as necessary.
4225 (vectorizable_reduction): Reject conversions in the chain
4226 that are not sign-conversions, base analysis on a non-converting
4227 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4228 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4229 for debug stmts.
4230 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4231 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4232
4233 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4234
4235 PR target/92055
4236 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4237 Fix a missing '-' when displaying these options in the
4238 help screen.
4239
4240 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4241
4242 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4243
4244 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4245
4246 * config/aarch64/aarch64-builtins.c
4247 (aarch64_builtin_vectorized_function): Remove bswap handling.
4248
4249 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4250
4251 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4252 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4253 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4254 Treat the vector types as indivisible.
4255
4256 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4257
4258 * optabs.def (gather_load_optab, mask_gather_load_optab)
4259 (scatter_store_optab, mask_scatter_store_optab): Turn into
4260 conversion optabs, with the offset mode given explicitly.
4261 * doc/md.texi: Update accordingly.
4262 * config/aarch64/aarch64-sve-builtins-base.cc
4263 (svld1_gather_impl::expand): Likewise.
4264 (svst1_scatter_impl::expand): Likewise.
4265 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4266 (expand_scatter_store_optab_fn): Likewise.
4267 (direct_gather_load_optab_supported_p): Likewise.
4268 (direct_scatter_store_optab_supported_p): Likewise.
4269 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4270 to be argument 4.
4271 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4272 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4273 argument with the offset vector type. Require the two vector
4274 types to have the same number of elements but allow their element
4275 sizes to be different. Treat the optabs as conversion optabs.
4276 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4277 prototype accordingly.
4278 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4279 (supports_vec_convert_optab_p): ...this new function.
4280 (supports_vec_gather_load_p): Update accordingly.
4281 (supports_vec_scatter_store_p): Likewise.
4282 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4283 Replace the offset sign and bits parameters with a scalar type tree.
4284 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4285 Pass back the offset vector type instead of the scalar element type.
4286 Allow the offset to be wider than the memory elements. Search for
4287 an offset type that the target supports, stopping once we've
4288 reached the maximum of the element size and pointer size.
4289 Update call to internal_gather_scatter_fn_supported_p.
4290 (vect_check_gather_scatter): Update calls accordingly.
4291 When testing a new scale before knowing the final offset type,
4292 check whether the scale is supported for any signed or unsigned
4293 offset type. Check whether the target supports the source and
4294 target types of a conversion before deciding whether to look
4295 through the conversion. Record the chosen offset_vectype.
4296 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4297 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4298 directly from the gs_info's offset_vectype instead. Pass a zero
4299 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4300 * tree-vect-stmts.c (check_load_store_masking): Update call to
4301 internal_gather_scatter_fn_supported_p, passing the offset vector
4302 type recorded in the gs_info.
4303 (vect_truncate_gather_scatter_offset): Update call to
4304 vect_check_gather_scatter, leaving it to search for a valid
4305 offset vector type.
4306 (vect_use_strided_gather_scatters_p): Convert the offset to the
4307 element type of the gs_info's offset_vectype.
4308 (vect_get_gather_scatter_ops): Get the offset vector type directly
4309 from the gs_info.
4310 (vect_get_strided_load_store_ops): Likewise.
4311 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4312 and IFN_MASK_GATHER_LOAD.
4313 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4314 (gather_load<mode><v_int_equiv>): ...this.
4315 (mask_gather_load<mode>): Rename to...
4316 (mask_gather_load<mode><v_int_equiv>): ...this.
4317 (scatter_store<mode>): Rename to...
4318 (scatter_store<mode><v_int_equiv>): ...this.
4319 (mask_scatter_store<mode>): Rename to...
4320 (mask_scatter_store<mode><v_int_equiv>): ...this.
4321
4322 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4323
4324 PR target/92132
4325 * config/rs6000/predicates.md
4326 (signed_or_equality_comparison_operator): New predicate.
4327 (unsigned_or_equality_comparison_operator): Likewise.
4328 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4329 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4330 * config/rs6000/vector.md
4331 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4332 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4333 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4334 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4335 vector modes and same-size integer vector modes.
4336 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4337 (vector_lt<mode> for VEC_F): New expand.
4338 (vector_le<mode> for VEC_F): Likewise.
4339 (vector_ne<mode> for VEC_F): Likewise.
4340 (vector_unge<mode> for VEC_F): Likewise.
4341 (vector_ungt<mode> for VEC_F): Likewise.
4342 (vector_unle<mode> for VEC_F): Likewise.
4343 (vector_unlt<mode> for VEC_F): Likewise.
4344 (vector_uneq<mode>): Expose name.
4345 (vector_ltgt<mode>): Likewise.
4346 (vector_unordered<mode>): Likewise.
4347 (vector_ordered<mode>): Likewise.
4348
4349 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4350
4351 PR target/92295
4352 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4353 Enhance ix86_expand_vector_init_concat.
4354
4355 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4356
4357 * doc/invoke.texi (-Wold-style-definition): Document () not being
4358 considered an old-style definition for C2x.
4359
4360 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4361
4362 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4363 Enhance comment.
4364 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4365 insn patterns using ldcw instruction.
4366 (memory_barrier): Remove insn pattern using sync instruction.
4367 * config/pa/pa.opt (coherent-ldcw): New option.
4368 (ordered): New option.
4369
4370 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4371
4372 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4373 valid conditions.
4374
4375 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4376
4377 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4378 typo - mistmatch -> mismatch.
4379 * ipa-profile.c (ipa_profile): Likewise.
4380 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4381 - mistmatch -> mismatch.
4382
4383 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4384
4385 * simplify-rtx.c (comparison_to_mask): New function.
4386 (mask_to_comparison): New function.
4387 (simplify_logical_relational_operation): New function.
4388 (simplify_binary_operation_1): Call
4389 simplify_logical_relational_operation.
4390
4391 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4392
4393 PR other/92090
4394 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4395 modes for integer constants.
4396
4397 2019-11-07 Jan Hubicka <jh@suse.cz>
4398
4399 PR ipa/92406
4400 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4401 summary.
4402
4403 2019-11-07 Jan Hubicka <jh@suse.cz>
4404
4405 * optc-save-gen.awk: Generate cl_target_option_free
4406 and cl_optimization_option_free.
4407 * opth-en.awk: Declare cl_target_option_free
4408 and cl_optimization_option_free.
4409 * tree.c (free_node): Use it.
4410
4411 2019-11-06 Jan Hubicka <jh@suse.cz>
4412
4413 * lto-streamer-in.c: Include alloc-pool.h.
4414 (freeing_string_slot_hasher): Remove.
4415 (string_slot_allocator): New object allocator.
4416 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4417 (file_name_obstack): New obstack.
4418 (canon_file_name): Allocate in obstack and allocator.
4419 (lto_reader_init): Initialize obstack and allocator.
4420 (lto_free_file_name_hash): New function.
4421 * lto-streamer.h (lto_free_file_name_hash): New.
4422
4423 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4424
4425 PR tree-optimization/89134
4426 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4427 * params.def: Add min-loop-cond-split-prob.
4428 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4429 outside checks on loop into the function.
4430 (split_info): New class.
4431 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4432 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4433 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4434 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4435 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4436 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4437 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4438 (split_loop_on_cond): Likewise.
4439 (tree_ssa_split_loops): Add loop split on conditional statement.
4440
4441 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4442
4443 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4444 pattern.
4445
4446 2019-11-07 Richard Biener <rguenther@suse.de>
4447
4448 PR tree-optimization/92405
4449 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4450 restrict lane-reducing ops to single stmt chains.
4451
4452 2019-11-07 Martin Jambor <mjambor@suse.cz>
4453
4454 PR lto/70929
4455 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4456 * cgraph.h (gimple_check_call_matching_types): Remove
4457 * cgraph.c (gimple_check_call_args): Likewise.
4458 (gimple_check_call_matching_types): Likewise.
4459 (symbol_table::create_edge): Do not call
4460 gimple_check_call_matching_types.
4461 (cgraph_edge::make_direct): Likewise.
4462 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4463 * value-prof.h (check_ic_target): Remove.
4464 * value-prof.c (check_ic_target): Remove.
4465 (gimple_ic_transform): Do nat call check_ic_target.
4466 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4467 (afdo_indirect_call): Likewise.
4468 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4469 gimple_check_call_matching_types.
4470 * ipa-inline.c (early_inliner): Likewise.
4471
4472 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4473
4474 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4475 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4476 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4477 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4478 * config/arm/iterators.md (USSAT16): New int_iterator.
4479 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4480 (sup): Likewise.
4481 * config/arm/predicates.md (ssat16_imm): New predicate.
4482 (usat16_imm): Likewise.
4483 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4484
4485 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4486
4487 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4488 New define_insns.
4489 (arm_<simd32_op>): New define_expands.
4490 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4491 __smuad, __smuadx): Define.
4492 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4493 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4494 (SIMD32_BINOP_Q): Likewise.
4495 (simd32_op): Handle the above.
4496 * config/arm/unspecs.md: Define unspecs for the above.
4497
4498 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4499
4500 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4501 * config/arm/arm.md (APSRGE_REGNUM): Define.
4502 (arm_<simd32_op>): New define_insn.
4503 (arm_sel): Likewise.
4504 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4505 (CALL_USED_REGISTERS): Likewise.
4506 (REG_ALLOC_ORDER): Likewise.
4507 (FIRST_PSEUDO_REGISTER): Update value.
4508 (ARM_GE_BITS_READ): Define.
4509 * config/arm/arm.c (arm_conditional_register_usage): Clear
4510 APSRGE_REGNUM from operand_reg_set.
4511 (arm_ge_bits_access): Define.
4512 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4513 ARM_BUIILTIN_sel.
4514 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4515 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4516 FAIL if ARM_GE_BITS_READ.
4517 (*arm_add<mode>3): New define_insn.
4518 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4519 (*arm_sub<mode>3): New define_insn.
4520 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4521 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4522 __usub16): Define.
4523 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4524 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4525 (simd32_op): Handle the above.
4526 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4527 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4528 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4529 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4530
4531 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4532
4533 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4534 (arm_smlabb): New define_expand.
4535 (*maddhisi4tb): Rename to...
4536 (maddhisi4tb): ... This.
4537 (*maddhisi4tt): Rename to...
4538 (maddhisi4tt): ... This.
4539 (arm_smlatb_setq): New define_insn.
4540 (arm_smlatb): New define_expand.
4541 (arm_smlatt_setq): New define_insn.
4542 (arm_smlatt): New define_expand.
4543 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4544 (arm_<smlaw_op>): New define_expand.
4545 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4546 __smlawb, __smlawt): Define.
4547 * config/arm_acle_builtins.def: Define builtins for the above.
4548 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4549 (slaw_op): New int_attribute.
4550 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4551
4552 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4553
4554 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4555 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4556 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4557 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4558 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4559 (ss_op): New code_attr.
4560
4561 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4562
4563 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4564 * config/arm/arm.md (APSRQ_REGNUM): Define.
4565 (add_setq): New define_subst.
4566 (add_clobber_q_name): New define_subst_attr.
4567 (add_clobber_q_pred): Likewise.
4568 (maddhisi4): Change to define_expand. Split into mult and add if
4569 ARM_Q_BIT_READ.
4570 (arm_maddhisi4): New define_insn.
4571 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4572 (*maddhisi4tt): Likewise.
4573 (arm_ssat): New define_expand.
4574 (arm_usat): Likewise.
4575 (arm_get_apsr): New define_insn.
4576 (arm_set_apsr): Likewise.
4577 (arm_saturation_occurred): New define_expand.
4578 (arm_set_saturation): Likewise.
4579 (*satsi_<SAT:code>): Rename to...
4580 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4581 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4582 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4583 (CALL_USED_REGISTERS): Mark apsrq.
4584 (FIRST_PSEUDO_REGISTER): Update value.
4585 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4586 (machine_function): Add q_bit_access.
4587 (ARM_Q_BIT_READ): Define.
4588 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4589 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4590 operand_reg_set.
4591 (arm_q_bit_access): Define.
4592 * config/arm/arm-builtins.c: Include stringpool.h.
4593 (arm_sat_binop_imm_qualifiers,
4594 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4595 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4596 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4597 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4598 SET_SAT_QUALIFIERS): Likewise.
4599 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4600 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4601 Handle 0 argument expander.
4602 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4603 (arm_check_builtin_call): Define.
4604 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4605 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4606 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4607 (arm_q_bit_access): Likewise.
4608 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4609 __saturation_occurred, __set_saturation_occurred): Define.
4610 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4611 saturation_occurred, set_saturation_occurred.
4612 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4613 (UNSPEC_APSR_READ): Likewise.
4614 (VUNSPEC_APSR_WRITE): Likewise.
4615 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4616 (*arm_ssadd<mode>3): New define_insn.
4617 (sssub<mode>3): Convert to define_expand.
4618 (*arm_sssub<mode>3): New define_insn.
4619 (ssmulsa3): Convert to define_expand.
4620 (*arm_ssmulsa3): New define_insn.
4621 (usmulusa3): Convert to define_expand.
4622 (*arm_usmulusa3): New define_insn.
4623 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4624 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4625 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4626
4627 2019-11-07 Martin Liska <mliska@suse.cz>
4628
4629 PR c++/92354
4630 * cgraph.c (delete_function_version): Clear global
4631 variable version_info_node if equal to deleted
4632 function.
4633
4634 2019-11-07 Martin Liska <mliska@suse.cz>
4635
4636 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4637 of CONSTRUCTOR_NO_CLEARING.
4638 (operand_compare::hash_operand): Likewise.
4639
4640 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4641
4642 Support 64-bit double and 64-bit long double configurations.
4643
4644 PR target/92055
4645 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4646 --with-long-double=.
4647 * config/avr/t-multilib: Remove.
4648 * config/avr/t-avr: Output of genmultilib.awk is now fully
4649 dynamically generated and no more part of the repo.
4650 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4651 Pass them down to...
4652 * config/avr/genmultilib.awk: ...here and handle them.
4653 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4654 (-mlong-double=, avr_long_double). New option and var.
4655 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4656 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4657 Set default as requested by --with-double=
4658 (TARGET_HANDLE_OPTION): Define to this...
4659 (avr_handle_option): ...new hook worker.
4660 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4661 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4662 (avr_double_lib): New proto for spec function.
4663 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4664 (DRIVER_SELF_SPECS): Call %:double-lib.
4665 * config/avr/avr.c (avr_option_override): Assert
4666 sizeof(long double) >= sizeof(double) for the target.
4667 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4668 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4669 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4670 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4671 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4672 New built-in define depending on --with-double=, --with-long-double=.
4673 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4674 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4675 * doc/install.texi (Cross-Compiler-Specific Options)
4676 <--with-double=, --with-long-double=>: Doc.
4677
4678 2019-11-07 Richard Biener <rguenther@suse.de>
4679
4680 * dbgcnt.def (gimple_unroll): New.
4681 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4682 gimple_unroll debug counter before applying transform.
4683 (try_peel_loop): Likewise.
4684
4685 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4686
4687 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4688 frame pointer in multiple registers.
4689 (ira_setup_eliminable_regset): Setup eliminable_regset,
4690 ira_no_alloc_regs and regs_ever_live for frame pointer in
4691 multiple registers.
4692
4693 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4694
4695 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4696 V2DI modes.
4697
4698 2019-11-06 Jan Hubicka <jh@suse.cz>
4699
4700 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4701 allocations.
4702 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4703 Do not silently ignore summary corruptions.
4704
4705 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4706
4707 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4708 the epilogue if there are peeled iterations for it to handle.
4709
4710 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4711
4712 * config/arc/arc.c (arc_split_ior): Add asserts.
4713 (arc_split_mov_const): Likewise.
4714 (arc_check_ior_const): Do not match known short immediate values.
4715 * config/arc/arc.md (movsi): Don't split predicated instructions
4716 (iorsi): Likewise.
4717
4718 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4719
4720 * config/arc/arc.opt (mea): Update help string.
4721 * doc/invoke.texi(ARC): Update mea option info.
4722
4723 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4724
4725 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4726 (zero_extendqisi2_ac): Likewise.
4727 (zero_extendhisi2_i): Likewise.
4728 (extendqihi2_i): Likewise.
4729 (extendqisi2_ac): Likewise.
4730 (extendhisi2_i): Likewise.
4731
4732 2019-11-06 Richard Biener <rguenther@suse.de>
4733
4734 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4735 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4736 Simplify single_defuse_cycle condition.
4737
4738 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4739
4740 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4741 epilogue loop, make sure that the VF is small enough or that
4742 the epilogue loop can be fully-masked.
4743
4744 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4745
4746 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4747 loop when we've finished, rather than returning directly from
4748 the loop. Use a local variable to track whether we're still
4749 searching for the preferred simdlen. Make vect_epilogues
4750 record whether the next iteration should try to treat the
4751 loop as an epilogue.
4752
4753 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
4754
4755 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
4756 __arc_hard_float__, __ARC_HARD_FLOAT__,
4757 __arc_soft_float__, __ARC_SOFT_FLOAT__
4758
4759 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4760
4761 PR tree-optimization/92317
4762 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
4763 update phi's with constant phi arguments.
4764
4765 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
4766 Alexandre Oliva <oliva@adacore.com>
4767
4768 * common.opt (-fcallgraph-info[=]): New option.
4769 * doc/invoke.texi (Developer options): Document it.
4770 * opts.c (common_handle_option): Handle it.
4771 * builtins.c (expand_builtin_alloca): Record allocation if
4772 -fcallgraph-info=da.
4773 * calls.c (expand_call): If -fcallgraph-info, record the call.
4774 (emit_library_call_value_1): Likewise.
4775 * flag-types.h (enum callgraph_info_type): New type.
4776 * explow.c: Include stringpool.h.
4777 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
4778 * function.c (allocate_stack_usage_info): New.
4779 (allocate_struct_function): Call it for -fcallgraph-info.
4780 (prepare_function_start): Call it otherwise.
4781 (record_final_call, record_dynamic_alloc): New.
4782 * function.h (struct callinfo_callee): New.
4783 (CALLEE_FROM_CGRAPH_P): New.
4784 (struct callinfo_dalloc): New.
4785 (struct stack_usage): Add callees and dallocs.
4786 (record_final_call, record_dynamic_alloc): Declare.
4787 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
4788 object if -fcallgraph-info=da.
4789 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
4790 * print-tree.h (print_decl_identifier): Declare.
4791 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
4792 * print-tree.c: Include print-tree.h.
4793 (print_decl_identifier): New function.
4794 * toplev.c: Include print-tree.h.
4795 (callgraph_info_file): New global variable.
4796 (callgraph_info_external_printed): Likewise.
4797 (output_stack_usage): Rename to...
4798 (output_stack_usage_1): ... this. Make it static, add cf
4799 parameter. If -fcallgraph-info=su, print stack usage to cf.
4800 If -fstack-usage, use print_decl_identifier for
4801 pretty-printing.
4802 (INDIRECT_CALL_NAME): New.
4803 (dump_final_node_vcg_start): New.
4804 (dump_final_callee_vcg, dump_final_node_vcg): New.
4805 (output_stack_usage): New.
4806 (lang_dependent_init): Open and start file if
4807 -fcallgraph-info. Allocated callgraph_info_external_printed.
4808 (finalize): If callgraph_info_file is not null, finish it,
4809 close it, and release callgraph_info_external_printed.
4810
4811 2019-11-06 Gergö Barany <gergo@codesourcery.com>
4812 Frederik Harwath <frederik@codesourcery.com>
4813 Thomas Schwinge <thomas@codesourcery.com>
4814
4815 * omp-low.c (struct omp_context): New fields
4816 local_reduction_clauses, outer_reduction_clauses.
4817 (new_omp_context): Initialize these.
4818 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
4819 (scan_omp_for): Check reduction clauses for incorrect nesting.
4820
4821 2019-11-06 Jakub Jelinek <jakub@redhat.com>
4822
4823 PR inline-asm/92352
4824 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
4825 operands with non-memory constraints.
4826
4827 2019-11-05 Martin Sebor <msebor@redhat.com>
4828
4829 PR tree-optimization/92373
4830 * tree.c (component_ref_size): Only consider initializers of objects
4831 of matching struct types.
4832 Return null for instances of interior zero-length arrays.
4833
4834 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
4835
4836 * doc/md.texi (Insn Splitting): Fix combiner documentation.
4837
4838 2019-11-05 Jason Merrill <jason@redhat.com>
4839
4840 PR tree-optimization/91825
4841 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
4842
4843 2019-11-05 Jim Wilson <jimw@sifive.com>
4844
4845 PR middle-end/92263
4846 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
4847 optimize_insn_for_speed_p is true.
4848
4849 2019-11-05 Martin Sebor <msebor@redhat.com>
4850
4851 PR middle-end/92333
4852 PR middle-end/82608
4853 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
4854 size.
4855 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
4856 name and location for a temporary variable.
4857
4858 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4859
4860 * tree-vrp.c (value_range::value_range): Fix whitespace.
4861 (defined_ranges_p): Same.
4862 (range_fold_binary_symbolics_p): Same.
4863 (value_range::intersect_helper): Same.
4864 (value_range::union_helper): Same.
4865 * tree-vrp.h (range_fold_binary_expr): Same.
4866
4867 2019-11-04 Martin Sebor <msebor@redhat.com>
4868
4869 PR middle-end/92341
4870 PR middle-end/82612
4871 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
4872 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
4873 of message printed in a warning for empty arrays.
4874 (vrp_prop::check_mem_ref): Also handle function parameters and
4875 empty arrays.
4876
4877 2019-11-05 Richard Biener <rguenther@suse.de>
4878
4879 PR tree-optimization/92371
4880 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
4881 on the original stmt of live stmts in the chain.
4882 (vectorizable_live_operation): Look at the original stmt when
4883 checking STMT_VINFO_REDUC_DEF.
4884
4885 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4886
4887 * gimple-fold.c, gimple-loop-versioning.cc,
4888 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
4889 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
4890 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
4891 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
4892 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
4893 value_range_equiv, and value_range_base to value_range.
4894
4895 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4896
4897 * expr.c (build_personality_function): Fix generated type to
4898 match actual personality functions.
4899
4900 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4901
4902 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
4903 enough bytes for the NULL character.
4904
4905 2019-11-05 Richard Biener <rguenther@suse.de>
4906
4907 PR tree-optimization/92280
4908 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
4909 had a single use do not create a new CTOR.
4910 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
4911 BIT_FIELD_REF of a CTOR via GENERIC.
4912
4913 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
4914
4915 * config/s390/s390.c (s390_vector_alignment): Check if the value
4916 fits into uhwi before using it.
4917
4918 2019-11-05 Martin Liska <mliska@suse.cz>
4919
4920 * symbol-summary.h: Use ggc_delete.
4921
4922 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4923
4924 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
4925 Change vec_perm field to 10.
4926
4927 2019-11-05 Arnaud Charlet <charlet@adacore.com>
4928
4929 * doc/install.texi: Further fix syntax for html generation.
4930
4931 2019-11-05 Martin Liska <mliska@suse.cz>
4932
4933 * symbol-summary.h: Rename allocator to m_allocator and
4934 add comment.
4935
4936 2019-11-05 Richard Biener <rguenther@suse.de>
4937
4938 PR tree-optimization/92324
4939 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
4940 all signed or unsigned operations.
4941
4942 2019-11-05 Jan Hubicka <jh@suse.cz>
4943
4944 * hsa-brig.c: Include alloc-pool.h
4945 * hsa-dump.c: Likewise.
4946 * hsa-gen.c: Likewise.
4947 * hse-regalloc.c: Likewise.
4948 * ipa-hsa.c: Likewise.
4949 * ipa-predicate.c: Likewise.
4950 * ipa-reference.c: Likewise.
4951 * ipa-sra.c: Likewise.
4952 * omp-expand.c: Likewise.
4953 * omp-general.c: Likewise.
4954 * omp-low.c: Likewise.
4955 * sumbol-summary.h (function_summary_base): Add allocator.
4956 (function_summary<T *>::function_summary): Update construction.
4957 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
4958 (call_summary_base): Add allcator.
4959 (call_summary<T *>::call_summary): Update construction.
4960 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
4961
4962 2019-11-05 Jakub Jelinek <jakub@redhat.com>
4963
4964 PR tree-optimization/91945
4965 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
4966 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
4967 Formatting fix.
4968
4969 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4970
4971 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
4972 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
4973 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
4974 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
4975 (vrp_set_zero_nonzero_bits): Move to...
4976 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
4977 (vr_values::simplify_bit_ops_using_ranges): Rename
4978 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
4979
4980 2019-11-05 Martin Liska <mliska@suse.cz>
4981
4982 PR c++/92339
4983 * fold-const.c (operand_compare::hash_operand): Remove
4984 FIELD_DECL handling.
4985
4986 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4987
4988 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
4989 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
4990 static.
4991
4992 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4993
4994 * tree-vrp.c (value_range_base::operator==): Use equal_p to
4995 properly handle symbolics.
4996 (range_compatible_p): Remove.
4997
4998 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
4999
5000 * common.opt (-fabi-version): Document =14.
5001 * doc/invoke.texi (C++ Dialect Options): Likewise.
5002
5003 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5004
5005 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5006
5007 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5008
5009 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5010 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5011 gcn_omp_device_kind_arch_isa.
5012 * config/gcn/t-omp-device: New file.
5013 * configure.ac: Support gcn for omp_device_property.
5014 * configure: Regenerate.
5015
5016 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5017
5018 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5019 (vrp_val_max): Same.
5020 (vrp_val_is_min): Same.
5021 (vrp_val_is_max): Same.
5022 (value_range_base::nonzero_p): Remove last argument to
5023 vrp_val_is_max.
5024 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5025 (vrp_val_max): Same.
5026 (vrp_val_is_min): Same.
5027 (vrp_val_is_max): Same.
5028 (value_range_base::set_varying): Remove last argument to vrp_val*.
5029 (value_range_base::dump): Same.
5030 (value_range_base::set): Same.
5031 (value_range_base::normalize_symbolics): Same.
5032 (value_range_base::num_pairs): Same.
5033 (value_range_base::lower_bound): Same.
5034 (value_range_base::upper_bound): Same.
5035 (ranges_from_anti_range): Remove handle_pointers argument.
5036 (value_range_base::singleton_p): Remove last argument to
5037 ranges_from_anti_range.
5038
5039 2019-11-04 Jan Hubicka <jh@suse.cz>
5040
5041 * ipa-reference.c (init_function_info): Initialize
5042 info->global.statics_read.
5043
5044 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5045
5046 * tree-vrp.c (value_range_base::invert): Use constructors to build
5047 range.
5048
5049 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5050
5051 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5052 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5053
5054 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5055
5056 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5057 VR_UNDEFINED.
5058
5059 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5060
5061 * tree-vrp.c (dump_assert_info): New.
5062 (dump_asserts_info): New.
5063
5064 2019-11-04 Jan Hubicka <jh@suse.cz>
5065
5066 * ipa-inline-transform.c: Include ipa-utils.h
5067 (inline_call): Set thunk_expansion flag.
5068 * ipa-utils.h (thunk_expansion): Declare.
5069 * ipa-devirt.c (thunk_expansion): New global var.
5070 (devirt_node_removal_hook): Do not invalidate cache while
5071 doing thunk expansion.
5072
5073 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5074
5075 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5076
5077 2019-11-04 Martin Sebor <msebor@redhat.com>
5078
5079 PR tree-optimization/92349
5080 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5081 memebers have constant sizes.
5082
5083 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5084
5085 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5086 parameter.
5087 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5088 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5089 vect_analyze_loop.
5090
5091 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5092
5093 * expr.c (store_constructor): Modify to handle single element vectors.
5094 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5095 constructors.
5096 (vect_slp_check_for_constructors): New function.
5097 (vect_slp_analyze_bb_1): Call new function to check for vector
5098 constructors.
5099 (vectorize_slp_instance_root_stmt): New function.
5100 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5101 constructors.
5102 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5103
5104 2019-11-04 Richard Biener <rguenther@suse.de>
5105
5106 PR tree-optimization/92345
5107 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5108 we produced a reduction chain.
5109 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5110 LOOP_VINFO_REDUCTIONS.
5111
5112 2019-11-04 Jan Hubicka <jh@suse.cz>
5113
5114 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5115 duplicate summaries.
5116 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5117 first.
5118 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5119 access call summaries.
5120 (dump_ipa_call_summary): Be ready for missing edge summaries.
5121 (analyze_function_body): Use get instead of get_create to access
5122 edge summary.
5123 (estimate_calls_size_and_time): Do not access summaries of
5124 inlined edges; sanity check they are missing.
5125 (ipa_call_context::estimate_size_and_time): Use get instead
5126 of get_create to access node summary.
5127 (inline_update_callee_summaries): Do not update depth of
5128 inlined edge.
5129 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5130 growth caches.
5131 (ipa_merge_fn_summary_after_inlining): Use get instead
5132 of get_create.
5133 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5134 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5135 fast summary.
5136 (initialize_growth_caches): Update.
5137 (do_estimate_edge_time): Remove redundant copy of context.
5138 (ipa_remove_from_growth_caches): New function.
5139 * ipa-inline.c (flatten_function): Update overall summary
5140 only when optimizing.
5141 (inline_to_all_callers): Update overall summary of function
5142 inlined to.
5143 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5144 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5145 to false.
5146
5147 2019-11-04 Richard Biener <rguenther@suse.de>
5148
5149 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5150 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5151
5152 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5153
5154 * ggc-common.c: Include system.h before malloc.h.
5155
5156 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5157
5158 * configure.ac: Pass --enable-obsolete=* and
5159 --enable-option-checking=* down to build configure, and fail
5160 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5161 * configure: Rebuild.
5162 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5163 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5164
5165 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5166
5167 * config.in: Regenerate.
5168 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5169 -mtiny-printf is used without GCC being configured with
5170 --enable-newlib-nano-formatted-io.
5171 * config/msp430/msp430.h (LINK_SPEC): Pass
5172 "--wrap puts --wrap printf" when -mtiny-printf is used.
5173 * config/msp430/msp430.opt: Document -mtiny-printf.
5174 * configure: Regenerate.
5175 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5176 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5177 --enable-newlib-nano-formatted-io is passed.
5178 * doc/invoke.texi: Document -mtiny-printf.
5179
5180 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5181
5182 * configure: Regenerate.
5183
5184 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5185
5186 * config/msp430/driver-msp430.c
5187 (msp430_get_linker_devices_include_path): New spec function.
5188 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5189 (extract_devices_dir_from_exec_prefix): New function.
5190 (extract_devices_dir_from_collect_gcc): New function.
5191 (msp430_check_env_var_for_devices): New function.
5192 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5193 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5194 devices.csv was not found using other methods.
5195 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5196 New prototype.
5197 (msp430_dirname): Likewise.
5198 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5199 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5200 msp430_get_linker_devices_include_path.
5201 (TARGET_EXTRA_PRE_INCLUDES): Define.
5202 * doc/invoke.texi: Document new ways of searching for support files.
5203
5204 2019-11-04 Richard Biener <rguenther@suse.de>
5205
5206 PR tree-optimization/92301
5207 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5208 as required by epilogue generation
5209
5210 2019-11-04 Martin Liska <mliska@suse.cz>
5211
5212 PR ipa/92304
5213 * fold-const.c (operand_compare::hash_operand): Fix field
5214 hashing of CONSTRUCTOR.
5215
5216 2019-11-04 Martin Liska <mliska@suse.cz>
5217
5218 * ggc.h (ggc_delete): New function.
5219 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5220 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5221 (ipa_free_all_node_params): Likewise.
5222 * ipa-sra.c (ipa_sra_analysis): Likewise.
5223
5224 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5225
5226 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5227 set_switch_stmt_execution_predicate, compute_bb_predicates,
5228 will_be_nonconstant_expr_predicate,
5229 phi_result_unknown_predicate,
5230 analyze_function_body): Pass arround params summary.
5231 (ipa_call_context::duplicate_from): New comment;
5232 only duplicate useful values.
5233 (ipa_call_context::equal_to): Only compare useful values.
5234 (remap_edge_summaries): Pass params_summary.
5235 (remap_hint_predicate): Likewise.
5236 (ipa_merge_fn_summary_after_inlining): Likewise.
5237 (inline_read_section): Initialize params summary used flags.
5238 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5239 around param_summary.
5240 (add_condition): Initialized used params summary flags.
5241 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5242 (inline_param_summary::useless_p): New predicate.
5243 (remap_after_inlining, add_condition): Update prototype
5244 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5245 move_cost.
5246 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5247 summaries.
5248 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5249 (ipa_analyze_virtual_call_uses): Likewise.
5250 (update_indirect_edges_after_inlining): Update param summaries.
5251 (ipa_print_node_params): Print used flags.
5252 (ipa_read_indirect_edge_info): Update param summareis.
5253 * ipa-prop.h (ipa_param_descriptor): Add
5254 used_by_ipa_predicates, used_by_indirect_call
5255 and used_by_polymorphic_call.
5256 (ipa_set_param_used_by_ipa_predicates,
5257 ipa_set_param_used_by_indirect_call,
5258 ipa_set_param_used_by_polymorphic_call,
5259 ipa_is_param_used_by_ipa_predicates,
5260 ipa_is_param_used_by_indirect_call,
5261 ipa_is_param_used_by_polymorphic_call): New inline functions.
5262
5263 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5264
5265 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5266 member function.
5267 (ipa_call_context::release): Add ALL parameter.
5268 (ipa_call_context::equal_to): New member function.
5269 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5270 duplicate_form, release, equal_to and exists_p member functoins.
5271 * ipa-inline-analysis.c (node_context_cache_entry): New
5272 class.
5273 (node_context_summary): Likewise.
5274 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5275 node_context_clear): New static vars.
5276 (initialize_growth_caches): New function.
5277 (free_growth_caches): Also delete node_context_cache; output stats.
5278 (do_estimate_edge_time): Cache contexts.
5279 (reset_node_cache): New function.
5280 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5281 (inline_small_functions): Initialize growth caches.
5282 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5283 Declare.
5284 * ipa-predicate.h (inline_param_summary::equal_to): New.
5285 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5286 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5287 (ipa_agg_jump_function): Implement equal_to member function.
5288
5289 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5290
5291 * ipa-fnsummary.c (inline_read_section): Set vector size
5292 ahead of time.
5293
5294 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5295
5296 * ipa-fnsummary.c (ipa_call_context): New constructor.
5297 (estimate_node_size_and_time): Turn to ...
5298 (ipa_call_context::estimate_size_and_time): ... this one.
5299 (ipa_call_context::release): New.
5300 * ipa-fnsummary.h (ipa_call_context): New class.
5301 (estimate_node_size_and_time): Remove.
5302 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5303 do_estimate_edge_hints): Update.
5304
5305 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5306
5307 * config.in: Regenerate.
5308 * configure: Regenerate.
5309 * configure.ac: Check for mallinfo.
5310 * ggc-common.c: Include malloc.h if available;
5311 include options.h
5312 (report_heap_memory_use): New functoin.
5313 * ggc-page.c (ggc_grow): Do not print "start".
5314 * ggc.h (report_heap_memory_use): Declare.
5315 * pases.c (execute_one_pass): Report memory after IPA passes.
5316 (ipa_read_summaries_1): Likewise.
5317 (ipa_read_optimization_summaries_1): Likewise.
5318
5319 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5320
5321 * gimplify.h (omp_construct_selector_matches): Change return
5322 type to int, add a new SCORES argument.
5323 * gimplify.c (omp_construct_selector_matches): Likewise. If
5324 SCORES is non-NULL, compute scores of each construct.
5325 * omp-general.h (omp_get_context_selector): Declare.
5326 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5327 Adjust omp_construct_selector_matches callers.
5328 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5329 (omp_context_compute_score): New function.
5330 (omp_resolve_declare_variant): Compute scores and decide based on
5331 that.
5332
5333 PR bootstrap/92314
5334 * configure.ac: Don't look for omp-device-properties files from
5335 installed offloading compilers. Instead add tmake_file snippets
5336 for configured offloading targets and use files they generate.
5337 * Makefile.in (install): Don't depend on
5338 install-omp-device-properties.
5339 (install-omp-device-properties): Remove goal.
5340 * config/i386/t-omp-device: New file.
5341 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5342 * config/nvptx/t-omp-device: New file.
5343 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5344 * configure: Regenerated.
5345
5346 * omp-general.h (omp_context_selector_set_compare): Declare.
5347 * omp-general.c (omp_construct_simd_compare,
5348 omp_context_selector_props_compare, omp_context_selector_set_compare,
5349 omp_context_selector_compare): New functions.
5350 (omp_resolve_declare_variant): Prune variants that are strict subset
5351 of another variant.
5352
5353 2019-11-01 Martin Sebor <msebor@redhat.com>
5354
5355 PR middle-end/91679
5356 PR middle-end/91647
5357 PR middle-end/91463
5358 PR middle-end/92312
5359 * doc/invoke.texi (-Wzero-length-bounds): Document.
5360 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5361 instead of a hand-rolled loop to avoid PR 92323.
5362 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5363 with initializers.
5364 (vrp_prop::check_mem_ref): Handle declared struct objects.
5365 * tree.c (last_field): New function.
5366 (array_at_struct_end_p): Handle MEM_REF.
5367 (get_initializer_for): New helper.
5368 (component_ref_size): Add argument. Rename locals. Call
5369 get_initializer_for instead of fold_ctor_reference. Correct handling
5370 of flexible array members.
5371 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5372
5373 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5374
5375 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5376 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5377 UNSPEC_VSX_CVSPUXDS): Remove.
5378 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5379 (vsx_xvcvspdp_be): ... this. New. And...
5380 (vsx_xvcvspdp_le): ... this. New.
5381 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5382 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5383 (vsx_xvcv<su>xwdp_le): ... this. New.
5384 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5385 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5386 (vsx_xvcvsp<su>xds_le): ... this. New.
5387
5388 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5389
5390 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5391 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5392 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5393 UNSPEC_VSX_XVCVSPSXWS): Remove.
5394 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5395 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5396
5397 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5398
5399 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5400 (UNSPEC_VSX_XVCDPSP): Remove.
5401 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5402 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5403
5404 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5405
5406 * hooks.c (hook_tree_tree_bool_null): New.
5407 * hooks.h (hook_tree_tree_bool_null): Declare.
5408 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5409 (LANG_HOOKS_DECLS): Add it.
5410 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5411 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5412 (lower_omp_target): Handle Fortran array with descriptor in
5413 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5414
5415 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5416
5417 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5418 Assert that the type we store in abi_vector_types is its own
5419 main variant.
5420 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5421
5422 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5423
5424 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5425 from a CONST_INT address when TARGET_THUMB2.
5426
5427 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5428
5429 * config/arm/arm.md (add_not_cin): New insn.
5430 (add_not_shift_cin): Likewise.
5431
5432 2019-10-31 Martin Liska <mliska@suse.cz>
5433
5434 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5435 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5436 and compare_memory_operand.
5437
5438 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5439
5440 * configure.ac: Compute and substitute omp_device_properties and
5441 omp_device_property_deps.
5442 * Makefile.in (generated_files): Add omp-device-properties.h.
5443 (omp-general.o): Depend on omp-device-properties.h.
5444 (omp_device_properties): New make variable.
5445 (omp-device-properties.h, s-omp-device-properties-h,
5446 install-omp-device-properties): New goals.
5447 (install): Depend on install-omp-device-properties for accelerators.
5448 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5449 * target.h (enum omp_device_kind_arch_isa): New enum.
5450 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5451 documentation.
5452 * omp-general.c: Include omp-device-properties.h.
5453 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5454 colon instead of comma.
5455 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5456 functions.
5457 (omp_context_selector_matches): Implement device set arch/isa
5458 selectors, improve device set kind selector handling.
5459 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5460 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5461 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5462 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5463 ix86_omp_device_kind_arch_isa.
5464 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5465 definition from ix86_target_string to file scope.
5466 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5467 to file scope.
5468 (ix86_omp_device_kind_arch_isa): New function.
5469 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5470 isa_opts definitions to file scope.
5471 * config/i386/t-intelmic (omp-device-properties): New goal.
5472 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5473 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5474 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5475 nvptx_omp_device_kind_arch_isa.
5476 * configure: Regenerate.
5477 * doc/tm.texi: Regenerate.
5478
5479 PR middle-end/92231
5480 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5481 DECL_BUILT_IN in comment. Remove redundant ()s around return
5482 argument.
5483 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5484 before calling fndecl_built_in_p.
5485 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5486 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5487 fndecl_built_in_p on it.
5488
5489 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5490
5491 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5492
5493 2019-10-31 Martin Liska <mliska@suse.cz>
5494
5495 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5496 of cgraph_local_info and use local_info_node instead.
5497 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5498 (bfin_function_ok_for_sibcall): Likewise.
5499 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5500 (must_reload_pic_reg_p): Likewise.
5501
5502 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5503
5504 PR c++/90947
5505 * tree.h (type_initializer_zero_p): Remove.
5506 * tree.c (type_initializer_zero_p): Remove.
5507
5508 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5509
5510 * doc/invoke.texi (-Wshadow, -Wshadow=global
5511 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5512
5513 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5514
5515 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5516 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5517 and 'target exit data'.
5518
5519 2019-10-30 Martin Jambor <mjambor@suse.cz>
5520
5521 ipa/92278
5522 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5523 availability comparison.
5524
5525 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5526
5527 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5528 calls to __mspabi_mpy* functions.
5529 * config/msp430/msp430.md (mulhisi3): New define_expand.
5530 (umulhisi3): New define_expand.
5531 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5532 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5533
5534 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5535
5536 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5537 (msp430_check_plus_not_high_mem): New.
5538 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5539 might be in low memory.
5540 Indicate that a 16-bit absolute address is in lower memory.
5541
5542 2019-10-30 Martin Jambor <mjambor@suse.cz>
5543
5544 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5545 ultimate_alias_target.
5546
5547 2019-10-30 Richard Biener <rguenther@suse.de>
5548
5549 PR tree-optimization/92275
5550 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5551 Copy all loop-closed PHIs.
5552
5553 2019-10-30 Martin Liska <mliska@suse.cz>
5554
5555 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5556 const_tree as function argument.
5557 (func_checker::compare_decl): Likewise.
5558 (func_checker::operand_equal_p): Likewise.
5559 (func_checker::compare_variable_decl): Likewise.
5560 (func_checker::parse_labels): Likewise.
5561 * ipa-icf-gimple.h: Likewise.
5562
5563 2019-10-30 Martin Liska <mliska@suse.cz>
5564
5565 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5566 Do not compare alias sets. It's handled by operand_equal_p.
5567
5568 2019-10-30 Martin Liska <mliska@suse.cz>
5569
5570 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5571 initialize m_compare_polymorphic.
5572 (func_checker::compare_decl): Do not compare polymorphic types.
5573 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5574 * ipa-icf.c (sem_function::equals_private): Do not call
5575 compare_polymorphic_p.
5576
5577 2019-10-30 Martin Liska <mliska@suse.cz>
5578
5579 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5580 compare_operand.
5581 (func_checker::compare_memory_operand): Remove.
5582 (func_checker::compare_cst_or_decl): Remove.
5583 (func_checker::operand_equal_valueize): Do not handle
5584 FIELD_DECL.
5585 (func_checker::compare_gimple_call): Call compare_operand.
5586 (func_checker::compare_gimple_assign): Likewise.
5587 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5588 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5589 * ipa-icf.h (icf_handled_component_p): Remove.
5590
5591 2019-10-30 Martin Liska <mliska@suse.cz>
5592
5593 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5594 (func_checker::compare_cst_or_decl): Remove handling
5595 of FIELD_DECL.
5596 (func_checker::compare_operand): Transform to ...
5597 (func_checker::operand_equal_p): ... this.
5598 * ipa-icf-gimple.h (class func_checker): Add
5599 operand_equal_p and hash_operand.
5600 * ipa-icf.c (sem_function::equals_private): Fix
5601 pushing and popping of cfun.
5602
5603 2019-10-30 Martin Liska <mliska@suse.cz>
5604
5605 * fold-const.c (operand_equal_p): Move to ...
5606 (operand_compare::operand_equal_p): ... here.
5607 (operand_compare::verify_hash_value): New.
5608 (add_expr): Move to ...
5609 (operand_compare::hash_operand): ... here.
5610 * fold-const.h (operand_equal_p): Move to the class.
5611 (class operand_compare): New.
5612 * tree.c (add_expr): Remove.
5613
5614 2019-10-30 Martin Liska <mliska@suse.cz>
5615
5616 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5617 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5618
5619 2019-10-30 Martin Liska <mliska@suse.cz>
5620
5621 PR lto/91393
5622 PR lto/88220
5623 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5624 from a first_clone in order to get proper LTO section
5625 in LTO stream.
5626 (cgraph_node::get_untransformed_body):
5627 Use lto_get_section_data where symtab_node::order
5628 must be provided.
5629 * cgraphclones.c (cgraph_node::find_replacement):
5630 Update also symbol order.
5631 * ipa-fnsummary.c (ipa_fn_summary_read):
5632 Use new function lto_get_summary_section_data.
5633 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5634 * ipa-icf.c (sem_item_optimizer::read_summary):
5635 Likewise.
5636 * ipa-prop.c (ipa_prop_read_jump_functions):
5637 Likewise.
5638 (ipcp_read_transformation_summaries): Likewise.
5639 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5640 * lto-cgraph.c (input_node): Add also order_base.
5641 (input_varpool_node): Likewise.
5642 (input_cgraph_1): Assign the order_base.
5643 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5644 * lto-opts.c (lto_write_options): Pass new argument.
5645 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5646 (lto_get_summary_section_data): New.
5647 (lto_get_raw_section_data): Add order argument.
5648 (lto_create_simple_input_block): Likewise.
5649 * lto-section-out.c (lto_destroy_simple_output_block):
5650 Likewise.
5651 * lto-streamer-in.c (lto_input_toplevel_asms):
5652 Use lto_get_summary_section_data.
5653 (lto_input_mode_table): Likewise.
5654 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5655 (lto_output_toplevel_asms): Pass new argument.
5656 (copy_function_or_variable): Likewise.
5657 (produce_lto_section):Likewise.
5658 (produce_symtab): Likewise.
5659 (lto_write_mode_table): Likewise.
5660 (produce_asm_for_decls): Likewise.
5661 * lto-streamer.c (lto_get_section_name): Concat symbol name
5662 and symbol order.
5663 * lto-streamer.h (lto_get_section_data): Add order argument.
5664 (lto_get_summary_section_data): New.
5665 (lto_get_raw_section_data): Add order argument.
5666 (lto_get_section_name): Likewise.
5667 * varpool.c (varpool_node::get_constructor): Pass order argument.
5668
5669 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5670
5671 PR tree-optimization/92262
5672 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5673 ubase or cbase here.
5674 (remove_unused_ivs): Unshare comp before using it.
5675
5676 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5677
5678 * ipa-prop.c (update_jump_functions_after_inlining):
5679 Watch for missing summaries.
5680
5681 2019-10-30 Richard Biener <rguenther@suse.de>
5682
5683 PR tree-optimization/65930
5684 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5685 chains also allow a leading and trailing conversion.
5686 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5687 intermediate reduction chains.
5688 (vect_analyze_slp_instance): Likewise. Build a SLP
5689 node for a trailing conversion manually.
5690
5691 2019-10-30 Martin Liska <mliska@suse.cz>
5692
5693 * cgraph.c (cgraph_node::local_info): Transform to ...
5694 (cgraph_node::local_info_node): ... this.
5695 (cgraph_node::dump): Remove cgraph_local_info and
5696 put its fields directly into cgraph_node.
5697 (cgraph_node::get_availability): Likewise.
5698 (cgraph_node::make_local): Likewise.
5699 (cgraph_node::verify_node): Likewise.
5700 * cgraph.h (struct GTY): Likewise.
5701 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5702 (duplicate_thunk_for_node): Likewise.
5703 (cgraph_node::create_clone): Likewise.
5704 (cgraph_node::create_virtual_clone): Likewise.
5705 (cgraph_node::create_version_clone): Likewise.
5706 * cgraphunit.c (cgraph_node::reset): Likewise.
5707 (cgraph_node::finalize_function): Likewise.
5708 (cgraph_node::add_new_function): Likewise.
5709 (analyze_functions): Likewise.
5710 * combine.c (setup_incoming_promotions): Likewise.
5711 * config/i386/i386.c (ix86_function_regparm): Likewise.
5712 (ix86_function_sseregparm): Likewise.
5713 (init_cumulative_args): Likewise.
5714 * ipa-cp.c (determine_versionability): Likewise.
5715 (count_callers): Likewise.
5716 (set_single_call_flag): Likewise.
5717 (initialize_node_lattices): Likewise.
5718 (estimate_local_effects): Likewise.
5719 (create_specialized_node): Likewise.
5720 (identify_dead_nodes): Likewise.
5721 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5722 (ipa_fn_summary_generate): Likewise.
5723 * ipa-hsa.c (check_warn_node_versionable): Likewise.
5724 (process_hsa_functions): Likewise.
5725 * ipa-icf.c (set_local): Likewise.
5726 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5727 * ipa-inline.c (speculation_useful_p): Likewise.
5728 * ipa-profile.c (ipa_propagate_frequency): Likewise.
5729 (ipa_profile): Likewise.
5730 * ipa-split.c (split_function): Likewise.
5731 (execute_split_functions): Likewise.
5732 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5733 (ipa_sra_ipa_function_checks): Likewise.
5734 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5735 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5736 * lto-cgraph.c (lto_output_node): Likewise.
5737 (input_overwrite_node): Likewise.
5738 * multiple_target.c (expand_target_clones): Likewise.
5739 * omp-simd-clone.c (simd_clone_create): Likewise.
5740 * trans-mem.c (expand_call_tm): Likewise.
5741 (ipa_tm_mayenterirr_function): Likewise.
5742 (ipa_tm_diagnose_tm_safe): Likewise.
5743 (ipa_tm_diagnose_transaction): Likewise.
5744 (ipa_tm_create_version): Likewise.
5745 (ipa_tm_transform_calls_redirect): Likewise.
5746 (ipa_tm_execute): Likewise.
5747 * tree-inline.c (expand_call_inline): Likewise.
5748
5749 2019-10-29 Martin Liska <mliska@suse.cz>
5750
5751 * symbol-summary.h (function_summary): Pass memory location
5752 to underlaying hash_map (or vec).
5753 (V>::fast_function_summary): Likewise.
5754
5755 2019-10-29 Martin Liska <mliska@suse.cz>
5756
5757 * ggc.h (ggc_alloc_no_dtor): New function.
5758 * ipa-fnsummary.c (ipa_free_fn_summary): Call
5759 destructor and ggc_free.
5760 (ipa_free_size_summary): Call delete instead
5761 of release.
5762 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
5763 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
5764 (ipa_free_all_edge_args): Call destructor and ggc_free.
5765 (ipa_free_all_node_params): Likewise.
5766 (ipcp_free_transformation_sum): Likewise.
5767 * ipa-prop.h (ipa_check_create_node_params):
5768 Call new ggc_alloc_no_dtor.
5769 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
5770 (ipa_sra_analysis): Call destructor and ggc_free.
5771 Replace release with delete operator.
5772 * symbol-summary.h (release): Remove ..
5773 (V>::~fast_function_summary): and move logic here.
5774 Likewise for other classes.
5775
5776 2019-10-29 Richard Biener <rguenther@suse.de>
5777
5778 PR tree-optimization/92260
5779 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
5780 lane-reducing ops.
5781
5782 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
5783
5784 PR tree-optimization/88915
5785 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
5786 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
5787 and make the valueize function pointer also take a void pointer.
5788 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
5789 around vn_valueize, to call it without a context.
5790 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
5791 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
5792 (~_loop_vec_info): Release epilogue_vinfos.
5793 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
5794 number of iterations of epilogue.
5795 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
5796 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
5797 versioning threshold needed for main loop.
5798 (vect_analyze_loop): Likewise.
5799 (find_in_mapping): New helper function.
5800 (update_epilogue_loop_vinfo): New function.
5801 (vect_transform_loop): When vectorizing epilogues re-use analysis done
5802 on main loop and call update_epilogue_loop_vinfo to update it.
5803 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
5804 stmts on loop preheader edge.
5805 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
5806 we decided to vectorize epilogues. Update epilogues NITERS and
5807 construct ADVANCE to update epilogues data references where needed.
5808 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
5809 (vect_do_peeling, vect_update_inits_of_drs,
5810 determine_peel_for_niter, vect_analyze_loop): Add or update
5811 declarations.
5812 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
5813 created loop_vec_info's for epilogues when available. Otherwise analyse
5814 epilogue separately.
5815
5816 2019-10-29 Richard Biener <rguenther@suse.de>
5817
5818 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
5819 example.
5820
5821 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5822
5823 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
5824 index for the COND_EXPR from stmt_info rather than reduc_info.
5825
5826 2019-10-29 Richard Biener <rguenther@suse.de>
5827
5828 PR tree-optimization/65930
5829 * tree-vect-loop.c (check_reduction_path): Relax single-use
5830 check allowing out-of-loop uses.
5831 (vect_is_simple_reduction): SLP reduction chains cannot have
5832 intermediate stmts used outside of the loop.
5833 (vect_create_epilog_for_reduction): The adjustment might need
5834 to be converted.
5835 (vectorizable_reduction): Annotate live stmts of the reduction
5836 chain with STMT_VINFO_REDUC_DEF.
5837 * tree-vect-stms.c (process_use): Remove no longer true asserts.
5838
5839 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5840
5841 * calls.c (pass_by_reference): Leave the target to decide whether
5842 POLY_INT_CST-sized arguments should be passed by value or reference,
5843 rather than forcing them to be passed by reference.
5844 (must_pass_in_stack_var_size): Likewise.
5845 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
5846 V31_REGNUM to P15_REGNUM.
5847 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
5848 Take an extra "silent_p" parameter, defaulting to false.
5849 (aarch64_sve::svbool_type_p): Declare.
5850 (aarch64_sve::nvectors_if_data_type): Likewise.
5851 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
5852 (aarch64_frame::reg_offset): Turn into poly_int64s.
5853 (aarch64_frame::save_regs_size): Likewise.
5854 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
5855 (aarch64_frame::sve_callee_adjust): Likewise.
5856 (aarch64_frame::spare_reg_reg): Likewise.
5857 (ARM_PCS_SVE): New arm_pcs value.
5858 (CUMULATIVE_ARGS::aapcs_nprn): New field.
5859 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
5860 (CUMULATIVE_ARGS::silent_p): Likewise.
5861 (BITS_PER_SVE_PRED): New macro.
5862 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
5863 function. Reject aarch64_vector_pcs attributes on SVE functions.
5864 (aarch64_attribute_table): Use the above handler.
5865 (aarch64_sve_abi): New function.
5866 (aarch64_sve_argument_p): Likewise.
5867 (aarch64_returns_value_in_sve_regs_p): Likewise.
5868 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
5869 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
5870 descriptor for them.
5871 (aarch64_simd_decl_p): Delete.
5872 (aarch64_emit_cfi_for_reg_p): New function.
5873 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
5874 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
5875 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
5876 as partly clobbered for the SVE PCS.
5877 (aarch64_function_ok_for_sibcall): Check whether the two functions
5878 use the same ABI, rather than checking specifically for whether
5879 they're aarch64_vector_pcs functions.
5880 (aarch64_pass_by_reference): Raise an error for attempts to pass
5881 SVE arguments when SVE is disabled. Pass SVE arguments by reference
5882 if there are not enough free registers left, or if the argument is
5883 variadic.
5884 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
5885 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
5886 tuples in memory.
5887 (aarch64_layout_arg): Take a function_arg_info rather than
5888 individual properties. Handle SVE predicates, vectors and tuples.
5889 Raise an error if they are passed to unprototyped functions.
5890 (aarch64_function_arg): If the silent_p flag is set, suppress the
5891 usual error about using float registers without TARGET_FLOAT.
5892 (aarch64_init_cumulative_args): Take a silent_p parameter and store
5893 it in the cumulative_args structure. Initialize aapcs_nprn and
5894 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
5895 error about using float registers without TARGET_FLOAT.
5896 If the silent_p flag is not set, also raise an error about
5897 using SVE functions when SVE is disabled.
5898 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
5899 and call it for SVE functions too. Update aapcs_nprn similarly
5900 to the other register counts.
5901 (aarch64_layout_frame): If a big-endian function needs to save
5902 and restore Z8-Z15, search for a spare predicate that it can use.
5903 Store SVE predicates at the bottom of the register save area,
5904 followed by SVE vectors, then followed by the normal slots.
5905 Keep pointing the hard frame pointer at the base of the normal slots,
5906 above the SVE vectors. Update the various frame creation and
5907 tear-down strategies for the new layout, initializing the new
5908 sve_callee_adjust field. Add an additional layout for frames
5909 whose saved registers are all SVE registers.
5910 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
5911 (aarch64_return_address_signing_enabled): Likewise.
5912 (aarch64_push_regs, aarch64_pop_regs): Update calls to
5913 aarch64_reg_save_mode.
5914 (aarch64_adjust_sve_callee_save_base): New function.
5915 (aarch64_add_cfa_expression): Move earlier in file. Take the
5916 saved register as an rtx rather than a register number and use
5917 its mode for the MEM slot.
5918 (aarch64_save_callee_saves): Remove the mode argument and instead
5919 use aarch64_reg_save_mode to get the mode of each save slot.
5920 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
5921 offsets. Allow GP offsets to be saved at a VL-based offset from
5922 the stack, handling this case using the frame pointer if available
5923 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
5924 big-endian SVE functions; use normal moves for other SVE saves.
5925 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
5926 returns true. Add explicit CFA notes when not storing via the
5927 stack pointer. Do not try to pair SVE saves.
5928 (aarch64_restore_callee_saves): Cope with poly_int64 register
5929 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
5930 use normal moves for other SVE restores. Only add CFA restore notes
5931 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
5932 SVE restores.
5933 (aarch64_get_separate_components): Always keep the first SVE save
5934 in the prologue if we need to use it as a stack probe. Don't allow
5935 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
5936 Likewise the spare predicate register that they need. Update the
5937 offset calculation to account for the SVE save area. Use the
5938 appropriate range check for SVE LDR and STR instructions.
5939 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
5940 (aarch64_process_components): Likewise. Update the offset
5941 calculation to account for the SVE save area. Only mark the
5942 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
5943 Do not try to pair SVE saves.
5944 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
5945 reg_offsets. When handling the final allocation, expect the
5946 first SVE register save to be part of the initial allocation
5947 and for it to act as a probe at SP. Account for the SVE callee
5948 save area in the dump information.
5949 (aarch64_expand_prologue): Update the frame diagram. Fold the
5950 SVE callee allocation into the initial allocation if stack clash
5951 protection is enabled. Use new variables to track the offset
5952 of the frame chain (and hard frame pointer) from the current
5953 stack pointer, and likewise the offset of the bottom of the
5954 register save area. Update calls to aarch64_save_callee_saves
5955 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
5956 saving the FP&SIMD registers. Save the predicate registers.
5957 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
5958 into account when setting the stack pointer from the frame pointer,
5959 and when deciding whether we can inherit the initial adjustment
5960 amount from the prologue. Restore the predicate registers after
5961 the vector registers, then apply sve_callee_adjust, then restore
5962 the general registers.
5963 (aarch64_secondary_reload): Don't use secondary SVE reloads
5964 for VNx16BImode.
5965 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
5966 (aarch64_short_vector_p): Return false for SVE types.
5967 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
5968 at the start of the function. Return false for SVE types.
5969 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
5970 functions too.
5971 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
5972 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
5973 to big-endian targets for bytewise moves.
5974 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
5975
5976 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5977 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5978 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5979
5980 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
5981 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
5982 aarch64-sve-builtins-base.o to extra_objs. Add
5983 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
5984 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
5985 (aarch64-sve-builtins-shapes.o): Likewise.
5986 (aarch64-sve-builtins-base.o): New rules.
5987 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
5988 (aarch64_resolve_overloaded_builtin): Likewise.
5989 (aarch64_check_builtin_call): Likewise.
5990 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
5991 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
5992 pragma.
5993 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
5994 (aarch64_svprfop): New enum.
5995 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
5996 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
5997 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
5998 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5999 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6000 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6001 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6002 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6003 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6004 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6005 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6006 (aarch64_sve::mangle_builtin_type): Likewise.
6007 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6008 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6009 (aarch64_sve::expand_builtin): Likewise.
6010 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6011 (aarch64_sve_int_mode): Likewise.
6012 (aarch64_ptrue_all_mode): New function.
6013 (aarch64_convert_sve_data_to_pred): Make public.
6014 (svprfop_token): New function.
6015 (aarch64_output_sve_prefetch): Likewise.
6016 (aarch64_fold_sve_cnt_pat): Likewise.
6017 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6018 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6019 instead of gen_while_ult.
6020 (aarch64_replace_reg_mode): Make public.
6021 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6022 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6023 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6024 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6025 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6026 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6027 (aarch64_sve_ptrue_svpattern_p): Likewise.
6028 (aarch64_sve_pred_valid_immediate): Check
6029 aarch64_sve_ptrue_svpattern_p.
6030 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6031 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6032 functions.
6033 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6034 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6035 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6036 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6037 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6038 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6039 New unspecs.
6040 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6041 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6042 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6043 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6044 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6045 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6046 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6047 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6048 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6049 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6050 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6051 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6052 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6053 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6054 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6055 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6056 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6057 (Vesize): Handle partial vector modes.
6058 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6059 mode attributes.
6060 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6061 iterators.
6062 (s, paired_extend, inc_dec): New code attributes.
6063 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6064 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6065 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6066 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6067 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6068 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6069 UNSPEC_COND_FMULX.
6070 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6071 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6072 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6073 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6074 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6075 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6076 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6077 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6078 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6079 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6080 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6081 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6082 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6083 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6084 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6085 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6086 UNSPEC_COND_FSCALE.
6087 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6088 (binqops_op, binqops_op_rev, last_op): New int attributes.
6089 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6090 (fn, ab): New int attributes.
6091 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6092 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6093 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6094 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6095 UNSPEC_RBIT.
6096 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6097 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6098 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6099 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6100 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6101 UNSPEC_COND_FMULX.
6102 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6103 (brk_reg_con, brk_reg_opno): New int attributes.
6104 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6105 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6106 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6107 UNSPEC_COND_FMIN.
6108 (max_elem_bits): New int attribute.
6109 (min_elem_bits): Handle UNSPEC_RBIT.
6110 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6111 TRUNCATE as well as SUBREG.
6112 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6113 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6114 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6115 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6116 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6117 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6118 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6119 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6120 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6121 (aarch64_gather_scale_operand_h): New predicates.
6122 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6123 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6124 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6125 (*aarch64_sve_reinterpret<mode>): Allow any source register
6126 instead of requiring an exact match.
6127 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6128 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6129 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6130 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6131 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6132 (aarch64_update_ffrt): New patterns.
6133 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6134 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6135 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6136 (@aarch64_ld<fn>f1<mode>): New patterns.
6137 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6138 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6139 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6140 (@aarch64_ldnt1<mode>): New patterns.
6141 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6142 the scalar part of the address.
6143 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6144 scalar part of the addresse and add an alternative for handling
6145 nonzero offsets.
6146 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6147 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6148 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6149 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6150 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6151 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6152 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6153 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6154 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6155 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6156 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6157 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6158 (@aarch64_sve_prefetch<mode>): New patterns.
6159 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6160 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6161 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6162 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6163 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6164 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6165 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6166 (@aarch64_stnt1<mode>): New patterns.
6167 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6168 the scalar part of the address.
6169 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6170 the scalar part of the addresse and add an alternative for handling
6171 nonzero offsets.
6172 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6173 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6174 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6175 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6176 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6177 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6178 New patterns.
6179 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6180 (extract_last_<mode>): Generalize to...
6181 (@extract_<LAST:last_op>_<mode>): ...this.
6182 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6183 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6184 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6185 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6186 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6187 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6188 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6189 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6190 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6191 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6192 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6193 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6194 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6195 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6196 (*aarch64_adr_uxtw_unspec): Likewise.
6197 (*aarch64_adr_uxtw): Rename to...
6198 (*aarch64_adr_uxtw_and): ...this.
6199 (@aarch64_adr<mode>_shift): New expander.
6200 (*aarch64_adr_shift_sxtw): New pattern.
6201 (aarch64_<su>abd<mode>_3): Rename to...
6202 (@aarch64_pred_<su>abd<mode>): ...this.
6203 (<su>abd<mode>_3): Update accordingly.
6204 (@aarch64_cond_<su>abd<mode>): New expander.
6205 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6206 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6207 (*<su>mul<mode>3_highpart): Rename to...
6208 (@aarch64_pred_<optab><mode>): ...this.
6209 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6210 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6211 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6212 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6213 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6214 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6215 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6216 (*v<ASHIFT:optab><mode>3): Rename to...
6217 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6218 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6219 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6220 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6221 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6222 (@cond_asrd<mode>): New expander.
6223 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6224 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6225 (*sdiv_pow2<mode>3): Delete.
6226 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6227 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6228 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6229 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6230 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6231 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6232 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6233 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6234 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6235 (*add<SVE_F:mode>3): Rename to...
6236 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6237 for SVE_STRICT_GP.
6238 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6239 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6240 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6241 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6242 (*sub<SVE_F:mode>3): Rename to...
6243 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6244 for SVE_STRICT_GP.
6245 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6246 (*fabd<SVE_F:mode>3): Rename to...
6247 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6248 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6249 (*mul<SVE_F:mode>3): Rename to...
6250 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6251 for SVE_STRICT_GP.
6252 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6253 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6254 to...
6255 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6256 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6257 (*<nlogical><PRED_ALL:mode>3): Rename to...
6258 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6259 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6260 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6261 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6262 (aarch64_pred_<logical_nn><mode>_z): ...this.
6263 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6264 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6265 (*fma<SVE_I:mode>4): Rename to...
6266 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6267 (*fnma<SVE_I:mode>4): Rename to...
6268 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6269 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6270 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6271 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6272 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6273 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6274 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6275 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6276 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6277 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6278 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6279 (@aarch64_sve_tmad<mode>): Likewise.
6280 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6281 (*aarch64_sel_dup<mode>): Rename to...
6282 (@aarch64_sel_dup<mode>): ...this.
6283 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6284 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6285 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6286 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6287 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6288 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6289 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6290 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6291 (*fcm<cmp_op><mode>): Rename to...
6292 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6293 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6294 (*fcmuo<mode>): Rename to...
6295 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6296 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6297 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6298 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6299 (fold_extract_last_<mode>): Generalize to...
6300 (@fold_extract_<last_op>_<mode>): ...this.
6301 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6302 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6303 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6304 DImode result explicit.
6305 (reduc_plus_scal_<mode>): Update accordingly.
6306 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6307 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6308 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6309 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6310 (*aarch64_sve_tbl<mode>): Rename to...
6311 (@aarch64_sve_tbl<mode>): ...this.
6312 (@aarch64_sve_compact<mode>): New pattern.
6313 (*aarch64_sve_dup_lane<mode>): Rename to...
6314 (@aarch64_sve_dup_lane<mode>): ...this.
6315 (@aarch64_sve_dupq_lane<mode>): New pattern.
6316 (@aarch64_sve_splice<mode>): Likewise.
6317 (aarch64_sve_<perm_insn><mode>): Rename to...
6318 (@aarch64_sve_<perm_insn><mode>): ...this.
6319 (*aarch64_sve_ext<mode>): Rename to...
6320 (@aarch64_sve_ext<mode>): ...this.
6321 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6322 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6323 to...
6324 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6325 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6326 Rename to...
6327 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6328 ...this.
6329 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6330 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6331 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6332 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6333 to...
6334 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6335 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6336 a "@" marker.
6337 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6338 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6339 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6340 pattern.
6341 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6342 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6343 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6344 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6345 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6346 "@" marker.
6347 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6348 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6349 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6350 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6351 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6352 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6353 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6354 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6355 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6356 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6357 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6358 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6359 (aarch64_sve_cnt_pat): Likewise.
6360 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6361 (*aarch64_sve_incsi_pat): Likewise.
6362 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6363 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6364 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6365 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6366 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6367 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6368 (*aarch64_sve_decsi_pat): Likewise.
6369 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6370 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6371 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6372 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6373 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6374 (@aarch64_pred_cntp<mode>): Likewise.
6375 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6376 New expander.
6377 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6378 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6379 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6380 New expander.
6381 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6382 New pattern.
6383 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6384 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6385 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6386 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6387 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6388 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6389 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6390 New expander.
6391 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6392 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6393 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6394 New expander.
6395 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6396 New pattern.
6397 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6398 expander.
6399 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6400 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6401 expander.
6402 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6403 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6404 expander.
6405 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6406 * config/aarch64/arm_sve.h: New file.
6407 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6408 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6409 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6410 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6411 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6412 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6413 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6414 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6415 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6416
6417 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6418
6419 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6420 New pattern.
6421 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6422 SVE modes.
6423
6424 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6425
6426 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6427 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6428 FFRT_REGNUM + 1.
6429 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6430 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6431 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6432 (aarch64_hard_regno_nregs): Handle the new register classes.
6433 (aarch64_hard_regno_mode_ok): Likewise.
6434 (aarch64_regno_regclass): Likewise.
6435 (aarch64_class_max_nregs): Likewise.
6436 (aarch64_register_move_cost): Likewise.
6437 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6438 as general register_operands.
6439
6440 2019-10-29 Martin Liska <mliska@suse.cz>
6441
6442 * ggc-common.c: One can't subtract unsigned types
6443 in compare function.
6444
6445 2019-10-29 Martin Liska <mliska@suse.cz>
6446
6447 * cgraphunit.c (symbol_table::compile): Pass
6448 title as dump_memory_report argument.
6449 * toplev.c (dump_memory_report): New argument.
6450 (finalize): Pass new argument.
6451 * toplev.h (dump_memory_report): Add argument.
6452
6453 2019-10-29 Martin Liska <mliska@suse.cz>
6454
6455 * ggc-common.c: Move Leak to the first column.
6456
6457 2019-10-29 Martin Liska <mliska@suse.cz>
6458
6459 * cgraphunit.c (symbol_table::compile): Remove argument
6460 for dump_memory_report.
6461 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6462 (compare_final): Remove in order to make report
6463 better readable.
6464 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6465 * mem-stats.h (mem_alloc_description::get_list):
6466 Do not pass cmp.
6467 (mem_alloc_description::dump): Likewise here.
6468 * toplev.c (dump_memory_report): Remove final
6469 argument.
6470 (finalize): Likewise.
6471 * toplev.h (dump_memory_report): Remove argument.
6472
6473 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6474
6475 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6476 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6477 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6478 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6479 accept "const".
6480
6481 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6482
6483 * coretypes.h (string_int_pair): New typedef.
6484 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6485 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6486 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6487
6488 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6489
6490 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6491 (simulate_builtin_function_decl): Declare.
6492 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6493 (LANG_HOOKS_INITIALIZER): Include it.
6494 * langhooks.c (add_builtin_function_common): Rename to...
6495 (build_builtin_function): ...this. Add a location parameter and use
6496 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6497 the decl instead.
6498 (add_builtin_function): Update accordingly, passing the returned
6499 decl to the lang hook.
6500 (add_builtin_function_ext_scope): Likewise
6501 (simulate_builtin_function_decl): New function.
6502
6503 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6504
6505 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6506 example, use actual names of supported offload targets.
6507
6508 PR target/92258
6509 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6510
6511 2019-10-28 Martin Sebor <msebor@redhat.com>
6512
6513 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6514 (handle_store): Pass argument to get_addr_stridx.
6515
6516 2019-10-28 Martin Sebor <msebor@redhat.com>
6517
6518 PR tree-optimization/92226
6519 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6520 the offset is in the open range outlined by SI's length.
6521
6522 2019-10-28 Martin Sebor <msebor@redhat.com>
6523
6524 PR c/66970
6525 * doc/cpp.texi (__has_builtin): Document.
6526 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6527
6528 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6529
6530 PR target/82981
6531 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6532 doubleword and low doubleword result of multiplication on
6533 MIPS64R6.
6534
6535 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6536 pure qualifier to the built-in.
6537 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6538 built-ins.
6539 (struct mips_builtin_description): Add is_pure flag.
6540 (mips_init_builtins): Mark built-in as pure if the flag in the
6541 corresponding mips_builtin_description struct is set.
6542
6543 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6544 alternative which covers the floating-point input value. Also
6545 forbid the split of insert.d pattern for floating-point values.
6546
6547 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6548
6549 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6550 * config/riscv/riscv-sr.c: New file.
6551 * config/riscv/riscv.c (riscv_reorg): New function.
6552 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6553 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6554 (riscv_remove_unneeded_save_restore_calls): Declare.
6555 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6556
6557 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6558
6559 PR tree-optimization/92163
6560 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6561 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6562 before calling bitmap_set_bit.
6563 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6564 delete_dead_or_redundant_assignment.
6565 (dse_dom_walker::dse_optimize_stmt): Likewise.
6566 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6567
6568 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6569
6570 PR middle-end/91272
6571 * tree-vect-stmts.c (vectorizable_condition): Support
6572 EXTRACT_LAST_REDUCTION with fully-masked loops.
6573
6574 2019-10-28 Richard Biener <rguenther@suse.de>
6575
6576 PR tree-optimization/92252
6577 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6578 STMT_VINFO_REDUC_IDX when swapping operands.
6579
6580 2019-10-28 Richard Biener <rguenther@suse.de>
6581
6582 PR tree-optimization/92241
6583 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6584 we failed to update the reduction index do not use the pattern
6585 stmts for the reduction chain.
6586 (vectorizable_reduction): When the reduction chain is corrupt,
6587 fail.
6588 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6589 fail to update the reduction chain.
6590
6591 2019-10-28 Richard Biener <rguenther@suse.de>
6592
6593 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6594 STMT_VINFO_REDUC_IDX from the actual stmt.
6595 (vect_transform_reduction): Likewise.
6596 (vectorizable_reduction): Compute the reduction chain length,
6597 do not recompute the reduction operand index. Remove no longer
6598 necessary restriction for condition reduction chains.
6599
6600 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6601
6602 PR target/92225
6603 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6604 condition for V2DImode.
6605
6606 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6607
6608 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6609 Remove %k operand modifier.
6610 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6611
6612 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6613
6614 PR rtl-optimization/92007
6615 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6616 call it after reload if hot/cold partitioning has been done.
6617 (class pass_postreload_jump): Rename to
6618 pass_jump_after_combine.
6619 (make_pass_postreload_jump): Rename to
6620 make_pass_jump_after_combine.
6621 * passes.def(pass_postreload_jump): Move before reload, rename
6622 to pass_jump_after_combine.
6623 * tree-pass.h (make_pass_postreload_jump): Rename to
6624 make_pass_jump_after_combine.
6625
6626 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6627
6628 PR ipa/92242
6629 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6630 for missing EDGE_REF
6631 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6632
6633 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6634
6635 PR tree-optimization/88760
6636 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6637 Enable -funroll-loops for -O2 and above.
6638 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6639 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6640 do not turn on web and rngreg implicitly, if the unroller is not
6641 explicitly enabled.
6642
6643 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6644
6645 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6646 jump functions.
6647
6648 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6649
6650 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6651 * cgraph.h (cgraph_node::rtl_info): Likewise.
6652
6653 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6654
6655 * ipa-cp.c (propagate_constants_across_call): If args are not available
6656 just drop everything to varying.
6657 (find_aggregate_values_for_callers_subset): Watch for missing
6658 edge summary.
6659 (find_more_scalar_values_for_callers_subs): Likewise.
6660 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6661 update_jump_functions_after_inlining, propagate_controlled_uses):
6662 Watch for missing summaries.
6663 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6664 is finished.
6665 (ipa_write_node_info): Watch for missing summaries.
6666 (ipa_read_edge_info): Create new ref.
6667 (ipa_edge_args_sum_t): Add remove.
6668 (IPA_EDGE_REF_GET_CREATE): New macro.
6669 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6670 edge summary.
6671 (remap_edge_change_prob): Likewise.
6672
6673 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6674
6675 * ipa-inline-transform.c (inline_call): update function summaries
6676 after expanidng thunk.
6677
6678 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6679
6680 * ipa-icf.c (sem_function::merge): Update function summaries.
6681 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6682
6683 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6684
6685 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6686 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6687 operand already has scalar mode.
6688 (iptr): Remove SF/DF.
6689
6690 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6691
6692 PR target/91289
6693 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6694 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6695 this.
6696
6697 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6698
6699 * config/i386/sse.md
6700 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6701 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6702 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6703 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6704 <sse>_vmmaskcmp<mode>3):
6705 Change predicates from vector_operand to nonimmediate_operand,
6706 constraints xBm to xm, since scalar operations don't need
6707 memory address alignment.
6708 (avx512f_vmcmp<mode>3<round_saeonly_name>,
6709 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6710 round_saeonly_nimm_predicate with
6711 round_saeonly_nimm_scalar_predicate.
6712 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6713 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6714 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6715 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6716 avx512f_vmfmadd_<mode>_mask3<round_name>,
6717 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6718 *avx512f_vmfmsub_<mode>_mask<round_name>,
6719 avx512f_vmfmsub_<mode>_mask3<round_name>,
6720 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6721 *avx512f_vmfnmadd_<mode>_mask<round_name>,
6722 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6723 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6724 *avx512f_vmfnmsub_<mode>_mask<round_name>,
6725 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6726 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6727 cvtusi2<ssescalarmodesuffix>32<round_name>,
6728 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6729 round_nimm_predicate with round_nimm_scalr_predicate.
6730 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6731 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6732 avx512er_vmrcp28<mode><round_saeonly_name>,
6733 avx512er_vmrsqrt28<mode><round_saeonly_name>,
6734 ): Replace round_saeonly_nimm_predicate with
6735 round_saeonly_nimm_scalar_predicate.
6736 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6737 vector_operand with nonimmediate_operand.
6738 * config/i386/subst.md (round_scalar_nimm_predicate,
6739 round_saeonly_scalar_nimm_predicate): Replace
6740 vector_operand with nonimmediate_operand.
6741
6742 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6743
6744 PR target/89071
6745 * config/i386/i386.md (*rcpsf2_sse): Add
6746 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6747 (*rsqrtsf2_sse): Ditto.
6748 (*sqrt<mode>2_sse): Ditto.
6749 (sse4_1_round<mode>2): separate constraint vm, add
6750 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6751 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
6752 by pass rpad.
6753 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
6754 Ditto.
6755 (*sse_vmrsqrtv4sf2): Ditto.
6756 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
6757 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
6758 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
6759 <iptr> pointer size modifier since vround support memory operand.
6760
6761 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6762
6763 PR target/85969
6764 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
6765 static function.
6766
6767 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6768 Tobias Burnus <tobias@codesourcery.com>
6769
6770 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
6771 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
6772 common block decls.
6773
6774 2019-10-25 Richard Biener <rguenther@suse.de>
6775
6776 PR tree-optimization/92222
6777 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
6778 (_slp_oprnd_info::second_pattern): Likewise.
6779 (_slp_oprnd_info::any_pattern): New.
6780 (vect_create_oprnd_info): Adjust.
6781 (vect_get_and_check_slp_defs): Compute whether any stmt is
6782 in a pattern.
6783 (vect_build_slp_tree_2): Avoid building up a node from scalars
6784 if any of the operand defs, not just the first, is in a pattern.
6785
6786 2019-10-25 Richard Biener <rguenther@suse.de>
6787
6788 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
6789 swapping if we actually have to modify the IL on a shared stmt.
6790 (vect_build_slp_tree_2): Never fail swapping on shared stmts
6791 because we no longer modify the IL.
6792
6793 2019-10-25 Martin Liska <mliska@suse.cz>
6794
6795 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
6796
6797 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
6798
6799 * tree-vect-loop.c (vectorizable_reduction): Restrict the
6800 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
6801 handled by vect_transform_reduction. Allow fully-masked loops
6802 to be used with reduction chains.
6803 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
6804 operations in fully-masked loops.
6805 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
6806 operations in fully-masked loops.
6807
6808 2019-10-25 Richard Biener <rguenther@suse.de>
6809
6810 * tree-vect-loop.c (vectorizable_reduction): Verify
6811 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
6812 correctly.
6813 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
6814 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
6815 stmts.
6816
6817 2019-10-24 Jakub Jelinek <jakub@redhat.com>
6818
6819 * gimplify.h (omp_construct_selector_matches): Declare.
6820 * gimplify.c (struct gimplify_omp_ctx): Add code member.
6821 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
6822 called function if needed for flag_openmp.
6823 (gimplify_scan_omp_clauses): Set ctx->code.
6824 (omp_construct_selector_matches): New function.
6825 * omp-general.h (omp_constructor_traits_to_codes,
6826 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
6827 * omp-general.c (omp_constructor_traits_to_codes,
6828 omp_context_selector_matches, omp_resolve_declare_variant): New
6829 functions.
6830
6831 * config/arc/arc.c (hwloop_optimize): Add missing space in string
6832 literal.
6833 * config/rx/rx.c (rx_print_operand): Likewise.
6834 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6835 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6836 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
6837 Likewise.
6838 * genemit.c (emit_c_code): Likewise.
6839 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
6840
6841 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6842
6843 * symbols-summary.h (fast_function_summary<T *, V>::release,
6844 fast_call_summary<T *, V>::release): Free m_vector.
6845
6846 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6847
6848 * cgraphunit.c (symbol_table::process_new_functions): Call
6849 ipa_free_size_summary.
6850 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
6851 (devirtualization_time_bonus): Update.
6852 (ipcp_propagate_stage): Update.
6853 * ipa-fnsummary.c (ipa_size_summaries): New.
6854 (ipa_fn_summary_alloc): Alloc size summary.
6855 (dump_ipa_call_summary): Update.
6856 (ipa_dump_fn_summary): Update.
6857 (analyze_function_body): Update.
6858 (compute_fn_summary): Likewise.
6859 (ipa_get_stack_frame_offset): New function.
6860 (inline_update_callee_summaries): Do not update frame offsets.
6861 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
6862 remove call and function summary.
6863 (ipa_update_overall_fn_summary): Update.
6864 (inline_read_section): Update.
6865 (ipa_fn_summary_write): Update.
6866 (ipa_free_fn_summary): Do not remove summaries.
6867 (ipa_free_size_summary): New.
6868 (release summary pass): Also run at WPA.
6869 * ipa-fnsummary.h (ipa_size_summary): Declare.
6870 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
6871 estimated_self_stack_size.
6872 (ipa_size_summary_t): New type.
6873 (ipa_size_summaries): Declare.
6874 (ipa_free_size_summary): Declare.
6875 (ipa_get_stack_frame_offset): Declare.
6876 * ipa-icf.c (sem_function::merge): Update.
6877 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
6878 (estimate_growth): Update.
6879 (growth_likely_positive): Update.
6880 (clone_inlined_nodes): Update.
6881 (inline_call): Update.
6882 * ipa-inline.c (caller_growth_limits): Update.
6883 (edge_badness): Update.
6884 (recursive_inlining): Update.
6885 (inline_small_functions): Update.
6886 (inline_to_all_callers_1): Update.
6887 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
6888
6889 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
6890
6891 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
6892 (uavg<mode>3_ceil): ... This.
6893 (altivec_vavgs<VI_char>): Rename to...
6894 (avg<mode>3_ceil): ... This.
6895 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
6896 VAVGUW, VAVGSW): Adjust.
6897
6898 2019-10-24 Nathan Sidwell <nathan@acm.org>
6899
6900 * dumpfile.c (dump_begin): Reorder decls to use RAII.
6901
6902 2019-10-24 Martin Liska <mliska@suse.cz>
6903
6904 * symbol-summary.h (gt_pch_nx): Mark all functions
6905 with gcc_unreachable as we do not expect to be called.
6906
6907 2019-10-24 Richard Biener <rguenther@suse.de>
6908
6909 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
6910 chains try harder with operand swapping and instead of
6911 putting a shifted chain into the reduction operands put
6912 a repetition of the final reduction op there as if we'd
6913 reassociate the expression.
6914
6915 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6916
6917 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
6918 statics_not_read and statics_not_written to statics_read and
6919 statics_written respectively.
6920 (no_module_statics): New static var.
6921 (ipa_reference_get_not_read_global): Rename to ...
6922 (ipa_reference_get_read_global): ... this.
6923 (ipa_reference_get_not_written_global): Rename to ...
6924 (ipa_reference_get_written_global): ... this.
6925 (dump_static_vars_set_to_file): Dump no_module_statics.
6926 (copy_static_var_set): Add for propagation parameter.
6927 (ipa_init): Initialize no_module_statics.
6928 (ipa_ref_opt_summary_t::duplicate): Update.
6929 (ipa_ref_opt_summary_t::remove): Update.
6930 (propagate): Update.
6931 (write_node_summary_p): Look correctly for bitmap differences.
6932 (ipa_reference_write_optimization_summary): Update.
6933 (ipa_reference_read_optimization_summary): Update.
6934 * ipa-reference.h
6935 (ipa_reference_get_not_read_global): Rename to ...
6936 (ipa_reference_get_read_global): ... this.
6937 (ipa_reference_get_not_written_global): Rename to ...
6938 (ipa_reference_get_written_global): ... this.
6939 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
6940 (call_may_clobber_ref_p_1): Update.
6941
6942 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6943
6944 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
6945 and add comment.
6946 (msp430_hard_regno_nregs_with_padding): Remove.
6947
6948 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6949
6950 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
6951 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
6952 shift amount is between 1 and 4.
6953 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
6954 is between 1 and 4.
6955
6956 2019-10-24 Richard Biener <rguenther@suse.de>
6957
6958 PR tree-optimization/92205
6959 * tree-vect-loop.c (vectorizable_reduction): Restrict
6960 search for alternate vectype_in to lane-reducing patterns
6961 we support.
6962
6963 2019-10-24 Richard Biener <rguenther@suse.de>
6964
6965 PR tree-optimization/92203
6966 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
6967 Skip eliminating conversion stmts inserted by insertion.
6968
6969 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
6970
6971 * config/s390/s390.c (s390_get_thread_pointer): Use
6972 gen_get_thread_pointer.
6973 (s390_expand_split_stack_prologue): Likewise.
6974 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
6975 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
6976 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
6977 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
6978 parameterized name.
6979
6980 2019-10-24 Richard Biener <rguenther@suse.de>
6981
6982 * tree-vect-slp.c (vect_analyze_slp): When reduction group
6983 SLP discovery fails try to handle the reduction as part
6984 of SLP reduction discovery.
6985
6986 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
6987
6988 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
6989 declaration.
6990 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
6991 attribute if it exists, rather than the insn size. If we use the
6992 insn size, adjust the size to remove the extra size that prefixed
6993 instructions take.
6994 (rs6000_adjust_insn_length): New function.
6995 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
6996 update the instruction sized if prefixed instructions are used.
6997 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
6998 (non_prefixed_length attribute): Delete.
6999 (num_insns attribute): New insn attribute to return the number of
7000 instructions.
7001 (max_prefixed_insns attribute): New insn attribute to return the
7002 maximum number of prefixed instructions in an insn.
7003 (length attribute): Do not adjust for prefix instructions here,
7004 punt to ADJUST_INSN_LENGTH.
7005 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7006 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7007 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7008 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7009 max_prefixed_insns and num_insns.
7010
7011 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7012 (movtd_64bit_nodm): Reformat.
7013 (mov<mode>_32bit): Reformat.
7014 (mov<mode>_softfloat): Reformat.
7015 (FMOVE128_GPR splitter): Reformat.
7016 (DIFD splitter): Reformat.
7017 (TI2 splitter): Reformat.
7018 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7019 bits of the offset for the memory address are non-zero, use PLWA
7020 if prefixed instructions are available.
7021
7022 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7023
7024 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7025
7026 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7027
7028 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7029 previous patch.
7030
7031 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7032
7033 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7034 (cmp_symbol_files): New.
7035 (lto_output): Copy sections in file order.
7036 * lto-streamer.h (lto_file_decl_data): Add field order.
7037
7038 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7039
7040 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7041 * ipa-reference.c (reference_vars_map_t): new type.
7042 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7043 (ipa_reference_var_uid): Implement.
7044 (varpool_node_hooks): New static var.
7045 (varpool_removal_hook): New function.
7046 (is_improper): Do not check bitmap for id==-1
7047 (get_static_name): Update.
7048 (ipa_init): Initialize new datastructures.
7049 (analyze_function): Do not recompute ids.
7050 (propagate): Free reference_vars_to_consider.
7051 (stream_out_bitmap): Update.
7052 (ipa_reference_read_optimization_summary): Update.
7053
7054 2019-10-23 qing zhao <qing.zhao@oracle.com>
7055
7056 PR gcov-profile/91971
7057 * coverage.c (coverage_init): Mangle the full path of filename when
7058 filename is a absolute path.
7059
7060 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7061
7062 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7063 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7064 (msp430_has_hwmult): New.
7065 (msp430_output_labelref):
7066 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7067 * config/msp430/msp430.md (mulhisi3): Likewise.
7068 (umulhisi3): Likewise.
7069 (mulsidi3): Likewise.
7070 (umulsidi3): Likewise.
7071
7072 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7073
7074 PR ipa/92074
7075 * params.def (inline-heuristics-hint-percent): Set to 600.
7076
7077 2019-10-23 Richard Biener <rguenther@suse.de>
7078
7079 PR tree-optimization/65930
7080 * tree-vect-loop.c (check_reduction_path): Allow conversions
7081 that only change the sign.
7082 (vectorizable_reduction): Relax latch def stmts we handle further.
7083
7084 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7085
7086 PR debug/90231
7087 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7088 (remove_unused_ivs): Use it instead of get_computation_at. When
7089 choosing best candidate, only consider candidates where
7090 get_debug_computation_at actually returns non-NULL.
7091
7092 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7093
7094 PR tree-optimization/92131
7095 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7096 range would be symbolic, drop to varying for any explicit overflow
7097 in the constant part or if neither range is a singleton.
7098
7099 2019-10-23 Martin Liska <mliska@suse.cz>
7100
7101 PR middle-end/81669
7102 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7103 Initialize m_data.
7104
7105 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7106
7107 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7108 int_mode_for_mode rather than mode_for_int_vector for scalars.
7109
7110 2019-10-23 Richard Biener <rguenther@suse.de>
7111
7112 PR tree-optimization/92179
7113 * tree-vect-stmts.c (vectorizable_shift): For shift args
7114 that are all the same remove type restriction in the SLP case.
7115 Adjust SLP code to handle converting of the shift arg to
7116 only apply in case the modes are different.
7117
7118 2019-10-23 Martin Liska <mliska@suse.cz>
7119
7120 PR ipa/91969
7121 * ipa-inline.c (recursive_inlining): Do not print
7122 when curr->count is not initialized.
7123
7124 2019-10-23 Richard Biener <rguenther@suse.de>
7125
7126 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7127 op from scalars in case there's a constant operand in its
7128 definition.
7129
7130 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7131
7132 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7133 against out of range max skip or log values.
7134
7135 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7136
7137 * cgraph.c (dump_graphviz): Change name to dump_name
7138
7139 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7140
7141 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7142 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7143 subtraction from a carry operation.
7144
7145 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7146
7147 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7148
7149 2019-10-22 Richard Biener <rguenther@suse.de>
7150
7151 PR tree-optimization/92173
7152 * tree-vect-loop.c (vectorizable_reduction): If
7153 vect_transform_reduction cannot handle code-generation try without
7154 the single-def-use-cycle optimization. Pass optab_vector to
7155 optab_for_tree_code to get vector shifts as that's what we'd
7156 generate.
7157
7158 2019-10-22 Michael Matz <matz@suse.de>
7159
7160 PR middle-end/90796
7161 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7162 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7163 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7164
7165 2019-10-22 Richard Biener <rguenther@suse.de>
7166
7167 PR tree-optimization/92173
7168 * tree-vect-loop.c (vectorizable_reduction): If
7169 vect_transform_reduction cannot handle code-generation try without
7170 the single-def-use-cycle optimization. Pass optab_vector to
7171 optab_for_tree_code to get vector shifts as that's what we'd
7172 generate.
7173
7174 2019-10-22 Martin Liska <mliska@suse.cz>
7175
7176 * diagnostic-format-json.cc (json_from_expanded_location):
7177 Use json::integer_number.
7178 * gcov.c (output_intermediate_json_line): Use new
7179 json::integer_number.
7180 (output_json_intermediate_file): Likewise.
7181 * json.cc (number::print): Move to ...
7182 (float_number::print): ... this.
7183 (integer_number::print): New.
7184 (test_writing_numbers): Move to ...
7185 (test_writing_float_numbers): ... this.
7186 (test_writing_integer_numbers): New.
7187 (json_cc_tests): Register test_writing_integer_numbers.
7188 * json.h (class value): Add forward declaration
7189 for float_number and integer_number.
7190 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7191 (class number): Move to ...
7192 (class float_number): ... this.
7193 (class integer_number): New.
7194 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7195 Use json::integer_number.
7196 (optrecord_json_writer::location_to_json): Likewise.
7197 (optrecord_json_writer::profile_count_to_json): Likewise.
7198 (optrecord_json_writer::pass_to_json): Likewise.
7199
7200 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7201
7202 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7203 autodetected_vector_size rather than vector_size is zero.
7204 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7205 Set autodetected_vector_size immediately after calling
7206 vect_analyze_loop_2. Check for a fatal error before advancing
7207 next_size.
7208
7209 2019-10-21 Jason Merrill <jason@redhat.com>
7210
7211 * lock-and-run.sh: Check for process existence rather than timeout.
7212
7213 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7214
7215 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7216 widening multiplication.
7217
7218 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7219
7220 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7221 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7222 type attribute.
7223 (subsi3_carryin_shift): Separate into register and constant controlled
7224 alternatives. Use shift_amount_operand for operand 4. Set shift
7225 attribute and simplify type attribute.
7226 (subsi3_carryin_shift_alt): Likewise.
7227 (rsbsi3_carryin_shift): Likewise.
7228 (rsbsi3_carryin_shift_alt): Likewise.
7229 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7230 and register controlled shifts into distinct alternatives.
7231 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7232 (andsi_not_shiftsi_si_scc): Likewise.
7233 (arm_cmpsi_negshiftsi_si): Likewise.
7234 (not_shiftsi): Remove redundant M constraint from alternative 1.
7235 (not_shiftsi_compare0): Likewise.
7236 (arm_cmpsi_insn): Remove redundant alternative 2.
7237 (cmpsi_shift_swp): Likewise.
7238 (sub_shiftsi): Likewise.
7239 (sub_shiftsi_compare0_scratch): Likewise.
7240 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7241 (thumb2_cmpsi_neg_shiftsi): Likewise.
7242
7243 2019-10-21 Richard Biener <rguenther@suse.de>
7244
7245 PR tree-optimization/92162
7246 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7247 STMT_VINFO_REDUC_IDX in reduc_info.
7248 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7249
7250 2019-10-21 Richard Biener <rguenther@suse.de>
7251
7252 * tree-vectorizer.h (_slp_tree::ops): New member.
7253 (SLP_TREE_SCALAR_OPS): New.
7254 (vect_get_slp_defs): Adjust prototype.
7255 * tree-vect-slp.c (vect_free_slp_tree): Release
7256 SLP_TREE_SCALAR_OPS.
7257 (vect_create_new_slp_node): Initialize it. New overload for
7258 initializing by an operands array.
7259 (_slp_oprnd_info::ops): New member.
7260 (vect_create_oprnd_info): Initialize it.
7261 (vect_free_oprnd_info): Release it.
7262 (vect_get_and_check_slp_defs): Populate the operands array.
7263 Do not swap operands in the IL when not necessary.
7264 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7265 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7266 swap operands in the operands array. Do not swap operands in
7267 the IL.
7268 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7269 (vect_gather_slp_loads): Fix.
7270 (vect_detect_hybrid_slp_stmts): Likewise.
7271 (vect_slp_analyze_node_operations_1): Search for a internal
7272 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7273 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7274 the def-type push/pop dance.
7275 (vect_get_constant_vectors): Compute number_of_vectors here.
7276 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7277 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7278 (vect_get_slp_defs): Simplify greatly.
7279 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7280 (vect_transform_reduction): Likewise.
7281 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7282 (vectorizable_call): Likewise.
7283 (vectorizable_operation): Likewise.
7284 (vectorizable_load): Likewise.
7285 (vectorizable_condition): Likewise.
7286 (vectorizable_comparison): Likewise.
7287
7288 2019-10-21 Richard Biener <rguenther@suse.de>
7289
7290 PR tree-optimization/92161
7291 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7292 for reductions.
7293
7294 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7295
7296 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7297 (aarch64_rndr): New define_insn.
7298 (aarch64_rndrrs): Likewise.
7299 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7300 (TARGET_RNG): Likewise.
7301 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7302 argument.
7303 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7304 Add fourth argument in prototype.
7305 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7306 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7307 (aarch64_init_rng_builtins): Define.
7308 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7309 (aarch64_expand_rng_builtin): Define.
7310 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7311 RNG builtins.
7312 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7313 __ARM_FEATURE_RNG when TARGET_RNG.
7314 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7315
7316 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7317
7318 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7319 alignment is more restrictive.
7320
7321 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7322
7323 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7324 (vect_update_max_nunits): Update comment.
7325 (current_vector_size): Delete.
7326 * tree-vect-stmts.c (current_vector_size): Likewise.
7327 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7328 of current_vector_size.
7329 (get_mask_type_for_scalar_type): Likewise.
7330 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7331 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7332 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7333 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7334 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7335 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7336
7337 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7338
7339 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7340 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7341 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7342 accordingly.
7343
7344 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7345
7346 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7347 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7348 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7349 call accordingly.
7350 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7351
7352 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7353
7354 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7355 a loop_vec_info.
7356 (vect_set_loop_condition_masked): Update call accordingly.
7357
7358 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7359
7360 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7361 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7362 (simple_integer_narrowing): Update call accordingly.
7363 (vectorizable_conversion): Likewise.
7364
7365 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7366
7367 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7368 (vectorizable_call): Update call accordingly.
7369
7370 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7371
7372 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7373 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7374 (duplicate_and_interleave): Update call accordingly.
7375 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7376
7377 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7378
7379 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7380 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7381 (vect_get_constant_vectors): Update call accordingly.
7382 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7383
7384 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7385
7386 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7387 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7388 (vect_prologue_cost_for_slp_op): Update call accordingly.
7389 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7390 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7391 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7392 (get_mask_type_for_scalar_type): Likewise.
7393 (vect_get_vector_types_for_stmt): Likewise.
7394 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7395 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7396 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7397 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7398 (vect_split_statement, vect_convert_input): Likewise.
7399 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7400 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7401 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7402 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7403 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7404 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7405 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7406 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7407 (vect_recog_mask_conversion_pattern): Likewise.
7408 (vect_add_conversion_to_pattern): Likewise.
7409 (vect_recog_gather_scatter_pattern): Likewise.
7410 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7411 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7412
7413 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7414
7415 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7416 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7417 (vect_check_load_store_mask): Update call accordingly.
7418 (vect_get_mask_type_for_stmt): Likewise.
7419 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7420 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7421 (vect_convert_mask_for_vectype): Likewise.
7422
7423 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7424
7425 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7426 a vec_info.
7427 (vect_recog_dot_prod_pattern): Update call accordingly.
7428 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7429 (vect_recog_widen_sum_pattern): Likewise.
7430
7431 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7432
7433 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7434 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7435 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7436 accordingly.
7437
7438 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7439
7440 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7441 get_vectype_for_scalar_type_and_size instead of
7442 get_vectype_for_scalar_type.
7443
7444 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7445
7446 * common.opt (-fcommon): Fix description.
7447
7448 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7449
7450 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7451 * config/i386/i386.c (ix86_pre_reload_split): New function.
7452 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7453 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7454 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7455 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7456 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7457 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7458 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7459 *<shift_insn><dwi>3_doubleword_mask,
7460 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7461 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7462 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7463 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7464 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7465 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7466 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7467 *avx2_<code>v8qiv8si2<mask_name>_2,
7468 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7469 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7470 *avx512f_<code>v8qiv8di2<mask_name>_2,
7471 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7472 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7473 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7474 sse4_2_pcmpistr): Likewise.
7475
7476 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7477
7478 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7479 now defaults to https.
7480
7481 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7482
7483 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7484 skip non-zero array accesses.
7485
7486 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7487
7488 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7489 and return a boolean success value. Move the allocation and
7490 initialization of the bb_vec_info to...
7491 (vect_slp_bb_region): ...here. Update call accordingly.
7492 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7493 than in vect_slp_analyze_bb_1.
7494
7495 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7496
7497 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7498 when processing the given datarefs for the first time and
7499 check_datarefs subsequently.
7500 (vect_slp_bb_region): New function, split out of...
7501 (vect_slp_bb): ...here. Don't recompute the region bounds and
7502 dataref sets when retrying with a different vector size.
7503
7504 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7505 Uroš Bizjak <ubizjak@gmail.com>
7506
7507 PR target/92140
7508 * config/i386/predicates.md (int_nonimmediate_operand): New special
7509 predicate.
7510 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7511 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7512 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7513 define_insn_and_split patterns.
7514
7515 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7516
7517 * config/rs6000/rs6000.md: Delete out--of-date comment about
7518 special-casing integer loads.
7519
7520 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7521
7522 * escaped_string.h (escaped_string): New header.
7523 * tree.c (escaped_string): Remove escaped_string class.
7524
7525 2019-10-18 Martin Sebor <msebor@redhat.com>
7526
7527 PR tree-optimization/92157
7528 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7529 compute_string_length to return a negative result.
7530
7531 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7532
7533 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7534 (negvsi3, negvdi3): Delete.
7535 (negdi2_compare): Delete.
7536
7537 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7538
7539 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7540 operations.
7541 (subdi3_compare1): Delete pattern.
7542 (subvsi3_borrow): New insn pattern.
7543 (subvsi3_borrow_imm): Likewise.
7544
7545 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7546
7547 * config/arm/arm.md (subv<mode>4): Delete.
7548 (subvdi4): New expander pattern.
7549 (subvsi4): Likewise. Handle some immediate values.
7550 (subvsi3_intmin): New insn pattern.
7551 (subvsi3): Likewise.
7552 (subvsi3_imm1): Likewise.
7553 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7554 idioms.
7555
7556 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7557
7558 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7559 incoming operands. Early split the calculation into SImode
7560 operations.
7561 (usubvsi3_borrow): New insn pattern.
7562 (usubvsi3_borrow_imm): Likewise.
7563
7564 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7565
7566 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7567 (usubvsi4): New pattern. Allow some immediate values for inputs.
7568 (usubvdi4): New pattern.
7569
7570 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7571
7572 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7573 or second operand of the PLUS inside a DImode equality test to be
7574 sign-extend when selecting CC_Vmode.
7575 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7576 instructions.
7577 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7578 expand patterns.
7579 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7580 (addsi3_cin_vout_0): Likewise.
7581 (adddi3_compareV): Delete.
7582
7583 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7584
7585 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7586 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7587 to transform this back into the summation version when that leads
7588 to smaller code.
7589
7590 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7591
7592 * config/arm/arm.md (addv<mode>4): Delete.
7593 (addvsi4): New pattern. Handle immediate values that the architecture
7594 supports.
7595 (addvdi4): New pattern.
7596 (addsi3_compareV): Rename to ...
7597 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7598 and use COMPARE rather than NE.
7599 (addsi3_compareV_imm): New pattern.
7600 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7601 a signed-overflow check.
7602
7603 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7604
7605 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7606 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7607 CC_ADCmode.
7608 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7609 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7610 with overflow.
7611 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7612 expand patterns.
7613 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7614 (addsi3_cin_cout_imm_insn): Likewise.
7615 (adddi3_compareC): Delete insn.
7616 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7617
7618 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7619
7620 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7621 * (uaddv<mode>4): Delete expansion pattern.
7622 (uaddvsi4): New pattern.
7623 (uaddvdi4): Likewise.
7624 (addsi3_compareC): Delete pattern, change callers to use
7625 addsi3_compare_op1.
7626 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7627 reduce the number of alternatives and re-work type attribute handling.
7628 (addsi3_compare_op2): Clean up constraints to reduce the number of
7629 alternatives and re-work type attribute handling.
7630 (compare_addsi2_op0): Likewise.
7631 (compare_addsi2_op1): Likewise.
7632
7633 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7634
7635 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7636 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7637 for DImode operands.
7638 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7639 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7640 CC_NCVmode.
7641 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7642 (arm_cmpdi_unsigned): Delete.
7643
7644 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7645
7646 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7647 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7648 unchanged only if that will be cheaper.
7649 (arm_select_cc_mode): Recognize a swapped comparison that will
7650 be regenerated using RSBS or RSCS. Relax restriction on selecting
7651 CC_RSBmode.
7652 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7653 a constant.
7654 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7655 is CC_RSBmode.
7656 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7657 as CCmode.
7658 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7659 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7660
7661 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7662
7663 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7664 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7665 need these modes.
7666 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7667 of EQ, NE, LT, GE, LTU and GEU.
7668 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7669 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7670 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7671 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7672 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7673
7674 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7675
7676 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7677 operand 2.
7678 (cstoredi4): Similarly, but for operand 3.
7679 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7680 canonicalization of unsigned compares with a constant on Arm.
7681 Prefer using const+1 and adjusting the comparison over swapping the
7682 operands whenever the original constant was not valid.
7683 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7684 register here.
7685 (arm_validize_comparison): Do not force invalid DImode operands to
7686 registers here.
7687
7688 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7689
7690 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7691 return CC_Zmode if comparing against a constant where one word is
7692 zero.
7693 (arm_gen_compare_reg): Split DImode handling to ...
7694 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7695 against simple constants.
7696 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7697
7698 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7699
7700 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7701 (rsbsi3_carryin_shift_alt): Likewise.
7702
7703 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7704
7705 * config/arm/arm.md (negscc_borrow): New pattern.
7706 (mov_negscc): Don't split if the insn would match negscc_borrow.
7707 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7708 (thumb2_mov_negscc_strict_it): Likewise.
7709
7710 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7711
7712 * config/arm/arm.c (arm_insn_cost): New function.
7713 (TARGET_INSN_COST): Override default definition.
7714
7715 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7716
7717 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7718 borrow operations.
7719
7720 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7721
7722 * config/arm/arm.c (strip_carry_operation): New function.
7723 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7724 for SImode.
7725
7726 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7727
7728 * config/arm/predicates.md (arm_carry_operation): New special
7729 predicate.
7730 * config/arm/iterators.md (LTUGEU): Delete iterator.
7731 (cnb): Delete code attribute.
7732 (optab): Delete ltu and geu elements.
7733 * config/arm/arm.md (addsi3_carryin): Renamed from
7734 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
7735 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7736 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7737 (addsi3_carryin_clobercc): Similarly.
7738 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
7739 Thumb2 state.
7740
7741 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7742
7743 * config/arm/arm.md (arm_subdi3): Delete insn.
7744 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7745
7746 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7747
7748 * config/arm/arm-modes.def (CC_RSB): New CC mode.
7749 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7750 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7751 return CC_RSBmode.
7752 (maybe_get_arm_condition_code): Handle CC_RSBmode.
7753 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
7754 expand.
7755 (subdi3): Rewrite to early-expand the sub-operations.
7756 (rsb_im_compare): New pattern.
7757 (negdi2): Delete.
7758 (negdi2_insn): Delete.
7759 (arm_negsi2): Correct type attribute to alu_imm.
7760 (negsi2_0compare): New insn pattern.
7761 (negsi2_carryin): New insn pattern.
7762
7763 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7764
7765 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
7766 operand 2.
7767
7768 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7769
7770 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
7771 to match canonical form.
7772
7773 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7774
7775 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
7776 (extend<mode>di2): Likewise.
7777
7778 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7779
7780 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
7781 * config/arm/arm.c (arm_decompose_di_binop): New function.
7782 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
7783 If not generating Thumb-1 code, decompose the operation into 32-bit
7784 pieces.
7785 * add0si_carryin_<optab>: New pattern.
7786
7787 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7788
7789 * arm.md (adddi3): Only accept register operands.
7790 (arm_adddi3): Convert to simple insn with no split. Do not accept
7791 constants.
7792 (adddi_sesidi_di): Delete patern.
7793 (adddi_zesidi_di): Likewise.
7794 (uaddv<mode>4): Use LTU as condition for branch.
7795 (adddi3_compareV): Convert to simple insn with no split.
7796 (addsi3_compareV_upper): Delete pattern.
7797 (adddi3_compareC): Convert to simple insn with no split. Correct
7798 flags setting expression.
7799 (addsi3_compareC_upper): Delete pattern.
7800 (addsi3_compareC): Correct flags setting expression.
7801 (subdi3_compare1): Convert to simple insn with no split.
7802 (subsi3_carryin_compare): Delete pattern.
7803 (arm_subdi3): Convert to simple insn with no split.
7804 (subdi_zesidi): Delete pattern.
7805 (subdi_di_sesidi): Delete pattern.
7806 (subdi_zesidi_di): Delete pattern.
7807 (subdi_sesidi_di): Delete pattern.
7808 (subdi_zesidi_zesidi): Delete pattern.
7809 (negvdi3): Use s_register_operand.
7810 (negdi2_compare): Convert to simple insn with no split.
7811 (negdi2_insn): Likewise.
7812 (negsi2_carryin_compare): Delete pattern.
7813 (negdi_zero_extendsidi): Delete pattern.
7814 (arm_cmpdi_insn): Convert to simple insn with no split.
7815 (negdi2): Don't call gen_negdi2_neon.
7816 * config/arm/neon.md (adddi3_neon): Delete pattern.
7817 (subdi3_neon): Delete pattern.
7818 (negdi2_neon): Delete pattern.
7819 (splits for negdi2_neon): Delete splits.
7820
7821 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7822
7823 PR middle-end/92153
7824 * ggc-page.c (release_pages): Read g->alloc_size before free rather
7825 than after it.
7826
7827 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
7828
7829 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
7830 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
7831 new multilib variants and new mappings.
7832
7833 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7834
7835 PR target/86040
7836 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
7837
7838 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7839 Richard Sandiford <richard.sandiford@arm.com>
7840
7841 PR target/86753
7842 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
7843 and define hashmap traits for it.
7844 (loop_vec_info::scalar_cond_masked_set): New member.
7845 (vect_record_loop_mask): Adjust prototype.
7846 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
7847 Implement method.
7848 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
7849 vect_record_loop_mask.
7850 (vectorizable_live_operation): Likewise.
7851 (vect_record_loop_mask): New param scalar_mask. Add entry
7852 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
7853 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
7854 Pass it as last arg to vect_record_loop_mask.
7855 (vectorizable_call): Pass scalar_mask as last arg to
7856 vect_record_loop_mask.
7857 (vectorizable_store): Likewise.
7858 (vectorizable_load): Likewise.
7859 (vectorizable_condition): Check if another part of vectorized code
7860 applies loop_mask to condition or to it's inverse, and if yes,
7861 apply loop_mask to result of vector comparison.
7862
7863 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
7864
7865 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
7866
7867 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7868
7869 PR tree-optimization/92056
7870 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
7871 before calling compute_builtin_object_size.
7872
7873 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
7874
7875 PR target/65342
7876 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
7877 (movdi_low_st): Delete.
7878 * config/rs6000/rs6000.c
7879 (darwin_rs6000_legitimate_lo_sum_const_p): New.
7880 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
7881 * config/rs6000/rs6000.md (movsi_low): Delete.
7882
7883 2019-10-17 Jason Merrill <jason@redhat.com>
7884
7885 * gimplify.h (get_initialized_tmp_var): Add default argument to
7886 post_p.
7887 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
7888 NULL post_p argument.
7889 * targhooks (std_gimplify_va_arg_expr): Likewise.
7890
7891 2019-10-17 Richard Biener <rguenther@suse.de>
7892
7893 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
7894 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
7895 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
7896 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
7897 * tree-vect-loop.c (vect_is_simple_reduction): Set
7898 STMT_VINFO_REDUC_CODE.
7899 (vectorizable_reduction): Remove dead and redundant code, use
7900 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
7901
7902 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
7903
7904 Fix breakage introduced by r276985.
7905
7906 * config/avr/avr.c (avr_option_override): Remove set of
7907 PARAM_ALLOW_STORE_DATA_RACES.
7908 * common/config/avr/avr-common.c (avr_option_optimization_table)
7909 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
7910
7911 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
7912
7913 * config/i386/i386.h (processor_costs): Add clear_ratio.
7914 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
7915 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
7916 of 6 and move_ratio in all cost models.
7917
7918 2019-10-17 Richard Biener <rguenther@suse.de>
7919
7920 * tree-vect-loop.c (check_reduction_path): Compute reduction
7921 operation here.
7922 (vect_is_simple_reduction): Remove special-case of single-stmt
7923 reduction path detection.
7924
7925 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
7926
7927 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
7928
7929 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
7930
7931 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
7932 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
7933 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
7934 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
7935 New combine patterns.
7936 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
7937 above.
7938 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
7939
7940 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
7941
7942 * tree-vrp.c (value_range_base::dump): Display +INF for both
7943 pointers and integers when appropriate.
7944
7945 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7946
7947 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
7948 when to use versioning threshold.
7949
7950 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7951
7952 * tree-vect-loop.c (determine_peel_for_niter): New function contained
7953 outlined code from ...
7954 (vect_analyze_loop_2): ... here.
7955
7956 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7957
7958 * tree-vect-loop.c (vect_transform_loop): Move code from here...
7959 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
7960 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
7961
7962 2019-10-17 Richard Biener <rguenther@suse.de>
7963
7964 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
7965 (vect_is_simple_reduction): Move all validity checks ...
7966 (vectorizable_reduction): ... here. Compute whether we
7967 need a fold-left reduction here.
7968 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
7969 both overloads, check needs_fold_left_reduction_p directly.
7970 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
7971
7972 2019-10-17 Richard Biener <rguenther@suse.de>
7973
7974 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
7975 TARGET_MEM_REF creation.
7976
7977 2019-10-17 Richard Biener <rguenther@suse.de>
7978
7979 PR tree-optimization/92129
7980 * tree-vect-loop.c (vectorizable_reduction): Also fail
7981 on GIMPLE_SINGLE_RHS.
7982
7983 2019-10-17 Jakub Jelinek <jakub@redhat.com>
7984
7985 PR tree-optimization/92056
7986 * tree-object-size.c (cond_expr_object_size): Return early if then_
7987 processing resulted in unknown size.
7988
7989 PR tree-optimization/92115
7990 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
7991 temporary if it could trap.
7992
7993 2019-10-17 Richard Biener <rguenther@suse.de>
7994
7995 PR debug/91887
7996 * dwarf2out.c (gen_formal_parameter_die): Also try to match
7997 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
7998
7999 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8000
8001 * tree-ssa-strlen.c (maybe_invalidate): Use
8002 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8003
8004 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8005 Jim Wilson <jimw@sifive.com>
8006
8007 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8008 regs to SIBCALL_REGS.
8009 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8010 passing regs to SIBCALL_REGS.
8011
8012 2019-10-16 Martin Sebor <msebor@redhat.com>
8013
8014 PR tree-optimization/83821
8015 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8016 the length of a string when available.
8017 (handle_builtin_memset) Add argument.
8018 (handle_store, strlen_check_and_optimize_call): Same.
8019 (check_and_optimize_stmt): Same. Pass it to callees.
8020
8021 2019-10-16 Martin Sebor <msebor@redhat.com>
8022
8023 PR tree-optimization/91996
8024 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8025 information.
8026 (compare_nonzero_chars): Add an overload.
8027 (count_nonzero_bytes): Add an argument. Call overload above.
8028 Handle non-constant lengths in some range.
8029 (handle_store): Add an argument.
8030 (check_and_optimize_stmt): Pass an argument to handle_store.
8031
8032 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8033
8034 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8035
8036 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8037
8038 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8039 operands which correspond to the same input-output register to
8040 have the same pseudo assigned to them.
8041
8042 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8043
8044 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8045
8046 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8047
8048 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8049 Apply reasonable limit to symbol offsets.
8050
8051 2019-10-16 Richard Biener <rguenther@suse.de>
8052
8053 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8054 (vect_is_simple_reduction): Delay checking to
8055 vectorizable_reduction and relax the checking.
8056 (vectorizable_reduction): Check we have a simple use. Check
8057 for bogus condition reductions.
8058 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8059 are looking at the last stmt in a pattern sequence when
8060 filling in backedge PHI values.
8061
8062 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8063 Jiufu Guo <guojiufu@linux.ibm.com>
8064
8065 PR target/70010
8066 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8067 the callee explicitly disables some isa_flags the caller is using.
8068
8069 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8070
8071 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8072
8073 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8074
8075 * genmodes.c (mode_data::order): New field.
8076 (blank_mode): Update accordingly.
8077 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8078 (make_vector_modes): Likewise.
8079 (VECTOR_MODES): Update use accordingly.
8080 (cmp_modes): Sort by the new order field ahead of sorting by size.
8081 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8082 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8083 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8084 (aarch64_classify_vector_mode): Handle the new partial modes.
8085 (aarch64_vl_bytes): New function.
8086 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8087 when counting the number of registers in an SVE mode.
8088 (aarch64_class_max_nregs): Likewise.
8089 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8090 in registers yet.
8091 (aarch64_classify_address): Treat partial vectors analogously
8092 to full vectors.
8093 (aarch64_print_address_internal): Consolidate the printing of
8094 MUL VL addresses, using aarch64_vl_bytes as the number of
8095 bytes represented by "VL".
8096 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8097
8098 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8099
8100 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8101 rather than known_lt when choosing frame layouts.
8102
8103 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8104
8105 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8106 that all the adjustments add up to the full frame size.
8107 Use crtl->outgoing_args_size directly as the final adjustment
8108 where appropriate.
8109
8110 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8111
8112 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8113 "frame" reference instead of always referring directly to
8114 "cfun->machine->frame".
8115
8116 2019-10-16 Richard Biener <rguenther@suse.de>
8117
8118 PR tree-optimization/92119
8119 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8120 against missing bswap lhs.
8121
8122 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8123
8124 PR middle-end/92033
8125 * poly-int.h (constant_lower_bound_with_limit): New function.
8126 (constant_upper_bound_with_limit): Likewise.
8127 * doc/poly-int.texi: Document them.
8128 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8129 into the worst-case INTEGER_CST bounds.
8130
8131 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8132
8133 PR ipa/91088
8134 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8135 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8136 * ipa-predicat.h (struct expr_eval_op): New struct.
8137 (expr_eval_ops): New typedef.
8138 (struct condition): Add type and param_ops fields, remove size field.
8139 (add_condition): Replace size parameter with type parameter, add
8140 param_ops parameter.
8141 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8142 (predicate::add_clause): Add comparisons on type and param_ops.
8143 (dump_condition): Add debug dump for param_ops.
8144 (remap_after_inlining): Adjust call arguments to add_condition.
8145 (add_condition): Replace size parameter with type parameter, add
8146 param_ops parameter. Unshare constant value used in conditions.
8147 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8148 parameter expressions using param_ops.
8149 (decompose_param_expr): New function.
8150 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8151 to replace call to unmodified_parm_or_parm_agg_item.
8152 (set_switch_stmt_execution_predicate): Likewise.
8153 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8154 with type.
8155 (inline_read_section): Read param_ops from summary stream.
8156 (ipa_fn_summary_write): Write param_ops to summary stream.
8157
8158 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8159
8160 PR rtl-optimization/92107
8161 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8162 expression written.
8163
8164 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8165
8166 * config/darwin.c: Update description of fix and continue.
8167
8168 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8169
8170 * config/darwin.c (darwin_binds_local_p): Update to call
8171 default_binds_local_p_3 () directly. amend comments.
8172
8173 2019-10-15 Richard Biener <rguenther@suse.de>
8174
8175 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8176 (tree_is_indexable): Use it.
8177 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8178 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8179 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8180
8181 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8182
8183 * config/msp430/msp430.md (zero_extendqipsi2): New.
8184 (zero_extendqisi2): Optimize case where src register and base dst
8185 register are the same.
8186 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8187 (zero_extendpsisi2): Optimize r->m case.
8188 Add unnamed insn patterns to catch insns combine searches for when
8189 optimizing pointer manipulation.
8190
8191 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8192
8193 * config/msp430/msp430.md: Group zero_extend* insns together.
8194
8195 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8196
8197 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8198 constraint.
8199 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8200 POST_INC.
8201 (msp430_subreg): Likewise.
8202 (msp430_split_addsi): Likewise.
8203 (msp430_print_operand_addr): Likewise.
8204 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8205 (USE_STORE_POST_INCREMENT): Define.
8206 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8207 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8208 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8209 (msp430_general_dst_operand): New.
8210 (msp430_general_dst_nonv_operand): New.
8211 (msp430_nonsubreg_operand): Remove.
8212 (msp430_nonsubreg_dst_operand): New.
8213 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8214 of defunct msp430_nonsubreg_operand.
8215 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8216
8217 2019-10-15 Richard Biener <rguenther@suse.de>
8218
8219 PR tree-optimization/91929
8220 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8221 (get_or_alloc_expr_for_name): Initialize it.
8222 (get_or_alloc_expr_for_constant): Likewise.
8223 (phi_translate_1): Copy it.
8224 (create_expression_by_pieces): Use the original location
8225 of the expression for the inserted stmt.
8226 (compute_avail): Record the location of the stmt for the
8227 expressions created.
8228
8229 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8230
8231 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8232 before using tree_to_uhwi.
8233
8234 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8235
8236 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8237
8238 2019-10-15 Richard Biener <rguenther@suse.de>
8239
8240 PR tree-optimization/92094
8241 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8242 do not adjust the reduction definition def type.
8243 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8244 defines the latch argument of the PHI.
8245
8246 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8247
8248 PR target/92035
8249 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8250 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8251 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8252 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8253 _mm_maskz_roundscale_round_sd): New intrinsics.
8254 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8255 __builtin_ia32_rndscales?_mask_round builtins instead of
8256 __builtin_ia32_rndscales?_round.
8257 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8258 __builtin_ia32_rndscalesd_round): Remove.
8259 (__builtin_ia32_rndscaless_mask_round,
8260 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8261 * config/i386/sse.md
8262 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8263 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8264 ... this, adjust and add subst atrributes to make it maskable.
8265
8266 2019-10-15 Richard Biener <rguenther@suse.de>
8267
8268 PR middle-end/92046
8269 * common.opt (fallow-store-data-races): New.
8270 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8271 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8272 * doc/invoke.texi (fallow-store-data-races): Document.
8273 (--param allow-store-data-races): Remove docs.
8274 * opts.c (default_options_table): Enable -fallow-store-data-races
8275 at -Ofast.
8276 (default_options_optimization): Do not enable --param
8277 allow-store-data-races at -Ofast.
8278 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8279 instead of PARAM_ALLOW_STORE_DATA_RACES.
8280 * tree-ssa-loop-im.c (execute_sm): Likewise.
8281
8282 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8283
8284 PR tree-optimization/92085
8285 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8286 instead of calling it unconditionally after
8287 delete_dead_or_redundant_assignment and fix indentation.
8288
8289 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8290
8291 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8292 TARGET_VFP_DOUBLE.
8293 (*fmsub<SDF:mode>4): Likewise.
8294 *fnmsub<SDF:mode>4): Likewise.
8295 (*fnmadd<SDF:mode>4): Likewise.
8296
8297 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8298
8299 * doc/tree-ssa.texi: Update renamed macro name.
8300
8301 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8302
8303 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8304 vector constants.
8305
8306 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8307
8308 * config/darwin.c: Use unsigned ints for the picbase label
8309 counters, initialise the vars explicitly.
8310 (update_pic_label_number_if_needed): Move a variable declaration
8311 to where it's needed.
8312 (machopic_output_function_base_name): Use a more strict checking
8313 assert, and and unsigned int for the picbase label counter.
8314 (machopic_get_function_picbase): Likewise.
8315
8316 2019-10-14 Richard Biener <rguenther@suse.de>
8317
8318 PR middle-end/92046
8319 * dse.c (scan_insn): Use param max_active_local_stores.
8320 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8321 based on optimization level.
8322 * loop-invariant.c (move_loop_invariants): Adjust
8323 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8324 * opts.c (default_options_optimization): Do not adjust
8325 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8326 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8327
8328 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8329
8330 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8331
8332 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8333
8334 * config/arm/arm.c (arm_option_override): Don't override sched
8335 pressure algorithm.
8336
8337 2019-10-14 Richard Biener <rguenther@suse.de>
8338
8339 PR tree-optimization/92069
8340 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8341 cycles do not set vect_nested_cycle on the latch definition.
8342
8343 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8344
8345 * function-abi.h (expr_callee_abi): Declare.
8346 * function-abi.cc (expr_callee_abi): New function.
8347
8348 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8349
8350 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8351 into [1,MAX].
8352 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8353 non-zero being represented as [1,MAX].
8354
8355 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8356
8357 * tree-sra.c (dump_access): Add missing braces.
8358
8359 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8360
8361 * config/darwin.c (machopic_indirection_name): Rework the
8362 function to emit linker-visible symbols only for indirections
8363 in the data section. Clean up the code and update comments.
8364
8365 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8366
8367 * config/darwin.c (machopic_indirect_data_reference): Remove
8368 redundant code.
8369
8370 2019-10-13 Nathan Sidwell <nathan@acm.org>
8371
8372 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8373
8374 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8375
8376 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8377 c99_runtime.
8378
8379 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8380
8381 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8382 so non-virutal are before virutals.
8383 (output_function): Avoid body modifications.
8384
8385 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8386
8387 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8388 %r22. Load function address before global pointer.
8389 (pa_attr_length_indirect_call): Adjust length of inline versions of
8390 $$dyncall.
8391 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8392 before normal cases. Update inline $$dyncall sequences to preserve
8393 function descriptor address in register %r22.
8394 (TRAMPOLINE_CODE_SIZE): Adjust.
8395 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8396 register %r22 contains trampoline address.
8397 (pa_trampoline_init): Adjust offsets.
8398 (pa_trampoline_adjust_address): Likewise.
8399 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8400
8401 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8402
8403 PR target/67183
8404 * config/darwin.c (machopic_indirection): New field to flag
8405 non-lazy-symbol-pointers in the data section.
8406 (machopic_indirection_name): Compute if an indirection should
8407 appear in the data section.
8408 (machopic_output_data_section_indirection): New callback split
8409 from machopic_output_indirection.
8410 (machopic_output_stub_indirection): Likewise.
8411 (machopic_output_indirection): Retain the code for non-lazy
8412 symbol pointers in their regular section.
8413 (machopic_finish): Use the new callbacks to order the indirection
8414 output.
8415
8416 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8417
8418 * config/darwin-protos.h (machopic_finish): Delete.
8419 * config/darwin.c (machopic_finish): Make static.
8420
8421 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8422
8423 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8424 sections when building kernel extension code.
8425
8426 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8427
8428 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8429 later standard."
8430
8431 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8432
8433 * config/pa/pa.c (pa_option_override): Remove trailing comma
8434 from warning.
8435
8436 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8437
8438 PR middle-end/92063
8439 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8440 <case VEC_COND_EXPR>: Return false with *handled = false.
8441 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8442 recursing on the first operand.
8443 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8444 instead of tree_could_trap_p.
8445 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8446
8447 2019-10-11 Jim Wilson <jimw@sifive.com>
8448
8449 PR rtl-optimization/91860
8450 * combine.c (subst): If new_rtx is a constant, also check for
8451 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8452
8453 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8454
8455 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8456 INTVAL when calling store_bit_field.
8457
8458 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8459
8460 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8461 size.
8462
8463 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8464
8465 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8466 vectorizable_live_operation.
8467 (vectorizable_live_operation): Adjust parameters.
8468 * tree-vect-stmts.c (vect_init_vector,
8469 vect_gen_widened_results_half): Fix typo in function comment.
8470 (can_vectorize_live_stmts): Adjust function comment.
8471 Adjust parameters. Adjust call to vectorizable_live_operation.
8472 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8473 (vect_transform_stmt): Adjust function comment. Adjust call to
8474 can_vectorize_live_stmts.
8475 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8476
8477 2019-10-11 Richard Biener <rguenther@suse.de>
8478
8479 PR tree-optimization/90883
8480 PR tree-optimization/91091
8481 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8482 alias-sets both for recording VN table entries and continuing
8483 walking after translating through copies. Handle same-sized
8484 reads from SSA names by returning the plain SSA name.
8485 (eliminate_dom_walker::eliminate_stmt): Properly handle
8486 non-size precision stores in redundant store elimination.
8487
8488 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8489
8490 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8491 (ggc_collect): Dump later to not interfere with release_page dump.
8492 (ggc_trim): New function.
8493 * ggc-none.c (ggc_trim): New.
8494 * ggc.h (ggc_trim): Declare.
8495
8496 2019-10-11 Richard Biener <rguenther@suse.de>
8497
8498 PR tree-optimization/92066
8499 PR tree-optimization/92046
8500 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8501 Fix bogus cost model check.
8502
8503 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8504
8505 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8506 (LANG_HOOKS_DECLS): Add it.
8507 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8508 update comment for omp_is_optional_argument.
8509 * omp-general.c (omp_is_allocatable_or_ptr): New.
8510 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8511 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8512 Fortran's optional arguments and allocatable/pointer scalars
8513 with use_device_addr.
8514
8515 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8516
8517 PR target/77918
8518 * config/s390/2827.md: Add new opcodes.
8519 * config/s390/2964.md: Likewise.
8520 * config/s390/3906.md: Likewise.
8521 * config/s390/8561.md: Likewise.
8522 * config/s390/s390-builtins.def (s390_vfchesb): Use
8523 the new vec_cmpgev4sf_quiet_nocc.
8524 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8525 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8526 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8527 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8528 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8529 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8530 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8531 * config/s390/s390-modes.def (CCSFPS): New mode.
8532 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8533 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8534 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8535 (s390_expand_vec_compare): Use non-signaling patterns where
8536 necessary.
8537 (s390_reverse_condition): Support CCSFPS.
8538 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8539 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8540 (asm_fcmp_op): Likewise.
8541 (*smaxv2df3_vx): Use pattern for quiet comparison.
8542 (*sminv2df3_vx): Likewise.
8543 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8544 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8545 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8546 (vec_cmplt<mode>_quiet_nocc): New expander.
8547 (vec_cmpge<mode>_quiet_nocc): New pattern.
8548 (vec_cmple<mode>_quiet_nocc): New expander.
8549 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8550 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8551 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8552 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8553 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8554 (vec_cmpungt<mode>): New expander.
8555 (vec_cmpunge<mode>): Likewise.
8556 (vec_cmpuneq<mode>): Use quiet patterns.
8557 (vec_cmpltgt<mode>): Allow only on z14+.
8558 (vec_cmpordered<mode>): Use quiet patterns.
8559 (vec_cmpunordered<mode>): Likewise.
8560 (VEC_CMP_EXPAND): Add ungt and unge.
8561
8562 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8563
8564 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8565 parameter.
8566 * lto-streamer-out.c: Include tree-dfa.h.
8567 (output_cfg): Do not use cfun.
8568 (lto_prepare_function_for_streaming): New.
8569 (output_function): Do not push cfun; do not initialize loop optimizer.
8570 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8571 * passes.c (ipa_write_summaries): Use it.
8572 (ipa_write_optimization_summaries): Do not modify bodies.
8573 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8574 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8575 * tree-ssa-dse.c (pass_dse::execute): Update use of
8576 renumber_gimple_stmt_uids.
8577 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8578
8579 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8580
8581 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8582 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8583
8584 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8585
8586 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8587 macros.
8588 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8589 Also define DFP macros for these conditions.
8590 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8591 DEC128_SUBNORMAL_MIN): Do not define.
8592 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8593 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8594
8595 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8596 Sandra Loosemore <sandra@codesourcery.com>
8597
8598 PR middle-end/26241
8599 * doc/lto.texi (IPA): Reference to the IPA passes.
8600 * doc/passes.texi (Pass manager): Add node IPA passes and
8601 description for each IPA pass.
8602
8603 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8604
8605 * ipa-reference.c: Do not include splay-tree.h
8606 (reference_vars_to_consider): Turn to hash map.
8607 (get_static_name, ipa_init, analyze_function, propagate,
8608 stream_out_bitmap, ipa_reference_write_optimization_summary,
8609 ipa_reference_write_optimization_summary): Update.
8610
8611 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8612
8613 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8614
8615 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8616
8617 * config/darwin.c: Lookup Objective C metadata and force indirection
8618 for IVAR refs.
8619
8620 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8621
8622 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8623 addresses.
8624 (mem_operand_gpr): Add check for prefixed addresses.
8625 (mem_operand_ds_form): Add check for prefixed addresses.
8626 (rs6000_legitimate_offset_address_p): If we support prefixed
8627 addresses, check for a 34-bit offset instead of 16-bit.
8628 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8629 Do not allow load/store with update if the address is prefixed.
8630 (rs6000_mode_dependent_address): If we support prefixed
8631 addresses, check for a 34-bit offset instead of 16-bit.
8632
8633 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8634
8635 PR target/77918
8636 * config/s390/vector.md (vcond_comparison_operator): New
8637 predicate.
8638 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8639
8640 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8641
8642 PR 87488
8643 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8644 -D.
8645 * configure.ac (--with-documentation-root-url): New option.
8646 * configure: Regenerate.
8647 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8648 option URL, add it as a new string field of the diagnostic option.
8649 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8650 (print_option_information): If get_option_url is non-NULL, call
8651 it, and if the result is non-NULL, potentially emit an escape
8652 sequence to markup the option text with the resulting URL.
8653 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8654 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8655 example of JSON output.
8656 * opts-diagnostic.h (get_option_url): New decl.
8657 * opts.c (get_option_url): New function.
8658 * toplev.c (general_init): Initialize the get_option_url callback.
8659
8660 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8661
8662 PR 87488
8663 * common.opt (fdiagnostics-urls=): New option.
8664 (diagnostic-url.h): Add SourceInclude.
8665 (diagnostic_url_rule): New enum.
8666 * diagnostic-color.c: Include "diagnostic-url.h".
8667 (diagnostic_urls_enabled_p): New function.
8668 * diagnostic-url.h: New file.
8669 * diagnostic.c: Include "diagnostic-url.h".
8670 (diagnostic_urls_init): New function.
8671 * diagnostic.h (diagnostic_urls_init): New decl.
8672 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8673 -fdiagnostics-urls to the list.
8674 (-fdiagnostics-urls): New option.
8675 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8676 (driver::global_initializations): Call diagnostic_urls_init.
8677 * opts-global.c (init_options_once): Likewise.
8678 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8679 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8680 show_urls.
8681 (pp_begin_url): New function.
8682 (pp_end_url): New function.
8683 (selftest::test_urls): New selftest.
8684 (selftest::pretty_print_c_tests): Call it.
8685 * pretty-print.h (pretty_printer::show_urls): New field.
8686 (pp_begin_url): New decl.
8687 (pp_end_url): New decl.
8688
8689 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8690
8691 PR target/92022
8692 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8693
8694 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8695
8696 PR target/88630
8697 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8698 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8699 also for TARGET_FPU_SH4_300.
8700 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8701 TARGET_SH4_300.
8702 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8703 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8704 (*negsf2_i): Split into ...
8705 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8706 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8707 (**abssf2_i): Split into ...
8708 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8709 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8710 (*negdf2_i): Split into ...
8711 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8712 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8713 (**abssf2_i): Split into ...
8714 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8715
8716 2019-10-10 Richard Biener <rguenther@suse.de>
8717
8718 PR middle-end/92046
8719 * opts.c (finish_options): Do not influence global --params
8720 from options that are adjustable per function.
8721 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8722 Apply --param adjustment based on active cost-model.
8723 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8724 further store-sinking when vectorization or if-conversion
8725 are not enabled.
8726
8727 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8728
8729 PR middle-end/92037
8730 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8731 rather than ggc_alloc_cleared to alloc symbol table.
8732 * toplev.c (general_init): Likewise.
8733 * cgraph.h (symbol_table): Explicitly construct every field.
8734
8735 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8736
8737 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8738 (PF_Z15): ... this.
8739 * config.gcc: Add z15 as option for --with-arch and --with-tune
8740 configure switches.
8741 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8742 error reporting for unsupported builtins.
8743 * config/s390/s390-opts.h (enum processor_type): Rename
8744 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8745 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8746 * config/s390/driver-native.c (s390_host_detect_local_cpu):
8747 Likewise.
8748 * config/s390/s390-builtins.def: Likewise.
8749 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8750 (s390_expand_builtin): Add missing check for unsupported builtins.
8751 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
8752 (s390_rtx_costs): Likewise.
8753 (s390_get_sched_attrmask): Rename arch13 to z15.
8754 (s390_get_unit_mask): Likewise.
8755 (s390_is_fpd): Likewise.
8756 (s390_is_fxd): Likewise.
8757 * config/s390/s390.h (enum processor_flags): Likewise.
8758 * config/s390/s390.md: Likewise.
8759 * config/s390/vector.md: Likewise.
8760 * config/s390/vx-builtins.md: Likewise.
8761 * config/s390/s390.opt: Add z15 to processor_type value.
8762
8763 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8764
8765 PR target/91035
8766 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
8767 prototype.
8768 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
8769 ("split_stack_data", "split_stack_call")
8770 ("split_stack_call_<mode>", "split_stack_cond_call")
8771 ("split_stack_cond_call_<mode>"): Remove.
8772 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
8773 insn definition.
8774 * config/s390/s390.c (s390_output_split_stack_data): New function.
8775 (s390_expand_split_stack_prologue): Use the merged expander.
8776
8777 2019-10-09 Martin Sebor <msebor@redhat.com>
8778
8779 PR tree-optimization/90879
8780 * builtins.c (check_access): Avoid using maxbound when null.
8781 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
8782 * doc/invoke.texi (-Wstring-compare): Document new warning option.
8783 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
8784 conditional.
8785 (get_range_strlen): Overwrite initial maxbound when non-null.
8786 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
8787 changes.
8788 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
8789 (used_only_for_zero_equality): New function.
8790 (handle_builtin_memcmp): Call it.
8791 (determine_min_objsize): Return an integer instead of tree.
8792 (get_len_or_size, strxcmp_eqz_result): New functions.
8793 (maybe_warn_pointless_strcmp): New function.
8794 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
8795 between a longer string and a smaller array.
8796 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
8797
8798 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8799
8800 * config/darwin.c (darwin_override_options): Make the check for
8801 Objective-C ABI version more specific for 64bit code.
8802
8803 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8804
8805 * config/darwin.c (machopic_indirect_data_reference): Set flag to
8806 indicate that the new symbol is an indirection.
8807 (machopic_indirect_call_target): Likewise.
8808 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
8809 (MACHO_SYMBOL_INDIRECTION_P): New.
8810 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
8811
8812 2019-10-08 Jason Merrill <jason@redhat.com>
8813
8814 * doc/invoke.texi: Document -fconcepts-ts.
8815
8816 2019-10-09 Richard Biener <rguenther@suse.de>
8817
8818 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
8819 allow stmts other than GIMPLE_ASSIGN in nested cycles.
8820
8821 2019-10-08 Richard Biener <rguenther@suse.de>
8822
8823 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
8824 (_stmt_vec_info::force_single_cycle): Likewise.
8825 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
8826 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
8827 * tree-vect-loop.c (vectorizable_reduction): Set
8828 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
8829 (vect_transform_reduction): Use them to remove redundant code.
8830 (vect_transform_cycle_phi): Likewise.
8831
8832 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
8833
8834 PR tree-optimization/90836
8835 * match.pd (popcount): New pattern.
8836
8837 2019-10-08 Martin Sebor <msebor@redhat.com>
8838
8839 PR middle-end/92026
8840 PR middle-end/92014
8841 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
8842 again once nbytes has been set. Set the access size when not yet set.
8843
8844 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8845
8846 * config/darwin.c (machopic_select_section): Remove dead code for
8847 old Objective-C section selection method, replace with unreachable.
8848
8849 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8850
8851 * config/darwin.c (machopic_indirect_data_reference): Check for
8852 required indirections before making direct access to defined
8853 values.
8854 (machopic_output_indirection): Place the indirected pointes for
8855 required indirections into the non-lazy symbol pointers section.
8856 (darwin_encode_section_info):
8857 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
8858 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
8859
8860 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
8861
8862 PR target/91994
8863 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
8864 instead of ALL_SSE_REG to check if function call preserves some
8865 256-bit SSE registers.
8866
8867 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8868
8869 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
8870 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
8871 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
8872
8873 2019-10-08 Richard Biener <rguenther@suse.de>
8874
8875 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
8876 (_stmt_vec_info::is_reduc_info): Add.
8877 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
8878 (vectorizable_condition): Remove.
8879 (vectorizable_shift): Likewise.
8880 (vectorizable_reduction): Adjust.
8881 (info_for_reduction): New.
8882 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
8883 (vect_analyze_scalar_cycles_1): ... here.
8884 (vect_analyze_loop_operations): Adjust.
8885 (needs_fold_left_reduction_p): Simplify for single caller.
8886 (vect_is_simple_reduction): Likewise. Remove stmt restriction
8887 for nested cycles not part of double reductions.
8888 (vect_model_reduction_cost): Pass in the reduction type.
8889 (info_for_reduction): New function.
8890 (vect_create_epilog_for_reduction): Use it, access reduction
8891 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
8892 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8893 (vectorize_fold_left_reduction): Remove pointless assert.
8894 (vectorizable_reduction): Analyze the full reduction when
8895 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
8896 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
8897 stmt code-generation to vectorizable_* in most cases. Verify
8898 code-generation only for cases handled by
8899 vect_transform_reductuon.
8900 (vect_transform_reduction): Use info_for_reduction to get at
8901 reduction meta. Simplify.
8902 (vect_transform_cycle_phi): Likewise.
8903 (vectorizable_live_operation): Likewise.
8904 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
8905 at the PHI node for STMT_VINFO_REDUC_TYPE.
8906 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
8907 longer necessary code.
8908 * tree-vect-stmts.c (vectorizable_shift): Make static again.
8909 (vectorizable_condition): Likewise. Get at reduction related
8910 info via info_for_reduction.
8911 (vect_analyze_stmt): Adjust.
8912 (vect_transform_stmt): Likewise.
8913 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8914 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8915
8916 2019-10-08 Joseph Myers <joseph@codesourcery.com>
8917
8918 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
8919 -fno-fp-int-builtin-inexact default for C2X.
8920
8921 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8922 Richard Biener <rguenther@suse.de>
8923
8924 PR tree-optimization/91532
8925 * tree-if-conv.c: Include tree-ssa-dse.h.
8926 (ifcvt_local_dce): Change param from bb to loop,
8927 and call dse_classify_store.
8928 (tree_if_conversion): Pass loop instead of loop->header as arg
8929 to ifcvt_local_dce.
8930 * tree-ssa-dse.c: Include tree-ssa-dse.h.
8931 (delete_dead_or_redundant_assignment): Remove static qualifier from
8932 declaration, and add prototype in tree-ssa-dse.h.
8933 (dse_store_status): Move to tree-ssa-dse.h.
8934 (dse_classify_store): Remove static qualifier and add new tree param
8935 stop_at_vuse, and add prototype in tree-ssa-dse.h.
8936 * tree-ssa-dse.h: New header.
8937
8938 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8939
8940 * config/darwin.c (machopic_output_indirection): Don't put
8941 hidden symbol indirections into the .data section, use the
8942 non-lazy symbol pointers section as normal.
8943 (darwin_encode_section_info): Record if a symbol is hidden.
8944 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
8945 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
8946
8947 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8948
8949 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
8950 predicates instead of accessing bits directly.
8951 (machopic_indirect_call_target): Likewise.
8952 (machopic_output_indirection): Likewise.
8953 (darwin_encode_section_info): Improve description. Use renamed
8954 symbol flags. Use predicate macros for variables and functions.
8955 * config/darwin.h:
8956 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
8957 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
8958 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
8959 (MACHO_SYMBOL_VARIABLE_P): New.
8960 (MACHO_SYMBOL_DEFINED_P):New.
8961 (MACHO_SYMBOL_STATIC_P): New.
8962 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
8963 (SYMBOL_FLAG_SUBT_DEP): New.
8964 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
8965
8966 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8967
8968 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
8969 (msp430_expand_epilogue): Likewise.
8970 * config/msp430/predicates.md: Likewise.
8971 * config/msp430/msp430.md: Likewise.
8972 Replace blocks of 8 spaces with tabs.
8973
8974 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8975
8976 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
8977 * config/msp430/msp430.c (msp430_split_addsi): New.
8978 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
8979 a block of C code for splitting addsi.
8980
8981 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
8982
8983 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
8984 ix86_expand_rounddf_32): Reorder functions.
8985 * config/i386/i386-protos.h: Update.
8986
8987 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8988
8989 * config.in: Regenerate.
8990 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
8991 Add new "Yx" constraint.
8992 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
8993 function.
8994 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
8995 prototype.
8996 * config/msp430/msp430.c (msp430_option_override): Allow the lower
8997 code/data region to be selected in the small memory model.
8998 (msp430_section_attr): Don't warn if the "section" and "lower"
8999 attributes are used together.
9000 (msp430_handle_generic_attribute): Likewise.
9001 (msp430_var_in_low_mem): New function.
9002 (TARGET_ENCODE_SECTION_INFO): Define.
9003 (msp430_encode_section_info): New function.
9004 (gen_prefix): Return early in the small memory model.
9005 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9006 ".lower" prefix if -m{code,data}-region=lower have been passed.
9007 (msp430_output_aligned_decl_common): Emit common symbols when
9008 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9009 set.
9010 (TARGET_ASM_FILE_END): Define.
9011 (msp430_file_end): New function.
9012 (msp430_do_not_relax_short_jumps): Allow relaxation when
9013 function will be in the lower region.
9014 (msp430_op_not_in_high_mem): New function.
9015 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9016 the 'X' operand selector.
9017 Clarify comment for 'x' operand selector.
9018 * config/msp430/msp430.h (LINK_SPEC): Propagate
9019 -m{code,data}-region to the linker via spec function
9020 msp430_propagate_region_opt.
9021 (msp430_propagate_region_opt): New prototype.
9022 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9023 (SYMBOL_FLAG_LOW_MEM): Define.
9024 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9025 selector.
9026 (zero_extendqihi2): Fix operand number used by "%X" selector.
9027 (zero_extendqisi2): Likewise.
9028 (zero_extendhisi2): Likewise.
9029 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9030 (movhi): Likewise.
9031 (addqi3): Likewise.
9032 (addhi3): Likewise.
9033 (addsi3): Likewise.
9034 (addhi3_cy): Likewise.
9035 (addchi4_cy): Likewise.
9036 (subqi3): Likewise.
9037 (subhi3): Likewise.
9038 (subsi3): Likewise.
9039 (bic<mode>3): Likewise.
9040 (and<mode>3): Likewise.
9041 (ior<mode>3): Likewise.
9042 (xor<mode>3): Likewise.
9043 (slli_1): Add missing "%X" operand selector.
9044 (slll_1): Likewise.
9045 (slll_2): Likewise.
9046 (srai_1): Likewise.
9047 (sral_1): Likewise.
9048 (sral_2): Likewise.
9049 (srli_1): Likewise.
9050 (srll_1): Likewise.
9051 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9052 selector.
9053 (cbranchhi4_real): Likewise.
9054 (cbranchqi4_reversed): Likewise.
9055 (cbranchhi4_reversed): Likewise.
9056 (*bitbranch<mode>4): Likewise.
9057 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9058 * config/msp430/msp430.opt (mcode-region=): Set default to
9059 MSP430_REGION_LOWER. Improve docstring.
9060 (mdata-region=): Likewise.
9061 (muse-lower-region-prefix): New option.
9062 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9063 mdata-region=none multilib.
9064 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9065 mdata-region=none multilib.
9066 MULTILIB_EXCEPTIONS: Remove.
9067 MULTILIB_REQUIRED: Define.
9068 * configure: Regenerate.
9069 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9070 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9071 * doc/extend.texi: Clarify comment for {upper,lower,either}
9072 function attributes.
9073 Add separate description for "lower" variable attribute.
9074
9075 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9076
9077 PR target/77918
9078 * optabs-tree.c (vcond_icode_p): New function.
9079 (vcond_eq_icode_p): Likewise.
9080 (expand_vec_cond_expr_p): Use vcond_icode_p and
9081 vcond_eq_icode_p.
9082 * optabs.c (can_vcond_compare_p): New function.
9083 * optabs.h (can_vcond_compare_p): Likewise.
9084
9085 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9086
9087 PR target/77918
9088 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9089 caller passes a non-trapping condition.
9090 (is_gimple_condexpr): Allow trapping conditions.
9091 (is_gimple_condexpr_1): New helper function.
9092 (is_gimple_condexpr_for_cond): New function, acts like old
9093 is_gimple_condexpr.
9094 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9095 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9096 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9097 * gimplify.c (gimplify_cond_expr): Use
9098 is_gimple_condexpr_for_cond.
9099 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9100 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9101 VEC_COND_EXPR.
9102 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9103 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9104 is_gimple_condexpr_for_cond, remove pointless tmp check
9105 (forward_propagate_into_cond): Remove pointless tmp check.
9106
9107 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9108
9109 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9110 match that of other gsi_next_* functions. Adjust the comment.
9111 (gsi_start_nonvirtual_phis): New function.
9112 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9113 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9114
9115 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9116
9117 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9118 setjmp situation here. Fix a verb's ending: "the exact variables or
9119 elements for which there are warnings depends" -> "... depend".
9120
9121 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9122
9123 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9124
9125 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9126
9127 * ipa-prop.c (ipa_vr::nonzero_p): New.
9128 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9129 non-zero range.
9130 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9131 * tree-vrp.c (range_has_numeric_bounds_p): New.
9132 (range_int_cst_p): Use range_has_numeric_bounds_p.
9133 (get_range_op_handler): New.
9134 (supported_types_p): New.
9135 (defined_ranges_p): New.
9136 (drop_undefines_to_varying): New.
9137 (range_fold_binary_symbolics_p): New.
9138 (range_fold_unary_symbolics_p): New.
9139 (range_fold_unary_expr): Extract out into above functions.
9140 (range_fold_binary_expr): Same.
9141 (value_range_base::normalize_addresses): New.
9142 (value_range_base::normalize_symbolics): Normalize addresses.
9143 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9144
9145 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9146
9147 * tree-vrp.c (value_range_base::singleton_p): Use
9148 value_range_base::num_pairs instead of vrp_val_is* to check
9149 if a range has one sub-range.
9150
9151 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9152
9153 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9154 DEF is not a true earlyclobber but is tied to a specific input
9155 operand, and so is effectively earlyclobber wrt inputs that have
9156 different values.
9157 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9158
9159 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9160
9161 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9162 (pod_mode): Mark operators likewise.
9163 (scalar_int_mode): Mark non-default constructors and
9164 operators with CONSTEXPR.
9165 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9166 (fixed_size_mode): Likewise.
9167
9168 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9169
9170 PR target/91994
9171 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9172 and wrap the unspec_volatile in a parallel.
9173 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9174 the unspec_volatile.
9175 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9176 unspec_volatile to be wrapped in a parallel.
9177 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9178 (ix86_add_reg_usage_to_vzerouppers): New functions.
9179 (rest_of_handle_insert_vzeroupper): Use them to add register
9180 usage information to the vzeroupper instructions.
9181
9182 2019-10-07 Richard Biener <rguenther@suse.de>
9183
9184 PR tree-optimization/91975
9185 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9186 handle invariants.
9187
9188 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9189
9190 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9191 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9192
9193 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9194
9195 * config/darwin.c (darwin_override_options): Adjust objective-c
9196 ABI version error messages to avoid punctuation and contracted
9197 negations.
9198
9199 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9200
9201 * ipa-inline.c: Fix type; compute size rather than self_size
9202 for size of caller function.
9203
9204 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9205
9206 PR target/59888
9207 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9208 choose const_data section for constants with relocations.
9209 (machopic_select_section): Pass relocation flag to
9210 darwin_rodata_section ().
9211
9212 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9213
9214 PR tree-optimization/91734
9215 * generic-match-head.c: Include fold-const-call.h.
9216 * match.pd (sqrt(x) cmp c): Check the boundary value and
9217 in case inexact computation of c*c affects comparison of the boundary,
9218 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9219 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9220 for -frounding-math. For c2, try the next smaller or larger floating
9221 point constant depending on comparison code and if it has the same
9222 sqrt as c2, use it instead of c2.
9223
9224 2019-10-04 Martin Sebor <msebor@redhat.com>
9225
9226 PR middle-end/91977
9227 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9228 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9229 uninitialized objects.
9230
9231 2019-10-04 Martin Sebor <msebor@redhat.com>
9232
9233 * builtins.c (compute_objsize): Add an argument.
9234 * tree-object-size.c (addr_object_size): Same.
9235 (compute_builtin_object_size): Same.
9236 * tree-object-size.h (compute_builtin_object): Same.
9237
9238 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9239
9240 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9241
9242 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9243
9244 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9245
9246 2019-10-04 Martin Jambor <mjambor@suse.cz>
9247
9248 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9249 fntype when switching to calling memcpy instead of memset.
9250
9251 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9252
9253 * hash-table.h (hash_table::empty_slow): Don't assign
9254 size_t values to int variables.
9255
9256 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9257
9258 * expr.c (convert_mode_scalar): Remove shadowing local var.
9259 (emit_block_move): Rename local vars.
9260 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9261 (emit_push_insn): Rename local vars.
9262 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9263 shadowing local vars.
9264 (store_constructor): Remove shadowing local vars. Rename local var.
9265 (store_field, expand_cond_expr_using_cmove,
9266 expand_expr_real_2): Remove shadowing local vars.
9267 (expand_expr_real_1,
9268 do_store_flag): Remove shadowing local vars. Rename local vars.
9269
9270 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9271
9272 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9273
9274 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9275
9276 * genmatch.c (commutate): Rename local var.
9277 (lower_cond): Reuse local var.
9278 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9279 dt_operand::gen, dt_operand::gen_gimple_expr,
9280 dt_simplify::gen): Add a param. Rename generated vars.
9281 (decision_tree::insert_operand,
9282 (capture_info::walk_match, capture_info::walk_result,
9283 capture_info::walk_c_expr): Rename local vars.
9284 (expr::gen_transform): Rename generated vars.
9285 Use snprintf. Rename local vars.
9286 (capture::gen_transform, dt_operand::get_name,
9287 dt_operand::gen_opname): Rename generated vars.
9288 (write_predicate): Adjust call to gen_kids.
9289 (parser::get_internal_capture_id): Rename generated vars.
9290 (parser::parse_expr): Rename local vars.
9291 (parser::parse_if): Remove local var.
9292 (parser::parse_pattern, add_operator): Rename local vars.
9293
9294 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9295
9296 * builtins.def (DEF_C2X_BUILTIN): New macro.
9297 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9298 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9299 (strndup): Use DEF_C2X_BUILTIN.
9300 * coretypes.h (enum function_class): Add function_c2x_misc.
9301
9302 2019-10-04 Maya Rashish <coypu@sdf.org>
9303
9304 * ira-color.c (update_costs_from_allocno): Call
9305 ira_init_register_move_cost_if_necessary.
9306
9307 2019-10-04 Jeff Law <law@redhat.com>
9308
9309 * config/h8300/h8300.md (cpymemsi): Disable.
9310 (movmd, movmd_internal_<mode>, movstr, movsd):
9311 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9312 (movmd splitter, movsd splitter): Likewise.
9313
9314 * range-op.cc (range_tests): Avoid two tests when ints and
9315 shorts are the same size.
9316
9317 2019-10-04 Richard Biener <rguenther@suse.de>
9318
9319 PR lto/91968
9320 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9321 BLOCK_VARS.
9322
9323 2019-10-04 Richard Biener <rguenther@suse.de>
9324
9325 PR tree-optimization/91982
9326 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9327 against EXTRACT_LAST_REDUCTION.
9328 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9329
9330 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9331
9332 * range-op.o (value_range_from_overflowed_bounds): Rename from
9333 adjust_overflow_bound.
9334 (value_range_with_overflow): Rename from
9335 create_range_with_overflow.
9336 (create_possibly_reversed_range): Adjusted for above renames.
9337 (operator_*::wi_fold): Same.
9338 (cross_product_operator::wi_cross_productor): Same.
9339
9340 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9341
9342 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9343 -Wshadow=compatible-local): Fix description.
9344 Add an example where -Wshadow=compatible-local does not
9345 warn.
9346
9347 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9348
9349 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9350
9351 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9352 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9353
9354 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9355
9356 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9357 can_move_by_pieces issue.
9358
9359 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9360
9361 PR target/87243
9362 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9363 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9364 is available and the user has not set one on the command line.
9365
9366 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9367
9368 PR target/91769
9369 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9370 instead of REGNO equality check on addr.reg.
9371
9372 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9373
9374 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9375 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9376 * doc/invoke.texi (inline-heuristics-hint-percent,
9377 inline-heuristics-hint-percent-O2): Document.
9378 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9379 hint attribute.
9380 (can_inline_edge_by_limits_p): Use it.
9381
9382 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9383
9384 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9385 to print CONST_DOUBLEs.
9386
9387 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9388
9389 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9390 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9391 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9392
9393 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9394
9395 * Makefile.in (OBJS): Add range.o and range-op.o.
9396 Remove wide-int-range.o.
9397 * function-tests.c (test_ranges): New.
9398 (function_tests_c_tests): Call test_ranges.
9399 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9400 range_fold_unary_expr instead of extract_range_from_unary_expr.
9401 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9402 * range-op.cc: New file.
9403 * range-op.h: New file.
9404 * range.cc: New file.
9405 * range.h: New file.
9406 * selftest.h (range_tests): New prototype.
9407 * ssa.h: Include range.h.
9408 * tree-vrp.c (value_range_base::value_range_base): New
9409 constructors.
9410 (value_range_base::singleton_p): Do not call
9411 ranges_from_anti_range until sure we will need to.
9412 (value_range_base::type): Rename gcc_assert to
9413 gcc_checking_assert.
9414 (vrp_val_is_max): New argument.
9415 (vrp_val_is_min): Same.
9416 (wide_int_range_set_zero_nonzero_bits): Move from
9417 wide-int-range.cc.
9418 (extract_range_into_wide_ints): Remove.
9419 (extract_range_from_multiplicative_op): Remove.
9420 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9421 from extract_range_from_binary_expr.
9422 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9423 from extract_range_from_binary_expr.
9424 (extract_range_from_binary_expr): Remove.
9425 (normalize_for_range_ops): New.
9426 (range_fold_binary_expr): New.
9427 (range_fold_unary_expr): New.
9428 (value_range_base::num_pairs): New.
9429 (value_range_base::lower_bound): New.
9430 (value_range_base::upper_bound): New.
9431 (value_range_base::upper_bound): New.
9432 (value_range_base::contains_p): New.
9433 (value_range_base::invert): New.
9434 (value_range_base::union_): New.
9435 (value_range_base::intersect): New.
9436 (range_compatible_p): New.
9437 (value_range_base::operator==): New.
9438 (determine_value_range_1): Call range_fold_*expr instead of
9439 extract_range_from_*expr.
9440 * tree-vrp.h (class value_range_base): Add new constructors.
9441 Add methods for union_, intersect, operator==, contains_p,
9442 num_pairs, lower_bound, upper_bound, invert.
9443 (vrp_val_is_min): Add handle_pointers argument.
9444 (vrp_val_is_max): Same.
9445 (extract_range_from_unary_expr): Remove.
9446 (extract_range_from_binary_expr): Remove.
9447 (range_fold_unary_expr): New.
9448 (range_fold_binary_expr): New.
9449 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9450 range_fold_binary_expr instead of extract_range_from_binary_expr.
9451 (vr_values::extract_range_basic): Same.
9452 (vr_values::extract_range_from_unary_expr): Call
9453 range_fold_unary_expr instead of extract_range_from_unary_expr.
9454 * wide-int-range.cc: Remove.
9455 * wide-int-range.h: Remove.
9456
9457 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9458
9459 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9460 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9461 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9462 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9463 macro.
9464
9465 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9466
9467 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9468 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9469 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9470 * glimits.h: Likewise.
9471
9472 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9473
9474 PR rtl-optimization/91976
9475 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9476 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9477 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9478
9479 2019-10-02 Martin Sebor <msebor@redhat.com>
9480
9481 PR tree-optimization/80936
9482 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9483
9484 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9485
9486 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9487 instead of reg_class_contents[ALL_REGS].
9488
9489 2019-09-30 Jason Merrill <jason@redhat.com>
9490
9491 Add some hash_map_safe_* functions like vec_safe_*.
9492 * hash-map.h (default_hash_map_size): New variable.
9493 (create_ggc): Use it as default argument.
9494 (hash_map_maybe_create, hash_map_safe_get)
9495 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9496
9497 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9498
9499 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9500 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9501 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9502 (can_inline_edge_by_limits_p): Use it.
9503 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9504 (want_inline_small_function_p): Use O2 bounds.
9505 (edge_badness): LIkewise.
9506 * opts.c (default_options): Add OPT_finline_functions.
9507 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9508 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9509 New parameters.
9510 * doc/invoke.texi (-finline-functions): Update documentation.
9511 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9512 inline-min-speedup-O2): Document.
9513 (early-inlining-insns-O2): Simplify docs.
9514
9515 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9516
9517 PR rtl-optimization/87047
9518 * ifcvt.c (average_cost): New static function. Use it...
9519 (noce_process_if_block): ... here.
9520
9521 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9522
9523 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9524 * config/rs6000/rs6000-string.c (expand_block_move): Add
9525 might_overlap parm.
9526 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9527 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9528
9529 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9530
9531 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9532 (expand_builtin_memcpy): Use might_overlap parm.
9533 (expand_builtin_mempcpy_args): Use might_overlap parm.
9534 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9535 (expand_builtin_memory_copy_args): Add might_overlap parm.
9536 * expr.c (emit_block_move_via_cpymem): Rename to
9537 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9538 or movmem optab as appropriate.
9539 (emit_block_move_hints): Add might_overlap parm, do the right
9540 thing for might_overlap==true.
9541 * expr.h (emit_block_move_hints): Update prototype.
9542
9543 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9544
9545 * tree-eh.h (unsplit_eh_edges): Declare.
9546 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9547 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9548 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9549 (struct store_immediate_info): Add lp_nr field.
9550 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9551 initialize lp_nr with it.
9552 (struct merged_store_group): Add lp_nr and only_constants fields.
9553 (merged_store_group::merged_store_group): Initialize them.
9554 (merged_store_group::can_be_merged_into): Deal with them.
9555 (pass_store_merging): Rename terminate_and_release_chain into
9556 terminate_and_process_chain.
9557 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9558 renaming and remove useless assertions.
9559 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9560 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9561 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9562 instead of always recomputing it and compare lp_nr.
9563 (imm_store_chain_info::output_merged_store): If the group is in an
9564 active EH region, register new stores if they can throw. Moreover,
9565 if the insertion has created new basic blocks, adjust the PHI nodes
9566 of the post landing pad.
9567 (imm_store_chain_info::output_merged_stores): If the original stores
9568 are in an active EH region, deregister them.
9569 (lhs_valid_for_store_merging_p): Prettify.
9570 (adjust_bit_pos): New function extracted from...
9571 (mem_valid_for_store_merging): ...here. Use it for the base address
9572 and also for the offset if it is the addition of a constant.
9573 (lp_nr_for_store): New function.
9574 (pass_store_merging::process_store): Change return type to bool.
9575 Call lp_nr_for_store to initialize the store info. Propagate the
9576 return status of various called functions to the return value.
9577 (store_valid_for_store_merging_p): New predicate.
9578 (enum basic_block_status): New enumeration.
9579 (get_status_for_store_merging): New function.
9580 (pass_store_merging::execute): If the function can throw and catch
9581 non-call exceptions, unsplit the EH edges on entry and clean up the
9582 CFG on exit if something changed. Call get_status_for_store_merging
9583 for every basic block and keep the chains open across basic blocks
9584 when possible. Terminate and process open chains at the end, if any.
9585
9586 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9587
9588 * reginfo.c (globalize_reg): Fix shadowed variable in
9589 function_abis walk.
9590
9591 2019-10-02 Martin Jambor <mjambor@suse.cz>
9592
9593 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9594 do not compute some stuff when set.
9595 (cgraph_node::create_edge): Likewise.
9596 (cgraph_node::create_indirect_edge): Renamed last parameter to
9597 coning_p and flipped its meaning, don't even calculate
9598 inline_failed when set.
9599 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9600 (symbol_table::::create_edge): Likewise.
9601 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9602 the default value.
9603 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9604 call graph edge creating functions.
9605
9606 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9607
9608 PR c++/91222
9609 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9610 namespace types.
9611
9612 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9613
9614 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9615
9616 2019-10-02 Richard Biener <rguenther@suse.de>
9617
9618 * tree-vectorizer.h (vect_transform_reduction): Declare.
9619 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9620 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9621 stmt transform to ...
9622 (vect_transform_reduction): ... this.
9623
9624 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9625
9626 * omp-low.c (lower_omp_target): Dereference optional argument
9627 to work with the right pointer.
9628
9629 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9630
9631 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9632 false.
9633 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9634 * langhooks.h (omp_is_optional_argument): New hook.
9635 * omp-general.c (omp_is_optional_argument): New.
9636 * omp-general.h (omp_is_optional_argument): New declaration.
9637 * omp-low.c (lower_omp_target): Create temporary for received value
9638 and take the address for new_var if the original variable was a
9639 DECL_BY_REFERENCE. Use size of referenced object when a
9640 pass-by-reference optional argument used as argument to firstprivate.
9641
9642 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9643
9644 PR tree-optimization/91940
9645 * tree-vect-patterns.c: Include tree-vector-builder.h and
9646 vec-perm-indices.h.
9647 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9648 unpromoting the argument back to uint16_t, or by converting into a
9649 rotate, or into shifts plus ior.
9650
9651 2019-10-02 Richard Biener <rguenther@suse.de>
9652
9653 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9654 New.
9655 (vect_transform_cycle_phi): Declare.
9656 * tree-vect-stmts.c (vect_transform_stmt): Call
9657 vect_transform_cycle_phi.
9658 * tree-vect-loop.c (vectorizable_reduction): Split out
9659 PHI transformation stage to ...
9660 (vect_transform_cycle_phi): ... here.
9661
9662 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9663
9664 PR middle-end/91957
9665 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9666 eliminable registers.
9667 (make_hard_regno_live): Likewise, and don't make them live.
9668
9669 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9670
9671 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9672 Call pp_emit_prefix.
9673 (layout::print_source_line): Likewise.
9674 (layout::start_annotation_line): Likewise.
9675 (diagnostic_show_locus): Remove call to temporarily clear the
9676 prefix.
9677 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9678 interaction of pp_set_prefix with rulers and fix-it hints.
9679 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9680 prefix when calling diagnostic_show_locus, rather than destroying
9681 it afterwards.
9682 (print_parseable_fixits): Temporarily clear prefix.
9683 * pretty-print.c (pp_format): Save and restore line_length, rather
9684 than assuming it is zero.
9685 (pp_output_formatted_text): Remove assertion that line_length is
9686 zero.
9687
9688 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9689
9690 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9691 Rename to ...
9692 (nonoverlapping_refs_since_match_p): ... this; handle also
9693 ARRAY_REFs.
9694 (alias_stats): Update stats.
9695 (dump_alias_stats): Likewise.
9696 (cheap_array_ref_low_bound): New function.
9697 (aliasing_matching_component_refs_p): Add partial_overlap
9698 argument;
9699 pass it to nonoverlapping_refs_since_match_p.
9700 (aliasing_component_refs_walk): Update call of
9701 aliasing_matching_component_refs_p
9702 (nonoverlapping_array_refs_p): New function.
9703 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9704 indirect_refs_may_alias_p): Update calls of
9705 nonoverlapping_refs_since_match_p.
9706
9707 2019-10-01 Maya Rashish <coypu@sdf.org>
9708
9709 PR target/85401
9710 * ira-color.c (allocno_copy_cost_saving): Call
9711 ira_init_register_move_cost_if_necessary.
9712
9713 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
9714
9715 * Makefile.in (gnat_install_lib): New variable.
9716 * configure.ac: Substitute it.
9717 * configure: Regenerate.
9718
9719 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9720
9721 PR lto/91222
9722 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9723 is matched with non-C++ type
9724
9725 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9726
9727 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9728 after local CSE.
9729
9730 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9731
9732 * doc/invoke.texi (early-inlining-insns-O2): Document.
9733 (early-inlining-insns): Update.
9734 * params.def (early-inlining-insns-O2): New bound.
9735 (early-inlining-insns): Update docs.
9736 * ipa-inline.c (want_early_inline_function_p): Use new bound.
9737
9738 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9739
9740 PR target/88562
9741 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9742 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9743 a memory access insn.
9744
9745 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
9746
9747 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9748 vpmsumd.
9749
9750 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9751
9752 PR target/77918
9753 * config/s390/s390.c (s390_expand_vec_compare): Use
9754 gen_vec_cmpordered and gen_vec_cmpunordered.
9755 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
9756 vec_unordered): Delete.
9757 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
9758 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
9759 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
9760 (vec_cmp<code>): Generic dispatcher.
9761
9762 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9763
9764 PR target/77918
9765 * config/s390/vector.md (V_HW): Add V1TI in order to make
9766 vcond$a$b generate vcondv1tiv1tf.
9767
9768 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9769
9770 PR rtl-optimization/91948
9771 * ira-build.c (ira_create_allocno): Initialize
9772 ALLOCNO_CROSSED_CALLS_ABIS.
9773 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
9774 than regno to ira_need_caller_save_p.
9775
9776 2019-10-01 Alexandre Oliva <oliva@adacore.com>
9777
9778 * config/i386/i386-options.c
9779 (ix86_recompute_optlev_based_flags): New, moved out of...
9780 (ix86_option_override_internal): ... this. Call it.
9781 (ix86_override_options_after_change): Call it here too.
9782
9783 PR debug/91507
9784 * dwarf2out.c (override_type_for_decl_p): New.
9785 (gen_variable_die): Use it.
9786
9787 2019-10-01 Richard Biener <rguenther@suse.de>
9788
9789 * tree-vect-loop.c (vectorizable_reduction): Move variables
9790 to where they are used.
9791
9792 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9793
9794 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
9795 (build_def_use): Use PC instead of CC0 in a comment.
9796
9797 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9798
9799 * rtl.def (CLOBBER_HIGH): Delete.
9800 * doc/rtl.texi (clobber_high): Remove documentation.
9801 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
9802 (reg_is_clobbered_by_clobber_high): Delete.
9803 (gen_hard_reg_clobber_high): Likewise.
9804 * alias.c (record_set): Remove CLOBBER_HIGH handling.
9805 * cfgexpand.c (expand_gimple_stmt): Likewise.
9806 * combine-stack-adj.c (single_set_for_csa): Likewise.
9807 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
9808 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
9809 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
9810 * cse.c (invalidate_reg): Remove clobber_high parameter.
9811 (invalidate): Update call accordingly.
9812 (canonicalize_insn): Remove CLOBBER_HIGH handling.
9813 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
9814 (count_reg_usage, insn_live_p): Likewise.
9815 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
9816 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
9817 (cselib_invalidate_rtx_note_stores): Update call accordingly.
9818 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
9819 (cselib_invalidate_regno, cselib_process_insn): Likewise.
9820 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
9821 (mark_nonreg_stores_2): Likewise.
9822 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
9823 (df_get_call_refs): Likewise.
9824 * dwarf2out.c (mem_loc_descriptor): Likewise.
9825 * emit-rtl.c (verify_rtx_sharing): Likewise.
9826 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
9827 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
9828 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
9829 * genemit.c (gen_exp, gen_insn): Likewise.
9830 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
9831 * haifa-sched.c (haifa_classify_rtx): Likewise.
9832 * ira-build.c (create_insn_allocnos): Likewise.
9833 * ira-costs.c (scan_one_insn): Likewise.
9834 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
9835 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
9836 * jump.c (mark_jump_label_1): Likewise.
9837 * lra-int.h (lra_insn_reg::clobber_high): Delete.
9838 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
9839 handling.
9840 (mark_not_eliminable): Likewise.
9841 * lra-lives.c (process_bb_lives): Likewise.
9842 * lra.c (new_insn_reg): Remove clobber_high parameter.
9843 (collect_non_operand_hard_regs): Likewise. Update call to new
9844 insn_reg. Remove CLOBBER_HIGH handling.
9845 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
9846 to collect_non_operand_hard_regs.
9847 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
9848 Update call to new_insn_reg.
9849 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
9850 * postreload.c (reload_cse_simplify, reload_combine_note_use)
9851 (move2add_note_store): Likewise.
9852 * print-rtl.c (print_pattern): Likewise.
9853 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
9854 (if_test_bypass_p): Likewise.
9855 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
9856 * reginfo.c (reg_scan_mark_refs): Likewise.
9857 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
9858 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
9859 (forget_old_reloads_1): Likewise.
9860 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
9861 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
9862 (dbr_schedule): Likewise.
9863 * resource.c (update_live_status, mark_referenced_resources)
9864 (mark_set_resources): Likewise.
9865 * rtl.c (copy_rtx): Likewise.
9866 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
9867 (note_pattern_stores): Likewise.
9868 (reg_is_clobbered_by_clobber_high): Delete.
9869 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
9870 CLOBBER_HIGH handling.
9871
9872 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9873
9874 PR target/91452
9875 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
9876 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
9877 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9878 Handle ARM_PCS_TLSDESC.
9879 (aarch64_tlsdesc_abi_id): New function.
9880 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
9881 rtx instead of a list of clobbers and clobber_highs.
9882 (tlsdesc_small_<mode>): Update accordingly.
9883
9884 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9885
9886 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
9887 extra callee_abi argument.
9888 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
9889 Insert a CALLEE_ABI unspec into the call pattern as the second
9890 element in the PARALLEL.
9891 (aarch64_simd_call_p): Delete.
9892 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
9893 the new CALLEE_ABI element of the PARALLEL.
9894 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
9895 from the function type, if given.
9896 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
9897 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
9898 when passed the function_arg_info end marker.
9899 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
9900 final argument of gen_sibcall.
9901 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
9902 (call): Make operand 2 a const_int_operand and pass it to expand_call.
9903 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
9904 pattern.
9905 (call_value): Likewise operand 3.
9906 (sibcall): Likewise operand 2. Place the unspec before rather than
9907 after the return.
9908 (sibcall_value): Likewise operand 3.
9909 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
9910 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
9911 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
9912 constraint strings.
9913 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
9914
9915 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9916
9917 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
9918 choose_hard_reg_mode.
9919 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9920
9921 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9922
9923 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
9924 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
9925 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
9926
9927 2019-09-30 David Malcolm <dmalcolm@redhat.com>
9928
9929 * diagnostic-show-locus.c (line_label::line_label): Initialize
9930 m_has_vbar.
9931 (line_label::comparator): Reverse the sort order by m_state_idx,
9932 so that when the list is walked backwards the labels appear in
9933 order of insertion into the rich_location.
9934 (line_label::m_has_vbar): New field.
9935 (layout::print_any_labels): When dealing with multiple labels at
9936 the same line and column, only print vertical bars for the one
9937 with the highest label_line.
9938 (selftest::test_one_liner_labels): Update test for multiple labels
9939 to expect the labels to be in the order of insertion into the
9940 rich_location. Add a test for many such labels, where the column
9941 numbers are out-of-order relative to the insertion order.
9942
9943 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9944
9945 * config/i386/i386.h (ix86_frame::expensive_p): New field.
9946 (ix86_frame::expensive_count): Likewise.
9947 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
9948 of use_fast_prologue_epilogue robust against incidental changes
9949 in function size.
9950
9951 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9952
9953 PR target/77918
9954 * config/s390/vector.md (vec_unordered<mode>): Call
9955 gen_vec_ordered<mode>.
9956
9957 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
9958
9959 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
9960 New pattern for ASRD.
9961 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
9962 * internal-fn.def (IFN_DIV_POW2): New internal function.
9963 * optabs.def (sdiv_pow2_optab): New optab.
9964 * tree-vect-patterns.c (vect_recog_divmod_pattern):
9965 Modify pattern to support new operation.
9966 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
9967 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
9968 Document new target selector.
9969
9970 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9971
9972 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
9973 to test whether we're compiling a vector PCS function and to test
9974 whether the function needs to save a particular register.
9975 Remove the vector PCS handling of df_set_regs_ever_live.
9976 (aarch64_components_for_bb): Use crtl->abi to test whether
9977 the function needs to save a particular register.
9978 (aarch64_process_components): Use crtl->abi to test whether
9979 we're compiling a vector PCS function.
9980 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
9981 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
9982
9983 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9984
9985 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
9986 Delete.
9987 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
9988 whether the block calls a function that clobbers more registers
9989 than the current function is allowed to.
9990 (aarch64_use_simple_return_insn_p): Delete.
9991 * config/aarch64/aarch64.md (simple_return): Remove condition.
9992
9993 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9994
9995 * function-abi.h (function_abi_aggregator): New class.
9996 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
9997 function.
9998 * ira.c (update_equiv_regs_prescan): New function. Call
9999 set_paradoxical_subreg here rather than...
10000 (update_equiv_regs): ...here.
10001 (ira): Call update_equiv_regs_prescan.
10002
10003 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10004
10005 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10006 IN_TARGET_CODE.
10007 (call_used_or_fixed_regs): Likewise.
10008 (call_used_or_fixed_reg_p): Likewise.
10009 * reginfo.c (regs_invalidated_by_call): New macro.
10010
10011 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10012
10013 * shrink-wrap.c: Include function-abi.h.
10014 (requires_stack_frame_p): Use crtl->abi to test whether the
10015 current function can use a register without saving it first.
10016
10017 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10018
10019 * sel-sched-ir.h (_def::crosses_call): Replace with...
10020 (_def::crossed_call_abis): ..this new field.
10021 (def_list_add): Take a mask of ABIs instead of a crosses_call
10022 boolean.
10023 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10024 of _def accordingly.
10025 * sel-sched.c: Include function-abi.h.
10026 (hard_regs_data::regs_for_call_clobbered): Delete.
10027 (reg_rename::crosses_call): Replace with...
10028 (reg_rename::crossed_call_abis): ...this new field.
10029 (fur_static_params::crosses_call): Replace with...
10030 (fur_static_params::crossed_call_abis): ...this new field.
10031 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10032 (init_hard_regs_data): Use crtl->abi to test which registers the
10033 current function would need to save before it uses them.
10034 (mark_unavailable_hard_regs): Update handling of call-clobbered
10035 registers, using call_clobbers_in_region to find out which registers
10036 might be call-clobbered (but without taking -fipa-ra into account
10037 for now). Remove separate handling of partially call-clobbered
10038 registers.
10039 (verify_target_availability): Use crossed_call_abis instead of
10040 crosses_call.
10041 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10042 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10043
10044 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10045
10046 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10047 function to test whether a register is fully or partly clobbered.
10048
10049 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10050
10051 * rtlanal.c: Include function-abi.h.
10052 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10053 function and clobbers_reg_p to test whether the register
10054 is call-clobbered.
10055 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10056 to get the ABI of the called function and full_reg_clobbers to
10057 get the set of fully call-clobbered registers. Warn about the
10058 pitfalls of using this mode.
10059
10060 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10061
10062 * reload.c: Include function-abi.h.
10063 (find_equiv_reg): Use clobbers_reg_p to test whether either
10064 of the equivalent registers is clobbered by a call.
10065 * reload1.c: Include function-abi.h.
10066 (reg_reloaded_call_part_clobbered): Delete.
10067 (reload): Use crtl->abi to test which registers would need
10068 saving in the prologue before use.
10069 (find_reg): Likewise.
10070 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10071 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10072 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10073
10074 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10075
10076 * regrename.h (du_head::call_clobber_mask): New field.
10077 (du_head::need_caller_save_reg): Replace with...
10078 (du_head::call_abis): ...this new field.
10079 * regrename.c: Include function-abi.h.
10080 (call_clobbered_in_chain_p): New function.
10081 (check_new_reg_p): Use crtl->abi when deciding whether a register
10082 is free for use after RA. Use call_clobbered_in_chain_p to test
10083 whether a candidate register would be clobbered by a call.
10084 (find_rename_reg): Don't add call-clobber conflicts here.
10085 (rename_chains): Check call_abis instead of need_caller_save_reg.
10086 (merge_chains): Update for changes to du_head.
10087 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10088 target. Record the ABI identifier in call_abis and the set of
10089 fully or partially clobbered registers in call_clobber_mask.
10090 Add fully-clobbered registers to hard_conflicts here rather
10091 than in find_rename_reg.
10092 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10093 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10094 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10095 function-abi.h.
10096 * config/c6x/c6x.c: Likewise.
10097
10098 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10099
10100 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10101 mode of the register when deciding whether it is no longer
10102 available after a call.
10103
10104 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10105
10106 * recog.c: Include function-abi.h.
10107 (peep2_find_free_register): Use crtl->abi when deciding whether
10108 a register is free for use after RA.
10109
10110 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10111
10112 * postreload-gcse.c: Include regs.h and function-abi.h.
10113 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10114 call insn target. Conservatively assume that partially-clobbered
10115 registers are altered.
10116
10117 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10118
10119 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10120 when deciding whether a register is free for use after RA.
10121 (reload_combine): Remove unnecessary use of fixed_reg_set.
10122 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10123 call insn target. Use reg_mode when testing whether a register
10124 is no longer available.
10125
10126 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10127
10128 * target.def (return_call_with_max_clobbers): Delete.
10129 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10130 * doc/tm.texi: Regenerate.
10131 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10132 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10133 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10134 (lra_reg::call_insn): Delete.
10135 * lra.c: Include function-abi.h.
10136 (initialize_lra_reg_info_element): Don't initialize the fields above.
10137 (lra): Use crtl->abi to test whether the current function needs to
10138 save a register in the prologue. Remove special pre-inheritance
10139 lra_create_live_ranges pass for flag_ipa_ra.
10140 * lra-assigns.c: Include function-abi.h
10141 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10142 function needs to save a register in the prologue.
10143 (lra_assign): Assert that registers aren't allocated to a
10144 conflicting register, rather than checking only for overlaps
10145 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10146 and for registers that are not live across a call.
10147 * lra-constraints.c (last_call_for_abi): New variable.
10148 (full_and_partial_call_clobbers): Likewise.
10149 (setup_next_usage_insn): Remove the register from
10150 full_and_partial_call_clobbers.
10151 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10152 whether the register needs a caller save.
10153 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10154 of call_used_or_fixed_regs.
10155 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10156 full_and_partial_call_clobbers.
10157 * lra-lives.c (check_pseudos_live_through_calls): Replace
10158 last_call_used_reg_set and call_insn arguments with an abi argument.
10159 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10160 as the set of conflicting registers.
10161 (calls_have_same_clobbers_p): Delete.
10162 (process_bb_lives): Track the ABI of the last call instead of an
10163 insn/HARD_REG_SET pair. Update calls to
10164 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10165 the set of registers that could be clobbered by an EH edge.
10166 Include partially-clobbered as well as fully-clobbered registers.
10167 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10168 * lra-remat.c: Include function-abi.h.
10169 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10170 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10171 registers and bitmap_view to combine them into dead_regs.
10172 (call_used_input_regno_present_p): Take a function_abi argument
10173 and use it to test whether a register is call-clobbered.
10174 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10175 call insn target. Update tje call to call_used_input_regno_present_p.
10176 (do_remat): Likewise.
10177 (lra_remat): Remove the initialization of call_used_regs_arr_len
10178 and call_used_regs_arr.
10179
10180 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10181
10182 * loop-iv.c: Include regs.h and function-abi.h.
10183 (simplify_using_initial_values): Use insn_callee_abi to get the
10184 ABI of the call insn target. Conservatively assume that
10185 partially-clobbered registers are altered.
10186
10187 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10188
10189 * function-abi.h (call_clobbers_in_region): Declare.
10190 (call_clobbered_in_region_p): New function.
10191 * function-abi.cc (call_clobbers_in_region): Likewise.
10192 * ira-int.h: Include function-abi.h.
10193 (ira_allocno::crossed_calls_abis): New field.
10194 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10195 (ira_need_caller_save_regs): New function.
10196 (ira_need_caller_save_p): Likewise.
10197 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10198 of call_used_or_fixed_regs.
10199 (do_reload): Use crtl->abi to test whether the current function
10200 needs to save a register in the prologue. Count registers that
10201 need to be saved rather than registers that don't.
10202 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10203 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10204 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10205 (propagate_some_info_from_allocno): Likewise.
10206 (copy_info_to_removed_store_destinations): Likewise.
10207 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10208 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10209 (ira_build): Use ira_need_caller_save_regs instead of
10210 call_used_or_fixed_regs.
10211 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10212 whether the current function would need to save a register
10213 before using it.
10214 (calculate_spill_cost): Likewise.
10215 (allocno_reload_assign): Use ira_need_caller_save_regs and
10216 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10217 * ira-conflicts.c (ira_build_conflicts): Use
10218 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10219 as the set of call-clobbered registers. Remove the
10220 call_used_or_fixed_regs mask from the calculation of
10221 temp_hard_reg_set and mask its use instead. Remove special
10222 handling of partially-clobbered registers.
10223 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10224 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10225 calculate the set of conflicting registers for calls that
10226 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10227 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10228 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10229 Use eh_edge_abi to calculate the set of registers that could
10230 be clobbered by an EH edge. Include partially-clobbered as
10231 well as fully-clobbered registers.
10232
10233 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10234
10235 * haifa-sched.c: Include function-abi.h.
10236 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10237 the function would need to save a register before using it.
10238
10239 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10240
10241 * gcse.c: Include function-abi.h.
10242 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10243 the call insn target. Invalidate partially call-clobbered
10244 registers as well as fully call-clobbered ones.
10245
10246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10247
10248 * function.c (aggregate_value_p): Work out which ABI the
10249 function is using before testing which registers are at least
10250 partly preserved by a call.
10251
10252 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10253
10254 * early-remat.c: Include regs.h and function-abi.h.
10255 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10256 registers here.
10257 (early_remat::restrict_remat_for_unavail_regs): New function.
10258 (early_remat::restrict_remat_for_call): Likewise.
10259 (early_remat::process_block): Before calling emit_remat_insns
10260 for a previous call in the block, invalidate any candidates
10261 that would clobber call-preserved registers.
10262 (early_remat::emit_remat_insns_for_block): Likewise for the
10263 final call in a block. Do the same thing for live-in registers
10264 when calling emit_remat_insns at the head of a block.
10265
10266 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10267
10268 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10269 whether the current function needs to save at least part of a
10270 register before using it.
10271 (df_get_exit_block_use_set): Likewise for epilogue restores.
10272
10273 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10274
10275 * df-problems.c: Include regs.h and function-abi.h.
10276 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10277 sparse_invalidated_by_eh and dense_invalidated_by_call to
10278 dense_invalidated_by_eh.
10279 (df_print_bb_index): Update accordingly.
10280 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10281 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10282 that are clobbered by an EH edge. Clobber partially-clobbered
10283 registers as well as fully-clobbered ones.
10284 (df_md_confluence_n): Likewise.
10285 (df_rd_local_compute): Likewise. Update for changes to
10286 df_rd_problem_data.
10287 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10288 of registers that are clobbered by an EH edge. Includde partially-
10289 clobbered registers as well as fully-clobbered ones.
10290
10291 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10292
10293 * cselib.c (cselib_process_insn): If we know what mode a
10294 register was set in, check whether it is clobbered in that
10295 mode by a call. Only fall back to reg_raw_mode if that fails.
10296
10297 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10298
10299 * cse.c: Include regs.h and function-abi.h.
10300 (invalidate_for_call): Take the call insn as an argument.
10301 Use insn_callee_abi to get the ABI of the call and invalidate
10302 partially clobbered registers as well as fully clobbered ones.
10303 (cse_insn): Update call accordingly.
10304
10305 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10306
10307 * combine.c: Include function-abi.h.
10308 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10309 of the target of call insns. Invalidate partially-clobbered
10310 registers as well as fully-clobbered ones.
10311
10312 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10313
10314 * cfgloopanal.c: Include regs.h and function-abi.h.
10315 (init_set_costs): Use default_function_abi to test whether
10316 a general register is call-clobbered.
10317
10318 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10319
10320 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10321 instead of the call-clobbered sets.
10322
10323 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10324
10325 * caller-save.c (setup_save_areas): Remove redundant |s of
10326 fixed_reg_set.
10327 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10328 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10329 value is useful.
10330
10331 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10332
10333 * rtl.h (predefined_function_abi): Declare.
10334 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10335 instead of a boolean call_save flag.
10336 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10337 accordingly.
10338 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10339 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10340 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10341 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10342 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10343 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10344 * reginfo.c (init_reg_modes_target): Likewise.
10345 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10346 instead of a boolean call_save flag.
10347 * targhooks.c: Include function-abi.h.
10348 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10349 using eh_edge_abi to choose the mode.
10350
10351 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10352
10353 * target.def (hard_regno_call_part_clobbered): Take an ABI
10354 identifier instead of an rtx_insn.
10355 * doc/tm.texi: Regenerate.
10356 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10357 (hook_bool_uint_uint_mode_false): New function.
10358 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10359 (hook_bool_uint_uint_mode_false): New function.
10360 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10361 Take an ABI identifier instead of an rtx_insn.
10362 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10363 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10364 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10365 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10366 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10367 Likewise.
10368 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10369 * cselib.c: Include function-abi.h.
10370 (cselib_process_insn): Update call to
10371 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10372 to get the appropriate ABI identifier.
10373 * function-abi.cc (predefined_function_abi::initialize): Update call
10374 to targetm.hard_regno_call_part_clobbered.
10375 * ira-conflicts.c (ira_build_conflicts): Likewise.
10376 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10377 * lra-constraints.c: Include function-abi.h.
10378 (need_for_call_save_p): Update call to
10379 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10380 to get the appropriate ABI identifier.
10381 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10382 * regcprop.c (copyprop_hardreg_forward_1): Update call
10383 to targetm.hard_regno_call_part_clobbered.
10384 * reginfo.c (choose_hard_reg_mode): Likewise.
10385 * regrename.c (check_new_reg_p): Likewise.
10386 * reload.c (find_equiv_reg): Likewise.
10387 * reload1.c (emit_reload_insns): Likewise.
10388 * sched-deps.c: Include function-abi.h.
10389 (deps_analyze_insn): Update call to
10390 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10391 to get the appropriate ABI identifier.
10392 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10393 call to targetm.hard_regno_call_part_clobbered.
10394 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10395
10396 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10397
10398 * config/i386/i386.c: Include function-abi.h.
10399 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10400 if they preserve some 256-bit or 512-bit SSE registers.
10401
10402 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10403
10404 * target.def (insn_callee_abi): New hook.
10405 (remove_extra_call_preserved_regs): Delete.
10406 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10407 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10408 * doc/tm.texi: Regenerate.
10409 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10410 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10411 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10412 insn argument.
10413 (aarch64_remove_extra_call_preserved_regs): Delete.
10414 (aarch64_insn_callee_abi): New function.
10415 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10416 (TARGET_INSN_CALLEE_ABI): New macro.
10417 * rtl.h (get_call_fndecl): Declare.
10418 (cgraph_rtl_info): Fix formatting. Tweak comment for
10419 function_used_regs. Remove function_used_regs_valid.
10420 * rtlanal.c (get_call_fndecl): Moved from final.c
10421 * function-abi.h (insn_callee_abi): Declare.
10422 (target_function_abi_info): Mention insn_callee_abi.
10423 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10424 way to get_call_reg_set_usage did.
10425 (insn_callee_abi): New function.
10426 * regs.h (get_call_reg_set_usage): Delete.
10427 * final.c: Include function-abi.h.
10428 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10429 function_used_regs before the main loop rather than afterwards.
10430 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10431 if function_used_regs ends up not being useful.
10432 (get_call_fndecl): Move to rtlanal.c
10433 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10434 * caller-save.c: Include function-abi.h.
10435 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10436 instead of get_call_reg_set_usage.
10437 * cfgcleanup.c: Include function-abi.h.
10438 (old_insns_match_p): Use insn_callee_abi instead of
10439 get_call_reg_set_usage.
10440 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10441 a tree.
10442 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10443 function_used_regs.
10444 * df-scan.c: Include function-abi.h.
10445 (df_get_call_refs): Use insn_callee_abi instead of
10446 get_call_reg_set_usage.
10447 * ira-lives.c: Include function-abi.h.
10448 (process_bb_node_lives): Use insn_callee_abi instead of
10449 get_call_reg_set_usage.
10450 * lra-lives.c: Include function-abi.h.
10451 (process_bb_lives): Use insn_callee_abi instead of
10452 get_call_reg_set_usage.
10453 * postreload.c: Include function-abi.h.
10454 (reload_combine): Use insn_callee_abi instead of
10455 get_call_reg_set_usage.
10456 * regcprop.c: Include function-abi.h.
10457 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10458 get_call_reg_set_usage.
10459 * resource.c: Include function-abi.h.
10460 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10461 instead of get_call_reg_set_usage.
10462 * var-tracking.c: Include function-abi.h.
10463 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10464 get_call_reg_set_usage.
10465
10466 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10467
10468 * target.def (fntype_abi): New target hook.
10469 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10470 * doc/tm.texi: Regenerate.
10471 * target.h (predefined_function_abi): Declare.
10472 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10473 if defined.
10474 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10475 * config/aarch64/aarch64.c: Include function-abi.h.
10476 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10477 (TARGET_FNTYPE_ABI): Define.
10478
10479 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10480
10481 * Makefile.in (OBJS): Add function-abi.o.
10482 (GTFILES): Add function-abi.h.
10483 * function-abi.cc: New file.
10484 * function-abi.h: Likewise.
10485 * emit-rtl.h (rtl_data::abi): New field.
10486 * function.c: Include function-abi.h.
10487 (prepare_function_start): Initialize crtl->abi.
10488 * read-rtl-function.c: Include regs.h and function-abi.h.
10489 (read_rtl_function_body): Initialize crtl->abi.
10490 (read_rtl_function_body_from_file_range): Likewise.
10491 * reginfo.c: Include function-abi.h.
10492 (init_reg_sets_1): Initialize default_function_abi.
10493 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10494 when making a register global.
10495 * target-globals.h (this_target_function_abi_info): Declare.
10496 (target_globals::function_abi_info): New field.
10497 (restore_target_globals): Copy it.
10498 * target-globals.c: Include function-abi.h.
10499 (default_target_globals): Initialize the function_abi_info field.
10500 (target_globals): Allocate it.
10501 (save_target_globals): Free it.
10502
10503 2019-09-30 Nick Clifton <nickc@redhat.com>
10504
10505 PR target/85978
10506 * config/frv/frv.c (frv_register_move_cost): Add break statements
10507 to avoid falling through to the wrong cases. Tidy code.
10508
10509 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10510
10511 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10512 For multi-registers modes, test how big each register part is.
10513
10514 2019-09-30 Nick Clifton <nickc@redhat.com>
10515
10516 PR target/59205
10517 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10518 (TARGET_ASM_SELECT_SECTION): Remove definition.
10519 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10520
10521 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10522
10523 * emit-rtl.c (init_raw_REG): New function.
10524 (gen_raw_REG): Use init_raw_REG.
10525 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10526 macros.
10527 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10528 * rtl.h (rtx_init): New function.
10529 (rtx_alloca): New function.
10530 (init_raw_REG): New function.
10531 (alloca_raw_REG): New macro.
10532
10533 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10534
10535 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10536 (pcrel_local_address): Replace pcrel_address predicate, use the
10537 new function address_to_insn_form.
10538 (pcrel_external_address): Replace with new implementation using
10539 address_to_insn_form..
10540 (prefixed_mem_operand): Delete predicate which is now unused.
10541 (pcrel_external_mem_operand): Delete predicate which is now
10542 unused.
10543 * config/rs6000/rs6000-protos.h (enum insn_form): New
10544 enumeration.
10545 (enum non_prefixed_form): New enumeration.
10546 (address_to_insn_form): New declaration.
10547 (prefixed_load_p): New declaration.
10548 (prefixed_store_p): New declaration.
10549 (prefixed_paddi_p): New declaration.
10550 (rs6000_asm_output_opcode): New declaration.
10551 (rs6000_final_prescan_insn): Move declaration and update calling
10552 signature.
10553 (address_is_prefixed): New helper inline function.
10554 * config/rs6000/rs6000.c(print_operand_address): Check for either
10555 PC-relative local symbols or PC-relative external symbols.
10556 (rs6000_emit_move): Support loading PC-relative addresses.
10557 (mode_supports_prefixed_address_p): Delete, no longer used.
10558 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10559 (address_to_insn_form): New function to decode an address format.
10560 (reg_to_non_prefixed): New function to identify what the
10561 non-prefixed memory instruction format is for a register.
10562 (prefixed_load_p): New function to identify prefixed loads.
10563 (prefixed_store_p): New function to identify prefixed stores.
10564 (prefixed_paddi_p): New function to identify prefixed load
10565 immediates.
10566 (next_insn_prefixed_p): New static state variable.
10567 (rs6000_final_prescan_insn): New function to determine if an insn
10568 uses a prefixed instruction.
10569 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10570 prefixed instruction.
10571 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10572 (ASM_OUTPUT_OPCODE): New target hook.
10573 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10574 prefixed instructions.
10575 (prefixed_length): New insn attribute for the size of prefixed
10576 instructions.
10577 (non_prefixed_length): New insn attribute for the size of
10578 non-prefixed instructions.
10579 (pcrel_local_addr): New insn to load up a local PC-relative
10580 address.
10581 (pcrel_extern_addr): New insn to load up an external PC-relative
10582 address.
10583 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10584 GPR and loading a 128-bit floating point type to a GPR.
10585
10586 2019-09-30 Richard Biener <rguenther@suse.de>
10587
10588 * gimple.c (gimple_get_lhs): For PHIs return the result.
10589 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10590 SLP instance as argument.
10591 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10592 double-reduction PHIs with vectorizable_lc_phi.
10593 (vect_analyze_loop_operations): Adjust.
10594 (vect_create_epilog_for_reduction): Remove all code not dealing
10595 with reduction LC PHI or epilogue generation.
10596 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10597 for live stmts of reductions.
10598 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10599 do not handle defs that are not vect_internal_def.
10600 (can_vectorize_live_stmts): Adjust.
10601 (vect_analyze_stmt): When the vectorized stmt defined a value
10602 used on backedges adjust the backedge uses of vectorized PHIs.
10603
10604 2019-09-30 Martin Jambor <mjambor@suse.cz>
10605
10606 PR ipa/91853
10607 * tree-inline.c (force_value_to_type): New function.
10608 (setup_one_parameter): Use force_value_to_type to convert type.
10609 * tree-inline.c (force_value_to_type): Declare.
10610 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10611 with register type mismatches.
10612
10613 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10614
10615 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10616 32-bit PowerPC.
10617 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10618 * config/rs6000/t-freebsd64: Make use of the above define and build
10619 the 32-bit libraries with secure-plt.
10620
10621 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10622
10623 PR target/91931
10624 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10625 gen_int_mode instead of GEN_INT.
10626
10627 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10628
10629 * config/darwin.c (gen_macho_low): Amend to include the mode
10630 argument.
10631 (machopic_indirect_data_reference): Amend gen_macho_low call
10632 to include mode argument
10633 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10634 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10635 the macho_high expander and two define_insn entries.
10636
10637 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10638
10639 PR bootstrap/90543
10640 * optc-save-gen.awk: Fix up printing string option differences.
10641
10642 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10643
10644 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10645 vec_perm cost to 1 for non-Power7 VSX architectures.
10646
10647 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10648
10649 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10650 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10651 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10652
10653 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10654
10655 * config/darwin.c (gen_macho_high): Amend to include the mode
10656 argument.
10657 (machopic_indirect_data_reference): Amend gen_macho_high call
10658 to include mode argument.
10659 (machopic_legitimize_pic_address): Likewise.
10660 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10661 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10662 the macho_high expander and two define_insn entries.
10663
10664 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10665
10666 PR target/86805
10667 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10668
10669 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10670
10671 PR target/80672
10672 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10673 std::string::compare instead of std::string::find.
10674
10675 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10676
10677 * configure: Regenerate.
10678
10679 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10680
10681 PR middle-end/91920
10682 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10683 variables as shared.
10684
10685 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10686
10687 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10688 replaces the expander and two define_insn entries.
10689 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10690 call.
10691 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10692
10693 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10694
10695 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10696 (fibonacci_heap::nodes): Likewise.
10697 (fibonacci_heap::min_key): Likewise.
10698 (fibonacci_heap::min): Likewise.
10699
10700 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10701
10702 * cgraph.c (cgraph_node::get_fun): Make const.
10703 * cgraph.h (cgraph_node::get_fun): Likewise.
10704
10705 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10706
10707 PR target/91919
10708 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10709 of SImode MULT.
10710
10711 2019-09-27 Richard Biener <rguenther@suse.de>
10712
10713 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10714 (STMT_VINFO_REDUC_FN): Likewise.
10715 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10716 STMT_VINFO_REDUC_FN.
10717 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10718 for condition reductions.
10719 (vect_create_epilog_for_reduction): Compute all required state
10720 from the stmt to be vectorized.
10721 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10722 invocation and remove then dead code. For single def-use chains
10723 record only a single vector stmt.
10724
10725 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10726
10727 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10728 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10729 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10730 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10731 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10732 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10733 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10734 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10735 (aarch64_general_builtin_rsqrt): Declare.
10736 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10737 New function.
10738 (aarch64_mangle_builtin_type): Rename to...
10739 (aarch64_general_mangle_builtin_type): ...this.
10740 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10741 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10742 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10743 aarch64_general_add_builtin instead of add_builtin_function.
10744 (aarch64_init_builtins): Rename to...
10745 (aarch64_general_init_builtins): ...this. Use
10746 aarch64_general_add_builtin instead of add_builtin_function.
10747 (aarch64_builtin_decl): Rename to...
10748 (aarch64_general_builtin_decl): ...this and remove the unused
10749 arguments.
10750 (aarch64_expand_builtin): Rename to...
10751 (aarch64_general_expand_builtin): ...this and remove the unused
10752 arguments.
10753 (aarch64_builtin_rsqrt): Rename to...
10754 (aarch64_general_builtin_rsqrt): ...this.
10755 (aarch64_fold_builtin): Rename to...
10756 (aarch64_general_fold_builtin): ...this. Take the function subcode
10757 and return type as arguments. Remove the "ignored" argument.
10758 (aarch64_gimple_fold_builtin): Rename to...
10759 (aarch64_general_gimple_fold_builtin): ...this. Take the function
10760 subcode and gcall as arguments, and return the new function call.
10761 * config/aarch64/aarch64.c (aarch64_init_builtins)
10762 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
10763 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
10764 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
10765 instead of aarch64_builtin_rsqrt.
10766 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
10767 instead of aarch64_mangle_builtin_type.
10768
10769 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10770
10771 * target.def (check_builtin_call): New target hook.
10772 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
10773 * doc/tm.texi: Regenerate.
10774
10775 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10776
10777 PR tree-optimization/91909
10778 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
10779 reduc_index parameter. When handling COND_REDUCTION, make sure
10780 that the reduction phi operand is in the correct arm of the
10781 VEC_COND_EXPR.
10782 (vectorizable_reduction): Pass reduc_index to the above.
10783
10784 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
10785
10786 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
10787 New combine pattern.
10788
10789 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
10790
10791 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
10792 loop instruction into new basic block before the loop when basic
10793 block that precedes the loop is empty.
10794
10795 2019-09-26 Jakub Jelinek <jakub@redhat.com>
10796
10797 * function.c (gimplify_parameters): Use build_clobber function.
10798 * tree-ssa.c (execute_update_addresses_taken): Likewise.
10799 * tree-inline.c (expand_call_inline): Likewise.
10800 * tree-sra.c (clobber_subtree): Likewise.
10801 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
10802 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
10803 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
10804 lower_omp_target): Likewise.
10805 * omp-expand.c (expand_omp_for_generic): Likewise.
10806 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
10807
10808 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
10809
10810 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
10811 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
10812 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
10813 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
10814 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
10815 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
10816 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
10817 LD_ELEMREV_V16QI): Use the PURE attribute.
10818
10819 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
10820
10821 * config/rs6000/darwin.md: Replace the expanders for
10822 load_macho_picbase and reload_macho_picbase with use of '@'
10823 and <mode> in their respective define_insns.
10824 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
10825 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
10826 Pmode to gen_load_macho_picbase.
10827 * config/rs6000/rs6000.md: Likewise.
10828
10829 2019-09-25 Richard Biener <rguenther@suse.de>
10830
10831 PR tree-optimization/91896
10832 * tree-vect-loop.c (vectorizable_reduction): The single
10833 def-use cycle optimization cannot apply when there's more
10834 than one pattern stmt involved.
10835
10836 2019-09-26 Richard Biener <rguenther@suse.de>
10837
10838 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
10839 loop-closed PHIs that are vect_internal_def.
10840 (vect_create_epilog_for_reduction): Exit early for nested cycles.
10841 Simplify.
10842 (vectorizable_lc_phi): New.
10843 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
10844 (vect_transform_stmt): Likewise.
10845 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
10846 (vectorizable_lc_phi): Declare.
10847
10848 2019-09-26 Richard Biener <rguenther@suse.de>
10849
10850 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
10851 vectorizable_reduction for vect_double_reduction_def.
10852 (vect_transform_loop): Likewise.
10853 (vect_create_epilog_for_reduction): Move double-reduction
10854 PHI creation and preheader argument setting of PHIs ...
10855 (vectorizable_reduction): ... here. Also process
10856 vect_double_reduction_def PHIs, creating the vectorized
10857 PHI nodes, remembering the scalar adjustment computed for
10858 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
10859 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
10860 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
10861 Initialize STMT_VINFO_REDUC_CODE.
10862 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
10863 (_stmt_vec_info::reduc_code): Likewise.
10864 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
10865 (STMT_VINFO_REDUC_CODE): Likewise.
10866
10867 2019-09-26 Matt Turner <mattst88@gmail.com>
10868
10869 PR driver/69471
10870 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
10871 (mtune=): Add Negative(mtune=).
10872 (mcpu=): Add Negative(mcpu=).
10873 * config/arm/arm.opt: Likewise.
10874
10875 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10876
10877 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10878 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
10879 Define.
10880 * config/arm/arm_acle.h: Define builtins for the above.
10881 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
10882 (simd32_op): Handle the above.
10883 * config/arm/unspecs.md: Define unspecs for the above.
10884
10885 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10886
10887 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10888 (arm_<sup>xtb16): Likewise.
10889 (arm_usada8): Likewise.
10890 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
10891 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
10892 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
10893 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
10894 __sxtb16, __uxtab16, __uxtb16): Define.
10895 * config/arm/arm_acle_builtins.def: Define builtins for the above.
10896 * config/arm/unspecs.md: Define unspecs for the above.
10897 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
10898 (USXTB16): Likewise.
10899 (simd32_op): New int_attribute.
10900 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
10901 * doc/sourcebuild.exp (arm_simd32_ok): Document.
10902
10903 2019-09-26 Martin Jambor <mjambor@suse.cz>
10904
10905 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
10906 internal_error.
10907
10908 2019-09-26 Martin Jambor <mjambor@suse.cz>
10909
10910 * ipa-sra.c (process_scan_results): Fix continue condition.
10911
10912 2019-09-26 Martin Liska <mliska@suse.cz>
10913
10914 PR tree-optimization/91885
10915 * tree-vectorizer.c (try_vectorize_loop_1): Add
10916 TODO_update_ssa_only_virtuals similarly to what slp pass does.
10917
10918 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
10919
10920 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
10921 aarch64_plus_immediate rather than aarch64_uimm12_shift
10922 to test for valid PLUS immediates.
10923
10924 2019-09-25 Martin Jambor <mjambor@suse.cz>
10925
10926 * tree-sra.c (no_accesses_p): Remove.
10927 (no_accesses_representant): Likewise.
10928
10929 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10930
10931 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
10932 consistenly.
10933 (vaba_s16): Likewise.
10934 (vaba_s32): Likewise.
10935 (vaba_u8): Likewise.
10936 (vaba_u16): Likewise.
10937 (vaba_u32): Likewise.
10938 (vabal_high_s8): Likewise.
10939 (vabal_high_s16): Likewise.
10940 (vabal_high_s32): Likewise.
10941 (vabal_high_u8): Likewise.
10942 (vabal_high_u16): Likewise.
10943 (vabal_high_u32): Likewise.
10944 (vabal_s8): Likewise.
10945 (vabal_s16): Likewise.
10946 (vabal_s32): Likewise.
10947 (vabal_u8): Likewise.
10948 (vabal_u16): Likewise.
10949 (vabal_u32): Likewise.
10950 (vabaq_s8): Likewise.
10951 (vabaq_s16): Likewise.
10952 (vabaq_s32): Likewise.
10953 (vabaq_u8): Likewise.
10954 (vabaq_u16): Likewise.
10955 (vabaq_u32): Likewise.
10956 (vabd_s8): Likewise.
10957 (vabd_s16): Likewise.
10958 (vabd_s32): Likewise.
10959 (vabd_u8): Likewise.
10960 (vabd_u16): Likewise.
10961 (vabd_u32): Likewise.
10962 (vabdl_high_s8): Likewise.
10963 (vabdl_high_s16): Likewise.
10964 (vabdl_high_s32): Likewise.
10965 (vabdl_high_u8): Likewise.
10966 (vabdl_high_u16): Likewise.
10967 (vabdl_high_u32): Likewise.
10968 (vabdl_s8): Likewise.
10969 (vabdl_s16): Likewise.
10970 (vabdl_s32): Likewise.
10971 (vabdl_u8): Likewise.
10972 (vabdl_u16): Likewise.
10973 (vabdl_u32): Likewise.
10974 (vabdq_s8): Likewise.
10975 (vabdq_s16): Likewise.
10976 (vabdq_s32): Likewise.
10977 (vabdq_u8): Likewise.
10978 (vabdq_u16): Likewise.
10979 (vabdq_u32): Likewise.
10980 (vaddlv_s8): Likewise.
10981 (vaddlv_s16): Likewise.
10982 (vaddlv_u8): Likewise.
10983 (vaddlv_u16): Likewise.
10984 (vaddlvq_s8): Likewise.
10985 (vaddlvq_s16): Likewise.
10986 (vaddlvq_s32): Likewise.
10987 (vaddlvq_u8): Likewise.
10988 (vaddlvq_u16): Likewise.
10989 (vaddlvq_u32): Likewise.
10990 (vcvtx_f32_f64): Likewise.
10991 (vcvtx_high_f32_f64): Likewise.
10992 (vcvtxd_f32_f64): Likewise.
10993 (vmla_n_f32): Likewise.
10994 (vmla_n_s16): Likewise.
10995 (vmla_n_s32): Likewise.
10996 (vmla_n_u16): Likewise.
10997 (vmla_n_u32): Likewise.
10998 (vmla_s8): Likewise.
10999 (vmla_s16): Likewise.
11000 (vmla_s32): Likewise.
11001 (vmla_u8): Likewise.
11002 (vmla_u16): Likewise.
11003 (vmla_u32): Likewise.
11004 (vmlal_high_n_s16): Likewise.
11005 (vmlal_high_n_s32): Likewise.
11006 (vmlal_high_n_u16): Likewise.
11007 (vmlal_high_n_u32): Likewise.
11008 (vmlal_high_s8): Likewise.
11009 (vmlal_high_s16): Likewise.
11010 (vmlal_high_s32): Likewise.
11011 (vmlal_high_u8): Likewise.
11012 (vmlal_high_u16): Likewise.
11013 (vmlal_high_u32): Likewise.
11014 (vmlal_n_s16): Likewise.
11015 (vmlal_n_s32): Likewise.
11016 (vmlal_n_u16): Likewise.
11017 (vmlal_n_u32): Likewise.
11018 (vmlal_s8): Likewise.
11019 (vmlal_s16): Likewise.
11020 (vmlal_s32): Likewise.
11021 (vmlal_u8): Likewise.
11022 (vmlal_u16): Likewise.
11023 (vmlal_u32): Likewise.
11024 (vmlaq_n_f32): Likewise.
11025 (vmlaq_n_s16): Likewise.
11026 (vmlaq_n_s32): Likewise.
11027 (vmlaq_n_u16): Likewise.
11028 (vmlaq_n_u32): Likewise.
11029 (vmlaq_s8): Likewise.
11030 (vmlaq_s16): Likewise.
11031 (vmlaq_s32): Likewise.
11032 (vmlaq_u8): Likewise.
11033 (vmlaq_u16): Likewise.
11034 (vmlaq_u32): Likewise.
11035 (vmls_n_f32): Likewise.
11036 (vmls_n_s16): Likewise.
11037 (vmls_n_s32): Likewise.
11038 (vmls_n_u16): Likewise.
11039 (vmls_n_u32): Likewise.
11040 (vmls_s8): Likewise.
11041 (vmls_s16): Likewise.
11042 (vmls_s32): Likewise.
11043 (vmls_u8): Likewise.
11044 (vmls_u16): Likewise.
11045 (vmls_u32): Likewise.
11046 (vmlsl_high_n_s16): Likewise.
11047 (vmlsl_high_n_s32): Likewise.
11048 (vmlsl_high_n_u16): Likewise.
11049 (vmlsl_high_n_u32): Likewise.
11050 (vmlsl_high_s8): Likewise.
11051 (vmlsl_high_s16): Likewise.
11052 (vmlsl_high_s32): Likewise.
11053 (vmlsl_high_u8): Likewise.
11054 (vmlsl_high_u16): Likewise.
11055 (vmlsl_high_u32): Likewise.
11056 (vmlsl_n_s16): Likewise.
11057 (vmlsl_n_s32): Likewise.
11058 (vmlsl_n_u16): Likewise.
11059 (vmlsl_n_u32): Likewise.
11060 (vmlsl_s8): Likewise.
11061 (vmlsl_s16): Likewise.
11062 (vmlsl_s32): Likewise.
11063 (vmlsl_u8): Likewise.
11064 (vmlsl_u16): Likewise.
11065 (vmlsl_u32): Likewise.
11066 (vmlsq_n_f32): Likewise.
11067 (vmlsq_n_s16): Likewise.
11068 (vmlsq_n_s32): Likewise.
11069 (vmlsq_n_u16): Likewise.
11070 (vmlsq_n_u32): Likewise.
11071 (vmlsq_s8): Likewise.
11072 (vmlsq_s16): Likewise.
11073 (vmlsq_s32): Likewise.
11074 (vmlsq_u8): Likewise.
11075 (vmlsq_u16): Likewise.
11076 (vmlsq_u32): Likewise.
11077 (vmovl_high_s8): Likewise.
11078 (vmovl_high_s16): Likewise.
11079 (vmovl_high_s32): Likewise.
11080 (vmovl_high_u8): Likewise.
11081 (vmovl_high_u16): Likewise.
11082 (vmovl_high_u32): Likewise.
11083 (vmovl_s8): Likewise.
11084 (vmovl_s16): Likewise.
11085 (vmovl_s32): Likewise.
11086 (vmovl_u8): Likewise.
11087 (vmovl_u16): Likewise.
11088 (vmovl_u32): Likewise.
11089 (vmovn_high_s16): Likewise.
11090 (vmovn_high_s32): Likewise.
11091 (vmovn_high_s64): Likewise.
11092 (vmovn_high_u16): Likewise.
11093 (vmovn_high_u32): Likewise.
11094 (vmovn_high_u64): Likewise.
11095 (vmovn_s16): Likewise.
11096 (vmovn_s32): Likewise.
11097 (vmovn_s64): Likewise.
11098 (vmovn_u16): Likewise.
11099 (vmovn_u32): Likewise.
11100 (vmovn_u64): Likewise.
11101 (vmull_high_n_s16): Likewise.
11102 (vmull_high_n_s32): Likewise.
11103 (vmull_high_n_u16): Likewise.
11104 (vmull_high_n_u32): Likewise.
11105 (vmull_high_p8): Likewise.
11106 (vmull_high_s8): Likewise.
11107 (vmull_high_s16): Likewise.
11108 (vmull_high_s32): Likewise.
11109 (vmull_high_u8): Likewise.
11110 (vmull_high_u16): Likewise.
11111 (vmull_high_u32): Likewise.
11112 (vmull_n_s16): Likewise.
11113 (vmull_n_s32): Likewise.
11114 (vmull_n_u16): Likewise.
11115 (vmull_n_u32): Likewise.
11116 (vmull_p8): Likewise.
11117 (vmull_s8): Likewise.
11118 (vmull_s16): Likewise.
11119 (vmull_s32): Likewise.
11120 (vmull_u8): Likewise.
11121 (vmull_u16): Likewise.
11122 (vmull_u32): Likewise.
11123 (vpadal_s8): Likewise.
11124 (vpadal_s16): Likewise.
11125 (vpadal_s32): Likewise.
11126 (vpadal_u8): Likewise.
11127 (vpadal_u16): Likewise.
11128 (vpadal_u32): Likewise.
11129 (vpadalq_s8): Likewise.
11130 (vpadalq_s16): Likewise.
11131 (vpadalq_s32): Likewise.
11132 (vpadalq_u8): Likewise.
11133 (vpadalq_u16): Likewise.
11134 (vpadalq_u32): Likewise.
11135 (vpaddl_s8): Likewise.
11136 (vpaddl_s16): Likewise.
11137 (vpaddl_s32): Likewise.
11138 (vpaddl_u8): Likewise.
11139 (vpaddl_u16): Likewise.
11140 (vpaddl_u32): Likewise.
11141 (vpaddlq_s8): Likewise.
11142 (vpaddlq_s16): Likewise.
11143 (vpaddlq_s32): Likewise.
11144 (vpaddlq_u8): Likewise.
11145 (vpaddlq_u16): Likewise.
11146 (vpaddlq_u32): Likewise.
11147 (vpaddq_s8): Likewise.
11148 (vpaddq_s16): Likewise.
11149 (vpaddq_s32): Likewise.
11150 (vpaddq_s64): Likewise.
11151 (vpaddq_u8): Likewise.
11152 (vpaddq_u16): Likewise.
11153 (vpaddq_u32): Likewise.
11154 (vpaddq_u64): Likewise.
11155 (vqdmulh_n_s16): Likewise.
11156 (vqdmulh_n_s32): Likewise.
11157 (vqdmulhq_n_s16): Likewise.
11158 (vqdmulhq_n_s32): Likewise.
11159 (vqmovn_high_s16): Likewise.
11160 (vqmovn_high_s32): Likewise.
11161 (vqmovn_high_s64): Likewise.
11162 (vqmovn_high_u16): Likewise.
11163 (vqmovn_high_u32): Likewise.
11164 (vqmovn_high_u64): Likewise.
11165 (vqmovun_high_s16): Likewise.
11166 (vqmovun_high_s32): Likewise.
11167 (vqmovun_high_s64): Likewise.
11168 (vqrdmulh_n_s16): Likewise.
11169 (vqrdmulh_n_s32): Likewise.
11170 (vqrdmulhq_n_s16): Likewise.
11171 (vqrdmulhq_n_s32): Likewise.
11172 (vrsqrte_u32): Likewise.
11173 (vrsqrteq_u32): Likewise.
11174 (vtst_p8): Likewise.
11175 (vtst_p16): Likewise.
11176 (vtst_p64): Likewise.
11177 (vtstq_p8): Likewise.
11178 (vtstq_p16): Likewise.
11179 (vtstq_p64): Likewise.
11180 (vaddlv_s32): Likewise.
11181 (vaddlv_u32): Likewise.
11182 (vqtbl1_p8): Likewise.
11183 (vqtbl1_s8): Likewise.
11184 (vqtbl1_u8): Likewise.
11185 (vqtbl1q_p8): Likewise.
11186 (vqtbl1q_s8): Likewise.
11187 (vqtbl1q_u8): Likewise.
11188 (vqtbx1_s8): Likewise.
11189 (vqtbx1_u8): Likewise.
11190 (vqtbx1_p8): Likewise.
11191 (vqtbx1q_s8): Likewise.
11192 (vqtbx1q_u8): Likewise.
11193 (vqtbx1q_p8): Likewise.
11194 (vtbl1_s8): Likewise.
11195 (vtbl1_u8): Likewise.
11196 (vtbl1_p8): Likewise.
11197 (vtbl2_s8): Likewise.
11198 (vtbl2_u8): Likewise.
11199 (vtbl2_p8): Likewise.
11200 (vtbl3_s8): Likewise.
11201 (vtbl3_u8): Likewise.
11202 (vtbl3_p8): Likewise.
11203 (vtbl4_s8): Likewise.
11204 (vtbl4_u8): Likewise.
11205 (vtbl4_p8): Likewise.
11206 (vtbx2_s8): Likewise.
11207 (vtbx2_u8): Likewise.
11208 (vtbx2_p8): Likewise.
11209 (vld1_f32): Likewise.
11210 (vld1_f64): Likewise.
11211 (vld1_p8): Likewise.
11212 (vld1_p16): Likewise.
11213 (vld1_p64): Likewise.
11214 (vld1_s8): Likewise.
11215 (vld1_s16): Likewise.
11216 (vld1_s32): Likewise.
11217 (vld1_s64): Likewise.
11218 (vld1_u8): Likewise.
11219 (vld1_u16): Likewise.
11220 (vld1_u32): Likewise.
11221 (vld1_u64): Likewise.
11222 (vld1q_f32): Likewise.
11223 (vld1q_f64): Likewise.
11224 (vld1q_p8): Likewise.
11225 (vld1q_p16): Likewise.
11226 (vld1q_p64): Likewise.
11227 (vld1q_s8): Likewise.
11228 (vld1q_s16): Likewise.
11229 (vld1q_s32): Likewise.
11230 (vld1q_s64): Likewise.
11231 (vld1q_u8): Likewise.
11232 (vld1q_u16): Likewise.
11233 (vld1q_u32): Likewise.
11234 (vld1q_u64): Likewise.
11235 (vpmax_s8): Likewise.
11236 (vpmax_s16): Likewise.
11237 (vpmax_s32): Likewise.
11238 (vpmax_u8): Likewise.
11239 (vpmax_u16): Likewise.
11240 (vpmax_u32): Likewise.
11241 (vpmaxq_s8): Likewise.
11242 (vpmaxq_s16): Likewise.
11243 (vpmaxq_s32): Likewise.
11244 (vpmaxq_u8): Likewise.
11245 (vpmaxq_u16): Likewise.
11246 (vpmaxq_u32): Likewise.
11247 (vpmax_f32): Likewise.
11248 (vpmaxq_f32): Likewise.
11249 (vpmaxq_f64): Likewise.
11250 (vpmaxqd_f64): Likewise.
11251 (vpmaxs_f32): Likewise.
11252 (vpmaxnm_f32): Likewise.
11253 (vpmaxnmq_f32): Likewise.
11254 (vpmaxnmq_f64): Likewise.
11255 (vpmaxnmqd_f64): Likewise.
11256 (vpmaxnms_f32): Likewise.
11257 (vpmin_s8): Likewise.
11258 (vpmin_s16): Likewise.
11259 (vpmin_s32): Likewise.
11260 (vpmin_u8): Likewise.
11261 (vpmin_u16): Likewise.
11262 (vpmin_u32): Likewise.
11263 (vpminq_s8): Likewise.
11264 (vpminq_s16): Likewise.
11265 (vpminq_s32): Likewise.
11266 (vpminq_u8): Likewise.
11267 (vpminq_u16): Likewise.
11268 (vpminq_u32): Likewise.
11269 (vpmin_f32): Likewise.
11270 (vpminq_f32): Likewise.
11271 (vpminq_f64): Likewise.
11272 (vpminqd_f64): Likewise.
11273 (vpmins_f32): Likewise.
11274 (vpminnm_f32): Likewise.
11275 (vpminnmq_f32): Likewise.
11276 (vpminnmq_f64): Likewise.
11277 (vpminnmqd_f64): Likewise.
11278 (vpminnms_f32): Likewise.
11279 (vmla_f32): Likewise.
11280 (vmlaq_f32): Likewise.
11281 (vmlaq_f64): Likewise.
11282 (vmls_f32): Likewise.
11283 (vmlsq_f32): Likewise.
11284 (vmlsq_f64): Likewise.
11285 (vqtbl2_s8): Likewise.
11286 (vqtbl2_u8): Likewise.
11287 (vqtbl2_p8): Likewise.
11288 (vqtbl2q_s8): Likewise.
11289 (vqtbl2q_u8): Likewise.
11290 (vqtbl2q_p8): Likewise.
11291 (vqtbl3_s8): Likewise.
11292 (vqtbl3_u8): Likewise.
11293 (vqtbl3_p8): Likewise.
11294 (vqtbl3q_s8): Likewise.
11295 (vqtbl3q_u8): Likewise.
11296 (vqtbl3q_p8): Likewise.
11297 (vqtbl4_s8): Likewise.
11298 (vqtbl4_u8): Likewise.
11299 (vqtbl4_p8): Likewise.
11300 (vqtbl4q_s8): Likewise.
11301 (vqtbl4q_u8): Likewise.
11302 (vqtbl4q_p8): Likewise.
11303 (vqtbx2_s8): Likewise.
11304 (vqtbx2_u8): Likewise.
11305 (vqtbx2_p8): Likewise.
11306 (vqtbx2q_s8): Likewise.
11307 (vqtbx2q_u8): Likewise.
11308 (vqtbx2q_p8): Likewise.
11309 (vqtbx3_s8): Likewise.
11310 (vqtbx3_u8): Likewise.
11311 (vqtbx3_p8): Likewise.
11312 (vqtbx3q_s8): Likewise.
11313 (vqtbx3q_u8): Likewise.
11314 (vqtbx3q_p8): Likewise.
11315 (vqtbx4_s8): Likewise.
11316 (vqtbx4_u8): Likewise.
11317 (vqtbx4_p8): Likewise.
11318 (vqtbx4q_s8): Likewise.
11319 (vqtbx4q_u8): Likewise.
11320 (vqtbx4q_p8): Likewise.
11321 (vrev16_p8): Likewise.
11322 (vrev16_s8): Likewise.
11323 (vrev16_u8): Likewise.
11324 (vrev16q_p8): Likewise.
11325 (vrev16q_s8): Likewise.
11326 (vrev16q_u8): Likewise.
11327 (vrev32_p8): Likewise.
11328 (vrev32_p16): Likewise.
11329 (vrev32_s8): Likewise.
11330 (vrev32_s16): Likewise.
11331 (vrev32_u8): Likewise.
11332 (vrev32_u16): Likewise.
11333 (vrev32q_p8): Likewise.
11334 (vrev32q_p16): Likewise.
11335 (vrev32q_s8): Likewise.
11336 (vrev32q_s16): Likewise.
11337 (vrev32q_u8): Likewise.
11338 (vrev32q_u16): Likewise.
11339 (vrev64_f32): Likewise.
11340 (vrev64_p8): Likewise.
11341 (vrev64_p16): Likewise.
11342 (vrev64_s8): Likewise.
11343 (vrev64_s16): Likewise.
11344 (vrev64_s32): Likewise.
11345 (vrev64_u8): Likewise.
11346 (vrev64_u16): Likewise.
11347 (vrev64_u32): Likewise.
11348 (vrev64q_f32): Likewise.
11349 (vrev64q_p8): Likewise.
11350 (vrev64q_p16): Likewise.
11351 (vrev64q_s8): Likewise.
11352 (vrev64q_s16): Likewise.
11353 (vrev64q_s32): Likewise.
11354 (vrev64q_u8): Likewise.
11355 (vrev64q_u16): Likewise.
11356 (vrev64q_u32): Likewise.
11357 (vsha1cq_u32): Likewise.
11358 (vsha1mq_u32): Likewise.
11359 (vsha1pq_u32): Likewise.
11360 (vsha1h_u32): Likewise.
11361 (vsha1su0q_u32): Likewise.
11362 (vsha1su1q_u32): Likewise.
11363 (vsha256hq_u32): Likewise.
11364 (vsha256h2q_u32): Likewise.
11365 (vsha256su0q_u32): Likewise.
11366 (vsha256su1q_u32): Likewise.
11367 (vmull_p64): Likewise.
11368 (vmull_high_p64): Likewise.
11369 (vsqrt_f32): Likewise.
11370 (vsqrtq_f32): Likewise.
11371 (vsqrt_f64): Likewise.
11372 (vsqrtq_f64): Likewise.
11373 (vst1_f32): Likewise.
11374 (vst1_f64): Likewise.
11375 (vst1_p8): Likewise.
11376 (vst1_p16): Likewise.
11377 (vst1_p64): Likewise.
11378 (vst1_s8): Likewise.
11379 (vst1_s16): Likewise.
11380 (vst1_s32): Likewise.
11381 (vst1_s64): Likewise.
11382 (vst1_u8): Likewise.
11383 (vst1_u16): Likewise.
11384 (vst1_u32): Likewise.
11385 (vst1_u64): Likewise.
11386 (vst1q_f32): Likewise.
11387 (vst1q_f64): Likewise.
11388 (vst1q_p8): Likewise.
11389 (vst1q_p16): Likewise.
11390 (vst1q_p64): Likewise.
11391 (vst1q_s8): Likewise.
11392 (vst1q_s16): Likewise.
11393 (vst1q_s32): Likewise.
11394 (vst1q_s64): Likewise.
11395 (vst1q_u8): Likewise.
11396 (vst1q_u16): Likewise.
11397 (vst1q_u32): Likewise.
11398 (vst1q_u64): Likewise.
11399 (vst1_s64_x2): Likewise.
11400 (vst1_u64_x2): Likewise.
11401 (vst1_f64_x2): Likewise.
11402 (vst1_s8_x2): Likewise.
11403 (vst1_p8_x2): Likewise.
11404 (vst1_s16_x2): Likewise.
11405 (vst1_p16_x2): Likewise.
11406 (vst1_s32_x2): Likewise.
11407 (vst1_u8_x2): Likewise.
11408 (vst1_u16_x2): Likewise.
11409 (vst1_u32_x2): Likewise.
11410 (vst1_f16_x2): Likewise.
11411 (vst1_f32_x2): Likewise.
11412 (vst1_p64_x2): Likewise.
11413 (vst1q_s8_x2): Likewise.
11414 (vst1q_p8_x2): Likewise.
11415 (vst1q_s16_x2): Likewise.
11416 (vst1q_p16_x2): Likewise.
11417 (vst1q_s32_x2): Likewise.
11418 (vst1q_s64_x2): Likewise.
11419 (vst1q_u8_x2): Likewise.
11420 (vst1q_u16_x2): Likewise.
11421 (vst1q_u32_x2): Likewise.
11422 (vst1q_u64_x2): Likewise.
11423 (vst1q_f16_x2): Likewise.
11424 (vst1q_f32_x2): Likewise.
11425 (vst1q_f64_x2): Likewise.
11426 (vst1q_p64_x2): Likewise.
11427 (vst1_s64_x3): Likewise.
11428 (vst1_u64_x3): Likewise.
11429 (vst1_f64_x3): Likewise.
11430 (vst1_s8_x3): Likewise.
11431 (vst1_p8_x3): Likewise.
11432 (vst1_s16_x3): Likewise.
11433 (vst1_p16_x3): Likewise.
11434 (vst1_s32_x3): Likewise.
11435 (vst1_u8_x3): Likewise.
11436 (vst1_u16_x3): Likewise.
11437 (vst1_u32_x3): Likewise.
11438 (vst1_f16_x3): Likewise.
11439 (vst1_f32_x3): Likewise.
11440 (vst1_p64_x3): Likewise.
11441 (vst1q_s8_x3): Likewise.
11442 (vst1q_p8_x3): Likewise.
11443 (vst1q_s16_x3): Likewise.
11444 (vst1q_p16_x3): Likewise.
11445 (vst1q_s32_x3): Likewise.
11446 (vst1q_s64_x3): Likewise.
11447 (vst1q_u8_x3): Likewise.
11448 (vst1q_u16_x3): Likewise.
11449 (vst1q_u32_x3): Likewise.
11450 (vst1q_u64_x3): Likewise.
11451 (vst1q_f16_x3): Likewise.
11452 (vst1q_f32_x3): Likewise.
11453 (vst1q_f64_x3): Likewise.
11454 (vst1q_p64_x3): Likewise.
11455 (vst2_s64): Likewise.
11456 (vst2_u64): Likewise.
11457 (vst2_f64): Likewise.
11458 (vst2_s8): Likewise.
11459 (vst2_p8): Likewise.
11460 (vst2_s16): Likewise.
11461 (vst2_p16): Likewise.
11462 (vst2_s32): Likewise.
11463 (vst2_u8): Likewise.
11464 (vst2_u16): Likewise.
11465 (vst2_u32): Likewise.
11466 (vst2_f16): Likewise.
11467 (vst2_f32): Likewise.
11468 (vst2_p64): Likewise.
11469 (vst2q_s8): Likewise.
11470 (vst2q_p8): Likewise.
11471 (vst2q_s16): Likewise.
11472 (vst2q_p16): Likewise.
11473 (vst2q_s32): Likewise.
11474 (vst2q_s64): Likewise.
11475 (vst2q_u8): Likewise.
11476 (vst2q_u16): Likewise.
11477 (vst2q_u32): Likewise.
11478 (vst2q_u64): Likewise.
11479 (vst2q_f16): Likewise.
11480 (vst2q_f32): Likewise.
11481 (vst2q_f64): Likewise.
11482 (vst2q_p64): Likewise.
11483 (vst3_s64): Likewise.
11484 (vst3_u64): Likewise.
11485 (vst3_f64): Likewise.
11486 (vst3_s8): Likewise.
11487 (vst3_p8): Likewise.
11488 (vst3_s16): Likewise.
11489 (vst3_p16): Likewise.
11490 (vst3_s32): Likewise.
11491 (vst3_u8): Likewise.
11492 (vst3_u16): Likewise.
11493 (vst3_u32): Likewise.
11494 (vst3_f16): Likewise.
11495 (vst3_f32): Likewise.
11496 (vst3_p64): Likewise.
11497 (vst3q_s8): Likewise.
11498 (vst3q_p8): Likewise.
11499 (vst3q_s16): Likewise.
11500 (vst3q_p16): Likewise.
11501 (vst3q_s32): Likewise.
11502 (vst3q_s64): Likewise.
11503 (vst3q_u8): Likewise.
11504 (vst3q_u16): Likewise.
11505 (vst3q_u32): Likewise.
11506 (vst3q_u64): Likewise.
11507 (vst3q_f16): Likewise.
11508 (vst3q_f32): Likewise.
11509 (vst3q_f64): Likewise.
11510 (vst3q_p64): Likewise.
11511 (vst4_s64): Likewise.
11512 (vst4_u64): Likewise.
11513 (vst4_f64): Likewise.
11514 (vst4_s8): Likewise.
11515 (vst4_p8): Likewise.
11516 (vst4_s16): Likewise.
11517 (vst4_p16): Likewise.
11518 (vst4_s32): Likewise.
11519 (vst4_u8): Likewise.
11520 (vst4_u16): Likewise.
11521 (vst4_u32): Likewise.
11522 (vst4_f16): Likewise.
11523 (vst4_f32): Likewise.
11524 (vst4_p64): Likewise.
11525 (vst4q_s8): Likewise.
11526 (vst4q_p8): Likewise.
11527 (vst4q_s16): Likewise.
11528 (vst4q_p16): Likewise.
11529 (vst4q_s32): Likewise.
11530 (vst4q_s64): Likewise.
11531 (vst4q_u8): Likewise.
11532 (vst4q_u16): Likewise.
11533 (vst4q_u32): Likewise.
11534 (vst4q_u64): Likewise.
11535 (vst4q_f16): Likewise.
11536 (vst4q_f32): Likewise.
11537 (vst4q_f64): Likewise.
11538 (vst4q_p64): Likewise.
11539 (vtbx4_s8): Likewise.
11540 (vtbx4_u8): Likewise.
11541 (vtbx4_p8): Likewise.
11542 (vtrn_f32): Likewise.
11543 (vtrn_p8): Likewise.
11544 (vtrn_p16): Likewise.
11545 (vtrn_s8): Likewise.
11546 (vtrn_s16): Likewise.
11547 (vtrn_s32): Likewise.
11548 (vtrn_u8): Likewise.
11549 (vtrn_u16): Likewise.
11550 (vtrn_u32): Likewise.
11551 (vtrnq_f32): Likewise.
11552 (vtrnq_p8): Likewise.
11553 (vtrnq_p16): Likewise.
11554 (vtrnq_s8): Likewise.
11555 (vtrnq_s16): Likewise.
11556 (vtrnq_s32): Likewise.
11557 (vtrnq_u8): Likewise.
11558 (vtrnq_u16): Likewise.
11559 (vtrnq_u32): Likewise.
11560 (vrsqrte_f16): Likewise.
11561 (vrsqrteq_f16): Likewise.
11562 (vsqrt_f16): Likewise.
11563 (vsqrtq_f16): Likewise.
11564 (vabd_f16): Likewise.
11565 (vabdq_f16): Likewise.
11566 (vpadd_f16): Likewise.
11567 (vpaddq_f16): Likewise.
11568 (vpmax_f16): Likewise.
11569 (vpmaxq_f16): Likewise.
11570 (vpmaxnm_f16): Likewise.
11571 (vpmaxnmq_f16): Likewise.
11572 (vpmin_f16): Likewise.
11573 (vpminq_f16): Likewise.
11574 (vpminnm_f16): Likewise.
11575 (vpminnmq_f16): Likewise.
11576 (vrsqrts_f16): Likewise.
11577 (vrsqrtsq_f16): Likewise.
11578
11579 2019-09-25 Richard Biener <rguenther@suse.de>
11580
11581 PR tree-optimization/91896
11582 * tree-vect-loop.c (vectorizable_reduction): The single
11583 def-use cycle optimization cannot apply when there's more
11584 than one pattern stmt involved.
11585
11586 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11587
11588 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11589 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11590 (reload_macho_picbase_<mode>): Likewise.
11591
11592 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11593
11594 * config/rs6000/rs6000.md: Move darwin.md include until
11595 after the definition of the mode iterators.
11596
11597 2019-09-23 Martin Sebor <msebor@redhat.com>
11598
11599 PR tree-optimization/91570
11600 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11601 non-constant minlen, maxlen and maxbound.
11602
11603 2019-09-24 Richard Biener <rguenther@suse.de>
11604
11605 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11606 Rename to...
11607 (_stmt_vec_info::cond_reduc_code): ... this.
11608 (_stmt_vec_info::induc_cond_initial_val): Add.
11609 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11610 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11611 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11612 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11613 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11614 the reduction code.
11615 (vect_create_epilog_for_reduction): Drop special
11616 induction condition reduction params, pass in reduction code
11617 and simplify.
11618 (vectorizable_reduction): Perform condition reduction kind
11619 selection only at analysis time. Adjust passing on state.
11620
11621 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11622
11623 * config/aarch64/aarch64.md (mov<mode>): Don't call
11624 aarch64_split_dimode_const_store on volatile MEM.
11625
11626 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11627
11628 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11629 Update hwcap string for fp16fml.
11630
11631 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11632
11633 PR middle-end/91866
11634 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11635 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11636
11637 2019-09-24 Martin Liska <mliska@suse.cz>
11638
11639 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11640 instead of if-elseif-elseif-...
11641 * gimple-expr.c (extract_ops_from_tree): Likewise.
11642 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11643 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11644
11645 2019-09-24 Martin Jambor <mjambor@suse.cz>
11646
11647 PR ipa/91831
11648 * ipa-param-manipulation.c (carry_over_param): Make a method of
11649 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11650 in case of a context mismatch.
11651 (ipa_param_body_adjustments::common_initialization): Adjust call to
11652 carry_over_param.
11653 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11654 private method carry_over_param.
11655
11656 2019-09-24 Martin Jambor <mjambor@suse.cz>
11657
11658 PR ipa/91832
11659 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11660
11661 2019-09-24 Richard Biener <rguenther@suse.de>
11662
11663 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11664 base.
11665
11666 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11667
11668 * config/arm/t-arm (arm-builtins.o): Add dependency on
11669 arm_acle_builtins.def.
11670
11671 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11672
11673 PR target/91823
11674 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11675 canonical CONST_INTs. Use gen_rtvec.
11676
11677 2019-09-23 Richard Biener <rguenther@suse.de>
11678
11679 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11680 avoid adjusting by + 0 or * 1.
11681 (vect_create_epilog_for_reduction): Get reduction code only
11682 when necessary. Deal with adjustment_def only when necessary.
11683
11684 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11685
11686 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11687 memmodel index.
11688
11689 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11690
11691 PR ipa/91835
11692 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11693 "ipa-sra".
11694
11695 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11696
11697 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11698 code. Merge code blocks with common conditionals. Use declared
11699 macro instead of a magic number for PIC level.
11700
11701 2019-09-21 Martin Sebor <msebor@redhat.com>
11702
11703 PR middle-end/91830
11704 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11705 Simplify computation of the offset of the referenced subobject.
11706
11707 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
11708
11709 * config/darwin.c (machopic_legitimize_pic_address): Check
11710 for lra not reload.
11711
11712 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11713
11714 * ira-conflicts.c (can_use_same_reg_p): New function.
11715 (process_reg_shuffles): Take an insn parameter. Ignore cases
11716 in which input operand op_num could seemingly never be allocated
11717 to the same register as the destination.
11718 (add_insn_allocno_copies): Update call to process_reg_shuffles.
11719
11720 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11721
11722 * simplify-rtx.c (neg_const_int): Replace with...
11723 (neg_poly_int_rtx): ...this new function.
11724 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11725 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11726 (simplify_plus_minus): Likewise for constant terms here.
11727
11728 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
11729
11730 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11731 HOST_WIDE_PRINT_UNSIGNED.
11732
11733 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
11734
11735 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11736 character.
11737
11738 2019-09-20 Maya Rashish <coypu@sdf.org>
11739
11740 PR target/86811
11741 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11742 Define to speculation_safe_value_not_needed.
11743
11744 2019-09-20 Richard Biener <rguenther@suse.de>
11745 Uros Bizjak <ubizjak@gmail.com>
11746
11747 PR target/91814
11748 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11749 previous change.
11750 (general_scalar_chain::convert_op): Force not suitable memory
11751 operands to a register.
11752
11753 2019-09-20 Richard Biener <rguenther@suse.de>
11754
11755 PR tree-optimization/91821
11756 * tree-vect-loop.c (check_reduction_path): Check we can compute
11757 reduc_idx.
11758 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
11759 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
11760 operands in canonical order.
11761 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11762 STMT_VINFO_REDUC_IDX.
11763 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
11764 (STMT_VINFO_REDUC_IDX): Likewise.
11765
11766 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
11767
11768 PR target/91269
11769 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11770
11771 2019-09-20 Richard Biener <rguenther@suse.de>
11772
11773 PR tree-optimization/91822
11774 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
11775 parameter.
11776 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
11777 for reduc_index in nested cycles, adjust vectorizable_condition
11778 calls.
11779 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
11780 parameter.
11781 (vect_analyze_stmt): Adjust.
11782 (vect_transform_stmt): Likewise.
11783
11784 2019-09-20 Richard Biener <rguenther@suse.de>
11785
11786 PR target/91767
11787 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
11788 Ensure there's a sequence point between allocating the new register
11789 and passing a reference to a reg via regno_reg_rtx.
11790
11791 2019-09-20 Martin Jambor <mjambor@suse.cz>
11792
11793 * coretypes.h (cgraph_edge): Declare.
11794 * ipa-param-manipulation.c: Rewrite.
11795 * ipa-param-manipulation.h: Likewise.
11796 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
11797 (OBJS): Added ipa-sra.o.
11798 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
11799 and ref_p, added fields param_adjustments and performed_splits.
11800 (struct cgraph_clone_info): Remove ags_to_skip and
11801 combined_args_to_skip, new field param_adjustments.
11802 (cgraph_node::create_clone): Changed parameters to use
11803 ipa_param_adjustments.
11804 (cgraph_node::create_virtual_clone): Likewise.
11805 (cgraph_node::create_virtual_clone_with_body): Likewise.
11806 (tree_function_versioning): Likewise.
11807 (cgraph_build_function_type_skip_args): Removed.
11808 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
11809 using ipa_param_adjustments.
11810 (clone_of_p): Likewise.
11811 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
11812 (build_function_decl_skip_args): Likewise.
11813 (duplicate_thunk_for_node): Adjust parameters using
11814 ipa_param_body_adjustments, copy param_adjustments instead of
11815 args_to_skip.
11816 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
11817 (cgraph_node::create_virtual_clone): Likewise.
11818 (cgraph_node::create_version_clone_with_body): Likewise.
11819 (cgraph_materialize_clone): Likewise.
11820 (symbol_table::materialize_all_clones): Likewise.
11821 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
11822 ipa_replace_map check.
11823 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
11824 (initialize_node_lattices): Make aware that some parameters might have
11825 already been removed.
11826 (want_remove_some_param_p): New function.
11827 (create_specialized_node): Convert to using ipa_param_adjustments and
11828 deal with possibly pre-existing adjustments.
11829 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
11830 (output_node_opt_summary): Do not stream removed fields. Stream
11831 parameter adjustments instead of argumetns to skip.
11832 (input_node_opt_summary): Likewise.
11833 (input_node_opt_summary): Likewise.
11834 * lto-section-in.c (lto_section_name): Added ipa-sra section.
11835 * lto-streamer.h (lto_section_type): Likewise.
11836 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
11837 param_body_adjs.
11838 (copy_decl_to_var): Declare.
11839 * tree-inline.c (update_clone_info): Do not remap old_tree.
11840 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
11841 statements, walk all extra generated statements and remap their
11842 operands.
11843 (redirect_all_calls): Add killed SSA names to a hash set.
11844 (remap_ssa_name): Do not remap killed SSA names.
11845 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
11846 half of functionality moved to ipa_param_body_adjustments.
11847 (copy_decl_to_var): Make exported.
11848 (copy_body): Destroy killed_new_ssa_names hash set.
11849 (expand_call_inline): Remap performed splits.
11850 (update_clone_info): Likewise.
11851 (tree_function_versioning): Simplify tree_map processing. Updated to
11852 accept ipa_param_adjustments and use ipa_param_body_adjustments.
11853 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
11854 for the new interface.
11855 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
11856 (simd_clone_compute_base_data_type): Likewise.
11857 (simd_clone_init_simd_arrays): Adjust for the new interface.
11858 (simd_clone_adjust_argument_types): Likewise.
11859 (struct modify_stmt_info): Likewise.
11860 (ipa_simd_modify_stmt_ops): Likewise.
11861 (ipa_simd_modify_function_body): Likewise.
11862 (simd_clone_adjust): Likewise.
11863 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
11864 (type_internals_preclude_sra_p): Make public.
11865 * tree-sra.h: New file.
11866 * ipa-inline-transform.c (save_inline_function_body): Update to
11867 refelct new tree_function_versioning signature.
11868 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
11869 ipa_param_adjustments to get current parameter indices.
11870 (ipcp_modif_dom_walker::before_dom_children): Likewise.
11871 (ipcp_update_bits): Likewise.
11872 (ipcp_update_vr): Likewise.
11873 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
11874 * ipa-sra.c: New file.
11875 * multiple_target.c (create_target_clone): Update to reflet new type
11876 of create_version_clone_with_body.
11877 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
11878 tree_function_versioning.
11879 (modify_function): Update to reflect new type of
11880 tree_function_versioning.
11881 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
11882 * passes.def: Remove old IPA-SRA and add new one.
11883 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
11884 (make_pass_ipa_sra): Declare.
11885 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
11886 ipa_sra_retvalues.
11887 * doc/invoke.texi (ipa-sra-max-replacements): New.
11888
11889 2019-09-19 Martin Sebor <msebor@redhat.com>
11890
11891 PR middle-end/91631
11892 * builtins.c (component_size): Correct trailing array computation,
11893 rename to component_ref_size and move...
11894 (compute_objsize): Adjust.
11895 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
11896 (builtin_access::strict): Do not consider memmove.
11897 (builtin_access::write_off): New function.
11898 (builtin_memref::builtin_memref): Initialize refsize.
11899 (builtin_memref::set_base_and_offset): Adjust refoff and compute
11900 refsize.
11901 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
11902 Handle refsize.
11903 (builtin_access::builtin_access): Initialize dstoff to destination
11904 refeence offset here instead of in maybe_diag_overlap. Adjust
11905 referencess even to unrelated objects. Adjust sizrange of bounded
11906 string functions to reflect bound. For strcat, adjust destination
11907 sizrange by that of source.
11908 (builtin_access::strcat_overlap): Adjust offsets and sizes
11909 to reflect the increase in destination sizrange above.
11910 (builtin_access::overlap): Do not set dstoff here but instead
11911 in builtin_access::builtin_access.
11912 (check_bounds_or_overlap): Use builtin_access::write_off.
11913 (maybe_diag_access_bounds): Add argument. Add informational notes.
11914 (dump_builtin_memref, dump_builtin_access): New functions.
11915 * tree.c (component_ref_size): ...to here.
11916 * tree.h (component_ref_size): Declare.
11917 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
11918 nul in the size of the source string.
11919
11920 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
11921
11922 PR c/67224
11923 * doc/cpp.texi: Document support for extended characters in
11924 identifiers.
11925 * doc/cppopts.texi: Likewise.
11926
11927 2019-09-19 Richard Biener <rguenther@suse.de>
11928
11929 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
11930 (check_reduction_path): New overload having the path as result.
11931 (vect_is_simple_reduction): From the detected reduction
11932 path build a SLP reduction chain if possible.
11933
11934 2019-09-19 Richard Biener <rguenther@suse.de>
11935
11936 PR target/91814
11937 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
11938 Force operand to a register if it isn't nonimmediate_operand.
11939
11940 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
11941
11942 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
11943 * config/arm/iterators.md (optab): Add and, ior, xor entries.
11944 (logical_op): Remove code attribute.
11945 (logical_OP): Likewise.
11946
11947 2019-09-19 Martin Liska <mliska@suse.cz>
11948
11949 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
11950 Use proper casting.
11951
11952 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
11953
11954 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
11955 registers with %R.
11956
11957 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
11958 for NE comparison of TImode values.
11959 (aarch64_emit_load_exclusive): Add support for TImode.
11960 (aarch64_emit_store_exclusive): Likewise.
11961 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
11962 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
11963 Change iterator from ALLI to ALLI_TI.
11964 (@atomic_compare_and_swap<JUST_TI>): New.
11965 (@atomic_compare_and_swap<JUST_TI>_lse): New.
11966 (aarch64_load_exclusive_pair): New.
11967 (aarch64_store_exclusive_pair): New.
11968 * config/aarch64/iterators.md (JUST_TI): New.
11969
11970 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
11971 strong_zero_p for aarch64_track_speculation; unify some code paths;
11972 use aarch64_gen_compare_reg instead of open-coding.
11973
11974 * config/aarch64/aarch64.opt (-moutline-atomics): New.
11975 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
11976 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
11977 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
11978 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
11979 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
11980 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
11981 (atomic_<atomic_op><ALLI>): Likewise.
11982 (atomic_fetch_<atomic_op><ALLI>): Likewise.
11983 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
11984 * doc/invoke.texi: Document -moutline-atomics.
11985
11986 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
11987
11988 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
11989 trivial predicate for condition branch.
11990 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
11991 for switch case.
11992 (compute_bb_predicates): Update predicate based on post-dominating
11993 relationship.
11994 (analyze_function_body): Calculate post-dominating information.
11995
11996 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11997
11998 * tree-vectorizer.h (vectorizable_condition): Take an int
11999 reduction index instead of a boolean flag.
12000 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12001 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12002 reductions if the reduction accumulator is the "then" rather
12003 than the "else" value.
12004 (vect_analyze_stmt): Update call accordingly.
12005 (vect_transform_stmt): Likewise.
12006 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12007 asserting that the index is > 0.
12008
12009 2019-09-19 Martin Liska <mliska@suse.cz>
12010
12011 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12012 (sort_congruence_classes_by_decl_uid): Likewise.
12013 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12014 easier sorting.
12015 (sem_item_optimizer::merge_classes): Likewise.
12016
12017 2019-09-19 Richard Biener <rguenther@suse.de>
12018
12019 PR tree-optimization/91812
12020 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12021 volatile loads.
12022
12023 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12024
12025 * defaults.h (TARGET_UNIT): New macro.
12026 (target_unit): New type.
12027 * rtl.h (native_encode_rtx, native_decode_rtx)
12028 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12029 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12030 * rtlanal.c (subreg_lsb_1): Delete.
12031 (subreg_size_lsb): New function.
12032 * simplify-rtx.c: Include rtx-vector-builder.h
12033 (simplify_immed_subreg): Delete.
12034 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12035 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12036 functions.
12037 (simplify_subreg): Use them.
12038 (test_vector_subregs_modes, test_vector_subregs_repeating)
12039 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12040 (test_vector_subregs): New functions.
12041 (test_vector_ops): Call test_vector_subregs for integer vector
12042 modes with at least 2 elements.
12043
12044 2019-09-19 Richard Biener <rguenther@suse.de>
12045
12046 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12047 LOOP_VINFO_OPERANDS_SWAPPED.
12048 (parloops_is_simple_reduction): Likewise.
12049 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12050 initialize operands_swapped.
12051 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12052 (vect_is_slp_reduction): Do not swap operands.
12053 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12054 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12055
12056 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12057
12058 PR target/87007
12059 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12060 Add avx_partial_xmm_update.
12061
12062 2019-09-18 Jim Wilson <jimw@sifive.com>
12063
12064 PR target/91683
12065 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12066 (riscv_move_integer): Likewise.
12067 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12068 riscv_move_integer arg.
12069 (riscv_legitimize_move): Likewise.
12070 (riscv_force_temporary): New parameter in_splitter. Don't call
12071 force_reg if true.
12072 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12073 arg.
12074 (riscv_add_offset): Likewise.
12075 (riscv_split_symbol): New parameter in_splitter. Pass to
12076 riscv_force_temporary.
12077 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12078 arg.
12079 (riscv_move_integer): New parameter in_splitter. New local
12080 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12081 in_splitter TRUE.
12082 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12083 riscv_split_symbol, and riscv_force_temporary args.
12084 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12085 riscv_move_integer arg.
12086 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12087
12088 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12089
12090 PR target/90878
12091 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12092 hard register store cost to 6.
12093
12094 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12095
12096 PR target/91446
12097 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12098 pseudo register store cost from 3 to 6 to make it the same as
12099 QImode and HImode.
12100
12101 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12102
12103 PR target/91738
12104 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12105 (one_cmpldi2): Likewise.
12106 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12107 of the constant parts is simple.
12108 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12109 (logical_op): Add new code attribute.
12110 (logical_OP): Likewise.
12111 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12112 (arm_iordi_operand): Add predicate.
12113 (arm_xordi_operand): Add predicate.
12114
12115 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12116
12117 * config/arm/arm.md (maddsidi4): Remove expander.
12118 (mulsidi3adddi): Remove pattern.
12119 (mulsidi3adddi_v6): Likewise.
12120 (mulsidi3_nov6): Likewise.
12121 (mulsidi3_v6): Likewise.
12122 (umulsidi3): Remove expander.
12123 (umulsidi3_nov6): Remove pattern.
12124 (umulsidi3_v6): Likewise.
12125 (umulsidi3adddi): Likewise.
12126 (umulsidi3adddi_v6): Likewise.
12127 (<Us>mulsidi3): Add combined expander.
12128 (<Us>maddsidi4): Likewise.
12129 (<US>mull): Add combined umull and smull pattern.
12130 (<US>mlal): Likewise.
12131 * config/arm/iterators.md (Us): Add new iterator.
12132
12133 2019-09-18 Richard Biener <rguenther@suse.de>
12134
12135 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12136 swapping.
12137 (vectorize_fold_left_reduction): Remove assert.
12138 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12139 operand in position 2. Remove assert.
12140
12141 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12142
12143 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12144 (smulsi3_highpart_nov6): Remove pattern.
12145 (smulsi3_highpart_v6): Likewise.
12146 (umulsi3_highpart): Likewise.
12147 (umulsi3_highpart_nov6): Likewise.
12148 (umulsi3_highpart_v6): Likewise.
12149 (<US>mull_high): Add new combined multiply pattern.
12150
12151 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12152
12153 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12154 (arm_mulsi3_v6): Likewise.
12155 (mulsi3addsi_v6): Likewise.
12156 (mulsi3subsi): Likewise.
12157 (mul): Add new multiply pattern.
12158 (mla): Likewise.
12159 (mls): Likewise.
12160
12161 2019-09-18 Richard Biener <rguenther@suse.de>
12162
12163 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12164 (parloops_valid_reduction_input_p): Copy from
12165 valid_reduction_input_p.
12166 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12167 (parloops_needs_fold_left_reduction_p): Copy from
12168 needs_fold_left_reduction_p.
12169 (parloops_is_simple_reduction): Copy from
12170 vect_is_simple_reduction.
12171 (parloops_force_simple_reduction): Copy from
12172 vect_force_simple_reduction.
12173 (gather_scalar_reductions): Adjust.
12174 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12175 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12176
12177 2019-09-18 Richard Biener <rguenther@suse.de>
12178
12179 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12180 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12181 static.
12182 (vect_create_epilog_for_reduction): Remove dead code.
12183
12184 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12185
12186 * varasm.c (assemble_real): Generate canonical const_ints.
12187
12188 2019-09-18 Richard Biener <rguenther@suse.de>
12189
12190 PR lto/91763
12191 * lto-streamer-in.c (input_eh_regions): Move EH init to
12192 lto_materialize_function.
12193 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12194 Likewise.
12195
12196 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12197
12198 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12199 are INTEGER_CSTs.
12200
12201 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12202
12203 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12204 of checking specifically for INTEGER_CST.
12205
12206 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12207
12208 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12209 sizes instead of uhwi sizes.
12210
12211 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12212
12213 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12214 (add_const_value_attribute): Handle CONST_POLY_INT.
12215
12216 2019-09-18 Martin Liska <mliska@suse.cz>
12217
12218 * dbgcnt.def (store_merging): New counter.
12219 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12220 Use it in store merging.
12221
12222 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12223
12224 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12225 function.
12226 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12227 * config/arm/arm.c (arm_sched_variable_issue): New function.
12228 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12229
12230 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12231
12232 * config/arm/types.md (no_reservation): New reservation.
12233 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12234 no_insn here.
12235 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12236 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12237 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12238 * config/arm/arm1020e.md (1020alu_op): Likewise.
12239 * config/arm/arm1026ejs.md (alu_op): Likewise.
12240 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12241 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12242 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12243 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12244 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12245 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12246 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12247 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12248 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12249 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12250 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12251 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12252 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12253 * config/arm/fa526.md (526_alu_op): Likewise.
12254 * config/arm/fa606te.md (606te_alu_op): Likewise.
12255 * config/arm/fa626te.md (626te_alu_op): Likewise.
12256 * config/arm/fa726te.md (726te_alu_op): Likewise.
12257 * config/arm/xgene1.md (xgene1_nop): Likewise.
12258
12259 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12260
12261 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12262 "no_insn" to "branch".
12263
12264 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12265
12266 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12267
12268 2019-09-17 Richard Biener <rguenther@suse.de>
12269
12270 PR debug/91772
12271 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12272 was missing generate locations only once.
12273
12274 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12275
12276 PR ipa/91089
12277 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12278 option.
12279 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12280 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12281 for switch default case using range analysis information.
12282
12283 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12284
12285 PR target/91749
12286 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12287 mode attributed is supported by FDPIC.
12288
12289 2019-09-17 Richard Biener <rguenther@suse.de>
12290
12291 PR tree-optimization/91790
12292 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12293 use the correct DR for setting up realignment.
12294
12295 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12296
12297 PR target/91719
12298 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12299 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12300 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12301 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12302
12303 2019-09-16 Jason Merrill <jason@redhat.com>
12304
12305 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12306
12307 2019-09-16 Martin Liska <mliska@suse.cz>
12308
12309 * gimple-fold.c (or_comparisons_1): Remove rules moved
12310 to ...
12311 * match.pd: ... here.
12312
12313 2019-09-16 Martin Liska <mliska@suse.cz>
12314
12315 * gimple-fold.c (or_comparisons_1): Remove rules
12316 moved to ...
12317 * match.pd: ... here.
12318
12319 2019-09-16 Martin Liska <mliska@suse.cz>
12320
12321 * genmatch.c (dt_node::append_simplify): Do not print
12322 warning when we have duplicate patterns belonging
12323 to a same simplify rule.
12324 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12325 (maybe_fold_comparisons_from_match_pd): Handle
12326 tcc_comparison as a results.
12327 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12328
12329 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12330 Qi Feng <ffengqi@linux.ibm.com>
12331
12332 PR middle-end/88784
12333 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12334 (x > y && x == XXX_MIN): Optimize into 'false'.
12335 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12336 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12337 (x < y && x == XXX_MAX): Optimize into 'false'.
12338 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12339 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12340 (x <= y || x != XXX_MIN): Optimize into 'true'.
12341 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12342 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12343 (x >= y || x != XXX_MAX): Optimize into 'true'.
12344 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12345
12346 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12347 Martin Liska <mliska@suse.cz>
12348
12349 * gimple-fold.c (and_comparisons_1): Add type as first
12350 argument.
12351 (and_var_with_comparison): Likewise.
12352 (and_var_with_comparison_1): Likewise.
12353 (or_comparisons_1): Likewise.
12354 (or_var_with_comparison): Likewise.
12355 (or_var_with_comparison_1): Likewise.
12356 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12357 (maybe_fold_or_comparisons): Likewise.
12358 (maybe_fold_comparisons_from_match_pd): New.
12359 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12360 (maybe_fold_or_comparisons): Likewise.
12361 * gimple.c (gimple_size): Make it public and add num_ops argument.
12362 (gimple_init): New function.
12363 (gimple_alloc): Call gimple_init.
12364 * gimple.h (gimple_size): New.
12365 (gimple_init): Likewise.
12366 * tree-if-conv.c (fold_or_predicates): Pass type.
12367 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12368 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12369 (optimize_vec_cond_expr): Likewise.
12370 (ovce_extract_ops): Return type of conditional expression.
12371 * tree-ssanames.c (init_ssa_name_imm_use): New.
12372 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12373 * tree-ssanames.h (init_ssa_name_imm_use): New.
12374
12375 2019-09-16 Richard Biener <rguenther@suse.de>
12376
12377 PR tree-optimization/91756
12378 PR tree-optimization/87132
12379 * tree-ssa-alias.h (enum translate_flags): New.
12380 (get_continuation_for_phi): Use it instead of simple bool flag.
12381 (walk_non_aliased_vuses): Likewise.
12382 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12383 (get_continuation_for_phi): When looking across backedges only
12384 disallow valueization.
12385 (walk_non_aliased_vuses): Adjust.
12386 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12387 if requested.
12388
12389 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12390
12391 PR middle-end/80791
12392 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12393 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12394 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12395 * target.def (have_count_reg_decr_p): New hook.
12396 (doloop_cost_for_generic): Likewise.
12397 (doloop_cost_for_address): Likewise.
12398 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12399 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12400 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12401 * doc/tm.texi: Regenerate.
12402 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12403 addend.
12404 (record_group): Init doloop_p.
12405 (add_candidate_1): Add optional argument doloop, change the handlings
12406 accordingly.
12407 (add_candidate): Likewise.
12408 (generic_predict_doloop_p): Update attribute.
12409 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12410 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12411 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12412 MIN_EXPR.
12413 (get_computation_cost): Update for doloop IV cand extra cost.
12414 (determine_group_iv_cost_cond): Update for doloop IV cand.
12415 (determine_iv_cost): Likewise.
12416 (ivopts_estimate_reg_pressure): Likewise.
12417 (may_eliminate_iv): Update handlings for doloop IV cand.
12418 (add_iv_candidate_for_doloop): New function.
12419 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12420 (iv_ca_set_no_cp): Update for doloop IV cand.
12421 (iv_ca_set_cp): Likewise.
12422 (iv_ca_dump): Dump register cost.
12423 (find_doloop_use): New function.
12424 (analyze_and_mark_doloop_use): Likewise.
12425 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12426
12427 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12428
12429 PR middle-end/91708
12430 * cse.c (cse_insn): Do not replace anything with a
12431 MEM.
12432
12433 2019-09-13 Ian Lance Taylor <iant@golang.org>
12434
12435 * doc/invoke.texi (Optimize Options): Fix typo.
12436
12437 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12438
12439 PR tree-optimization/89386
12440 * config/i386/sse.md (smulhrs<mode>3): New expander.
12441 (smulhrsv4hi3): Ditto.
12442
12443 2019-09-12 Richard Biener <rguenther@suse.de>
12444
12445 PR tree-optimization/91750
12446 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12447 in the type of the evolution.
12448
12449 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12450
12451 PR tree-optimization/89386
12452 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12453 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12454 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12455 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12456 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12457 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12458 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12459 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12460 (su, r): Handle the unspecs above.
12461 (bt): New int attribute.
12462 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12463 * internal-fn.c (first_commutative_argument): Commutativity info for
12464 above.
12465 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12466 (umulhrs_optab): New optabs.
12467 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12468 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12469 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12470 function.
12471 (vect_vect_recog_func_ptrs): Add it.
12472
12473 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12474
12475 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12476 code.
12477
12478 2019-09-11 Nathan Sidwell <nathan@acm.org>
12479
12480 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12481 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12482
12483 2019-09-11 Richard Biener <rguenther@suse.de>
12484
12485 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12486 * lto-wrapper.c (merge_and_complain): Pick up -g.
12487 (append_compiler_options): Likewise.
12488 (run_gcc): Re-instantiate handling -g0 at link-time.
12489 * doc/invoke.texi (flto): Document debug info generation.
12490
12491 2019-09-11 Richard Biener <rguenther@suse.de>
12492
12493 PR tree-optimization/90387
12494 * vr-values.c (vr_values::extract_range_basic): After inlining
12495 simplify non-constant __builtin_constant_p to false.
12496
12497 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12498
12499 PR rtl-optimization/89795
12500 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12501 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12502
12503 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12504
12505 PR tree-optimization/91723
12506 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12507 instead of pointer equality when checking if argument vectypes are
12508 the same.
12509
12510 PR middle-end/91725
12511 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12512 of get_nonzero_bits, only call it for integral types.
12513
12514 2019-09-11 Richard Biener <rguenther@suse.de>
12515
12516 Revert
12517 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12518
12519 * match.pd: Add flag_unsafe_math_optimizations check
12520 before deciding on the widest type in a binary math operation.
12521
12522 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12523
12524 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12525 and CALL_REALLY_USED_REGISTERS must be defined, and that
12526 CALL_REALLY_USED_REGISTERS is preferred.
12527 * doc/tm.texi: Regenerate.
12528 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12529 (call_really_used_regs): Likewise.
12530 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12531 CALL_REALLY_USED_REGISTERS are defined.
12532 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12533 initial value if defined.
12534 (initial_call_really_used_regs): Delete.
12535 (saved_call_really_used_regs): Likewise.
12536 (CALL_REALLY_USED_REGNO_P): Likewise.
12537 (init_reg_sets): Remove handling of call_really_used_regs.
12538 (save_register_info, restore_register_info, globalize_reg): Likewise.
12539 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12540 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12541 outside operand_reg_set.
12542 (fix_register): Don't change call_used_regs if
12543 CALL_REALLY_USED_REGISTERS is defined.
12544 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12545 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12546 instead of call_really_used_regs.
12547 (csky_conditional_register_usage): Remove the old handling of
12548 call_used_regs and change the handling of call_really_used_regs
12549 to use call_used_regs instead.
12550 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12551 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12552 making a register fixed.
12553 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12554 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12555 instead of call_really_used_regs.
12556 (m32r_conditional_register_usage): Don't set call_used_regs when
12557 making a register fixed.
12558 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12559 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12560 instead of call_really_used_regs.
12561 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12562 (mips_cfun_call_saved_reg_p): Likewise.
12563 (mips_swap_registers): Remove the old handling of call_used_regs
12564 and change the handling of call_really_used_regs to use call_used_regs
12565 instead.
12566 (mips_conditional_register_usage): Likewise.
12567 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12568 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12569 instead of call_really_used_regs.
12570 (mn10300_get_live_callee_saved_regs): Likewise.
12571 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12572 (mn10300_conditional_register_usage): Don't set call_used_regs when
12573 making a register fixed.
12574 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12575 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12576 Remove the old handling of call_used_regs and change the handling
12577 of call_really_used_regs to use call_used_regs instead.
12578 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12579 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12580 instead of call_really_used_regs.
12581 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12582 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12583 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12584 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12585 (s390_conditional_register_usage): Remove the old handling of
12586 call_used_regs and change the handling of call_really_used_regs
12587 to use call_used_regs instead.
12588 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12589 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12590 (sh_fix_range, reg_unused_after): Likewise.
12591 (sh_conditional_register_usage): Remove the old handling of
12592 call_used_regs and change the handling of call_really_used_regs
12593 to use call_used_regs instead.
12594 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12595 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12596 call_used_regs when making a register fixed.
12597 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12598 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12599 call_used_regs when making a register fixed.
12600 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12601 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12602 set call_used_regs when making a register fixed.
12603 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12604 * config/visium/visium.c (visium_conditional_register_usage): Remove
12605 the old handling of call_used_regs and change the handling of
12606 call_really_used_regs to use call_used_regs instead.
12607
12608 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12609
12610 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12611 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12612 * reginfo.c (call_used_regs): New macro.
12613
12614 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12615
12616 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12617 fixed_regs test.
12618 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12619 (bpf_expand_epilogue): Likewise.
12620 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12621 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12622 (ft32_expand_epilogue): Likewise.
12623 * config/i386/i386.c (ix86_save_reg): Likewise.
12624 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12625 (moxie_expand_epilogue): Likewise.
12626 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12627 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12628 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12629
12630 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12631
12632 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12633 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12634 instead of testing call_used_regs directly.
12635 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12636 (aarch64_components_for_bb): Likewise.
12637 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12638 * config/arc/arc.c (arc_must_save_register): Likewise.
12639 (arc_epilogue_uses): Likewise.
12640 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12641 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12642 (arm_compute_save_reg0_reg12_mask): Likewise.
12643 (arm_compute_save_core_reg_mask): Likewise.
12644 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12645 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12646 (cmse_nonsecure_entry_clear_before_return): Likewise.
12647 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12648 (arm_expand_epilogue): Likewise.
12649 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12650 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12651 (_reg_unused_after): Likewise.
12652 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12653 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12654 (add_to_reg, hwloop_optimize): Likewise.
12655 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12656 (bpf_expand_epilogue): Likewise.
12657 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12658 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12659 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12660 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12661 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12662 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12663 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12664 * config/frv/frv.c (frv_stack_info): Likewise.
12665 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12666 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12667 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12668 (move_callee_saved_registers): Likewise.
12669 * config/h8300/h8300.c (byte_reg): Likewise.
12670 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12671 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12672 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12673 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12674 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12675 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12676 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12677 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12678 * config/m32c/m32c.c (need_to_save): Likewise.
12679 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12680 * config/mcore/mcore.c (calc_live_regs): Likewise.
12681 * config/microblaze/microblaze.c (microblaze_must_save_register):
12682 Likewise.
12683 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12684 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12685 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12686 (mmix_expand_epilogue): Likewise.
12687 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12688 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12689 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12690 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12691 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12692 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12693 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12694 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12695 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12696 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12697 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12698 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12699 * config/rl78/rl78.c (need_to_save): Likewise.
12700 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12701 (rs6000_stack_info, generate_set_vrsave): Likewise.
12702 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12703 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12704 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12705 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12706 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12707 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12708 (save_local_or_in_reg_p): Likewise.
12709 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12710 (xstormy16_epilogue_uses): Likewise.
12711 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12712 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12713 * config/v850/v850.c (compute_register_save_size): Likewise.
12714 * config/vax/vax.c (vax_expand_prologue): Likewise.
12715 * config/visium/visium.c (visium_save_reg_p): Likewise.
12716 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12717 * cselib.c (cselib_process_insn): Likewise.
12718 * df-scan.c (df_get_entry_block_def_set): Likewise.
12719 * function.c (aggregate_value_p): Likewise.
12720 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12721 * ira-lives.c (process_bb_node_lives): Likewise.
12722 * ira.c (do_reload): Likewise.
12723 * lra-lives.c (process_bb_lives): Likewise.
12724 * lra-remat.c (lra_remat): Likewise.
12725 * lra.c (lra): Likewise.
12726 * postreload.c (reload_combine_recognize_pattern): Likewise.
12727 (reload_cse_move2add): Likewise.
12728 * recog.c (peep2_find_free_register): Likewise.
12729 * regrename.c (check_new_reg_p): Likewise.
12730 * reload.c (find_equiv_reg): Likewise.
12731 * reload1.c (reload, find_reg): Likewise.
12732 * sel-sched.c (init_hard_regs_data): Likewise.
12733
12734 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12735
12736 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12737 regs_invalidated_by_call & ~fixed_reg_set instead of
12738 call_used_or_fixed_regs & ~fixed_reg_set.
12739 * config/sh/sh.c (output_stack_adjust): Likewise.
12740
12741 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12742
12743 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12744 (call_used_reg_set): Delete.
12745 (call_used_or_fixed_regs): New macro.
12746 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12747 of call_used_reg_set.
12748 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12749 instead of call_used_regs.
12750 (save_call_clobbered_regs): Likewise.
12751 * cfgcleanup.c (old_insns_match_p): Likewise.
12752 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
12753 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12754 Likewise.
12755 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12756 * config/sh/sh.c (output_stack_adjust): Likewise.
12757 * final.c (collect_fn_hard_reg_usage): Likewise.
12758 * ira-build.c (ira_build): Likewise.
12759 * ira-color.c (calculate_saved_nregs): Likewise.
12760 (allocno_reload_assign, calculate_spill_cost): Likewise.
12761 * ira-conflicts.c (ira_build_conflicts): Likewise.
12762 * ira-costs.c (ira_tune_allocno_costs): Likewise.
12763 * ira-lives.c (process_bb_node_lives): Likewise.
12764 * ira.c (setup_reg_renumber): Likewise.
12765 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
12766 * lra-constraints.c (need_for_call_save_p): Likewise.
12767 (need_for_split_p, inherit_in_ebb): Likewise.
12768 * lra-lives.c (process_bb_lives): Likewise.
12769 * lra-remat.c (call_used_input_regno_present_p): Likewise.
12770 * postreload.c (reload_combine): Likewise.
12771 * regrename.c (find_rename_reg): Likewise.
12772 * reload1.c (reload_as_needed): Likewise.
12773 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12774 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12775 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12776
12777 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12778
12779 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
12780 (no_caller_save_reg_set): Delete.
12781 * caller-save.c (init_caller_save): Don't initialize it.
12782 * ira-conflicts.c (ira_build_conflicts): Calculate
12783 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
12784
12785 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12786
12787 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
12788 (target_hard_regs::x_savable_regs): New field.
12789 (call_fixed_reg_set): Delete.
12790 (savable_regs): New macro,
12791 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
12792 (init_reg_sets_1): Likewise. Initialize savable_regs.
12793 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
12794 for all registers. Set savable_regs instead of call_fixed_reg_set.
12795 (setup_save_areas, save_call_clobbered_regs): Replace uses of
12796 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
12797 * config/sh/sh.c (output_stack_adjust): Likewise.
12798
12799 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12800
12801 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
12802 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
12803 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
12804
12805 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12806
12807 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
12808 * rtlanal.c (get_call_rtx_from): Likewise.
12809 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
12810 than the pattern to get_call_rtx_from.
12811 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
12812 an rtx_insn * instead of an rtx.
12813 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
12814
12815 2019-09-10 Martin Liska <mliska@suse.cz>
12816
12817 * common.opt: Use newly added WarnRemoved.
12818 * config/aarch64/aarch64.opt: Likewise.
12819 * config/arm/arm.opt: Likewise.
12820 * config/i386/i386.opt: Likewise.
12821 * config/ia64/ia64.opt: Likewise.
12822 * config/rs6000/rs6000.opt: Likewise.
12823 * doc/options.texi: Document WarnRemoved properly.
12824 * dwarf2out.c (gen_producer_string): Handle renamed
12825 OPT_SPECIAL_warn_removed.
12826 * lto-opts.c (lto_write_options): Likewise.
12827 * lto-wrapper.c (merge_and_complain): Likewise.
12828 * opts-common.c (decode_cmdline_option): Likewise.
12829 (prune_options): Likewise.
12830 (read_cmdline_option): Likewise.
12831 (control_warning_option): Likewise.
12832 * opts.c (print_filtered_help): Likewise.
12833 * optc-gen.awk: Parse for WarnRemoved and make usage
12834 of Deprecated an error.
12835 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
12836
12837 2019-09-10 Arnaud Charlet <charlet@adacore.com>
12838
12839 * doc/install.texi: Fix syntax for html generation.
12840
12841 2019-09-10 Jakub Jelinek <jakub@redhat.com>
12842
12843 PR middle-end/91680
12844 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
12845 the shift type to type.
12846
12847 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12848
12849 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
12850 FDPIC mode.
12851 (stack_protect_combined_test_insn): Likewise.
12852
12853 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12854 Mickaël Guêné <mickael.guene@st.com>
12855
12856 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
12857 * config/arm/arm.md (FDPIC_REGNUM): New constant.
12858 (load_tp_soft_fdpic): New pattern.
12859 (load_tp_soft): Disable in FDPIC mode.
12860
12861 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12862 Mickaël Guêné <mickael.guene@st.com>
12863
12864 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
12865 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
12866 (arm_call_tls_get_addr): Add FDPIC support.
12867 (legitimize_tls_address): Likewise.
12868 (arm_emit_tls_decoration): Likewise.
12869
12870 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12871 Mickaël Guêné <mickael.guene@st.com>
12872
12873 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
12874 support.
12875 (arm_trampoline_init): Likewise.
12876 (arm_trampoline_adjust_address): Likewise.
12877 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
12878
12879 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12880 Mickaël Guêné <mickael.guene@st.com>
12881
12882 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
12883 (legitimize_pic_address): Enforce binding rules on function
12884 pointers in FDPIC mode.
12885 (arm_assemble_integer): Likewise.
12886
12887 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12888 Mickaël Guêné <mickael.guene@st.com>
12889
12890 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
12891 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
12892 FDPIC.
12893
12894 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12895 Mickaël Guêné <mickael.guene@st.com>
12896
12897 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
12898 field.
12899
12900 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12901 Mickaël Guêné <mickael.guene@st.com>
12902
12903 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
12904 in FDPIC mode.
12905 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
12906 new function.
12907 * config/arm/arm.c (arm_option_override): Define pic register to
12908 FDPIC_REGNUM.
12909 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
12910 have no decl or go through PLT.
12911 (calculate_pic_address_constant): New function.
12912 (legitimize_pic_address): Call calculate_pic_address_constant.
12913 (arm_load_pic_register): Handle TARGET_FDPIC.
12914 (arm_is_segment_info_known): New function.
12915 (arm_pic_static_addr): Add support for FDPIC.
12916 (arm_load_function_descriptor): New function.
12917 (arm_emit_call_insn): Add support for FDPIC.
12918 (arm_assemble_integer): Add support for FDPIC.
12919 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
12920 Define. (FDPIC_REGNUM): New define.
12921 * config/arm/arm.md (call): Add support for FDPIC.
12922 (call_value): Likewise.
12923 (restore_pic_register_after_call): New pattern.
12924 (untyped_call): Disable if FDPIC.
12925 (untyped_return): Likewise.
12926 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
12927
12928 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12929 Mickaël Guêné <mickael.guene@st.com>
12930
12931 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
12932 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
12933 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
12934 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
12935 (CC1_SPEC): Use FDPIC_CC1_SPEC.
12936 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
12937 * config/arm/uclinuxfdpiceabi.h: New file.
12938
12939 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12940
12941 * config.gcc: Handle *-*-uclinuxfdpiceabi.
12942
12943 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12944 Mickaël Guêné <mickael.guene@st.com>
12945
12946 * config/arm/arm.opt: Add -mfdpic option.
12947 * doc/invoke.texi: Add documentation for -mfdpic.
12948
12949 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12950
12951 * expmed.c (extract_bit_field): Update function comment
12952 regarding alt_rtl.
12953 * expr.c (expand_expr_real): Update function comment
12954 regarding alt_rtl.
12955 (expand_misaligned_mem_ref): New helper function.
12956 (expand_expr_real_2): Use expand_misaligned_mem_ref.
12957 Remove duplicate assignment to "base" at case MEM_REF.
12958 Remove a shadowed variable "unsignedp" at case VCE.
12959
12960 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12961
12962 * regset.h (regs_invalidated_by_call_regset): Delete.
12963 (fixed_reg_set_regset): Likewise.
12964 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
12965 (fixed_reg_set_regset, persistent_obstack): Likewise.
12966 (init_reg_sets_1, globalize_reg): Update accordingly.
12967 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
12968 instead of a bitmap.
12969 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
12970 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
12971 instead of regs_invalidated_by_call_regset.
12972 (df_lr_confluence_n, df_md_confluence_n): Likewise.
12973 * df-scan.c (df_scan_start_dump): Likewise.
12974 * dse.c (copy_fixed_regs): Likewise.
12975 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
12976
12977 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12978
12979 * array-traits.h: New file.
12980 * coretypes.h (array_traits, bitmap_view): New types.
12981 * bitmap.h: Include "array-traits.h"
12982 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12983 (base_bitmap_view, bitmap_view): New classes.
12984 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12985 * hard-reg-set.h: Include array-traits.h.
12986 (array_traits<HARD_REG_SET>): New struct.
12987 * regset.h (IOR_REG_SET_HRS): New macro.
12988 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
12989 rather than iterating over each hard register.
12990 * sched-deps.c (sched_analyze_insn): Likewise.
12991 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
12992
12993 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12994
12995 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
12996 instead of a HARD_REG_SET *.
12997 * ira-build.c (ior_hard_reg_conflicts): Likewise.
12998 (ira_build): Update call accordingly.
12999 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13000
13001 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13002
13003 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13004 (HARD_REG_SET::operator!=): Likewise.
13005 (hard_reg_set_equal_p): Delete.
13006 * cfgcleanup.c (old_insns_match_p): Use == instead of
13007 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13008 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13009 (add_allocno_hard_regs_to_forest): Likewise.
13010 (setup_allocno_available_regs_num): Likewise.
13011 * ira.c (setup_pressure_classes): Likewise.
13012 (setup_allocno_and_important_classes): Likewise.
13013 (setup_reg_class_relations): Likewise.
13014 * lra-lives.c (process_bb_lives): Likewise.
13015 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13016
13017 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13018
13019 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13020 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13021 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13022 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13023 Likewise.
13024 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13025 * ira.c (setup_reg_renumber): Likewise.
13026 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13027 * regrename.c (regrename_find_superclass): Likewise.
13028 * reload1.c (find_reg): Likewise.
13029
13030 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13031
13032 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13033 * caller-save.c (setup_save_areas): Use "&~" instead of
13034 AND_COMPL_HARD_REG_SET.
13035 (save_call_clobbered_regs): Likewise.
13036 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13037 Likewise.
13038 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13039 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13040 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13041 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13042 (mips_conditional_register_usage): Likewise.
13043 * config/sh/sh.c (output_stack_adjust): Likewise.
13044 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13045 (setup_profitable_hard_regs): Likewise.
13046 (get_conflict_and_start_profitable_regs): Likewise.
13047 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13048 (ira_build_conflicts): Likewise.
13049 * ira-costs.c (restrict_cost_classes): Likewise.
13050 (setup_regno_cost_classes_by_aclass): Likewise.
13051 * ira-lives.c (process_bb_node_lives): Likewise.
13052 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13053 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13054 (setup_allocno_and_important_classes, setup_class_translate_array)
13055 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13056 Likewise.
13057 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13058 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13059 (process_alt_operands, inherit_in_ebb): Likewise.
13060 * lra-eliminations.c (update_reg_eliminate): Likewise.
13061 * lra-lives.c (process_bb_lives): Likewise.
13062 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13063 * resource.c (find_dead_or_set_registers): Likewise.
13064 (mark_target_live_regs): Likewise.
13065 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13066 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13067 (implicit_clobber_conflict_p): Likewise.
13068 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13069 (try_shrink_wrapping): Likewise.
13070
13071 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13072
13073 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13074 (HARD_REG_SET::operator|=): Likewise.
13075 (IOR_HARD_REG_SET): Delete.
13076 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13077 IOR_HARD_REG_SET.
13078 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13079 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13080 * final.c (collect_fn_hard_reg_usage): Likewise.
13081 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13082 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13083 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13084 (propagate_some_info_from_allocno): Likewise.
13085 (copy_info_to_removed_store_destinations): Likewise.
13086 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13087 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13088 (fast_allocation): Likewise.
13089 * ira-conflicts.c (ira_build_conflicts): Likewise.
13090 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13091 (process_bb_node_lives): Likewise.
13092 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13093 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13094 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13095 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13096 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13097 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13098 (process_bb_lives): Likewise.
13099 * lra-spills.c (assign_spill_hard_regs): Likewise.
13100 * postreload.c (reload_combine): Likewise.
13101 * reginfo.c (init_reg_sets_1): Likewise.
13102 * regrename.c (merge_overlapping_regs, find_rename_reg)
13103 (merge_chains): Likewise.
13104 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13105 (find_reload_regs, finish_spills, choose_reload_regs_init)
13106 (emit_reload_insns): Likewise.
13107 * reorg.c (redundant_insn): Likewise.
13108 * resource.c (find_dead_or_set_registers, mark_set_resources)
13109 (mark_target_live_regs): Likewise.
13110 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13111 * sched-deps.c (sched_analyze_insn): Likewise.
13112 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13113 (find_best_reg_for_expr): Likewise.
13114 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13115
13116 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13117
13118 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13119 (HARD_REG_SET::operator&): Likewise.
13120 (AND_HARD_REG_SET): Delete.
13121 * caller-save.c (setup_save_areas): Use "&" instead of
13122 AND_HARD_REG_SET.
13123 (save_call_clobbered_regs): Likewise.
13124 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13125 * config/m32c/m32c.c (reduce_class): Likewise.
13126 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13127 * final.c (get_call_reg_set_usage): Likewise.
13128 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13129 (setup_left_conflict_sizes_p): Likewise.
13130 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13131 (ira_build_conflicts): Likewise.
13132 * ira-costs.c (restrict_cost_classes): Likewise.
13133 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13134 (setup_reg_class_relations): Likewise.
13135 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13136 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13137 * resource.c (find_dead_or_set_registers): Likewise.
13138 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13139
13140 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13141
13142 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13143 (COMPL_HARD_REG_SET): Delete.
13144 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13145 of COMPL_HARD_REG_SET.
13146 (try_rename_operands): Likewise.
13147 * config/sh/sh.c (push_regs): Likewise.
13148 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13149 * lra-constraints.c (contains_reg_p): Likewise.
13150 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13151
13152 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13153
13154 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13155 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13156 of COPY_HARD_REG_SET.
13157 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13158 (epiphany_conditional_register_usage): Likewise.
13159 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13160 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13161 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13162 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13163 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13164 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13165 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13166 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13167 * config/sh/sh.c (output_stack_adjust): Likewise.
13168 * final.c (collect_fn_hard_reg_usage): Likewise.
13169 (get_call_reg_set_usage): Likewise.
13170 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13171 (ira_flattening): Likewise.
13172 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13173 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13174 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13175 (ira_reassign_pseudos): Likewise.
13176 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13177 (ira_build_conflicts): Likewise.
13178 * ira-costs.c (restrict_cost_classes): Likewise.
13179 (setup_regno_cost_classes_by_aclass): Likewise.
13180 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13181 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13182 (setup_stack_reg_pressure_class, setup_pressure_classes)
13183 (setup_allocno_and_important_classes, setup_class_translate_array)
13184 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13185 (ira_setup_eliminable_regset): Likewise.
13186 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13187 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13188 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13189 (process_alt_operands, inherit_in_ebb): Likewise.
13190 * lra-lives.c (process_bb_lives): Likewise.
13191 * lra-spills.c (assign_spill_hard_regs): Likewise.
13192 * lra.c (lra): Likewise.
13193 * mode-switching.c (new_seginfo): Likewise.
13194 * postreload.c (reload_combine): Likewise.
13195 * reg-stack.c (straighten_stack): Likewise.
13196 * reginfo.c (save_register_info, restore_register_info): Likewise.
13197 (init_reg_sets_1, record_subregs_of_mode): Likewise
13198 * regrename.c (create_new_chain, rename_chains): Likewise.
13199 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13200 (find_reload_regs): Likewise.
13201 * resource.c (find_dead_or_set_registers): Likewise.
13202 (mark_target_live_regs): Likewise.
13203 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13204
13205 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13206
13207 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13208 (note_pattern_stores): Declare.
13209 (note_stores): Take an rtx_insn *.
13210 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13211 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13212 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13213 (note_stores): Take an rtx_insn * as argument and process
13214 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13215 (note_pattern_stores): ...this.
13216 (find_first_parameter_load): Pass the insn rather than
13217 its pattern to note_stores.
13218 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13219 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13220 (insert_one_insn): Likewise.
13221 * combine.c (combine_instructions): Likewise.
13222 (likely_spilled_retval_p): Likewise.
13223 (try_combine): Use note_pattern_stores instead of note_stores.
13224 (record_dead_and_set_regs): Pass the insn rather than its pattern
13225 to note_stores.
13226 (reg_dead_at_p): Likewise.
13227 * config/bfin/bfin.c (workaround_speculation): Likewise.
13228 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13229 rather than an rtx.
13230 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13231 instead of note_stores.
13232 (frv_optimize_membar_local): Pass the insn rather than its pattern
13233 to note_stores.
13234 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13235 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13236 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13237 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13238 (mips_reorg_process_insns): Likewise.
13239 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13240 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13241 rather than rtxes.
13242 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13243 its pattern to note_stores.
13244 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13245 of note_stores.
13246 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13247 the insn to note_stores.
13248 (prescan_insns_for_dce): Update call accordingly.
13249 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13250 to note_stores.
13251 * df-problems.c (can_move_insns_across): Likewise.
13252 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13253 * function.c (assign_parm_setup_reg): Likewise.
13254 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13255 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13256 (single_set_gcse): Likewise.
13257 * ira.c (validate_equiv_mem): Likewise.
13258 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13259 for no_equiv.
13260 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13261 pattern to note_stores.
13262 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13263 * loop-iv.c (simplify_using_initial_values): Likewise.
13264 * mode-switching.c (optimize_mode_switching): Likewise.
13265 * optabs.c (emit_libcall_block_1): Likewise.
13266 (expand_atomic_compare_and_swap): Likewise.
13267 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13268 (record_opr_changes): Likewise. Remove explicit handling of
13269 CALL_INSN_FUNCTION_USAGE.
13270 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13271 * regcprop.c (kill_clobbered_values): Likewise.
13272 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13273 to note_stores.
13274 * regrename.c (build_def_use): Likewise.
13275 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13276 for mark_not_eliminable.
13277 (reload_as_needed): Pass the insn rather than its pattern
13278 to note_stores.
13279 (emit_output_reload_insns): Likewise.
13280 * resource.c (mark_target_live_regs): Likewise.
13281 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13282 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13283 instead of note_stores.
13284 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13285 its pattern to note_stores.
13286 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13287 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13288
13289 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13290
13291 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13292 than a #define. Use a structure rather than an array as the
13293 fallback definition. Remove special cases for low array sizes.
13294 (const_hard_reg_set): New typedef.
13295 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13296 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13297 (hard_reg_set_empty_p): Likewise.
13298 (SET_HARD_REG_BIT): Use a function rather than a macro to
13299 handle the case in which HARD_REG_SET is a structure.
13300 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13301 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13302 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13303 (IOR_COMPL_HARD_REG_SET): Likewise.
13304 (hard_reg_set_iterator::pset): Constify the pointer target.
13305 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13306 of a "const HARD_REG_SET". Update the handling of non-integer
13307 HARD_REG_SETs.
13308 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13309 * reload.h: Likewise.
13310 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13311 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13312 of a "const HARD_REG_SET".
13313 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13314 (range_in_hard_reg_set_p): Likewise.
13315 * ira-costs.c (restrict_cost_classes): Likewise.
13316 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13317 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13318 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13319 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13320 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13321 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13322 take an unsigned int and open-code the HARD_REG_SET operations.
13323
13324 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13325
13326 * Makefile.in (OBJS): Remove bt-load.o.
13327 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13328 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13329 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13330 document that the option no longer does anything.
13331 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13332 * target.def (branch_target_register_class): Delete.
13333 (branch_target_register_callee_saved): Likewise.
13334 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13335 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13336 * doc/tm.texi: Regenerate.
13337 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13338 (make_pass_branch_target_load_optimize2): Likewise.
13339 * passes.def (pass_branch_target_load_optimize1): Likewise.
13340 (pass_branch_target_load_optimize2): Likewise.
13341 * targhooks.h (default_branch_target_register_class): Likewise.
13342 * targhooks.c (default_branch_target_register_class): Likewise.
13343 * opt-suggestions.c (test_completion_valid_options): Remove
13344 -fbtr-bb-exclusive from the list of test options.
13345 * bt-load.c: Remove.
13346
13347 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13348
13349 * match.pd: Add flag_unsafe_math_optimizations check
13350 before deciding on the widest type in a binary math operation.
13351
13352 2019-09-09 Martin Liska <mliska@suse.cz>
13353
13354 * config/i386/i386.opt: Update comment of removed
13355 options that are preserved only for backward
13356 compatibility.
13357
13358 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13359
13360 PR target/87853
13361 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13362 instead of __v16qs.
13363
13364 PR target/91704
13365 * config/i386/avxintrin.h (__v32qs): New typedef.
13366 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13367 instead of __v32qi.
13368
13369 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13370
13371 * doc/invoke.texi (Option Summary): Cover eBPF.
13372 (eBPF Options): New section.
13373 * doc/extend.texi (BPF Built-in Functions): Likewise.
13374 (BPF Kernel Helpers): Likewise.
13375
13376 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13377
13378 * config.gcc: Support for bpf-*-* targets.
13379 * common/config/bpf/bpf-common.c: New file.
13380 * config/bpf/t-bpf: Likewise.
13381 * config/bpf/predicates.md: Likewise.
13382 * config/bpf/constraints.md: Likewise.
13383 * config/bpf/bpf.opt: Likewise.
13384 * config/bpf/bpf.md: Likewise.
13385 * config/bpf/bpf.h: Likewise.
13386 * config/bpf/bpf.c: Likewise.
13387 * config/bpf/bpf-protos.h: Likewise.
13388 * config/bpf/bpf-opts.h: Likewise.
13389 * config/bpf/bpf-helpers.h: Likewise.
13390 * config/bpf/bpf-helpers.def: Likewise.
13391
13392 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13393
13394 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13395 indirect_calls.
13396
13397 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13398
13399 * opt-functions.awk (integer_range_info): Make sure values are in
13400 numeric context before operating with them.
13401
13402 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13403
13404 * genemit.c (gen_split): Print the filename and line number where the
13405 splitter (or peephole2) was defined, to the dump file.
13406
13407 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13408
13409 PR tree-optimization/91665
13410 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13411 incompatible with the type of PHI result.
13412
13413 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13414
13415 PR target/91684
13416 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13417 gen_unaligned_storedi for 4-byte aligned addresses.
13418
13419 2019-09-06 Jim Wilson <jimw@sifive.com>
13420
13421 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13422 change.
13423
13424 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13425
13426 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13427
13428 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13429
13430 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13431 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13432
13433 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13434
13435 PR target/91654
13436 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13437 cost of SSE->integer and integer->SSE moves from 2 to 6.
13438 (core_cost): Ditto.
13439
13440 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13441
13442 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13443 before testing TYPE_TRANSPARENT_AGGR.
13444 * calls.c (initialize_argument_information, load_register_parameters):
13445 Likewise.
13446
13447 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13448
13449 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13450 high regs.
13451 (cmp_ior): Likewise.
13452
13453 2019-09-06 Martin Liska <mliska@suse.cz>
13454
13455 * doc/match-and-simplify.texi: Separate tuples with ;.
13456
13457 2019-09-06 Martin Liska <mliska@suse.cz>
13458
13459 PR c++/91125
13460 * Makefile.in: Remove tlink.o.
13461 * collect2.c (do_link): New function isolated
13462 from do_tlink.
13463 (main): Use.
13464 * collect2.h (do_tlink): Remove declaration of do_tlink.
13465 * doc/extend.texi: Remove documentation of -frepo.
13466 * doc/invoke.texi: Likewise.
13467 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13468 * tlink.c: Remove.
13469
13470 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13471 Jim Wilson <jimw@sifive.com>
13472
13473 PR target/91635
13474 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13475 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13476 paradoxical_subreg_p (operands[0]).
13477 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13478 use as intermediate value.
13479
13480 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13481
13482 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13483 (sync_compare_and_swap<mode>_insn): Likewise.
13484
13485 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13486
13487 PR middle-end/91615
13488 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13489 without movmisalign optab.
13490
13491 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13492
13493 PR middle-end/91001
13494 PR middle-end/91105
13495 PR middle-end/91106
13496 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13497 types, use type of their first field instead of type of
13498 args[i].tree_value.
13499
13500 2019-09-05 Richard Biener <rguenther@suse.de>
13501
13502 PR rtl-optimization/91656
13503 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13504 of early out.
13505
13506 2019-09-05 Richard Biener <rguenther@suse.de>
13507
13508 PR middle-end/90501
13509 * tree-inline.c (declare_return_variable): Mark the return
13510 slot as addressable after building an address of it.
13511
13512 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13513
13514 * doc/install.texi: Update and clarify requirements to build GNAT.
13515
13516 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13517
13518 PR middle-end/91577
13519 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13520 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13521 call to be in memory.
13522 (pass_expand::execute): Call discover_nonconstant_array_refs before
13523 setting currently_expanding_to_rtl.
13524
13525 2019-09-04 Caroline Tice <cmtice@google.com>
13526
13527 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13528 specified together.
13529
13530 2019-09-04 Marek Polacek <polacek@redhat.com>
13531
13532 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13533
13534 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13535
13536 PR target/32413
13537 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13538 for QI and HImode moves between SSE and general registers.
13539
13540 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13541
13542 PR c/78736
13543 * doc/invoke.texi: Document -Wenum-conversion.
13544
13545 2019-09-04 Richard Biener <rguenther@suse.de>
13546
13547 PR rtl-optimization/36262
13548 * postreload-gcse.c: Include intl.h and gcse.h.
13549 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13550 to avoid linear list walk.
13551 (record_last_mem_set_info): Gate off if not computing transparentness.
13552 (get_bb_avail_insn): If transparentness isn't computed give up
13553 early.
13554 (gcse_after_reload_main): Skip compute_transp and extended PRE
13555 if gcse_or_cprop_is_too_expensive says so.
13556
13557 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13558
13559 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13560 noinit section.
13561 (msp430_select_section): Handle decls with the "noinit" attribute with
13562 default_elf_select_section.
13563 Handle SECCAT_RODATA_MERGE_* section types with
13564 default_elf_select_section.
13565 Add comments about handling of unsupported section types.
13566 (msp430_section_type_flags): Remove handling of the noinit section.
13567
13568 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13569
13570 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13571 conflicting msp430-specific attributes.
13572 (msp430_section_attr): Likewise.
13573 Add warnings about conflicts with generic "noinit" and "section"
13574 attributes.
13575 Fix grammar in -mlarge error message.
13576 (msp430_data_attr): Rename to msp430_persist_attr.
13577 Add warnings about conflicts with generic "noinit" and "section"
13578 attributes.
13579 Add warning for when variable is not initialized.
13580 Chain conditionals which prevent the attribute being added.
13581 (ATTR_EXCL): New helper.
13582 (attr_reent_exclusions): New exclusion table.
13583 (attr_naked_exclusions): Likewise.
13584 (attr_crit_exclusions): Likewise.
13585 (attr_lower_exclusions): Likewise.
13586 (attr_upper_exclusions): Likewise.
13587 (attr_either_exclusions): Likewise.
13588 (attr_persist_exclusions): Likewise.
13589 (msp430_attribute_table): Update with exclusion rules.
13590 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13591 has a section.
13592
13593 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13594
13595 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13596 (msp430_handle_generic_attribute): New function.
13597 * doc/tm.texi: Regenerate.
13598 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13599 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13600 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13601 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13602
13603 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13604
13605 PR tree-optimization/91504
13606 * match.pd: Add ((~a & b) ^a) --> (a | b).
13607
13608 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13609
13610 PR target/91604
13611 * config/i386/i386-expand.c (split_double_mode): If there is more than
13612 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13613 already split matching MEM operand instead of calling adjust_address
13614 again.
13615
13616 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13617
13618 * config.gcc: Obsolete spu target. Remove references to spu.
13619 * configure.ac: Remove references to spu.
13620 * configure: Regenerate.
13621 * config/spu/: Remove directory.
13622 * common/config/spu/: Remove directory.
13623
13624 * doc/extend.texi: Remove references to spu.
13625 * doc/invoke.texi: Likewise.
13626 * doc/md.texi: Likewise.
13627 * doc/sourcebuild.texi: Likewise.
13628
13629 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13630
13631 PR middle-end/91603
13632 PR middle-end/91612
13633 PR middle-end/91613
13634 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13635 and SSA_NAME referring to CONSTANT_P correctly.
13636
13637 2019-09-03 Richard Biener <rguenther@suse.de>
13638
13639 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13640 (vn_nary_op_insert): Likewise.
13641 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13642 (vn_nary_op_lookup): Likewise.
13643 (vn_nary_op_insert): Likewise.
13644
13645 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13646
13647 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13648 (*op0, 1) instead of XEXP (*op1, 0).
13649
13650 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13651
13652 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13653 (aarch64_fjcvtzs): New define_insn.
13654 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13655 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13656 Add AARCH64_JSCVT.
13657 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13658 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13659 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13660 __ARM_FEATURE_JCVT where appropriate.
13661 * config/aarch64/arm_acle.h (__jcvt): Define.
13662
13663 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13664
13665 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13666 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13667 (aarch64_<frintnzs_op><mode>): New define_insn.
13668 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13669 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13670 __ARM_FEATURE_FRINT when appropriate.
13671 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13672 frint32x, frint64z, frint64x.
13673 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13674 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13675 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13676 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13677 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13678 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13679 * config/aarch64/iterators.md (VSFDF): Define.
13680 (FRINTNZX): Likewise.
13681 (frintnzs_op): Likewise.
13682
13683 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13684
13685 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13686 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13687 Cortex-A34.
13688 * config/aarch64/aarch64-tune.md: Regenerated.
13689 * doc/invoke.texi: Document the new processors.
13690
13691 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13692
13693 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13694 string.
13695 (ssbs): Likewise.
13696 (sve2): Likewise.
13697 (sve2-sm4): Likewise.
13698 (sveaes): Likewise.
13699 (svesha3): Likewise.
13700 (svebitperm): Likewise.
13701
13702 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13703 Richard Biener <rguenther@suse.de>
13704
13705 PR tree-optimization/91597
13706 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13707 BIT_AND_EXPR optimization for pointers, even if both operand
13708 ranges don't include NULL, the result can be NULL.
13709
13710 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13711
13712 PR middle-end/91605
13713 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13714 (non_mem_decl_p): ...this.
13715 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13716 (expand_assignment): Call mem_ref_referes_to_non_mem_p
13717 unconditionally as before.
13718
13719 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13720
13721 PR target/91323
13722 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13723 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
13724 * tree.def (LTGT_EXPR): Likewise.
13725 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13726
13727 2019-09-02 Jakub Jelinek <jakub@redhat.com>
13728
13729 PR go/91617
13730 * fold-const.c (range_check_type): For enumeral and boolean
13731 type, pass 1 to type_for_size langhook instead of
13732 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
13733 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13734 (build_range_check): Don't call unsigned_type_for for pointer types.
13735 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13736 range_check_type result.
13737
13738 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13739
13740 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13741 (replace_ref): Do not replace a chain of only two candidates which are
13742 valid memory references.
13743
13744 2019-09-02 Martin Liska <mliska@suse.cz>
13745
13746 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13747 Bail out when we'll end up with the same number of clusters as
13748 at the beginning.
13749 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13750 (jump_table_cluster::can_be_handled): Remove the guard
13751 as it's already handled in ::is_enabled. Allocate output
13752 after early bail out.
13753
13754 2019-09-02 Martin Liska <mliska@suse.cz>
13755
13756 PR gcov-profile/91601
13757 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
13758 (path_contains_zero_or_negative_cycle_arc): ... this and handle
13759 also negative edges.
13760 (circuit): Handle also negative edges as they can happen
13761 in some situations.
13762
13763 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
13764
13765 PR target/91472
13766 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
13767 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
13768 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
13769
13770 2019-09-01 Jakub Jelinek <jakub@redhat.com>
13771
13772 PR middle-end/91623
13773 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
13774 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
13775 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
13776 zero vector.
13777
13778 PR lto/91572
13779 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
13780 GIMPLE_ASM TREE_LIST operands.
13781
13782 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
13783
13784 * doc/generic.texi (Unary and Binary Expressions): Mark up
13785 an instance of TYPE_MIN.
13786
13787 2019-08-31 Stafford Horne <shorne@gmail.com>
13788
13789 * config/or1k/constraints.md (t): New constraint.
13790 * config/or1k/or1k.h (GOT_REGS): New register class.
13791 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
13792
13793 2019-08-30 Jim Wilson <jimw@sifive.com>
13794
13795 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
13796 and -fpic and -mplt then disable -msave-restore and warn.
13797
13798 2019-08-30 Martin Sebor <msebor@redhat.com>
13799
13800 PR middle-end/91599
13801 * tree-ssa-strlen.c (handle_store): Use a fallback location if
13802 the statement doesn't have one.
13803 * gimple-pretty-print.c (percent_G_format): Same.
13804
13805 PR middle-end/91584
13806 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
13807 before using them to validate MEM_REF offset.
13808
13809 2019-08-30 Marek Polacek <polacek@redhat.com>
13810
13811 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
13812
13813 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13814
13815 * config/arm/arm.md (unaligned_loaddi,
13816 unaligned_storedi): New unspec insn patterns.
13817 * config/arm/neon.md (unaligned_storev8qi): Likewise.
13818 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
13819 and unaligned_storedi for 4-byte aligned memory.
13820 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
13821 4-byte aligned memory.
13822
13823 2019-08-30 Martin Jambor <mjambor@suse.cz>
13824
13825 tree-optimization/91579
13826 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
13827 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
13828 appropriate.
13829 (arg_needs_copy_p): Removed.
13830 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
13831 arg_needs_copy_p.
13832 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
13833
13834 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13835
13836 * config/i386/i386-features.c
13837 (general_scalar_chain::compute_convert_gain):
13838 Correct cost for double-word shifts.
13839 (general_scalar_to_vector_candidate_p): Reject count operands
13840 greater or equal to mode bitsize.
13841
13842 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13843
13844 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13845 for moves between SSE and non-general registers and between
13846 mask and non-general registers.
13847 (ix86_register_move_cost): Remove stalled comment.
13848
13849 2019-08-29 Richard Biener <rguenther@suse.de>
13850
13851 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13852 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
13853
13854 2019-08-29 Richard Biener <rguenther@suse.de>
13855
13856 PR bootstrap/91580
13857 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13858 Do not emit scalar copies for debug-insns, instead replace
13859 their uses with the reg copy used in the chain or reset them
13860 if there is a reaching definition outside of the chain as well.
13861
13862 2019-08-29 Jakub Jelinek <jakub@redhat.com>
13863
13864 PR target/91560
13865 * config/i386/i386-expand.c (expand_vec_perm_movs,
13866 expand_vec_perm_blend, expand_vec_perm_vpermil,
13867 expand_vec_perm_pshufb, expand_vec_perm_1,
13868 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
13869 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
13870 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
13871 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
13872 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
13873 comments - replace ix86_expand_vec_perm_builtin_1 with
13874 ix86_expand_vec_perm_const_1.
13875 (expand_vec_perm2_vperm2f128_vblend): New function.
13876 (ix86_expand_vec_perm_const_1): New forward declaration. Call
13877 expand_vec_perm2_vperm2f128_vblend as last resort.
13878 (canonicalize_perm): Formatting fix.
13879
13880 PR tree-optimization/91351
13881 * tree-cfg.c (generate_range_test): Use range_check_type instead of
13882 unsigned_type_for.
13883 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
13884 range_check_type returns NULL.
13885 * tree-switch-conversion.c (switch_conversion::build_one_array):
13886 Use range_check_type instead of unsigned_type_for, don't perform
13887 linear opt if it returns NULL.
13888 (bit_test_cluster::find_bit_tests): Formatting fix.
13889 (bit_test_cluster::emit): Use range_check_type instead of
13890 unsigned_type_for.
13891 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
13892 returns NULL.
13893
13894 2019-08-29 Richard Biener <rguenther@suse.de>
13895
13896 PR tree-optimization/91568
13897 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
13898 (vect_update_max_nunits): Add overload for poly_uint64.
13899 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
13900 (vect_build_slp_tree): Record max_nunits into the subtree
13901 and merge it upwards.
13902 (vect_print_slp_tree): Print max_nunits.
13903
13904 2019-08-28 Marek Polacek <polacek@redhat.com>
13905
13906 Implement P1152R4: Deprecating some uses of volatile.
13907 PR c++/91361
13908 * doc/invoke.texi: Document -Wvolatile.
13909
13910 2019-08-28 Marek Polacek <polacek@redhat.com>
13911
13912 PR c++/91360 - Implement C++20 P1143R2: constinit.
13913 * doc/invoke.texi: Document -Wc++20-compat.
13914
13915 2019-08-28 Martin Sebor <msebor@redhat.com>
13916
13917 PR tree-optimization/91457
13918 * builtins.c (component_size): New function.
13919 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
13920 * builtins.h (compute_objsize): Add argument.
13921 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
13922 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
13923 (vrp_prop::check_mem_ref): Same.
13924 (vrp_prop::search_for_addr_array): Set no-warning bit.
13925 (check_array_bounds): Same.
13926
13927 2019-08-28 Martin Sebor <msebor@redhat.com>
13928
13929 PR driver/80545
13930 * opts-common.c (option_enabled): Correct checking for language
13931 options.
13932
13933 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
13934
13935 * config/i386/i386.c (ix86_register_move_cost): Do not
13936 limit the cost of moves to/from XMM register to minimum 8.
13937
13938 2019-08-28 Martin Jambor <mjambor@suse.cz>
13939
13940 PR ipa/91468
13941 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
13942 checking assert a normal assert to test it really is redundant.
13943 * ipa-prop.c (compute_complex_assign_jump_func): Removed
13944 redundant test.
13945 (update_jump_functions_after_inlining): Removed combining unary
13946 arithmetic operations with an ancestor jump function.
13947 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
13948 instead of t.
13949
13950 2019-08-28 Richard Biener <rguenther@suse.de>
13951
13952 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
13953 add the MD problem.
13954
13955 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13956 Richard Biener <rguenther@suse.de>
13957
13958 * expr.c (expand_assignment): Handle misaligned DECLs.
13959 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
13960 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
13961 too.
13962 (assign_parm_setup_stack): Allocate properly aligned stack slots.
13963 * varasm.c (build_constant_desc): Align constants of misaligned types.
13964 * config/arm/predicates.md (aligned_operand): New predicate.
13965 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
13966 aligned_operand to check restrictions on memory addresses.
13967 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
13968 * config/arm/vec-common.md (mov<VALL>): Likewise.
13969
13970 2019-08-28 Jakub Jelinek <jakub@redhat.com>
13971
13972 PR libgomp/91530
13973 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
13974 V_128 iterator instead of VI_128.
13975
13976 2019-08-28 Martin Liska <mliska@suse.cz>
13977
13978 PR tree-optimization/90970
13979 * builtins.c (check_access): Remove assignment to maxread
13980 as it hasn't been used since when it was introduced in r255755.
13981
13982 2019-08-27 Martin Sebor <msebor@redhat.com>
13983
13984 PR tree-optimization/91567
13985 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
13986 of unknown strings.
13987 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
13988 to PTRDIFF_MAX - 2.
13989
13990 2019-08-27 Jeff Law <law@redhat.com>
13991
13992 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
13993 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
13994
13995 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
13996
13997 PR target/91528
13998 * config/i386/i386-features.c (convert_scalars_to_vector):
13999 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14000 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14001 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14002 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14003
14004 2019-08-27 Richard Biener <rguenther@suse.de>
14005
14006 * config/i386/i386-features.h
14007 (general_scalar_chain::~general_scalar_chain): Add.
14008 (general_scalar_chain::insns_conv): New bitmap.
14009 (general_scalar_chain::n_sse_to_integer): New.
14010 (general_scalar_chain::n_integer_to_sse): Likewise.
14011 (general_scalar_chain::make_vector_copies): Adjust signature.
14012 * config/i386/i386-features.c
14013 (general_scalar_chain::general_scalar_chain): Outline,
14014 initialize new members.
14015 (general_scalar_chain::~general_scalar_chain): New.
14016 (general_scalar_chain::mark_dual_mode_def): Record insns
14017 we need to insert conversions at and count them.
14018 (general_scalar_chain::compute_convert_gain): Account
14019 for conversion instructions at chain boundary.
14020 (general_scalar_chain::make_vector_copies): Generate a single
14021 copy for a def by a specific insn.
14022 (general_scalar_chain::convert_registers): First populate
14023 defs_map, then make copies at out-of chain insns.
14024
14025 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14026
14027 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14028 comment.
14029 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14030
14031 2019-08-27 Martin Liska <mliska@suse.cz>
14032
14033 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14034 loop.
14035 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14036 Enclose in anonymous namespace.
14037 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14038 hard_register initialization in braces.
14039 * tree-vrp.h (value_range_base::supports_type_p): Return false
14040 for function with boolean return type.
14041
14042 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14043
14044 * config/i386/i386.c (emit_i387_cw_initialization)
14045 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14046
14047 2019-08-26 Martin Sebor <msebor@redhat.com>
14048
14049 PR c++/83431
14050 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14051 (sprintf_dom_walker): Remove class.
14052 (get_int_range): Make argument const.
14053 (directive::fmtfunc, directive::set_precision): Same.
14054 (format_none): Same.
14055 (build_intmax_type_nodes): Same.
14056 (adjust_range_for_overflow): Same.
14057 (format_floating): Same.
14058 (format_character): Same.
14059 (format_string): Same.
14060 (format_plain): Same.
14061 (get_int_range): Cast away constness.
14062 (format_integer): Same.
14063 (get_string_length): Call get_range_strlen_dynamic. Handle
14064 null lendata.maxbound.
14065 (should_warn_p): Adjust argument scope qualifier.
14066 (maybe_warn): Same.
14067 (format_directive): Same.
14068 (parse_directive): Same.
14069 (is_call_safe): Same.
14070 (try_substitute_return_value): Same.
14071 (sprintf_dom_walker::handle_printf_call): Rename...
14072 (handle_printf_call): ...to this. Initialize target to host charmap
14073 here instead of in pass_sprintf_length::execute.
14074 (struct call_info): Make global.
14075 (sprintf_dom_walker::compute_format_length): Make global.
14076 (sprintf_dom_walker::handle_gimple_call): Same.
14077 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14078 * print-rtl.c (print_pattern): Reduce the number of spaces to
14079 avoid -Wformat-truncation.
14080 * tree-pass.h (make_pass_warn_printf): New function.
14081 * tree-ssa-strlen.c (strlen_optimize): New variable.
14082 (get_string_length): Add comments.
14083 (get_range_strlen_dynamic): New function.
14084 (check_and_optimize_call): New function.
14085 (handle_integral_assign): New function.
14086 (strlen_check_and_optimize_stmt): Factor code out into
14087 strlen_check_and_optimize_call and handle_integral_assign.
14088 (strlen_dom_walker::evrp): New member.
14089 (strlen_dom_walker::before_dom_children): Use evrp member.
14090 (strlen_dom_walker::after_dom_children): Use evrp member.
14091 (printf_strlen_execute): New function.
14092 (pass_strlen::gate): Update to handle printf calls.
14093 (dump_strlen_info): New function.
14094 (pass_data_warn_printf): New variable.
14095 (pass_warn_printf): New class.
14096 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14097 (handle_printf_call): Same.
14098 * tree-vrp.c (value_range_base::type): Adjust assertion.
14099 * vr-values.c (vr_values::update_value_range): Use type of the first
14100 argument rather than the second.
14101
14102 2019-08-26 Richard Biener <rguenther@suse.de>
14103
14104 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14105 Remove.
14106 (convert_scalars_to_vector): Do not call it.
14107
14108 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14109 Uros Bizjak <ubizjak@gmail.com>
14110
14111 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14112 CASE_MATHFN_FLOATN for roundeven.
14113 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14114 I387_ROUNDEVEN.
14115 (ix86_mode_needed): Likewise.
14116 (ix86_mode_after): Likewise.
14117 (ix86_mode_entry): Likewise.
14118 (ix86_mode_exit): Likewise.
14119 (ix86_emit_mode_set): Likewise.
14120 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14121 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14122 (ix86_entity): Add I387_ROUNDEVEN.
14123 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14124 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14125 (define_int_iterator): Likewise.
14126 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14127 (define_constant): Define ROUND_ROUNDEVEN mode.
14128 (define_attr): Add roundeven mode for i387_cw.
14129 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14130 * internal-fn.def (ROUNDEVEN): New builtin function.
14131 * optabs.def (roundeven_optab): New optab.
14132
14133 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14134
14135 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14136 for ROUNDEVEN.
14137 * builtins.def: Added function definitions for roundeven function
14138 variants.
14139 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14140 function call. Adjust condition for floor, ceil, trunc and round.
14141 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14142 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14143 (integer_valued_real_call_p): Added case for roundeven function.
14144 * real.c (is_even): New function. Returns true if real number is even,
14145 otherwise returns false.
14146 (is_halfway_below): New function. Returns true if real number is
14147 halfway between two integers, else return false.
14148 (real_roundeven): New function. Round real number to nearest integer,
14149 rounding halfway cases towards even.
14150 * real.h (real_value): Added descriptive comments. Added function
14151 declaration for roundeven function.
14152 * doc/extend.texi (Other Builtins): List roundeven variants among
14153 functions which can be handled as builtins.
14154
14155 2019-08-26 Richard Biener <rguenther@suse.de>
14156
14157 PR target/91522
14158 PR target/91527
14159 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14160 New member.
14161 (general_scalar_chain::replace_with_subreg): Remove.
14162 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14163 (general_scalar_chain::convert_reg): Adjust signature.
14164 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14165 iterate over all defs of a reg.
14166 (general_scalar_chain::replace_with_subreg): Remove.
14167 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14168 (general_scalar_chain::make_vector_copies): Populate defs_map,
14169 place copy only after defs that are used as vectors in the chain.
14170 (general_scalar_chain::convert_reg): Emit a copy for a specific
14171 def in a specific instruction.
14172 (general_scalar_chain::convert_op): All reg uses are converted here.
14173 (general_scalar_chain::convert_insn): Emit copies for scalar
14174 uses of defs here. Replace uses with the copies we created.
14175 Replace and convert the def. Adjust REG_DEAD notes, remove
14176 REG_EQUIV/EQUAL notes.
14177 (general_scalar_chain::convert_registers): Only handle copies
14178 into the chain here.
14179
14180 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14181
14182 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14183
14184 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14185
14186 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14187 Add nop_convert case.
14188 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14189 Fold all statements if requested.
14190 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14191 Allow to fold all statements.
14192 * tree-vrp.c (class vrp_folder):
14193 Let substitute_and_fold_engine fold all statements.
14194
14195 2019-08-26 Richard Biener <rguenther@suse.de>
14196
14197 PR tree-optimization/91526
14198 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14199 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14200 TODO_update_address_taken.
14201
14202 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14203
14204 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14205 __STDC_HOSTED__.
14206
14207 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14208
14209 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14210 machine mode for unspec_volatile operand.
14211
14212 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14213
14214 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14215 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14216 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14217 (prefer_neon_for_64bits): Remove.
14218 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14219 (tune_params): Remove PREF_NEON_64_FALSE uses.
14220 (arm_option_override): Remove prefer_neon selection code.
14221 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14222 * config/arm/arm-protos.h (tune_params): Remove
14223 prefer_neon_for_64bits.
14224 (prefer_neon_for_64bits): Remove.
14225
14226 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14227
14228 PR pch/61250
14229 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14230 and issue any diagnostics needed before collecting the pre-PCH
14231 state.
14232
14233 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14234
14235 PR middle-end/91283
14236 * common.opt (fexcess-precision=): Add Optimization flag. Use
14237 flag_excess_precision variable instead of
14238 flag_excess_precision_cmdline.
14239 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14240 member.
14241 (flag_excess_precision): Don't define.
14242 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14243 flag_excess_precision_cmdline. Remove comment.
14244 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14245 and x_flag_excess_precision instead of
14246 frontend_set_flag_excess_precision_cmdline and
14247 x_flag_excess_precision_cmdline.
14248 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14249 x_flag_excess_precision_cmdline.
14250 * toplev.c (init_excess_precision): Remove.
14251 (lang_dependent_init_target): Don't call it.
14252
14253 2019-08-23 Martin Liska <mliska@suse.cz>
14254
14255 * lto-wrapper.c (run_gcc): When setting jobserver
14256 set also parallel to 1. This was done so before r273908.
14257
14258 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14259
14260 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14261 (cortex-a76ae): Likewise.
14262 (cortex-a77): Likewise
14263 * config/arm/arm-tables.opt: Regenerate.
14264 * config/arm/arm-tune.md: Likewise.
14265 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14266 cortex-a77 CPU options.
14267
14268 2019-08-23 Martin Liska <mliska@suse.cz>
14269
14270 * profile.c (instrument_values): Do not set
14271 0 as last argument.
14272 * tree-profile.c (gimple_gen_interval_profiler): Remove
14273 last argument.
14274 (gimple_gen_pow2_profiler): Likewise.
14275 (gimple_gen_topn_values_profiler): Likewise.
14276 (gimple_gen_ic_profiler): Likewise.
14277 (gimple_gen_time_profiler): Likewise.
14278 (gimple_gen_average_profiler): Likewise.
14279 (gimple_gen_ior_profiler): Likewise.
14280 * value-prof.c (dump_histogram_value): Use default
14281 in switch statement instead of HIST_TYPE_MAX.
14282 (stream_in_histogram_value): Likewise.
14283 (gimple_duplicate_stmt_histograms): Do not
14284 use NULL for implicitly set arguments.
14285 (gimple_divmod_values_to_profile): Do not use
14286 reserve+quick_push.
14287 (gimple_indirect_call_to_profile): Likewise.
14288 (gimple_find_values_to_profile): Use implicit
14289 function call arguments.
14290 * value-prof.h (gimple_alloc_histogram_value):
14291 Set default values.
14292 (gimple_gen_interval_profiler): Remove last argument.
14293 (gimple_gen_pow2_profiler): Likewise.
14294 (gimple_gen_topn_values_profiler): Likewise.
14295 (gimple_gen_ic_profiler): Likewise.
14296 (gimple_gen_time_profiler): Likewise.
14297 (gimple_gen_average_profiler): Likewise.
14298 (gimple_gen_ior_profiler): Likewise.
14299
14300 2019-08-22 Martin Sebor <msebor@redhat.com>
14301
14302 PR middle-end/91490
14303 * builtins.c (c_strlen): Rename argument and introduce new local.
14304 Set no-warning bit on original argument.
14305 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14306 Fold empty and zero constructors into empty strings.
14307 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14308 for missing initializers.
14309 * tree.c (build_string_literal): Handle optional argument.
14310 * tree.h (build_string_literal): Add defaulted argument.
14311 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14312 no-warning bit on original expression.
14313
14314 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14315
14316 PR target/91481
14317 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14318 and UNSPEC_DARN_RAW.
14319 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14320 UNSPECV_DARN_RAW.
14321 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14322 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14323 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14324
14325 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14326
14327 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14328 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14329 * config/rs6000/rs6000.md (unspec): ... here.
14330 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14331 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14332 cmpeqb, *cmpeqb_internal): Delete, move to...
14333 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14334 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14335 cmpeqb, *cmpeqb_internal): ... here.
14336
14337 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14338
14339 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14340 intrinsics if __ARM_FP.
14341 Use __ARM_FEATURE_CRC32 ifdef guard.
14342
14343 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14344
14345 * config/arm/arm.md (neon_for_64bits): Remove.
14346 (avoid_neon_for_64bits): Remove.
14347 (arm_adddi3): Always split early.
14348 (arm_subdi3): Always split early.
14349 (negdi2): Remove Neon expansion.
14350 (split zero_extend): Split before reload.
14351 (split sign_extend): Split before reload.
14352
14353 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14354
14355 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14356 (qhs_extenddi_cstr): Likewise.
14357 * config/arm/arm.md (ashldi3): Always expand early.
14358 (ashlsi3): Likewise.
14359 (ashrsi3): Likewise.
14360 (zero_extend<mode>di2): Remove Neon variants.
14361 (extend<mode>di2): Likewise.
14362 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14363 (signed_shift_di3_neon): Likewise.
14364 (unsigned_shift_di3_neon): Likewise.
14365 (ashrdi3_neon_imm_noclobber): Likewise.
14366 (lshrdi3_neon_imm_noclobber): Likewise.
14367 (<shift>di3_neon): Likewise.
14368 (split extend): Remove DI extend split patterns.
14369
14370 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14371
14372 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14373 (split not): Add DImode not splitter.
14374 (anddi3): Remove pattern.
14375 (anddi3_insn): Likewise.
14376 (anddi_zesidi_di): Likewise.
14377 (anddi_sesdi_di): Likewise.
14378 (anddi_notdi_di): Likewise.
14379 (anddi_notzesidi_di): Likewise.
14380 (anddi_notsesidi_di): Likewise.
14381 (iordi3): Likewise.
14382 (iordi3_insn): Likewise.
14383 (iordi_zesidi_di): Likewise.
14384 (iordi_sesidi_di): Likewise.
14385 (xordi3): Likewise.
14386 (xordi3_insn): Likewise.
14387 (xordi_sesidi_di): Likewise.
14388 (xordi_zesidi_di): Likewise.
14389 (one_cmpldi2): Likewise.
14390 (one_cmpldi2_insn): Likewise.
14391 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14392 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14393 alternative.
14394 (iwmmxt_xordi3): Likewise.
14395 (iwmmxt_anddi3): Likewise.
14396 * config/arm/neon.md (orndi3_neon): Remove pattern.
14397 (anddi_notdi_di): Likewise.
14398 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14399 (arm_iordi_operand_neon): Likewise.
14400 (arm_xordi_operand_neon): Likewise.
14401 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14402 (iordi_notzesidi_di): Likewise.
14403 (iordi_notdi_zesidi): Likewise.
14404 (iordi_notsesidi_di): Likewise.
14405
14406 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14407
14408 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14409 insn.
14410 (iorsi3_compare0_scratch): Likewise.
14411
14412 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14413
14414 * config/aarch64/aarch64-simd-builtins.def:
14415 (ld1x4): New.
14416 (st1x4): Likewise.
14417 * config/aarch64/aarch64-simd.md:
14418 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14419 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14420 (aarch64_ld1_x4_<mode>): Likewise.
14421 (aarch64_st1_x4_<mode>): Likewise.
14422 * config/aarch64/arm_neon.h:
14423 (vld1_s8_x4): New function.
14424 (vld1q_s8_x4): Likewise.
14425 (vld1_s16_x4): Likewise.
14426 (vld1q_s16_x4): Likewise.
14427 (vld1_s32_x4): Likewise.
14428 (vld1q_s32_x4): Likewise.
14429 (vld1_u8_x4): Likewise.
14430 (vld1q_u8_x4): Likewise.
14431 (vld1_u16_x4): Likewise.
14432 (vld1q_u16_x4): Likewise.
14433 (vld1_u32_x4): Likewise.
14434 (vld1q_u32_x4): Likewise.
14435 (vld1_f16_x4): Likewise.
14436 (vld1q_f16_x4): Likewise.
14437 (vld1_f32_x4): Likewise.
14438 (vld1q_f32_x4): Likewise.
14439 (vld1_p8_x4): Likewise.
14440 (vld1q_p8_x4): Likewise.
14441 (vld1_p16_x4): Likewise.
14442 (vld1q_p16_x4): Likewise.
14443 (vld1_s64_x4): Likewise.
14444 (vld1_u64_x4): Likewise.
14445 (vld1_p64_x4): Likewise.
14446 (vld1q_s64_x4): Likewise.
14447 (vld1q_u64_x4): Likewise.
14448 (vld1q_p64_x4): Likewise.
14449 (vld1_f64_x4): Likewise.
14450 (vld1q_f64_x4): Likewise.
14451 (vst1_s8_x4): Likewise.
14452 (vst1q_s8_x4): Likewise.
14453 (vst1_s16_x4): Likewise.
14454 (vst1q_s16_x4): Likewise.
14455 (vst1_s32_x4): Likewise.
14456 (vst1q_s32_x4): Likewise.
14457 (vst1_u8_x4): Likewise.
14458 (vst1q_u8_x4): Likewise.
14459 (vst1_u16_x4): Likewise.
14460 (vst1q_u16_x4): Likewise.
14461 (vst1_u32_x4): Likewise.
14462 (vst1q_u32_x4): Likewise.
14463 (vst1_f16_x4): Likewise.
14464 (vst1q_f16_x4): Likewise.
14465 (vst1_f32_x4): Likewise.
14466 (vst1q_f32_x4): Likewise.
14467 (vst1_p8_x4): Likewise.
14468 (vst1q_p8_x4): Likewise.
14469 (vst1_p16_x4): Likewise.
14470 (vst1q_p16_x4): Likewise.
14471 (vst1_s64_x4): Likewise.
14472 (vst1_u64_x4): Likewise.
14473 (vst1_p64_x4): Likewise.
14474 (vst1q_s64_x4): Likewise.
14475 (vst1q_u64_x4): Likewise.
14476 (vst1q_p64_x4): Likewise.
14477 (vst1_f64_x4): Likewise.
14478 (vst1q_f64_x4): Likewise.
14479
14480 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14481
14482 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14483
14484 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14485 Richard Sandiford <richard.sandiford@arm.com>
14486
14487 PR target/88839
14488 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14489 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14490
14491 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14492
14493 PR target/90724
14494 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14495 in reg if it fails aarch64_plus_operand predicate.
14496
14497 2019-08-21 Richard Biener <rguenther@suse.de>
14498
14499 PR tree-optimization/91482
14500 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14501 BUILT_IN_ASSUME_ALIGNED calls.
14502
14503 2019-08-21 Richard Biener <rguenther@suse.de>
14504
14505 PR target/91498
14506 PR target/91503
14507 * config/i386/i386-features.c
14508 (general_scalar_chain::make_vector_copies): Copy stack temporary
14509 rtx when using it multiple times.
14510 (general_scalar_chain::convert_reg): Likewise.
14511
14512 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14513
14514 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14515
14516 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14517
14518 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14519 catch more redundant zero initialization cases.
14520 (dse_dom_walker::dse_optimize_stmt): Likewise.
14521
14522 2019-08-20 Richard Biener <rguenther@suse.de>
14523
14524 PR lto/91307
14525 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14526 by collect2 when targetm.have_ctors_dtors which avoids dragging
14527 in temporary filenames from LTO input objects.
14528
14529 2019-08-20 Richard Biener <rguenther@suse.de>
14530
14531 PR tree-optimization/37242
14532 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14533 to (T)a + (T)b if we know that a + b does not overflow.
14534
14535 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14536
14537 PR rtl-optimization/91347
14538 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14539 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14540
14541 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14542
14543 * calls.h (function_arg_info): Add a pass_by_reference field,
14544 defaulting to false.
14545 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14546 when applying pass-by-reference semantics.
14547 (initialize_argument_information): Likewise.
14548 (emit_library_call_value_1): Likewise.
14549 * function.c (assign_parm_data_one): Remove passed_pointer field.
14550 (assign_parm_find_data_types): Don't set it.
14551 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14552 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14553 arg.pass_by_reference instead of passed_pointer.
14554
14555 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14556
14557 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14558 into a single function_arg_info, updating its fields when we
14559 apply pass-by-reference and promotion semantics. Use the
14560 function_arg_info to track the mode rather than keeping it in
14561 a separate local variable.
14562 (initialize_argument_information): Likewise. Base the final
14563 arg_to_skip on this new function_arg_info rather than creating
14564 a new one from scratch.
14565
14566 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14567
14568 * function.c (assign_parm_data_one): Replace passed_type,
14569 promoted_mode and named_arg with a function_arg_info field.
14570 (assign_parm_find_data_types): Remove local variables and
14571 assign directly to "data". Make data->passed_mode shadow
14572 data->arg.mode until promotion, then assign the promoted
14573 mode to data->arg.mode.
14574 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14575 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14576 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14577 (assign_parm_setup_block, assign_parm_setup_reg)
14578 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14579 arg.mode instead of promoted_mode, arg.type instead of passed_type
14580 and arg.named instead of named_arg. Use data->arg for
14581 function_arg_info structures that had the field values passed_type,
14582 promoted_mode and named_arg. Base other function_arg_infos on
14583 data->arg, changing the necessary properties.
14584
14585 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14586
14587 * calls.h (apply_pass_by_reference_rules): Declare.
14588 * calls.c (apply_pass_by_reference_rules): New function.
14589 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14590 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14591 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14592 * function.c (assign_parm_find_data_types): Likewise.
14593 * var-tracking.c (prepare_call_arguments): Likewise.
14594
14595 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14596
14597 * target.def (must_pass_in_stack): Take a function_arg_info instead
14598 of a mode and a type.
14599 * doc/tm.texi: Regenerate.
14600 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14601 instead of a mode and a type.
14602 (must_pass_in_stack_var_size_or_pad): Likewise.
14603 * calls.c (must_pass_in_stack_var_size): Likewise.
14604 (must_pass_in_stack_var_size_or_pad): Likewise.
14605 (initialize_argument_information): Update call to
14606 targetm.calls.must_pass_in_stack.
14607 (must_pass_va_arg_on_stack): Likewise.
14608 * function.c (assign_parm_find_entry_rtl): Likewise.
14609 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14610 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14611 (alpha_function_arg_advance): Likewise.
14612 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14613 (cr16_function_arg_advance): Likewise.
14614 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14615 (cris_arg_partial_bytes): Likewise.
14616 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14617 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14618 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14619 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14620 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14621 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14622 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14623 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14624 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14625 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14626 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14627 instead of a mode and a type.
14628 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14629 (fr30_num_arg_regs): Likewise.
14630 (fr30_setup_incoming_varargs): Update calls accordingly.
14631 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14632 (fr30_function_arg_advance): Likewise.
14633 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14634 instead of a mode and a type.
14635 * config/gcn/gcn.c (num_arg_regs): Likewise.
14636 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14637 num_arg_regs and targetm.calls.must_pass_in_stack.
14638 (gcn_arg_partial_bytes): Likewise.
14639 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14640 function_arg_info instead of a mode and a type.
14641 (classify_argument): Update call accordingly.
14642 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14643 function_arg_info instead of a mode and a type.
14644 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14645 Likewise.
14646 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14647 (rs6000_parm_needs_stack): Update call accordingly.
14648 (setup_incoming_varargs): Likewise.
14649
14650 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14651
14652 * target.def (callee_copies): Take a function_arg_info instead
14653 of a mode, type and named flag.
14654 * doc/tm.texi: Regenerate.
14655 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14656 instead of a mode, type and named flag.
14657 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14658 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14659 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14660 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14661 instead of a mode, type and named flag.
14662 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14663 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14664 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14665 * calls.h (reference_callee_copied): Take a function_arg_info
14666 instead of a mode, type and named flag.
14667 * calls.c (reference_callee_copied): Likewise.
14668 (initialize_argument_information): Update call accordingly.
14669 (emit_library_call_value_1): Likewise.
14670 * function.c (gimplify_parameters): Likewise.
14671 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14672 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14673 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14674 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14675 (TARGET_CALLEE_COPIES): Define to
14676 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14677 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14678 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14679 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14680 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14681 instead of a mode, type and named flag.
14682 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14683 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14684 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14685 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14686 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14687 (TARGET_CALLEE_COPIES): Define to
14688 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14689 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14690 instead of a mode, type and named flag.
14691 * config/sh/sh.c (sh_callee_copies): Likewise.
14692 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14693 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14694 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14695
14696 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14697
14698 * target.def (function_arg_advance): Take a function_arg_info instead
14699 of a mode, type and named flag.
14700 * doc/tm.texi: Regenerate.
14701 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14702 instead of a mode, type and named flag.
14703 * targhooks.c (default_function_arg_advance): Likewise.
14704 * calls.c (initialize_argument_information): Update call to
14705 targetm.calls.function_arg_advance.
14706 (emit_library_call_value_1): Likewise.
14707 * dse.c (get_call_args): Likewise.
14708 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14709 * function.c (assign_parms, gimplify_parameters): Likewise.
14710 * var-tracking.c (prepare_call_arguments): Likewise.
14711 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14712 function_arg_info instead of a mode, type and named flag.
14713 (aarch64_setup_incoming_varargs): Update call accordingly.
14714 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14715 function_arg_info instead of a mode, type and named flag.
14716 (alpha_setup_incoming_varargs): Update call accordingly.
14717 * config/arc/arc.c (arc_function_arg_advance): Take a
14718 function_arg_info instead of a mode, type and named flag.
14719 (arc_setup_incoming_varargs): Update call accordingly.
14720 * config/arm/arm.c (arm_function_arg_advance): Take a
14721 function_arg_info instead of a mode, type and named flag.
14722 (cmse_func_args_or_return_in_stack): Update call accordingly.
14723 (arm_function_ok_for_sibcall): Likewise.
14724 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14725 * config/avr/avr.c (avr_function_arg_advance): Take a
14726 function_arg_info instead of a mode, type and named flag.
14727 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14728 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14729 (c6x_call_saved_register_used): Update call accordingly.
14730 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14731 function_arg_info instead of a mode, type and named flag.
14732 * config/cris/cris.c (cris_function_arg_advance): Likewise.
14733 * config/csky/csky.c (csky_function_arg_advance): Likewise.
14734 (csky_setup_incoming_varargs): Update call accordingly.
14735 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14736 function_arg_info instead of a mode, type and named flag.
14737 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14738 * config/frv/frv.c (frv_function_arg_advance): Likewise.
14739 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14740 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14741 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14742 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14743 (ix86_setup_incoming_varargs): Update call accordingly.
14744 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14745 function_arg_info instead of a mode, type and named flag.
14746 (ia64_setup_incoming_varargs): Update call accordingly.
14747 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14748 function_arg_info instead of a mode, type and named flag.
14749 (iq2000_expand_prologue): Update call accordingly.
14750 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14751 function_arg_info instead of a mode, type and named flag.
14752 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
14753 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
14754 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14755 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
14756 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14757 Likewise.
14758 (microblaze_expand_prologue): Update call accordingly.
14759 * config/mips/mips.c (mips_function_arg_advance): Take a
14760 function_arg_info instead of a mode, type and named flag.
14761 (mips_setup_incoming_varargs): Update call accordingly.
14762 (mips_output_args_xfer): Likewise.
14763 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
14764 function_arg_info instead of a mode, type and named flag.
14765 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
14766 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
14767 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
14768 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
14769 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
14770 (nios2_setup_incoming_varargs): Update call accordingly.
14771 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
14772 function_arg_info instead of a mode, type and named flag.
14773 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
14774 * config/pa/pa.c (pa_function_arg_advance): Likewise.
14775 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
14776 * config/pru/pru.c (pru_function_arg_advance): Likewise.
14777 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
14778 (riscv_setup_incoming_varargs): Update call accordingly.
14779 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
14780 function_arg_info instead of a mode, type and named flag.
14781 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
14782 Likewise.
14783 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
14784 (rs6000_parm_needs_stack): Update call accordingly.
14785 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
14786 instead of a mode, type and named flag.
14787 * config/s390/s390.c (s390_function_arg_advance): Likewise.
14788 (s390_call_saved_register_used): Update call accordingly.
14789 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
14790 instead of a mode, type and named flag.
14791 (sh_output_mi_thunk): Update call accordingly.
14792 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
14793 function_arg_info instead of a mode, type and named flag.
14794 * config/spu/spu.c (spu_function_arg_advance): Likewise.
14795 (spu_setup_incoming_varargs): Update call accordingly.
14796 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
14797 function_arg_info instead of a mode, type and named flag.
14798 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
14799 (tilegx_setup_incoming_varargs): Update call accordingly.
14800 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
14801 function_arg_info instead of a mode, type and named flag.
14802 (tilegx_setup_incoming_varargs): Update call accordingly.
14803 * config/v850/v850.c (v850_function_arg_advance): Take a
14804 function_arg_info instead of a mode, type and named flag.
14805 * config/vax/vax.c (vax_function_arg_advance): Likewise.
14806 * config/visium/visium.c (visium_function_arg_advance): Likewise.
14807 (visium_setup_incoming_varargs): Update call accordingly.
14808 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
14809 function_arg_info instead of a mode, type and named flag.
14810
14811 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14812
14813 * target.def (function_arg, function_incoming_arg): Take a
14814 function_arg_info instead of a mode, tree and named flag.
14815 * doc/tm.texi: Regenerate.
14816 * targhooks.h (default_function_arg): Take a function_arg_info
14817 instead of a mode, tree and named flag.
14818 (default_function_incoming_arg): Likewise.
14819 * targhooks.c (default_function_arg): Likewise.
14820 (default_function_incoming_arg): Likewise.
14821 * calls.h (function_arg_info::end_marker_p): New function.
14822 (function_arg_info::end_marker): Likewise.
14823 * calls.c (prepare_call_address, initialize_argument_information)
14824 (expand_call, emit_library_call_value_1): Update calls to
14825 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
14826 * dse.c: Include calls.h.
14827 (get_call_args): Update call to targetm.calls.function_arg.
14828 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14829 * var-tracking.c (prepare_call_arguments): Likewise.
14830 * function.c (assign_parm_find_entry_rtl): Update call to
14831 targetm.calls.function_incoming_arg.
14832 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
14833 function_arg_info instead of a mode, tree and named flag.
14834 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14835 * config/arc/arc.c (arc_function_arg): Likewise.
14836 * config/arm/arm.c (arm_function_arg): Likewise.
14837 (cmse_func_args_or_return_in_stack): Update call accordingly.
14838 (arm_function_ok_for_sibcall): Likewise.
14839 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14840 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
14841 instead of a mode, tree and named flag.
14842 * config/bfin/bfin.c (bfin_function_arg): Likewise.
14843 * config/c6x/c6x.c (c6x_function_arg): Likewise.
14844 (c6x_call_saved_register_used): Update call accordingly.
14845 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
14846 instead of a mode, tree and named flag.
14847 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
14848 (cris_function_arg_1): Likewise.
14849 * config/csky/csky.c (csky_function_arg): Likewise.
14850 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
14851 * config/fr30/fr30.c (fr30_function_arg): Likewise.
14852 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
14853 (frv_function_arg_1): Likewise.
14854 * config/ft32/ft32.c (ft32_function_arg): Likewise.
14855 * config/gcn/gcn.c (gcn_function_arg): Likewise.
14856 * config/h8300/h8300.c (h8300_function_arg): Likewise.
14857 * config/i386/i386.c (ix86_function_arg): Likewise.
14858 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
14859 (ia64_function_arg_1): Likewise.
14860 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
14861 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
14862 accordingly.
14863 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
14864 instead of a mode, tree and named flag.
14865 * config/m32c/m32c.c (m32c_function_arg): Likewise.
14866 * config/m32r/m32r.c (m32r_function_arg): Likewise.
14867 * config/m68k/m68k.c (m68k_function_arg): Likewise.
14868 * config/mcore/mcore.c (mcore_function_arg): Likewise.
14869 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
14870 (microblaze_expand_prologue): Update call accordingly.
14871 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
14872 instead of a mode, tree and named flag.
14873 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
14874 (mmix_function_arg_1): Likewise.
14875 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
14876 * config/moxie/moxie.c (moxie_function_arg): Likewise.
14877 * config/msp430/msp430.c (msp430_function_arg): Likewise.
14878 * config/nds32/nds32.c (nds32_function_arg): Likewise.
14879 * config/nios2/nios2.c (nios2_function_arg): Likewise.
14880 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
14881 (nvptx_function_incoming_arg): Likewise.
14882 * config/or1k/or1k.c (or1k_function_arg): Likewise.
14883 * config/pa/pa.c (pa_function_arg): Likewise.
14884 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
14885 * config/pru/pru.c (pru_function_arg): Likewise.
14886 * config/riscv/riscv.c (riscv_function_arg): Likewise.
14887 * config/rl78/rl78.c (rl78_function_arg): Likewise.
14888 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
14889 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
14890 (rs6000_parm_needs_stack): Update call accordingly.
14891 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
14892 instead of a mode, tree and named flag.
14893 * config/s390/s390.c (s390_function_arg): Likewise.
14894 (s390_call_saved_register_used): Update call accordingly.
14895 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
14896 instead of a mode, tree and named flag.
14897 (sh_output_mi_thunk): Update call accordingly.
14898 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
14899 (sparc_function_incoming_arg): Take a function_arg_info instead of
14900 a mode, tree and named flag.
14901 * config/spu/spu.c (spu_function_arg): Likewise.
14902 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14903 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
14904 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
14905 * config/v850/v850.c (v850_function_arg): Likewise.
14906 * config/vax/vax.c (vax_function_arg): Likewise.
14907 * config/visium/visium.c (visium_function_arg): Likewise.
14908 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
14909 (xtensa_function_incoming_arg): Likewise.
14910
14911 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14912
14913 * target.def (setup_incoming_varargs): Take a function_arg_info
14914 instead of a mode and tree.
14915 * doc/tm.texi: Regenerate.
14916 * targhooks.h (default_setup_incoming_varargs): Take a
14917 function_arg_info instead of a mode and tree.
14918 * targhooks.c (default_setup_incoming_varargs): Likewise.
14919 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
14920 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
14921 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14922 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
14923 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
14924 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
14925 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
14926 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
14927 Likewise.
14928 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
14929 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
14930 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
14931 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
14932 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
14933 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
14934 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14935 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14936 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
14937 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
14938 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
14939 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
14940 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
14941 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
14942 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
14943 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
14944 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
14945 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
14946 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
14947 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
14948 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
14949 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
14950 * function.c (assign_parms_setup_varargs): Update call to
14951 targetm.calls.setup_incoming_varargs.
14952
14953 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14954
14955 * target.def (pass_by_reference): Take a function_arg_info instead
14956 of a mode, type and named flag.
14957 * doc/tm.texi: Regenerate.
14958 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
14959 accordingly.
14960 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
14961 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
14962 function_arg_info instead of a mode, type and named flag.
14963 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
14964 * calls.h (pass_by_reference): Take a function_arg_info instead of a
14965 mode, type and named flag.
14966 * calls.c (pass_by_reference): Likewise.
14967 (pass_va_arg_by_reference): Update call accordingly.
14968 (initialize_argument_information): Likewise.
14969 (emit_library_call_value_1): Likewise.
14970 * function.c (assign_parm_find_data_types): Likewise.
14971 * var-tracking.c (prepare_call_arguments): Likewise.
14972 * stor-layout.c: Include calls.h.
14973 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
14974 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
14975 function_arg_info instead of a mode, type and named flag.
14976 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
14977 * config/arc/arc.c (arc_pass_by_reference): Likewise.
14978 * config/arm/arm.c (arm_pass_by_reference): Likewise.
14979 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
14980 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
14981 (c6x_call_saved_register_used): Update call to pass_by_reference.
14982 * config/cris/cris.c (cris_pass_by_reference): Take a
14983 function_arg_info instead of a mode, type and named flag.
14984 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
14985 function_arg_info instead of a mode, type and named flag.
14986 (epiphany_arg_partial_bytes): Update call accordingly.
14987 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
14988 function_arg_info instead of a mode, type and named flag.
14989 (ft32_arg_partial_bytes): Update call accordingly.
14990 * config/i386/i386.c (ix86_pass_by_reference): Take a
14991 function_arg_info instead of a mode, type and named flag.
14992 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14993 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
14994 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
14995 (m32r_return_in_memory): Update call accordingly.
14996 * config/mips/mips.c (mips_pass_by_reference): Take a
14997 function_arg_info instead of a mode, type and named flag.
14998 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
14999 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15000 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15001 (moxie_arg_partial_bytes): Update call accordingly.
15002 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15003 function_arg_info instead of a mode, type and named flag.
15004 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15005 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15006 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15007 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15008 (riscv_return_in_memory): Update call accordingly.
15009 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15010 function_arg_info instead of a mode, type and named flag.
15011 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15012 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15013 * config/s390/s390.c (s390_pass_by_reference): Take a
15014 function_arg_info instead of a mode, type and named flag.
15015 (s390_call_saved_register_used): Update call accordingly.
15016 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15017 instead of a mode, type and named flag.
15018 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15019 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15020 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15021 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15022 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15023 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15024
15025 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15026
15027 * target.def (arg_partial_bytes): Take a function_arg_info instead
15028 of a mode, type and named flag.
15029 * doc/tm.texi: Regenerate.
15030 * target.h (function_arg_info): Declare.
15031 * calls.h (function_arg_info): New class.
15032 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15033 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15034 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15035 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15036 * calls.c (initialize_argument_information): Update call to
15037 targetm.calls.partial_bytes.
15038 (emit_library_call_value_1): Likewise.
15039 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15040 * function.c (assign_parm_find_entry_rtl): Likewise.
15041 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15042 function_arg_info instead of a mode, type and named flag.
15043 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15044 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15045 (cmse_func_args_or_return_in_stack): Update accordingly.
15046 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15047 function_arg_info instead of a mode, type and named flag.
15048 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15049 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15050 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15051 * config/fr30/fr30.c: Include calls.h.
15052 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15053 type and named flag.
15054 * config/frv/frv.c: Include calls.h.
15055 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15056 type and named flag.
15057 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15058 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15059 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15060 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15061 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15062 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15063 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15064 Likewise.
15065 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15066 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15067 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15068 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15069 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15070 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15071 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15072 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15073 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15074 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15075 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15076 (rs6000_parm_needs_stack): Update call accordingly.
15077 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15078 function_arg_info instead of a mode, type and named flag.
15079 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15080 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15081
15082 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15083
15084 * calls.h (must_pass_va_arg_in_stack): Declare.
15085 * calls.c (must_pass_va_arg_in_stack): New function.
15086 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15087 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15088 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15089 Likewise.
15090 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15091
15092 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15093
15094 * calls.h (pass_va_arg_by_reference): Declare.
15095 * calls.c (pass_va_arg_by_reference): New function.
15096 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15097 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15098 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15099 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15100 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15101 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15102 (mips_gimplify_va_arg_expr): Likewise.
15103 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15104 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15105 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15106 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15107 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15108 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15109 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15110 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15111 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15112 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15113 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15114
15115 2019-08-20 Richard Biener <rguenther@suse.de>
15116
15117 PR target/91498
15118 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15119 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15120 (convert_scalars_to_vector): Add timode_p parameter and use it
15121 to guard TImode-only operation.
15122 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15123 (pass_stv::execute): Pass down timode_p.
15124
15125 2019-08-20 Lili Cui <lili.cui@intel.com>
15126
15127 * common/config/i386/i386-common.c
15128 (processor_names): Add tigerlake and cooperlake.
15129 (processor_alias_table): Add tigerlake and cooperlake.
15130 * config.gcc: Add -march=tigerlake and cooperlake.
15131 * config/i386/driver-i386.c
15132 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15133 Add "has_avx" to classify processor.
15134 * config/i386/i386-builtins.c (processor_model) :
15135 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15136 (arch_names_table): Add tigerlake and cooperlake.
15137 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15138 and PROCESSOR_COOPERLAKE.
15139 * config/i386/i386-c.c
15140 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15141 * config/i386/i386-options.c
15142 (m_TIGERLAKE): Define.
15143 (m_COOPERLAKE): Ditto.
15144 (m_CORE_AVX512): Ditto.
15145 (processor_cost_table): Add cascadelake.
15146 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15147 * config/i386/i386.h
15148 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15149 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15150 (PTA_MOVDIRI): Ditto.
15151 (PTA_MOVDIR64B): Ditto.
15152 (PTA_COOPERLAKE): Ditto.
15153 (PTA_TIGERLAKE): Ditto.
15154 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15155 * doc/extend.texi: Add tigerlake and cooperlake.
15156 * doc/invoke.texi: Add tigerlake and cooperlake.
15157
15158 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15159
15160 * doc/install.texi (Specific, alpha): Remove note to use
15161 binutils 2.11.2 or later.
15162
15163 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15164
15165 PR middle-end/89544
15166 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15167 when possible.
15168
15169 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15170
15171 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15172 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15173 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15174 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15175 * config/aarch64/constraints.md (Dt): New constraint
15176 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15177
15178 2019-08-19 Richard Biener <rguenther@suse.de>
15179
15180 PR tree-optimization/91403
15181 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15182 cases we can handle with tail-recursion...
15183 (follow_ssa_edge_expr): ... here. Do so.
15184
15185 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15186
15187 PR target/91441
15188 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15189 implemented for -fsanitize=kernel-address, and merge check logic
15190 with -fsanitize=address.
15191
15192 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15193
15194 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15195 for cpu and machine. Factor 64/32b builtins.
15196
15197 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15198
15199 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15200 gone, point to sourceforge.net.
15201
15202 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15203
15204 * doc/ux.texi (User Experience Guidelines): Update reference.
15205
15206 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15207
15208 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15209 not LGPL".
15210
15211 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15212
15213 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15214 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15215
15216 2019-08-16 Martin Sebor <msebor@redhat.com>
15217
15218 * tree.def (TYPE_SIZE): Clarify.
15219 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15220
15221 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15222
15223 PR tree-optimization/91109
15224 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15225 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15226 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15227
15228 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15229
15230 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15231 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15232 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15233 (uavg<mode>3_ceil): New expander.
15234 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15235 mode iterator when creating CONST1_RTX.
15236 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15237 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15238 mode iterator for const1_operand predicate.
15239
15240 2019-08-16 Richard Biener <rguenther@suse.de>
15241
15242 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15243 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15244 follow_ssa_edge.
15245 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15246 (analyze_evolution_in_loop): Likewise.
15247 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15248 (follow_ssa_edge_expr): ... here. Refactor code.
15249
15250 2019-08-16 Richard Biener <rguenther@suse.de>
15251
15252 PR target/91469
15253 * config/i386/i386-features.c
15254 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15255
15256 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15257
15258 PR other/91255
15259 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15260 only if subst_name matches curr_attr string.
15261
15262 2019-08-16 Richard Biener <rguenther@suse.de>
15263
15264 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15265 stmt at gsi_p, instead replace it with a NOP removed later.
15266 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15267 that became dead because of that.
15268
15269 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15270
15271 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15272 for which we can't represent a range.
15273 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15274 set_varying.
15275 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15276 Set VR_UNDEFINED if type is not supported.
15277 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15278 * tree-vrp.c (value_range_base::check): Assert that a varying has
15279 min/max set.
15280 (value_range_base::equal_p): Early bail for undefines.
15281 (value_range_base::set_varying): Accept a type.
15282 (value_range::set_varying): Same.
15283 (value_range_base::type): VARYING can have a type, while UNDEFINE
15284 is typeless.
15285 (value_range_base::dump): Print type for VARYING nodes.
15286 (value_range_base::set): Add type to VARYING.
15287 (extract_range_from_multiplicative_op): Pass type to set_varying.
15288 (extract_range_from_binary_expr): Same.
15289 (value_range_base::intersect_helper): Same.
15290 (value_range_base::union_helper): Same.
15291 (value_range_base::normalize_symbolics): Same.
15292 (determine_value_range_1): Same.
15293 * tree-vrp.h (class value_range_base): Add type to set_varying.
15294 Add prototype for dump(void).
15295 Add prototype for supports_type_p.
15296 (class value_range): Add type to set_varying.
15297 Add prototype for dump(void).
15298 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15299 set_varying.
15300 (vr_values::get_lattice_entry): Set varying even if propagation
15301 finished.
15302 Pass type to set_varying.
15303 (vr_values::get_value_range): Remove vr_const_varying.
15304 Reallocate the lattice if needed.
15305 (vr_values::update_value_range): Pass type to set_varying.
15306 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15307 (vr_values::extract_range_from_binary_expr): Same.
15308 (vr_values::extract_range_from_unary_expr): Same.
15309 (vr_values::extract_range_from_cond_expr): Same.
15310 (vr_values::check_for_binary_op_overflow): Same.
15311 (vr_values::extract_range_basic): Same.
15312 (vr_values::extract_range_from_assignment): Same.
15313 (vr_values::vr_values): Increase size of num_vr_values.
15314 (vr_values::extract_range_from_phi_node): Pass type to
15315 set_varying.
15316
15317 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15318
15319 PR target/90878
15320 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15321 for costs of hard register moves.
15322 (ix86_register_move_cost): Likewise.
15323 * config/i386/i386.h (processor_costs): Move costs of hard
15324 register moves to hard_register. Add int_load, int_store,
15325 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15326 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15327 for costs of RTL expressions.
15328 * config/i386/x86-tune-costs.h: Move costs of hard register
15329 moves to hard_register. Duplicate int_load, int_store,
15330 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15331 sse_load, sse_store for costs of RTL expressions.
15332
15333 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15334
15335 * target.def (setup_incoming_vararg_bounds): Remove.
15336 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15337 * doc/tm.texi: Regenerate.
15338 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15339 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15340 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15341 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15342
15343 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15344
15345 MSP430: Fix lines over 80 characters long in
15346 config/msp430/*.{c,h} files
15347
15348 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15349 specifier in string.
15350 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15351 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15352 redundant old comment.
15353 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15354 Split line more than 80 characters long.
15355 * config/msp430/msp430.c (msp430_option_override): Likewise.
15356 (msp430_return_in_memory): Likewise.
15357 (msp430_gimplify_va_arg_expr): Likewise.
15358 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15359 (msp430_legitimate_constant): Likewise.
15360 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15361 (msp430_attr): Likewise.
15362 (msp430_data_attr): Likewise.
15363 (msp430_start_function): Likewise.
15364 (gen_prefix): Likewise.
15365 (msp430_init_sections): Likewise.
15366 (msp430_select_section): Likewise.
15367 (msp430_function_section): Likewise.
15368 (msp430_unique_section): Likewise.
15369 (msp430_output_aligned_decl_common): Likewise.
15370 (msp430_do_not_relax_short_jumps): Likewise.
15371 (msp430_init_builtins): Likewise.
15372 (msp430_expand_delay_cycles): Likewise.
15373 (msp430_expand_prologue): Likewise.
15374 (msp430_expand_epilogue): Likewise.
15375 (msp430_expand_helper): Likewise.
15376 (msp430_split_movsi): Likewise.
15377 (msp430_print_operand): Likewise.
15378 (msp430_return_addr_rtx): Likewise.
15379 (msp430x_extendhisi): Likewise.
15380 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15381 (ASM_SPEC): Likewise.
15382 Remove very obvious comments.
15383 (LIB_SPEC): Split line more than 80 characters long.
15384 (EH_RETURN_HANDLER_RTX): Likewise.
15385 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15386
15387 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15388
15389 MSP430: Fix whitespace errors and incorrect indentation in
15390 config/msp430/*.{c,h} files
15391
15392 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15393 (msp430_select_hwmult_lib): Likewise.
15394 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15395 (msp430_extract_mcu_data): Likewise.
15396 (struct t_msp430_mcu_data): Likewise.
15397 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15398 before left square bracket.
15399 (msp430_option_override): Fix indentation.
15400 (msp430_hard_regno_nregs_with_padding): Likewise.
15401 (msp430_initial_elimination_offset): Likewise.
15402 (msp430_special_register_convention_p): Remove whitespace before left
15403 square bracket and after exclamation mark.
15404 (msp430_evaluate_arg): Likewise.
15405 (msp430_callee_copies): Fix indentation.
15406 (msp430_gimplify_va_arg_expr): Likewise.
15407 (msp430_function_arg_advance): Remove whitespace before left square
15408 bracket.
15409 (reg_ok_for_addr): Likewise.
15410 (msp430_preserve_reg_p): Likewise.
15411 (msp430_compute_frame_info): Likewise.
15412 (msp430_asm_output_addr_const_extra): Add space between function name
15413 and open parenthesis.
15414 (has_section_name): Fix indentation.
15415 (msp430_attr): Remove trailing whitespace.
15416 (msp430_section_attr): Likewise.
15417 (msp430_data_attr): Likewise.
15418 (struct msp430_attribute_table): Fix comment and whitespace.
15419 (msp430_start_function): Remove whitespace before left square bracket.
15420 Add space between function name and open parenthesis.
15421 (msp430_select_section): Remove trailing whitespace.
15422 (msp430_section_type_flags): Remove trailing whitespace.
15423 (msp430_unique_section): Remove space before closing parenthesis.
15424 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15425 (msp430_builtins): Remove whitespace before left square bracket.
15426 (msp430_init_builtins): Fix indentation.
15427 (msp430_expand_prologue): Remove whitespace before left square bracket.
15428 Remove space before closing parenthesis.
15429 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15430 (msp430_split_movsi): Remove space before closing parenthesis.
15431 (helper_function_name_mappings): Fix indentation.
15432 (msp430_use_f5_series_hwmult): Fix whitespace.
15433 (use_32bit_hwmult): Likewise.
15434 (msp430_no_hwmult): Likewise.
15435 (msp430_output_labelref): Remove whitespace before left square bracket.
15436 (msp430_print_operand_raw): Likewise.
15437 (msp430_print_operand_addr): Likewise.
15438 (msp430_print_operand): Add two spaces after '.' in comment.
15439 Fix trailing whitespace.
15440 (msp430x_extendhisi): Fix indentation.
15441 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15442 tab.
15443 (PC_REGNUM): Likewise.
15444 (STACK_POINTER_REGNUM): Likewise.
15445 (CC_REGNUM): Likewise.
15446
15447 2019-08-15 Richard Biener <rguenther@suse.de>
15448
15449 PR target/91454
15450 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15451 helper.
15452 (general_scalar_chain::make_vector_copies): Use it.
15453
15454 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15455
15456 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15457
15458 2019-08-15 Martin Liska <mliska@suse.cz>
15459
15460 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15461 operators with no arguments.
15462 (eliminate_unnecessary_stmts): Likewise here.
15463
15464 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15465
15466 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15467 <case COMPARE>: Revert 2019-08-14 change.
15468 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15469 for (TARGET_64BIT || mode != DImode).
15470
15471 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15472
15473 * tree-vrp.c (value_range_base::set): Merge in code from
15474 value_range_base::set_and_canonicalize.
15475 Enforce canonicalization at set time.
15476 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15477 (value_range_base::set_undefined): Inline call to set().
15478 (value_range_base::set_varying): Same.
15479 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15480 (vrp_val_max): New argument handle_pointers.
15481 (vrp_val_min): Same.
15482 (ranges_from_anti_range): Same.
15483 (extract_range_into_wide_ints): Use tree argument instead of sign
15484 and precision.
15485 (extract_range_from_multiplicative_op): Take in tree type instead
15486 of precision and sign. Adapt function for canonicalized ranges.
15487 (extract_range_from_binary_expr): Pass type to
15488 extract_range_from_multiplicative_op.
15489 Adapt for canonicalized ranges.
15490 (extract_range_from_unary_expr): Same.
15491 (value_range_base::intersect_helper): Adjust for canonicalized
15492 ranges.
15493 (value_range_base::union_helper): Same.
15494 (value_range_base::normalize_symbolics): New.
15495 * tree-vrp.h (class value_range_base): Remove
15496 set_and_canonicalize.
15497 New prototype for normalize_symbolics.
15498 (class value_range): Remove set_and_canonicalize.
15499 (vrp_val_min): Adjust prototype.
15500 (vrp_val_max): Same.
15501 * vr-values.c
15502 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15503 instead of set_and_canonicalize.
15504
15505 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15506
15507 PR middle-end/91444
15508 * tree-vect-stmts.c (vectorizable_call): Check that the function
15509 is a BUILT_IN_MD function before passing it to
15510 targetm.vectorize.builtin_md_vectorized_function.
15511
15512 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15513
15514 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15515 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15516 (aarch64_select_early_remat_modes): Use it.
15517
15518 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15519
15520 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15521 16 for SVE predicates even if they are fixed-length.
15522
15523 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15524
15525 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15526 operand order match the MOV /Z alias.
15527
15528 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15529
15530 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15531 the vector pattern as an aarch64_svpattern argument. Update the
15532 overloaded caller accordingly.
15533 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15534 (aarch64_output_sve_vector_inc_dec): Likewise.
15535
15536 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15537
15538 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15539 multiplication case, try to compute VG * (lowest set bit) directly
15540 rather than always basing the multiplication on VG. Use
15541 expand_mult for the multiplication if we can.
15542
15543 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15544
15545 * config/aarch64/aarch64-protos.h
15546 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15547 (aarch64_sve_inc_dec_immediate_p): Rename to...
15548 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15549 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15550 (aarch64_output_sve_scalar_inc_dec): Declare.
15551 (aarch64_output_sve_inc_dec_immediate): Rename to...
15552 (aarch64_output_sve_vector_inc_dec): ...this.
15553 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15554 (aarch64_output_sve_scalar_inc_dec): New functions.
15555 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15556 arguments. Only handle true ADDVL and ADDPL instructions;
15557 don't emit an INC or DEC.
15558 (aarch64_sve_inc_dec_immediate_p): Rename to...
15559 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15560 (aarch64_output_sve_inc_dec_immediate): Rename to...
15561 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15562 aarch64_sve_vector_inc_dec_immediate_p.
15563 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15564 (aarch64_sve_plus_immediate): New predicates.
15565 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15566 rather than aarch64_sve_addvl_addpl_immediate.
15567 (aarch64_sve_inc_dec_immediate): Rename to...
15568 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15569 aarch64_sve_vector_inc_dec_immediate_p.
15570 (aarch64_sve_add_operand): Update accordingly.
15571 * config/aarch64/constraints.md (Uai): New constraint.
15572 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15573 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15574 operand into a register if it satisfies aarch64_sve_plus_immediate.
15575 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15576 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15577 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15578 aarch64_output_sve_vector_inc_dec instead of
15579 aarch64_output_sve_inc_dec_immediate.
15580
15581 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15582
15583 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15584 (UNSPEC_REVW): New constants.
15585 (elem_bits): New mode attribute.
15586 (SVE_INT_UNARY): New int iterator.
15587 (optab): Handle UNSPEC_REV[BHW].
15588 (sve_int_op): New int attribute.
15589 (min_elem_bits): Handle VNx16QI and the predicate modes.
15590 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15591 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15592 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15593 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15594 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15595 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15596 unspecs based on the total width of the reversed data.
15597 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15598 reinterpret followed by a subreg on big-endian targets.
15599
15600 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15601 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15602
15603 * config/aarch64/aarch64-sve.md
15604 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15605 alternatives in which one of the inputs is in the same register
15606 as the output.
15607
15608 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15609
15610 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15611 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15612
15613 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15614
15615 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15616 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15617
15618 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15619 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15620
15621 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15622 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15623 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15624
15625 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15626 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15627
15628 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15629 Add an alternative that uses reversed shifts.
15630
15631 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15632
15633 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15634 struct.
15635
15636 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15637
15638 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15639 a commutativity marker.
15640
15641 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15642 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15643
15644 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15645 (aarch64_prepare_sve_cond_int_fma): Declare.
15646 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15647 (aarch64_prepare_sve_int_fma): New functions.
15648 (aarch64_prepare_sve_cond_int_fma): Likewise.
15649 * config/aarch64/aarch64-sve.md
15650 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15651 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15652 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15653 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15654 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15655 (*madd<mode>): Rename to...
15656 (*fma<mode>4): ...this.
15657 (*msub<mode>): Rename to...
15658 (*fnma<mode>4): ...this.
15659
15660 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15661 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15662
15663 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15664 Print 2.0 naturally.
15665 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15666 * config/aarch64/predicates.md
15667 (aarch64_sve_float_negated_arith_immediate): New predicate,
15668 renamed from aarch64_sve_float_arith_with_sub_immediate.
15669 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15670 positive and negative constants.
15671 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15672 or an aarch64_sve_float_arith_with_sub_immediate.
15673 * config/aarch64/constraints.md (vsN): Use
15674 aarch64_sve_float_negated_arith_immediate.
15675 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15676 iterator.
15677 (sve_pred_fp_rhs2_immediate): New int attribute.
15678 * config/aarch64/aarch64-sve.md
15679 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15680 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15681 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15682 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15683 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15684 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15685
15686 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15687 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15688
15689 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15690 (*aarch64_cond_abd<SVE_F:mode>_3)
15691 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15692
15693 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15694 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15695
15696 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15697 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15698
15699 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15700 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15701
15702 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15703 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15704 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15705 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15706 optabs.
15707 * optabs.h (create_convert_operand_from): Expand comment.
15708 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15709 when mapping scalar rtxes to vector operands.
15710 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15711 ashiftrt and lshiftrt.
15712 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15713 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15714 (*cond_<optab><mode>_any_const): New patterns.
15715
15716 2019-08-15 Martin Liska <mliska@suse.cz>
15717
15718 PR ipa/91438
15719 * cgraph.c (cgraph_node::remove): When setting
15720 n->origin = NULL for all nested functions, reset
15721 also next_nested.
15722
15723 2019-08-15 Martin Liska <mliska@suse.cz>
15724
15725 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15726 and next_nested.
15727
15728 2019-08-15 Martin Liska <mliska@suse.cz>
15729
15730 PR ipa/91404
15731 * passes.c (order): Remove.
15732 (uid_hash_t): Likewise).
15733 (remove_cgraph_node_from_order): Remove from set
15734 of pointers (cgraph_node *).
15735 (insert_cgraph_node_to_order): New.
15736 (duplicate_cgraph_node_to_order): New.
15737 (do_per_function_toporder): Register all 3 cgraph hooks.
15738 Skip removed_nodes now as we know about all of them.
15739
15740 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
15741
15742 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15743 <case E_V8QImode>: Use vector_set path for
15744 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15745 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15746 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15747
15748 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15749
15750 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15751
15752 2019-08-14 Martin Sebor <msebor@redhat.com>
15753
15754 PR tree-optimization/91294
15755 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
15756 source length as exact.
15757
15758 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
15759
15760 * doc/extend.texi: Add "noinit" attribute documentation.
15761 * doc/sourcebuild.texi: Add noinit effective target documentation.
15762 * varasm.c (default_section_type_flags): Add support for "noinit"
15763 section.
15764 (default_elf_select_section): Add support for "noinit" attribute.
15765 * config/msp430/msp430.c (msp430_attribute_table): Remove
15766 "noinit" entry.
15767
15768 2019-08-14 Richard Biener <rguenther@suse.de>
15769 Uroš Bizjak <ubizjak@gmail.com>
15770
15771 PR target/91154
15772 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15773 mode arguments.
15774 (scalar_chain::smode): New member.
15775 (scalar_chain::vmode): Likewise.
15776 (dimode_scalar_chain): Rename to...
15777 (general_scalar_chain): ... this.
15778 (general_scalar_chain::general_scalar_chain): Take mode arguments.
15779 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
15780 base with TImode and V1TImode.
15781 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15782 (general_scalar_chain::vector_const_cost): Adjust for SImode
15783 chains.
15784 (general_scalar_chain::compute_convert_gain): Likewise. Add
15785 {S,U}{MIN,MAX} support.
15786 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
15787 (general_scalar_chain::make_vector_copies): Likewise. Handle
15788 non-DImode chains appropriately.
15789 (general_scalar_chain::convert_reg): Likewise.
15790 (general_scalar_chain::convert_op): Likewise.
15791 (general_scalar_chain::convert_insn): Likewise. Add
15792 fatal_insn_not_found if the result is not recognized.
15793 (convertible_comparison_p): Pass in the scalar mode and use that.
15794 (general_scalar_to_vector_candidate_p): Likewise. Rename from
15795 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
15796 (scalar_to_vector_candidate_p): Remove by inlining into single
15797 caller.
15798 (general_remove_non_convertible_regs): Rename from
15799 dimode_remove_non_convertible_regs.
15800 (remove_non_convertible_regs): Remove by inlining into single caller.
15801 (convert_scalars_to_vector): Handle SImode and DImode chains
15802 in addition to TImode chains.
15803 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
15804 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
15805 (*<maxmin>di3_doubleword): Likewise.
15806
15807 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15808 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15809
15810 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
15811 (*cond_bic<mode>_any): New patterns.
15812
15813 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15814
15815 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
15816 take the equivalent mask, as well as a bit count.
15817 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
15818 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
15819 (aarch64_sve_pred_and_operand): New predicates.
15820 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
15821 code attribute.
15822 * config/aarch64/aarch64-sve.md
15823 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
15824 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
15825
15826 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15827
15828 * config/aarch64/aarch64-sve.md
15829 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15830 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
15831 New patterns.
15832
15833 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15834 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15835
15836 * config/aarch64/aarch64-sve.md
15837 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
15838 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
15839
15840 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15841 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15842
15843 * config/aarch64/aarch64-sve.md
15844 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
15845 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
15846
15847 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15848
15849 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
15850 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
15851 New pattern.
15852
15853 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15854 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15855
15856 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
15857
15858 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15859 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15860
15861 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
15862 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
15863 (aarch64_print_operand): Add support for %I.
15864 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
15865 Bitcast floating-point constants to the corresponding integer constant.
15866 (aarch64_float_const_representable_p): Handle vectors as well
15867 as scalars.
15868 (aarch64_expand_sve_vcond): Make sure that the operands are valid
15869 for the new vcond_mask_<mode><vpred> expander.
15870 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
15871 test aarch64_float_const_representable_p.
15872 (aarch64_sve_reg_or_dup_imm): New predicate.
15873 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
15874 gen_vcond_mask_<mode><vpred> instead of
15875 gen_aarch64_sve_dup<mode>_const.
15876 (vcond_mask_<mode><vpred>): Turn into a define_expand that
15877 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
15878 for operands 1 and 2 respectively. Force operand 2 into a
15879 register if operand 1 is a register. Fold old define_insn...
15880 (aarch64_sve_dup<mode>_const): ...and this define_insn...
15881 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
15882 floating-point constants that can be moved as integers. Add
15883 alternatives for MOV /M and FMOV /M.
15884 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
15885 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
15886 1 and 2 respectively.
15887 * config/aarch64/constraints.md (Ufc): Handle vectors as well
15888 as scalars.
15889 (vss): New constraint.
15890
15891 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15892
15893 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
15894 (aarch64_sve_float_maxmin_operand): New predicates.
15895 * config/aarch64/constraints.md (vsB): New constraint.
15896 (vsM): Fix typo.
15897 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
15898 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
15899 UNSPEC_COND_FMINNM.
15900 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
15901 Use aarch64_sve_float_maxmin_operand for operand 2.
15902 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
15903 Add alternatives for the constant forms.
15904
15905 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15906
15907 * config/aarch64/constraints.md (vsb): New constraint.
15908 (vsm): Generalize description.
15909 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
15910 iterator.
15911 (sve_imm_con): Handle smax, smin, umax and umin.
15912 (sve_imm_prefix): New code attribute.
15913 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
15914 (aarch64_sve_vsb_operand): New predicates.
15915 (aarch64_sve_mul_immediate): Rename to...
15916 (aarch64_sve_vsm_immediate): ...this.
15917 (aarch64_sve_mul_operand): Rename to...
15918 (aarch64_sve_vsm_operand): ...this.
15919 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
15920 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
15921 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
15922 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
15923 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
15924 add movprfx support for the immediate alternatives.
15925 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
15926 of the above.
15927 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
15928 for operand 3.
15929
15930 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15931
15932 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
15933 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
15934 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
15935
15936 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15937
15938 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
15939 (optab, sve_int_op): Handle them.
15940 * config/aarch64/aarch64-sve.md: Expand comment.
15941
15942 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15943
15944 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
15945 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
15946 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
15947
15948 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15949
15950 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
15951 (aarch64_expand_sve_const_pred_trn): New functions.
15952 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
15953 use the above functions when the parameter is true.
15954 (aarch64_expand_sve_const_pred): Update call accordingly.
15955 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
15956 Rename to...
15957 (@aarch64_sve_<perm_insn><mode>): ...this.
15958
15959 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15960
15961 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
15962 Declare.
15963 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
15964 (aarch64_sve_emit_int_cmp): New functions.
15965 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
15966 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
15967 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
15968 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
15969 (UNSPEC_PRED_Z): New unspec.
15970 (set_clobber_cc_nzc): Delete.
15971 * config/aarch64/aarch64-sve.md: Add a block comment about
15972 UNSPEC_PRED_Z.
15973 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
15974 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
15975 the old pattern with that name. Use UNSPEC_PRED_Z instead of
15976 UNSPEC_MERGE_PTRUE.
15977 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
15978 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
15979 check for compatible predicates.
15980 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
15981 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
15982 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
15983 comparisons above.
15984
15985 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15986
15987 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
15988 * config/aarch64/aarch64-sve.md: Add a section describing it.
15989 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
15990 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
15991 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
15992 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
15993 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
15994 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
15995 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
15996 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
15997 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
15998 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
15999 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16000 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16001 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16002 (aarch64_evpc_rev_local): Update accordingly.
16003
16004 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16005
16006 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16007 iterators.
16008 (SVE_BHSI, SVE_SDI): Tweak comment.
16009 (SVE_HSDI): Likewise. Fix definition.
16010 (SVE_SDF): New mode iterator.
16011 (elem_bits): New mode attribute.
16012 (SVE_COND_FCVT): New int iterator.
16013 * config/aarch64/aarch64-sve.md
16014 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16015 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16016 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16017 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16018 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16019 ...these new patterns.
16020 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16021 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16022 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16023 Merge into...
16024 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16025 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16026 ...these new patterns.
16027 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16028 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16029 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16030 ...this new pattern.
16031 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16032 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16033 ...this new pattern.
16034 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16035
16036 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16037
16038 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16039 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16040 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16041 unspecs.
16042 (optab, su): Handle them.
16043 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16044 * config/aarch64/aarch64-sve.md
16045 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16046 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16047 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16048 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16049 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16050 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16051 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16052 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16053 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16054 FIXUORS.
16055 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16056 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16057 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16058 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16059 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16060 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16061 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16062 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16063 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16064 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16065 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16066 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16067 of UNSPEC_FLOAT_CONVERT.
16068 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16069 aarch64_sve_extend<mode><Vwide>2.
16070
16071 2019-08-14 Richard Biener <rguenther@suse.de>
16072
16073 PR target/91154
16074 * config/i386/i386-features.c
16075 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16076 individual instruction gain. Fix reg-reg copy GRP cost. Use
16077 ix86_cost->sse_op for vector instruction costs.
16078
16079 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16080
16081 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16082 (cmp_op): Handle it.
16083 (SVE_COND_FP_CMP): Rename to...
16084 (SVE_COND_FP_CMP_I0): ...this.
16085 (SVE_FP_CMP): Remove.
16086 * config/aarch64/aarch64-sve.md
16087 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16088 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16089 using unspecs to represent the comparison.
16090 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16091 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16092 accordingly.
16093 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16094 (aarch64_unspec_cond_code): Move after integer code. Handle
16095 UNORDERED.
16096 (aarch64_emit_sve_predicated_cond): Replace with...
16097 (aarch64_emit_sve_fp_cond): ...this new function.
16098 (aarch64_emit_sve_or_conds): Replace with...
16099 (aarch64_emit_sve_or_fp_conds): ...this new function.
16100 (aarch64_emit_sve_inverted_cond): Replace with...
16101 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16102 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16103
16104 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16105
16106 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16107 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16108 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16109 SVE_HSD instead of SVE_SD.
16110
16111 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16112 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16113
16114 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16115 iterator.
16116 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16117 attributes.
16118 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16119 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16120 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16121 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16122 (*div<SVE_F:mode>3): Generalize to...
16123 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16124
16125 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16126 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16127
16128 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16129 constants.
16130 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16131 predicate.
16132 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16133 Declare.
16134 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16135 function.
16136 * config/aarch64/aarch64-sve.md: Add a block comment about the
16137 handling of predicated FP operations.
16138 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16139 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16140 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16141 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16142 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16143 operand.
16144 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16145 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16146 operand.
16147 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16148 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16149 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16150 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16151 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16152 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16153 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16154 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16155 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16156 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16157 strictness operands. Use aarch64_sve_pred_dominates_p to check
16158 whether the predicate on the conditional operation is suitable
16159 for merging. Split patterns into the canonical equal-predicate form.
16160 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16161 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16162
16163 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16164 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16165
16166 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16167 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16168 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16169 rtx codes.
16170 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16171 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16172 unspecs.
16173
16174 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16175 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16176
16177 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16178 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16179 actually has, rather than relying on REG_EQUAL notes.
16180 Make the insn operand order match the SVE operand order.
16181 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16182 the SVE operand order.
16183
16184 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16185
16186 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16187 (aarch64_emit_set_immediate): Likewise.
16188 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16189 (aarch64_pfalse_reg): Likewise.
16190 (aarch64_convert_sve_data_to_pred): New function.
16191 (aarch64_sve_move_pred_via_while): Take an optional target register
16192 and the required register mode.
16193 (aarch64_expand_sve_const_pred_1): New function.
16194 (aarch64_expand_sve_const_pred): Likewise.
16195 (aarch64_expand_mov_immediate): Build an all-true predicate
16196 if the significant bits of the immediate are all true. Use
16197 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16198 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16199 before register allocation.
16200 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16201 a VNx16BI PTRUE when splitting the memory alternative.
16202 (vec_duplicate<mode>): Update accordingly.
16203 (*pred_cmp<cmp_op><mode>): Rename to...
16204 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16205
16206 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16207
16208 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16209 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16210 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16211 (UNSPEC_PTEST): New unspec.
16212 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16213 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16214 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16215 * config/aarch64/aarch64-sve.md: Add a new section describing the
16216 handling of UNSPEC_PTEST.
16217 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16218 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16219 (ptest_ptrue<mode>): Replace with...
16220 (aarch64_ptest<mode>): ...this new pattern.
16221 (cbranch<mode>4): Update after above changes.
16222 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16223 UNSPEC_PTEST_PTRUE.
16224 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16225 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16226 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16227
16228 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16229
16230 PR lto/91287
16231 * builtins.c (builtin_with_linkage_p): New function.
16232 * builtins.h (builtin_with_linkage_p): New function.
16233 * symtab.c (write_symbol): Remove redundant assert.
16234 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16235 Remove FIXME and use builtin_with_linkage_p.
16236
16237 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16238
16239 PR middle-end/91421
16240 * tree-core.h (function_decl::function_code): Change type to
16241 unsigned int.
16242 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16243 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16244 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16245 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16246 is BUILT_IN_NORMAL.
16247 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16248 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16249 (fndecl_built_in_p): Change the type of the "name" argument to
16250 unsigned int.
16251 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16252 after check for DECL_BUILT_IN_CLASS.
16253 * cgraphclones.c (build_function_decl_skip_args): Use
16254 set_decl_built_in_function.
16255 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16256 * ipa-split.c (split_function): Likewise.
16257 * langhooks.c (add_builtin_function_common): Likewise.
16258 * omp-simd-clone.c (simd_clone_create): Likewise.
16259 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16260 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16261 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16262 DECL_FUNCTION_CODE.
16263 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16264 instead of DECL_FUNCTION_CODE.
16265 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16266 instead of DECL_FUNCTION_CODE.
16267 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16268 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16269 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16270 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16271 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16272 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16273 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16274 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16275 (alpha_gimple_fold_builtin): Likewise.
16276 * config/arc/arc.c (arc_expand_builtin): Likewise.
16277 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16278 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16279 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16280 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16281 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16282 * config/frv/frv.c (frv_expand_builtin): Likewise.
16283 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16284 (gcn_expand_builtin): Likewise.
16285 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16286 (fold_builtin_cpu): Likewise.
16287 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16288 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16289 (ix86_gimple_fold_builtin): Likewise.
16290 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16291 (ia64_expand_builtin): Likewise.
16292 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16293 * config/mips/mips.c (mips_expand_builtin): Likewise.
16294 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16295 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16296 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16297 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16298 * config/pa/pa.c (pa_expand_builtin): Likewise.
16299 * config/pru/pru.c (pru_expand_builtin): Likewise.
16300 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16301 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16302 Likewise.
16303 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16304 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16305 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16306 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16307 (rs6000_builtin_reciprocal): Likewise.
16308 * config/rx/rx.c (rx_expand_builtin): Likewise.
16309 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16310 * config/s390/s390.c (s390_expand_builtin): Likewise.
16311 * config/sh/sh.c (sh_expand_builtin): Likewise.
16312 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16313 (sparc_fold_builtin): Likewise.
16314 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16315 * config/spu/spu.c (spu_expand_builtin): Likewise.
16316 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16317 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16318 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16319 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16320 (xtensa_expand_builtin): Likewise.
16321
16322 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16323
16324 PR middle-end/91421
16325 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16326 before the DECL_FUNCTION_CODE.
16327 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16328 to check for a BUILT_IN_ALLOCA call.
16329 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16330 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16331 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16332 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16333 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16334 for BUILT_IN_NORMAL functions.
16335 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16336 test for BUILT_IN_TM_ABORT.
16337 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16338 to check for a BUILT_IN_STACK_RESTORE call.
16339 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16340 * tree-ssa-threadedge.c
16341 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16342 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16343 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16344 test for a BUILT_IN_NORMAL call instead of a negative test for
16345 an internal function call.
16346
16347 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16348
16349 * tree.h (build_vector_a_then_b): Declare.
16350 * tree.c (build_vector_a_then_b): New function.
16351 * fold-const-call.c (fold_while_ult): Likewise.
16352 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16353 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16354 (aarch64_svpattern): New enum.
16355 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16356 constants through aarch64_expand_mov_immediate.
16357 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16358 than general_operand as the predicate for operand 1.
16359 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16360 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16361 insn_type.
16362 (simd_immediate_info::simd_immediate_info): New overload that
16363 takes a scalar_int_mode and an svpattern.
16364 (simd_immediate_info::u): Add a "pattern" field.
16365 (svpattern_token): New function.
16366 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16367 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16368 (aarch64_sve_move_pred_via_while): New functions.
16369 (aarch64_expand_mov_immediate): Try using
16370 aarch64_sve_move_pred_via_while for predicates that contain N ones
16371 followed by M zeros but that do not correspond to a VLnnn pattern.
16372 (aarch64_sve_pred_valid_immediate): New function.
16373 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16374 with PTRUE and PFALSE.
16375 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16376 forms.
16377
16378 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16379
16380 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16381 flag.
16382 (darwin_override_options): Likewise.
16383 * config/darwin.h: Likewise.
16384 * config/darwin.opt: Likewise.
16385 * config/i386/i386.c (output_pic_addr_const): Likewise.
16386 * config/rs6000/darwin.h: Likewise.
16387 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16388 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16389 ... this TARGET_MACHO_SYMBOL_STUBS.
16390 (FUNCTION_PROFILER):Likewise.
16391 * config/i386/i386.h: Likewise.
16392
16393 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16394
16395 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16396 <case E_V2SImode>: Use vec_extr path for
16397 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16398 <case E_V8QImode>: Ditto.
16399 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16400 Use SWI48 mode iterator. Use %k to output operand 0.
16401 (*mmx_pextrw): New insn pattern.
16402 (*mmx_pextrb): Ditto.
16403 (*mmx_pextrb_zext): Ditto.
16404
16405 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16406
16407 * target.def (libc_has_function, libc_has_fast_function): Improve
16408 documentation strings.
16409 * doc/tm.texi: Regenerate.
16410
16411 2019-08-13 Caroline Tice <cmtice@google.com>
16412
16413 PR other/91396
16414 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16415 vtv_end.o or vtv_end_preinit.o files if !static.
16416
16417 2019-08-13 Olivier Hainque <hainque@adacore.com>
16418
16419 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16420
16421 2019-08-13 Olivier Hainque <hainque@adacore.com>
16422
16423 * rtlanal.c (tablejump_casesi_pattern): New function, to
16424 determine if a tablejump insn is a casesi dispatcher. Extracted
16425 from patch_jump_insn.
16426 * rtl.h (tablejump_casesi_pattern): Declare.
16427 * cfgrtl.c (patch_jump_insn): Use it.
16428 * dwarf2cfi.c (create_trace_edges): Use it.
16429
16430 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16431
16432 PR target/81800
16433 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16434 operand is larger than a long int.
16435
16436 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16437
16438 * machmode.h (opt_mode::else_mode): New function.
16439 (opt_mode::else_blk): Use it.
16440 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16441 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16442 (aarch64_gen_stepped_int_parallel): Likewise.
16443 (aarch64_stepped_int_parallel_p): Likewise.
16444 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16445 argument.
16446 * config/aarch64/aarch64.c
16447 (aarch64_expand_sve_widened_duplicate): Delete.
16448 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16449 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16450 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16451 argument. Use early returns in the !CONST_INT_P handling.
16452 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16453 than handling some inline.
16454 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16455 from...
16456 (aarch64_simd_container_mode): ...here.
16457 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16458 (aarch64_sve_ld1rq_operand_p): New functions.
16459 * config/aarch64/predicates.md (descending_int_parallel)
16460 (aarch64_sve_ld1rq_operand): New predicates.
16461 * config/aarch64/constraints.md (UtQ): New constraint.
16462 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16463 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16464 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16465 (@aarch64_sve_reinterpret<mode>): New expander.
16466 (*aarch64_sve_reinterpret<mode>): New pattern.
16467 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16468 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16469 (*sve_ld1rq<Vesize>): Replace with...
16470 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16471
16472 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16473
16474 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16475 16:12.
16476
16477 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16478
16479 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16480 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16481 (msp430_check_path_for_devices): New.
16482 (parse_devices_csv_1): New.
16483 (parse_devices_csv): New.
16484 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16485 MCU data in devices.csv before using the hard-coded data.
16486 Warn if devices.csv isn't found and the MCU wasn't found in the
16487 hard-coded data either.
16488 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16489 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16490 Search for devices.csv on -I and -L paths.
16491 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16492 msp430_set_driver_var.
16493 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16494 -mdevices-csv-loc=.
16495 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16496 searched for devices.csv.
16497 (mwarn-devices-csv): Document option.
16498
16499 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16500
16501 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16502 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16503 Use a single Dn alternative instead of separate Dz and Dm
16504 alternatives. Use aarch64_output_sve_move_immediate.
16505 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16506 function.
16507 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16508 for predicates too.
16509 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16510 (aarch64_output_ptrue): Delete.
16511
16512 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16513
16514 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16515 INDEX.
16516 (simd_immediate_info::value, simd_immediate_info::step)
16517 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16518 with...
16519 (simd_immediate_info::u): ...this new union.
16520 (simd_immediate_info::simd_immediate_info): Update accordingly.
16521 (aarch64_output_simd_mov_immediate): Likewise.
16522 (aarch64_output_sve_mov_immediate): Likewise.
16523
16524 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16525
16526 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16527 extra_gcc_objs.
16528 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16529 (msp430_select_cpu): New spec function.
16530 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16531 MCU data.
16532 * config/msp430/msp430-devices.c: New file.
16533 * config/msp430/msp430-devices.h: New file.
16534 * config/msp430/msp430.c: Remove msp430_mcu_data.
16535 (msp430_option_override): Use msp430_extract_mcu_data to extract
16536 MCU data.
16537 (msp430_use_f5_series_hwmult): Likewise.
16538 (use_32bit_hwmult): Likewise.
16539 (msp430_no_hwmult): Likewise.
16540 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16541 assembler.
16542 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16543 and -mcpu option.
16544 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16545 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16546 Remove hard-coded MCU multilib data.
16547
16548 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16549
16550 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16551 based on the mode instead of testing properties of it.
16552
16553 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16554
16555 * doc/md.texi: Document the x and y constraints for AArch64.
16556 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16557 (FP_LO8_REGS): New reg_class.
16558 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16559 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16560 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16561 * config/aarch64/predicates.md (aarch64_simd_register): Use
16562 FP_REGNUM_P instead of checking the classes manually.
16563 * config/aarch64/constraints.md (y): New constraint.
16564
16565 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16566
16567 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16568 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16569 * config/aarch64/aarch64-simd.md
16570 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16571 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16572 from the asm template.
16573 * config/aarch64/aarch64-sve.md
16574 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16575 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16576 from the asm template.
16577 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16578 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16579 from the asm template.
16580 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16581
16582 2019-08-13 Martin Liska <mliska@suse.cz>
16583
16584 * value-prof.c (gimple_ic_transform): Add new line.
16585 Print details with MSG_NOTE.
16586
16587 2019-08-13 Martin Liska <mliska@suse.cz>
16588
16589 * doc/invoke.texi: Document automatic detection of jobserver.
16590 * lto-wrapper.c (run_gcc): Detect jobserver always.
16591
16592 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16593
16594 * config/i386/i386-expand.c (ix86_expand_vector_set)
16595 <case E_V2SImode>: Use vec_merge path for
16596 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16597 <case E_V8QImode>: Ditto.
16598 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16599 (*mmx_pinsrb): Ditto.
16600
16601 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16602
16603 PR target/83250
16604 PR target/91340
16605 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16606 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16607 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16608 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16609 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16610
16611 2019-08-12 Richard Biener <rguenther@suse.de>
16612
16613 PR lto/91375
16614 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16615 flag_devirtualize.
16616
16617 2019-08-12 Richard Biener <rguenther@suse.de>
16618
16619 PR driver/91130
16620 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16621 lang_mask option, always use CL_DRIVER.
16622 (get_options_from_collect_gcc_options): Adjust.
16623 (find_and_merge_options): Likewise.
16624 (run_gcc): Likewise.
16625
16626 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16627
16628 * ipa-predicate.c (add_condition): Restore inverted test.
16629
16630 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16631
16632 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16633 (enum omp_clause_device_type_kind): New enum.
16634 (struct tree_omp_clause): Add subcode.device_type_kind.
16635 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16636 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16637 for device_type clause.
16638 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16639 * tree-pretty-print.c (dump_omp_clause): Likewise.
16640
16641 PR target/91408
16642 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16643 vector_operand.
16644
16645 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16646
16647 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16648 handling spilled pseudos.
16649
16650 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16651
16652 PR target/91386
16653 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16654 to preserve the contents of the original insns.
16655
16656 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16657
16658 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16659 (addsi3_compare_op2): Likewise.
16660
16661 2019-08-09 Martin Liska <mliska@suse.cz>
16662
16663 * alias.c (alias_ptr_types_compatible_p): Strengten
16664 type comparison in LTO mode.
16665
16666 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16667
16668 PR middle-end/90313
16669 * tree-tailcall.c (find_tail_calls): Reject calls that might
16670 read from an escaped RESULT_DECL.
16671
16672 2019-08-09 Martin Liska <mliska@suse.cz>
16673
16674 * doc/invoke.texi: Document the option value.
16675 * lto-wrapper.c (run_gcc): Set auto_parallel
16676 only with -flto=auto.
16677
16678 2019-08-09 Martin Liska <mliska@suse.cz>
16679
16680 * opts.c (common_handle_option): Error for an invalid argument
16681 to -flto=.
16682
16683 2019-08-09 Martin Liska <mliska@suse.cz>
16684
16685 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16686 use dump_printf to report optimization.
16687 (sem_variable::merge): Likwise.
16688 (sem_item_optimizer::merge_classes): Use dump_printf to report
16689 ICF hits.
16690
16691 2019-08-09 Martin Liska <mliska@suse.cz>
16692
16693 * value-prof.c (gimple_divmod_fixed_value_transform):
16694 Use dump_printf_loc.
16695 (gimple_mod_pow2_value_transform): Likewise.
16696 (gimple_mod_subtract_transform): Likewise.
16697 (init_node_map): Likewise.
16698 (gimple_ic_transform): Likewise.
16699 (gimple_stringops_transform): Likewise.
16700
16701 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16702
16703 * doc/extend.texi: Add const qualifier to ld intrinsics.
16704
16705 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16706
16707 * config/rs6000/dfp.md (D64_D128): Rename to ...
16708 (DDTD): ... this, throughout.
16709 (dfp_suffix): Rename to ...
16710 (q): ... this, throughout.
16711
16712 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16713
16714 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16715 (dfp_suffix): Ditto.
16716 (adddd3, addtd3): Merge to ...
16717 (add<mode>3 for D64_D128): ... this.
16718 (subdd3, subtd3): Merge to ...
16719 (sub<mode>3 for D64_D128): ... this.
16720 (muldd3, multd3): Merge to ...
16721 (mul<mode>3 for D64_D128): ... this.
16722 (divdd3, divtd3): Merge to ...
16723 (div<mode>3 for D64_D128): ... this.
16724 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16725 (*cmp<mode>_internal1 for D64_D128): ... this.
16726 (ftruncdd2, ftrunctd2): Merge to ...
16727 (ftrunc<mode>2 for D64_D128): ... this.
16728 (fixdddi2, fixtddi2): Merge to ...
16729 (fix<mode>di2 for D64_D128): ... this.
16730
16731 2019-08-08 Jim Wilson <jimw@sifive.com>
16732
16733 PR target/91229
16734 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16735 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
16736 Pass into recursive call.
16737 (riscv_flatten_aggregate_argument): New arg. Pass to
16738 riscv_flatten_aggregate_field.
16739 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
16740 riscv_flatten_aggregate_argument twice, with false and true as last
16741 arg. Process result twice. Compare results and warn if different.
16742 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16743
16744 2019-08-08 Martin Liska <mliska@suse.cz>
16745
16746 PR bootstrap/91352
16747 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16748 * lto-wrapper.c (jobserver_active_p): Likewise.
16749
16750 2019-08-08 Martin Liska <mliska@suse.cz>
16751
16752 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16753 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
16754 (create_version_clone_with_body): Likewise.
16755
16756 2019-08-08 Jakub Jelinek <jakub@redhat.com>
16757
16758 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
16759 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
16760 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
16761 GOVD_EXPLICIT flags.
16762 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
16763 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
16764 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
16765 call install_var_field with mask 11 instead of 3.
16766 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
16767 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
16768
16769 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16770
16771 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
16772 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
16773
16774 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16775
16776 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
16777 MOVPRFX alternatives. Make the GPR alternatives more expensive
16778 than the FPR ones.
16779
16780 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16781
16782 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
16783 Disparage the GPR alternative relative to the FPR one.
16784 Fix handling of 8-bit and 16-bit FPR values.
16785
16786 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16787
16788 * config/aarch64/iterators.md (BITWISEV): Delete.
16789 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
16790 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
16791 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16792 UNSPEC_FMINNMV, UNSPEC_FMINV.
16793 (bit_reduc_op): Delete.
16794 (sve_int_op): New int attribute.
16795 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16796 UNSPEC_FMINNMV, UNSPEC_FMINV.
16797 * config/aarch64/aarch64-sve.md
16798 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16799 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16800 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
16801 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
16802 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
16803 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
16804 new patterns.
16805 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
16806 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
16807 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
16808 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
16809 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
16810 new patterns.
16811
16812 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16813
16814 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
16815 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
16816 (fms<mode>4, *fms<mode>4): Replace with...
16817 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16818 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
16819 Use unspecs instead of rtx codes.
16820 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
16821 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
16822
16823 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16824
16825 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
16826 int iterator.
16827 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
16828 * config/aarch64/aarch64-sve.md
16829 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
16830 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
16831 use a single unspec for the rhs.
16832 (*<su><maxmin><mode>3): Delete.
16833 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
16834
16835 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16836
16837 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
16838 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
16839 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
16840 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
16841 (optab, sve_fp_op): Handle them.
16842 (SVE_FP_UNARY): Delete.
16843 (optab): Remove sqrt entry.
16844 (sve_fp_op): Remove neg, abs and sqrt entries.
16845 (SVE_COND_FP_UNARY): New int iterator.
16846 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
16847 (*<frint_pattern><mode>2): Delete.
16848 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16849 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16850 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16851 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16852
16853 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16854
16855 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
16856
16857 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16858
16859 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
16860 (UNSPEC_COND_FADD): ...this.
16861 (UNSPEC_COND_SUB): Rename to...
16862 (UNSPEC_COND_FSUB): ...this.
16863 (UNSPEC_COND_MUL): Rename to...
16864 (UNSPEC_COND_FMUL): ...this.
16865 (UNSPEC_COND_DIV): Rename to...
16866 (UNSPEC_COND_FDIV): ...this.
16867 (UNSPEC_COND_MAX): Rename to...
16868 (UNSPEC_COND_FMAXNM): ...this.
16869 (UNSPEC_COND_MIN): Rename to...
16870 (UNSPEC_COND_FMINNM): ...this.
16871 (UNSPEC_COND_LT): Rename to...
16872 (UNSPEC_COND_FCMLT): ...this.
16873 (UNSPEC_COND_LE): Rename to...
16874 (UNSPEC_COND_FCMLE): ...this.
16875 (UNSPEC_COND_EQ): Rename to...
16876 (UNSPEC_COND_FCMEQ): ...this.
16877 (UNSPEC_COND_NE): Rename to...
16878 (UNSPEC_COND_FCMNE): ...this.
16879 (UNSPEC_COND_GE): Rename to...
16880 (UNSPEC_COND_FCMGE): ...this.
16881 (UNSPEC_COND_GT): Rename to...
16882 (UNSPEC_COND_FCMGT): ...this.
16883 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
16884 (sve_fp_op_rev): Update accordingly.
16885 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
16886
16887 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16888
16889 * config/aarch64/aarch64-sve.md: Reorganize contents and add
16890 banner comments.
16891 * config/aarch64/check-sve-md.awk: New file.
16892 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
16893 (insn-conditions.md): Depend on it.
16894
16895 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
16896
16897 PR target/91385
16898 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
16899 (*negsi2_cmpz_zext): Ditto.
16900
16901 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16902
16903 * config/aarch64/iterators.md (commutative): Remove.
16904
16905 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
16906
16907 PR driver/91130
16908 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
16909 processing COLLECT_GCC_OPTIONS.
16910 (run_gcc): Likewise.
16911
16912 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
16913
16914 PR tree-optimization/91109
16915 * lra-remat.c (update_scratch_ops): Remove assignment of the
16916 hard register.
16917
16918 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16919
16920 * data-streamer.h (streamer_write_poly_uint64): Declare.
16921 (streamer_read_poly_uint64): Likewise.
16922 * data-streamer-in.c (streamer_read_poly_uint64): New function.
16923 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
16924 * ipa-predicate.h (condition::size): Turn into a poly_int64.
16925 (add_condition): Take a poly_int64 size.
16926 * ipa-predicate.c (add_condition): Likewise.
16927 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
16928 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
16929 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
16930 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
16931 condition::size as a poly_int64.
16932 (unmodified_parm_1): Take a poly_int64 size pointer.
16933 (unmodified_parm): Likewise.
16934 (unmodified_parm_or_parm_agg_item): Likewise.
16935 (set_cond_stmt_execution_predicate): Update accordingly.
16936 (set_switch_stmt_execution_predicate): Likewise.
16937 (will_be_nonconstant_expr_predicate): Likewise.
16938 (will_be_nonconstant_predicate): Likewise.
16939 (inline_read_section): Stream condition::size as a poly_int.
16940 (ipa_fn_summary_write): Likewise.
16941
16942 2019-08-07 Martin Liska <mliska@suse.cz>
16943
16944 * fold-const.c (twoval_comparison_p): Replace int
16945 with bool as a return type.
16946 (simple_operand_p): Likewise.
16947 (operand_equal_p): Replace int with bool as a return type.
16948 * fold-const.h (operand_equal_p): Likewise.
16949
16950 2019-08-07 Jakub Jelinek <jakub@redhat.com>
16951
16952 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
16953 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
16954 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16955 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
16956 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
16957 * tree-pretty-print.c (dump_omp_clause): Likewise.
16958 * tree-nested.c (convert_nonlocal_omp_clauses,
16959 convert_local_omp_clauses): Likewise.
16960 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16961 Likewise.
16962 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
16963 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
16964 clause with array or reference to array types, no matter what type
16965 except for reference it has.
16966
16967 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
16968
16969 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
16970
16971 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
16972
16973 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
16974 (arch_canonicalize): Support rv32g and rv64g and fix error
16975 handling.
16976
16977 2019-08-06 Martin Liska <mliska@suse.cz>
16978
16979 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
16980 and DECL_IS_OPERATOR_DELETE_P.
16981
16982 2019-08-06 Jakub Jelinek <jakub@redhat.com>
16983
16984 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
16985 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
16986 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
16987 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
16988 (gimplify_omp_for): Don't do C++ random access iterator clause
16989 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
16990 don't predetermine the artificial iterator in case of C++ random
16991 access iterators as lastprivate, but private. For OMP_LOOP, force
16992 bind expr around simd body and force for_pre_body before the
16993 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
16994 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
16995 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
16996 diff var of C++ random access iterators. Handle
16997 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
16998 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
16999 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17000 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17001 * omp-low.c (lower_rec_input_clauses): For
17002 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17003 variables instead of default constructing them.
17004 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17005 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17006 is_taskloop_ctx check from the assert to the guarding condition.
17007
17008 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17009
17010 * config/riscv/multilib-generator: (canonical_order): New.
17011 (arch_canonicalize): Dito.
17012 Apply arch_canonicalize for alts.
17013
17014 2019-08-05 Martin Sebor <msebor@redhat.com>
17015
17016 * doc/extend.texi (Common Variable Attributes): Document alias
17017 attribute.
17018
17019 2019-08-05 Marek Polacek <polacek@redhat.com>
17020
17021 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17022 * doc/invoke.texi: Document -Wcomma-subscript.
17023
17024 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17025
17026 * tree-core.h (tree_function_decl): Make function_code an
17027 independent field. Group the remaining bitfields into bytes
17028 and move decl_type so that it contines to be at a byte boundary.
17029 Leave 12 bits for future expansion.
17030
17031 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17032
17033 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17034 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17035 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17036 IFN_MASK_STORE.
17037
17038 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17039
17040 * gimple.h (gimple_move_vops): Declare.
17041 * gimple.c (gimple_move_vops): New function
17042 * gimple-fold.c (replace_call_with_call_and_fold)
17043 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17044 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17045 (gimple_fold_call): Use it.
17046 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17047 * tree-call-cdce.c (use_internal_fn): Likewise.
17048 * tree-if-conv.c (predicate_load_or_store): Likewise.
17049 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17050 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17051 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17052 (update_call_from_tree): Likewise.
17053 * tree-vect-stmts.c (vectorizable_load): Likewise.
17054 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17055
17056 2019-08-05 Martin Liska <mliska@suse.cz>
17057
17058 PR c++/91334
17059 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17060 with not arguments.
17061 (eliminate_unnecessary_stmts): Likewise.
17062
17063 2019-08-05 Richard Biener <rguenther@suse.de>
17064
17065 PR middle-end/91169
17066 * fold-const.c (get_array_ctor_element_at_index): Create
17067 offset_ints according to the sign of the index type and treat
17068 that as signed if it is obviously so.
17069
17070 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17071
17072 PR target/91341
17073 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17074 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17075 _mm256_storeu2_m128i): New function.
17076
17077 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17078
17079 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17080 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17081
17082 2019-08-05 Alan Modra <amodra@gmail.com>
17083
17084 PR target/91349
17085 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17086 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17087
17088 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17089
17090 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17091 bug that was fixed in Tcl 8.6.1.
17092
17093 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17094
17095 * config/rs6000/future.md: New file.
17096 * config/rs6000/rs6000.md: Include future.md.
17097 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17098
17099 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17100
17101 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17102 check to use targetm.slow_unaligned_access instead.
17103
17104 * function.c (assign_param_data_one): Remove unused data members.
17105
17106 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17107
17108 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17109 build_distinct_type_copy.
17110 (simd_clone_adjust_argument_types): Ditto.
17111 (simd_clone_adjust): Call build_distinct_type_copy here.
17112 (expand_simd_clones): Ditto.
17113
17114 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17115
17116 PR target/91201
17117 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17118
17119 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17120
17121 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17122 from 'const void *'.
17123 (sort_locs_in_loop_postorder_cmp): Likewise.
17124
17125 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17126
17127 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17128 (hot-bb-count-ws-permille): Likewise.
17129 (hot-bb-frequency-fraction): Likewise.
17130 (unlikely-bb-count-fraction): Likewise.
17131 * params.def (hot-bb-count-fraction): Rework description.
17132 (hot-bb-count-ws-permille): Likewise.
17133 (hot-bb-frequency-fraction): Likewise.
17134 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17135 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17136
17137 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17138
17139 PR target/91323
17140 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17141 Return false.
17142
17143 2019-08-02 Richard Biener <rguenther@suse.de>
17144
17145 * vec.h (vec::sort): Add gcc_qsort_r support.
17146 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17147 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17148 to gcc_qsort_r style callback.
17149 (sort_locs_in_loop_postorder_cmp): Likewise.
17150 (analyze_memory_references): Use gcc_sort_r interfaces.
17151 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17152
17153 2019-08-02 Martin Liska <mliska@suse.cz>
17154
17155 PR lto/91313
17156 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17157 to detect working job server.
17158 (driver::detect_jobserver): Test whether jobserver
17159 is active from GCC driver. That will prevent situation where
17160 GCC is invoked from a LD plugin and the linker already uses
17161 file descriptors suggested by make. That leads to a wrong
17162 detection.
17163 * gcc.h (driver): Add detect_jobserver.
17164 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17165 not scanning for --jobserver-auth prefix.
17166
17167 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17168
17169 PR tree-optimization/91201
17170 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17171 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17172 extraction.
17173
17174 2019-08-01 Martin Sebor <msebor@redhat.com>
17175
17176 PR c++/90947
17177 * tree.c (type_initializer_zero_p): Define.
17178 * tree.h (type_initializer_zero_p): New function.
17179
17180 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17181
17182 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17183
17184 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17185
17186 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17187 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17188 * predict.c (maybe_hot_count_p): Likewise.
17189 (maybe_hot_bb_p): Tweak comment.
17190 (maybe_hot_edge_p): Likewise.
17191 (probably_never_executed): Likewise. Minor tweak.
17192 (probably_never_executed_bb_p): Likewise.
17193 (unlikely_executed_edge_p): Likewise.
17194 (probably_never_executed_edge_p): Likewise.
17195 (optimize_function_for_size_p): Likewise.
17196 (optimize_function_for_speed_p): Likewise.
17197 (function_optimization_type): Likewise.
17198 (optimize_bb_for_size_p): Likewise.
17199 (optimize_bb_for_speed_p): Likewise.
17200 (bb_optimization_type): Likewise.
17201 (optimize_edge_for_size_p): Likewise.
17202 (optimize_edge_for_speed_p): Likewise.
17203 (optimize_insn_for_size_p): Likewise.
17204 (optimize_insn_for_speed_p): Likewise.
17205 (optimize_loop_for_size_p): Likewise.
17206 (optimize_loop_for_speed_p): Likewise.
17207 (optimize_loop_nest_for_speed_p): Likewise.
17208 (optimize_loop_nest_for_size_p): Likewise.
17209 (predictable_edge_p): Likewise.
17210 (handle_missing_profiles): Minor tweak.
17211
17212 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17213
17214 * config/rs6000/predicates.md (pcrel_external_address): Update
17215 comment.
17216
17217 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17218
17219 PR target/85693
17220 * config/i386/mmx.md (usadv8qi): New expander.
17221
17222 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17223
17224 PR c++/90590
17225 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17226 with reserved names that are in a system header.
17227
17228 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17229
17230 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17231 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17232 (*vec_extractv2si_0_zext): Ditto.
17233 (*vec_extractv2si_1): Add (rm,x) alternative.
17234 (*vec_extractv2si_1_zext): New insn pattern.
17235 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17236 insn constraint.
17237
17238 2019-08-01 Richard Biener <rguenther@suse.de>
17239
17240 * domwalk.c (bb_postorder): Remove static variable.
17241 (cmp_bb_postorder): Adjust.
17242 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17243 (dom_walker::walk): Adjust.
17244
17245 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17246
17247 * sort.cc (sort_r_ctx): New struct.
17248 (reorder23): Make templated on context type.
17249 (reorder45): Ditto.
17250 (cmp1): Ditto. Adjust signature.
17251 (netsort): Ditto.
17252 (mergesort): Ditto.
17253 [CHECKING_P] (cmp2to3): New static function. Use it...
17254 (gcc_qsort) [CHECKING_P]: ...here.
17255 (gcc_sort_r): New function.
17256 * system.h (sort_r_cmp_fn): New function typedef.
17257 (qsort_chk): Adjust signature.
17258 (gcc_sort_r): Declare.
17259 * vec.c (qsort_chk_error): Adjust.
17260 (qsort_chk): Adjust.
17261
17262 2019-08-01 Richard Biener <rguenther@suse.de>
17263
17264 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17265 (compute_antic): Localize it here.
17266
17267 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17268
17269 * common/config/riscv/riscv-common.c: Check -march string ends
17270 with null.
17271
17272 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17273
17274 * ipa-devirt.c (type_warning_cmp): Make static.
17275 (decl_warning_cmp): Ditto.
17276
17277 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17278
17279 PR target/91050
17280 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17281 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17282 use of deleted rs6000_dejagnu_cpu_index variable.
17283 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17284 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17285 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17286 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17287 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17288 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17289
17290 2019-07-31 Richard Biener <rguenther@suse.de>
17291
17292 PR tree-optimization/91280
17293 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17294 Decompose MEM_REF manually for offset handling.
17295
17296 2019-07-31 Richard Biener <rguenther@suse.de>
17297
17298 PR tree-optimization/91293
17299 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17300 of reduction stmts.
17301
17302 2019-07-31 Matt Thomas <matt@3am-software.com>
17303 Nick Hudson <nick@nthcliff.demon.co.uk>
17304 Matthew Green <mrg@eterna.com.au>
17305 Maya Rashish <coypu@sdf.org>
17306
17307 * config.gcc (hppa*-*-netbsd*): New target.
17308 * config/pa/pa-netbsd.h: New file.
17309 * config/pa/pa32-netbsd.h: New file.
17310
17311 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17312
17313 PR tree-optimization/91201
17314 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17315
17316 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17317
17318 * config/gcn/gcn-valu.md
17319 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17320 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17321 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17322 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17323 struct ilist. Add nops for delayeduse insns.
17324 * config/gcn/gcn.md (delayeduse): New attribute.
17325 (*movbi): Remove s_waitcnt from stores.
17326 (*mov<mode>_insn): Likewise.
17327 (*movti_insn): Likewise. Add delayeduse attribute.
17328 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17329 (atomic_store<mode>): Remove or adjust s_waitcnt.
17330
17331 2019-07-31 Richard Biener <rguenther@suse.de>
17332
17333 * vr-values.h (vr_values::swap_vr_value): New.
17334 (vr_values::free_value_range): likewise.
17335 * vr-values.c (vr_values::swap_vr_value): Implement.
17336 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17337 Do not return a range or take a var.
17338 (evrp_range_analyzer::stack): Change back to recording a non-const
17339 value_range *.
17340 * gimple-ssa-evrp-analyze.c
17341 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17342 value-range.
17343 (evrp_range_analyzer::pop_to_marker): Adjust.
17344 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17345 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17346 no longer needed value-range.
17347
17348 2019-07-31 Martin Liska <mliska@suse.cz>
17349
17350 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17351 have size and (or) alignment as 2nd and later arguments.
17352 Mark all of them as necessary.
17353
17354 2019-07-31 Richard Biener <rguenther@suse.de>
17355
17356 PR tree-optimization/91178
17357 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17358 Use tail-recursion.
17359
17360 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17361
17362 PR tree-optimization/91201
17363 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17364 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17365 TARGET_AVX512F.
17366 (reduc_plus_scal_<mode>): Improve formatting by introducing
17367 a temporary.
17368
17369 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17370
17371 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17372 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17373 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17374 (aarch64_init_tme_builtins): New.
17375 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17376 (aarch64_expand_builtin_tme): New.
17377 (aarch64_expand_builtin): Handle TME builtins.
17378 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17379 __ARM_FEATURE_TME when enabled.
17380 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17381 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17382 (TARGET_TME): New.
17383 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17384 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17385 UNSPECV_TCANCEL.
17386 (tstart, ttest, tcommit, tcancel): New instructions.
17387 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17388 (__tcancel, __ttest): New.
17389 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17390 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17391 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17392 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17393 * config/arm/types.md: Add new tme type attr.
17394 * doc/invoke.texi: Document "tme".
17395
17396 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17397
17398 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17399 warn_unused_result attribute.
17400 (cmse_check_address_range): Add warn_unused_result attribute.
17401
17402 2019-07-31 Richard Biener <rguenther@suse.de>
17403
17404 PR tree-optimization/91257
17405 * tree-vrp.c (union_ranges): Unify equality and less tests
17406 by using compare_values. Re-order cheap tests first.
17407
17408 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17409
17410 PR middle-end/91301
17411 * gimplify.c (gimplify_omp_for): If for class iterator on
17412 distribute parallel for there is no data sharing clause
17413 on inner_for_stmt, look for private clause on combined
17414 parallel too and if found, move it to inner_for_stmt.
17415
17416 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17417
17418 * lra-int.h (lra_operand_data): Remove early_clobber field.
17419 (lra_insn_reg): Likewise.
17420 * lra.c (debug_operand_data): Update accordingly.
17421 (setup_operand_alternative): Likewise.
17422 (new_insn_reg): Likewise. Remove early_clobber parameter.
17423 (collect_non_operand_hard_regs): Update call accordingly.
17424 Don't assign to lra_insn_reg::early_clobber.
17425 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17426 and update calls to new_insn_reg.
17427 (lra_update_insn_regno_info): Update calls accordingly.
17428 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17429 alternative number as a parameter and test whether the operand
17430 is earlyclobbered in that particular alternative.
17431 (process_alt_operands): Update call accordingly. Use per-alternative
17432 checks for earyclobber here too.
17433 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17434 against zero for IRA_UNKNOWN_ALT.
17435
17436 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17437
17438 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17439
17440 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17441
17442 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17443 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17444
17445 2019-07-30 Martin Liska <mliska@suse.cz>
17446
17447 PR ipa/89330
17448 * cgraph.c (cgraph_edge::make_direct): Use
17449 edge->indirect_unknown_callee as edge->resolve_speculation can
17450 deallocate edge which is this pointer.
17451
17452 2019-07-30 Richard Biener <rguenther@suse.de>
17453
17454 PR tree-optimization/91257
17455 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17456
17457 2019-07-30 Martin Liska <mliska@suse.cz>
17458
17459 * doc/invoke.texi: Document new behavior.
17460 * lto-wrapper.c (cpuset_popcount): New function
17461 is a copy of libgomp/config/linux/proc.c.
17462 (init_num_threads): Likewise.
17463 (run_gcc): Automatically detect core count for -flto.
17464 (jobserver_active_p): New function.
17465
17466 2019-07-30 Richard Biener <rguenther@suse.de>
17467
17468 PR tree-optimization/91257
17469 * bitmap.h (bitmap_ior_into_and_free): Declare.
17470 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17471 whether to add the unliked element to the freelist.
17472 (bitmap_list_insert_element_after): Add defaulted param for
17473 an already allocated element.
17474 (bitmap_ior_into_and_free): New function.
17475 * tree-ssa-structalias.c (condense_visit): Reduce the
17476 ponts-to and edge bitmaps of the SCC members in a
17477 logarithmic fashion rather than all to one.
17478
17479 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17480
17481 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17482 parameter. When nonnull, make sure that the addition or subtraction
17483 has the same condition.
17484 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17485 for CFN_COND_MUL too.
17486
17487 2019-07-30 Richard Biener <rguenther@suse.de>
17488
17489 PR tree-optimization/91291
17490 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17491 constant values.
17492
17493 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17494
17495 PR middle-end/91216
17496 * omp-low.c (global_nonaddressable_vars): New variable.
17497 (use_pointer_for_field): For global decls, if they are non-addressable,
17498 remember it in the global_nonaddressable_vars bitmap, if they are
17499 addressable and in the global_nonaddressable_vars bitmap, ignore their
17500 TREE_ADDRESSABLE bit.
17501 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17502 vars in global_nonaddressable_vars bitmap.
17503 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17504
17505 PR target/91150
17506 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17507 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17508 comparison to unsigned HOST_WIDE_INT before shifting it left.
17509
17510 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17511
17512 * config/i386/i386.md (movstrict<mode>): Use register_operand
17513 predicate for operand 0. Add expander condition. Assert that
17514 operand 0 is a SUBREG RTX.
17515 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17516 Update operand constraints and insn condition.
17517 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17518 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17519 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17520 Update operand 0 constraints.
17521 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17522
17523 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17524
17525 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17526 when -m{code,data}-region are used without -mlarge.
17527 * config/msp430/msp430.c (msp430_option_override): Error when a
17528 non-default code or data region is used without -mlarge.
17529 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17530 attributes when they are used without -mlarge.
17531
17532 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17533
17534 PR target/70320
17535 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17536
17537 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17538
17539 PR middle-end/91242
17540 * wide-int.h (generic_wide_int::sext_elt): New function.
17541 * inchash.h (hash::add_wide_int): Use it instead of elt.
17542
17543 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17544
17545 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17546 CODE_FOR_arm_##.
17547 * config/arm/arm.md (<crc_variant>): Rename to...
17548 (arm_<crc_variant>): ... This.
17549 (<cdp>): Rename to...
17550 (arm_<cdp>): ... This.
17551 (<ldc>): Rename to...
17552 (arm_<ldc>): ... This.
17553 (<stc>): Rename to...
17554 (arm_<stc>): ... This.
17555 (<mcr>): Rename to...
17556 (arm_<mcr>): ... This.
17557 (<mrc>): Rename to...
17558 (arm_<mrc>): ... This.
17559 (<mcrr>): Rename to...
17560 (arm_<mcrr>): ... This.
17561 (<mrrc>): Rename to...
17562 (arm_<mrrc>): ... This.
17563
17564 2019-07-29 Richard Biener <rguenther@suse.de>
17565
17566 PR tree-optimization/91257
17567 * tree-ssa-sccvn.h (struct vn_avail): New.
17568 (struct vn_ssa_aux): Add avail member.
17569 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17570 member, add m_avail_freelist one.
17571 (rpo_elim::~rpo_elim): Remove.
17572 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17573 data structure.
17574 (rpo_elim::eliminate_push_avail): Likewise.
17575 (do_unwind): Likewise.
17576 (do_rpo_vn): Likewise.
17577
17578 2019-07-29 Richard Biener <rguenther@suse.de>
17579
17580 PR tree-optimization/91257
17581 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17582 most cases, instead call compare_values which handles the
17583 symbolic ranges we handle specially.
17584 (compare_values_warnv): Do not call operand_less_p but open-code
17585 the effective fold calls. Avoid converting so much.
17586
17587 2019-07-29 Martin Liska <mliska@suse.cz>
17588
17589 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17590 remove LHS of operator new call. It's handled latter.
17591
17592 2019-07-29 Richard Biener <rguenther@suse.de>
17593
17594 PR tree-optimization/91267
17595 * vr-values.c (vr_values::update_value_range): Add early return
17596 for effectively VARYING lattice entry.
17597
17598 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17599
17600 PR debug/86638
17601 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17602 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17603 necessary if keep_all_vdefs_p is true.
17604 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17605 that keep_all_vdefs_p is false.
17606 (mark_all_reaching_defs_necessary): Likewise.
17607 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17608
17609 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17610
17611 * common.opt (Og): Change the initial value of flag_dse to 0.
17612 * opts.c (default_options_table): Move OPT_ftree_dse from
17613 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17614 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17615 entry before the OPT_ftree_sra entry.
17616 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17617 of flags disabled by Og.
17618
17619 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17620
17621 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17622 variables for -Og.
17623
17624 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17625
17626 * doc/sourcebuild.texi (check-function-bodies): Document.
17627
17628 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17629
17630 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17631 VEC_DUPLICATE of a fixed-length vector even if the result
17632 is variable-length. Likewise fold a duplicate of a
17633 variable-length vector if the variable-length vector is
17634 itself a duplicate of a fixed-length sequence.
17635 (test_vector_ops_duplicate): Test more cases.
17636
17637 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17638
17639 * vector-builder.h (vector_builder): Add a shape template parameter.
17640 (vector_builder::new_unary_operation): New function, generalizing
17641 the old tree_vector_builder function.
17642 (vector_builder::new_binary_operation): Likewise.
17643 (vector_builder::binary_encoded_nelts): Likewise.
17644 * int-vector-builder.h (int_vector_builder): Update template
17645 parameters to vector_builder.
17646 (int_vector_builder::shape_nelts): New function.
17647 * rtx-vector-builder.h (rtx_vector_builder): Update template
17648 parameters to vector_builder.
17649 (rtx_vector_builder::shape_nelts): New function.
17650 (rtx_vector_builder::nelts_of): Likewise.
17651 (rtx_vector_builder::npatterns_of): Likewise.
17652 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17653 * tree-vector-builder.h (tree_vector_builder): Update template
17654 parameters to vector_builder.
17655 (tree_vector_builder::shape_nelts): New function.
17656 (tree_vector_builder::nelts_of): Likewise.
17657 (tree_vector_builder::npatterns_of): Likewise.
17658 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17659 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17660 (tree_vector_builder::new_binary_operation): Delete.
17661 (tree_vector_builder::binary_encoded_nelts): Likewise.
17662 * simplify-rtx.c: Include rtx-vector-builder.h.
17663 (distributes_over_addition_p): New function.
17664 (simplify_const_unary_operation)
17665 (simplify_const_binary_operation): Generalize handling of vector
17666 constants to include variable-length vectors.
17667 (test_vector_ops_series): Add more tests.
17668
17669 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17670
17671 PR lto/91222
17672 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17673 than INDENTIFIER_POINTER.
17674
17675 2019-07-28 Martin Liska <mliska@suse.cz>
17676
17677 PR ipa/89330
17678 * cgraph.c (symbol_table::create_edge): Always allocate
17679 a cgraph_edge.
17680 (symbol_table::free_edge): Store summary_id to
17681 edge_released_summary_ids if != -1;
17682 * cgraph.h (NEXT_FREE_NODE): Remove.
17683 (SET_NEXT_FREE_NODE): Likewise.
17684 (NEXT_FREE_EDGE): Likewise.
17685 (symbol_table::release_symbol): Store summary_id to
17686 cgraph_released_summary_ids if != -1;
17687 (symbol_table::allocate_cgraph_symbol): Always allocate
17688 a cgraph_node.
17689
17690 2019-07-28 Alan Modra <amodra@gmail.com>
17691
17692 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17693 gen_sibcall.
17694
17695 2019-07-28 Alan Modra <amodra@gmail.com>
17696
17697 PR target/91135
17698 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17699 define.
17700 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17701 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17702 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17703
17704 2019-07-28 Alan Modra <amodra@gmail.com>
17705
17706 PR target/91050
17707 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17708 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17709 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17710 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17711 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17712 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17713 in asm_default spec.
17714 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17715 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17716
17717 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
17718
17719 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17720
17721 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17722
17723 PR target/89517
17724 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17725 * config/aarch64/aarch64-option-extensions.def: Add new comments
17726 and restore easier to read options.
17727
17728 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17729
17730 * convert.c (convert_to_real_1): Move part of conversion code...
17731 * match.pd: ...To here.
17732
17733 2019-07-26 Martin Jambor <mjambor@suse.cz>
17734
17735 PR ipa/89330
17736 * ipa-inline-transform.c (check_speculations_1): New function.
17737 (push_all_edges_in_set_to_vec): Likewise.
17738 (check_speculations): Use check_speculations_1, new parameter
17739 new_edges.
17740 (inline_call): Pass new_edges to check_speculations.
17741 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17742 NULL.
17743 (speculation_useful_p): Early return true if edge is inlined, remove
17744 later checks for inline_failed.
17745
17746 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
17747
17748 PR rtl-optimization/91223
17749 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17750 matching with INOUT operand.
17751
17752 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17753
17754 * stmt.c (expand_case): Try to narrow the index type if it's larger
17755 than a word. Tidy up.
17756
17757 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17758
17759 * cif-code.def (NEVER_CALL): New code.
17760 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
17761 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
17762
17763 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
17764
17765 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
17766 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17767
17768 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17769
17770 * ipa-devirt.c (add_type_duplicate): Fix return value.
17771
17772 2019-07-25 Richard Biener <rguenther@suse.de>
17773
17774 * tree-vrp.c (extract_range_from_multiplicative_op): Add
17775 type parameter and use it instead of guessing expression
17776 type from the first operand.
17777 (extract_range_from_binary_expr): Pass expr_type down.
17778
17779 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17780
17781 * config/arm/arm.md (SATrev): Change to code attribute.
17782 (*satsi_<SAT:code>): Adjust for the above.
17783 (*satsi_<SAT:code>_shift): Likewise.
17784
17785 2019-07-25 Richard Biener <rguenther@suse.de>
17786
17787 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
17788 Make value_range * temporary const.
17789 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
17790 Likewise.
17791 (evrp_range_analyzer::record_ranges_from_): Likewise.
17792 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
17793 deal with having recorded a const one.
17794 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
17795 Return a const value_range *.
17796 (evrp_range_analyzer::pop_value_range): Likewise.
17797 (evrp_range_analyzer::stack): Record const value_range *s.
17798 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
17799 Adjust.
17800 * gimple-ssa-sprintf.c (get_int_range): Likewise.
17801 (format_integer): Likewise.
17802 (sprintf_dom_walker::handle_gimple_call): Likewise.
17803 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
17804 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
17805 (vrp_prop::get_value_range): Adjust.
17806 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
17807 modifying the lattice in-place.
17808 (vrp_prop::visit_stmt): Likewise.
17809 * vr-values.c (vr_values::get_lattice_entry): New private method.
17810 (vr_values::get_value_range): Wrap it and return a const
17811 value_range *.
17812 (vr_values::set_def_to_varying): New.
17813 (vr_values::set_defs_to_varying): Use it.
17814 (vr_values::update_value_range): Likewise.
17815 (vr_values::vrp_stmt_computes_nonzero): Adjust.
17816 (values::op_with_constant_singleton_va): Likewise.
17817 (vr_values::extract_range_for_var_from_co): Likewise.
17818 (vr_values::extract_range_from_ssa_name): Likewise.
17819 (vr_values::extract_range_from_cond_expr): Likewise.
17820 (vr_values::extract_range_basic): Likewise.
17821 (compare_ranges): Take const value_range *, adjust.
17822 (compare_range_with_value): Likewise.
17823 (vrp_valueize): Adjust.
17824 (vrp_valueize_1): Likewise.
17825 (vr_values::get_vr_for_comparison): Return a const value_range *.
17826 (vr_values::compare_name_with_value): Adjust.
17827 (vr_values::compare_names): Likewise.
17828 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17829 Likewise.
17830 (vr_values::vrp_evaluate_conditional): Likewise.
17831 (find_case_label_ranges): Take a const value_range *.
17832 (vr_values::vrp_visit_switch_stmt): Adjust.
17833 (vr_values::extract_range_from_phi_node): Likewise.
17834 (vr_values::simplify_div_or_mod_using_ran): Likewise.
17835 (vr_values::simplify_abs_using_ranges): Likewise.
17836 (test_for_singularity): Take a const value_range *.
17837 (range_fits_type_p): Likewise.
17838 (vr_values::simplify_cond_using_ranges_1): Adjust.
17839 (vr_values::simplify_cond_using_ranges_2): Likewise.
17840 (vr_values::simplify_switch_using_ranges): Likewise.
17841 (vr_values::simplify_float_conversion_usi): Likewise.
17842 (vr_values::two_valued_val_range_p): Likewise.
17843 * vr-values.h (vr_values::get_value_range): Return a const
17844 value_range *.
17845 (vr_values::set_def_to_varying): New.
17846 (vr_values::get_lattice_entry): New private method.
17847 (vr_values::get_vr_for_comparison): Return a const value_range *.
17848
17849 2019-07-25 Martin Liska <mliska@suse.cz>
17850 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
17851
17852 PR c++/23383
17853 * common.opt: Add -fallocation-dce
17854 * gimple.c (gimple_call_operator_delete_p): New.
17855 * gimple.h (gimple_call_operator_delete_p): Likewise.
17856 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
17857 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
17858 DECL_IS_OPERATOR_DELETE_P.
17859 (mark_all_reaching_defs_necessary_1): Likewise.
17860 (propagate_necessity): Likewise.
17861 (eliminate_unnecessary_stmts): Handle
17862 gimple_call_operator_delete_p.
17863 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
17864 Add packing of OPERATOR_DELETE.
17865 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
17866 Similarly here.
17867 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
17868 (DECL_SET_IS_OPERATOR_DELETE): New.
17869 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
17870
17871 2019-07-25 Martin Liska <mliska@suse.cz>
17872
17873 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
17874 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
17875 * coverage.c (coverage_begin_function): Likewise.
17876 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
17877 * gimple.c (gimple_call_nonnull_result_p): Likewise.
17878 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
17879 (sem_item::hash_referenced_symbol_properties): Likewise.
17880 * lto-streamer-out.c (hash_tree): Likewise.
17881 * predict.c (expr_expected_value_1): Likewise.
17882 * tree-inline.c (expand_call_inline): Likewise.
17883 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17884 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17885 * tree-core.h (enum function_decl_type): New enum.
17886 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
17887 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
17888 (set_function_decl_type): Likewise.
17889 (DECL_IS_OPERATOR_NEW_P): New.
17890 (DECL_SET_IS_OPERATOR_NEW): Likewise.
17891 (DECL_LAMBDA_FUNCTION): Likewise.
17892 (DECL_LAMBDA_FUNCTION_P): Likewise.
17893 (DECL_IS_OPERATOR_NEW): Remove.
17894 (DECL_SET_LAMBDA_FUNCTION): Likewise.
17895
17896 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
17897
17898 * ipa-profile.c (get_most_common_single_value): Use
17899 get_nth_most_common_value.
17900 * profile.c (sort_hist_value): New function.
17901 (compute_value_histograms): Call sort_hist_value to sort the
17902 values after loading from disk.
17903 * value-prof.c (get_most_common_single_value): Rename to ...
17904 get_nth_most_common_value. Add input params n, return
17905 the n_th value and count.
17906 (gimple_divmod_fixed_value_transform): Use
17907 get_nth_most_common_value.
17908 (gimple_ic_transform): Likewise.
17909 (gimple_stringops_transform): Likewise.
17910 * value-prof.h (get_most_common_single_value): Add input params
17911 n, default to 0.
17912
17913 2019-07-25 Richard Biener <rguenther@suse.de>
17914
17915 PR tree-optimization/91236
17916 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17917 size of CONSTRUCTOR write. Fix buffer size we pass to
17918 native_encode_expr.
17919
17920 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17921
17922 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
17923 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
17924 r273773.
17925
17926 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17927
17928 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
17929 explicitly disabled with --disable-initfini-array.
17930
17931 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17932
17933 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
17934 if-exists.
17935
17936 2019-07-24 Martin Sebor <msebor@redhat.com>
17937
17938 PR tree-optimization/91183
17939 PR tree-optimization/86688
17940 * builtins.c (compute_objsize): Handle MEM_REF.
17941 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
17942 (get_min_string_length): Remove.
17943 (count_nonzero_bytes): New function.
17944 (handle_char_store): Rename...
17945 (handle_store): to this. Handle multibyte stores via integer types.
17946 (strlen_check_and_optimize_stmt): Adjust conditional and the called
17947 function name.
17948
17949 2019-07-24 Martin Sebor <msebor@redhat.com>
17950
17951 PR driver/80545
17952 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
17953 (diagnostic_report_diagnostic): Same.
17954 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
17955 (diagnostic_context::lang_mask): New data member.
17956 * ipa-pure-const.c (suggest_attribute): Use
17957 lang_hooks.option_lang_mask ().
17958 * opts-common.c (option_enabled): Handle new argument.
17959 (get_option_state): Pass an additional argument.
17960 * opts.c (print_filtered_help): Print supported languages for
17961 unsupported options. Adjust printing of current state.
17962 * opts.h (option_enabled): Add argument.
17963 * toplev.c (print_switch_values): Use lang_mask.
17964 (general_init): Set global_dc->lang_mask.
17965
17966 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17967
17968 PR bootstrap/87030
17969 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
17970
17971 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
17972
17973 * cgraphunit.c (symbol_table::compile): Start and stop
17974 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
17975 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
17976
17977 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
17978
17979 * gimplify.c (flag_instrument_functions_exclude_p): Include
17980 namespace/class information in the printable name.
17981 * opts.c (add_comma_separated_to_vector): Add NUL terminator
17982 to tokens entered into the vector.
17983
17984 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
17985
17986 * tree-nested.c (build_simple_mem_ref_notrap): New function.
17987 (get_static_chain): Call it instead of build_simple_mem_ref.
17988 (get_frame_field): Likewise.
17989 (get_nonlocal_debug_decl): Likewise.
17990 (convert_nonlocal_reference_op): Likewise.
17991
17992 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
17993
17994 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
17995 declaration.
17996 (arc_compute_frame_size): Millicode is disabled when compiling
17997 ISR.
17998 (arc_return_address_register): Likewise.
17999 (arc_compute_function_type): Likewise.
18000 (arc_compute_frame_size): Likewise.
18001 (secondary_reload_info): Likewise.
18002 (arc_get_unalign): Likewise.
18003 (arc_can_use_return_insn): Declare.
18004 * config/arc/arc.c (AUX_LP_START): Define
18005 (AUX_LP_END): Likewise.
18006 (arc_frame_info): Update gmask member to 64-bit datum.
18007 (GMASK_LEN): Update.
18008 (arc_compute_function_type): Make it static, move it forward.
18009 (arc_must_save_register): Update, consider the extra regs.
18010 (arc_compute_millicode_save_restore_regs): Update to use the 64
18011 bit gmask.
18012 (arc_compute_frame_size): Likewise.
18013 (arc_enter_leave_p): Likewise.
18014 (arc_save_callee_saves): Likewise.
18015 (arc_restore_callee_saves): Likewise.
18016 (arc_save_callee_enter): Likewise.
18017 (arc_restore_callee_leave): Likewise.
18018 (arc_save_callee_milli): Likewise.
18019 (arc_restore_callee_milli): Likewise.
18020 (arc_expand_prologue): Add new interrupt handling.
18021 (arc_return_address_register): Make it static, move it forward.
18022 (arc_expand_epilogue): Add new interrupt handling.
18023 (arc_get_unalign): Delete.
18024 (arc_epilogue_uses): Make sure we do not remove the extra
18025 saved/restored registers when interrupt.
18026 (arc_can_use_return_insn): New function.
18027 (push_reg): Likewise.
18028 (pop_reg): Likewise.
18029 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18030 procedures.
18031 (arc_restore_callee_saves): Likewise, but restoring.
18032 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18033 (R33_REG): Likewise.
18034 (R34_REG): Likewise.
18035 (R35_REG): Likewise.
18036 (R36_REG): Likewise.
18037 (R37_REG): Likewise.
18038 (R38_REG): Likewise.
18039 (R39_REG): Likewise.
18040 (R45_REG): Likewise.
18041 (R46_REG): Likewise.
18042 (R47_REG): Likewise.
18043 (R48_REG): Likewise.
18044 (R49_REG): Likewise.
18045 (R50_REG): Likewise.
18046 (R51_REG): Likewise.
18047 (R52_REG): Likewise.
18048 (R53_REG): Likewise.
18049 (R54_REG): Likewise.
18050 (R55_REG): Likewise.
18051 (R56_REG): Likewise.
18052 (R58_REG): Likewise.
18053 (type): Add rtie attribute.
18054 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18055 (movsi_insn): Accept moves to lp_count.
18056 (rtie): Update pattern.
18057 (simple_return): Simplify it, don't use this pattern as a return
18058 from an interrupt.
18059 (arc600_rtie): New pattern.
18060 (p_return_i): Clean up.
18061 (return): Likewise.
18062 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18063 family CPUs.
18064 * config/arc/predicates.md (move_src_operand): Consider lp_count
18065 as a register.
18066
18067 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18068
18069 * config/s390/predicates.md (addv_const_operand): New predicate.
18070 * config/s390/s390-modes.def (CCO): New condition code mode.
18071 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18072 (s390_branch_condition_mask): Likewise.
18073 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18074 ("mulv<mode>4"): New expanders.
18075 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18076 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18077 pattern definitions.
18078
18079 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18080
18081 PR middle-end/91166
18082 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18083 (define_predicates): Add entry for uniform_vector_p.
18084 (vec_same_elem_p): New match pattern.
18085
18086 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18087
18088 PR bootstrap/87030
18089 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18090 * config/i386/darwin32-biarch.h .. to here.
18091 * config/i386/darwin64-biarch.h: Adjust comments.
18092 * config/rs6000/darwin32-biarch.h: Likewise.
18093 * config/rs6000/darwin64-biarch.h: Likewise.
18094 * config.gcc: Missed commit from r273746
18095 (*-*-darwin*): Don't include CPU t-darwin here.
18096 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18097 an error message if i686-darwin configuration is attempted for
18098 Darwin >= 18.
18099
18100 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18101
18102 PR bootstrap/87030
18103 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18104 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18105 an error message if i686-darwin configuration is attempted for
18106 Darwin >= 18.
18107 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18108 (powerpc-*-darwin*): Use biarch files where needed.
18109 (powerpc64-*-darwin*): Likewise.
18110 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18111 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18112 arch case.
18113 * config/i386/darwin32-biarch.h: New.
18114 * config/i386/darwin64.h: Rename.
18115 * config/i386/darwin64-biarch.h: To this.
18116 * config/i386/t-darwin: Rename.
18117 * config/i386/t-darwin32-biarch: To this.
18118 * config/i386/t-darwin64: Rename.
18119 * config/i386/t-darwin64-biarch: To this.
18120 * config/rs6000/darwin32-biarch.h: New.
18121 * config/rs6000/darwin64.h: Rename.
18122 * config/rs6000/darwin64-biarch.h: To this.
18123 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18124 arch case.
18125 * config/rs6000/t-darwin8: Rename.
18126 * config/rs6000/t-darwin32-biarch: To this.
18127 * config/rs6000/t-darwin64 Rename.
18128 * config/rs6000/t-darwin64-biarch: To this.
18129
18130 2019-07-23 Martin Sebor <msebor@redhat.com>
18131
18132 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18133
18134 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18135
18136 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18137 (rh): New alias for it.
18138
18139 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18140
18141 * gdbhooks.py: Pass replace=True to
18142 gdb.printing.register_pretty_printer.
18143
18144 2019-07-23 Richard Biener <rguenther@suse.de>
18145
18146 PR debug/91231
18147 * lto-streamer-in.c (input_function): Drop inline-entry markers
18148 that ended up with an unknown location block.
18149
18150 2019-07-23 Richard Biener <rguenther@suse.de>
18151
18152 PR tree-optimization/83518
18153 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18154 init from a constant even when partial defs are already recorded.
18155
18156 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18157
18158 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18159 * config/i386/znver1.md: Enable patterns for znver2 and add store
18160 variants which use extra AGU unit.
18161
18162 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18163
18164 * config/i386/i386-options.c (ix86_option_override_internal): Default
18165 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18166 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18167 for ZNVER2.
18168
18169 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18170
18171 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18172 (znver2_costs): Update 256 bit SSE costs and multiplication.
18173
18174 2019-07-23 Jan Beulich <jbeulich@suse.com>
18175
18176 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18177 Require only AVX512F.
18178 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18179 alternative expanding to vpternlog.
18180
18181 2019-07-23 Martin Liska <mliska@suse.cz>
18182
18183 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18184 to -flto in dwarf producer string.
18185
18186 2019-07-23 Richard Biener <rguenther@suse.de>
18187
18188 * tree-cfg.c (label_for_bb): Remove global var.
18189 (main_block_label): Take label_for_bb as argument.
18190 (cleanup_dead_labels_eh): Likewise, adjust.
18191 (cleanup_dead_labels): Adjust.
18192
18193 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18194
18195 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18196 Configurations): Add documentation for __builtin_mtfsf.
18197
18198 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18199
18200 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18201 * config/riscv/riscv.c (riscv_constant_alignment): Use
18202 riscv_align_data_type.
18203 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18204 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18205 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18206 * config/riscv/riscv.opt (malign-data): New.
18207 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18208
18209 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18210
18211 * cgraph.c (dump_graphviz): New function.
18212 * cgraph.h (dump_graphviz): New function.
18213 * symtab.c (dump_graphviz): New function.
18214
18215 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18216
18217 * config/aarch64/aarch64-simd.md
18218 (*aarch64_simd_sra<mode>): New.
18219 * config/aarch64/iterators.md
18220 (SHIFTRT): New iterator.
18221 (sra_op): New attribute.
18222
18223 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18224
18225 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18226 callee-saved regs R4->R10 in an interrupt function that calls another
18227 function.
18228
18229 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18230
18231 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18232 (_mm_blendv_epi8): New.
18233
18234 2019-07-22 Richard Biener <rguenther@suse.de>
18235
18236 PR tree-optimization/91221
18237 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18238 restrict partial-def handling of empty constructors and
18239 memset to refs with known offset.
18240
18241 2019-07-22 Jan Beulich <jbeulich@suse.com>
18242
18243 * config/i386/sse.md (ternlogsuffix): New.
18244 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18245 AVX512F is in use.
18246 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18247
18248 2019-07-22 Martin Liska <mliska@suse.cz>
18249
18250 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18251 comment.
18252 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18253
18254 2019-07-22 Martin Liska <mliska@suse.cz>
18255
18256 * lto-section-in.c (lto_get_section_data):
18257 Use new function get_compression.
18258 * lto-streamer-out.c (produce_lto_section): Use
18259 set_compression to encode compression algorithm.
18260 * lto-streamer.h (struct lto_section): Do not
18261 use bitfields in the format.
18262
18263 2019-07-22 Martin Liska <mliska@suse.cz>
18264
18265 PR driver/91172
18266 * opts-common.c (decode_cmdline_option): Decode
18267 argument of -Werror and check it for a wrong language.
18268 * opts-global.c (complain_wrong_lang): Remove such case.
18269
18270 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18271
18272 * config/arc/arc.c (prepare_move_operands): Always use an
18273 intermediate register when storing a TLS symbols.
18274
18275 2019-07-22 Stafford Horne <shorne@gmail.com>
18276
18277 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18278 force_reg.
18279
18280 2019-07-22 Stafford Horne <shorne@gmail.com>
18281
18282 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18283 and munordered-float validations.
18284 * config/or1k/constraints.md (d): New register constraint.
18285 * config/or1k/predicates.md (fp_comparison_operator): New.
18286 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18287 operands.
18288 (or1k_expand_compare): Normalize unordered comparisons.
18289 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18290 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18291 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18292 * config/or1k/or1k.md (type): Add fpu.
18293 (fpu): New instruction reservation.
18294 (F, f, fr, fi, FI, FOP, fop): New.
18295 (<fop><F:mode>3): New ALU instruction definition.
18296 (float<fi><F:mode>2): New conversion instruction definition.
18297 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18298 (fpcmpcc): New code iterator.
18299 (*sf_fp_insn): New instruction definition.
18300 (cstore<F:mode>4): New expand definition.
18301 (cbranch<F:mode>4): New expand definition.
18302 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18303 munordered-float): New options.
18304 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18305 munordered-float.
18306
18307 2019-07-22 Stafford Horne <shorne@gmail.com>
18308
18309 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18310 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18311 documenation to be more clear.
18312 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18313 more clear.
18314 * config/or1k/or1k.opt (mrori): New option.
18315 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18316 msfimm, mshftimm): Rewrite documentation to be more clear.
18317 * config/or1k/or1k.md (insn_support): Add ror and rori.
18318 (enabled): Add conditions for ror and rori.
18319 (rotrsi3): Replace condition for shftimm with ror and rori.
18320
18321 2019-07-22 Stafford Horne <shorne@gmail.com>
18322
18323 PR target/90363
18324 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18325 (extend<mode>si2): Update predicate.
18326 * config/or1k/predicates.md (volatile_mem_operand): New.
18327 (reg_or_mem_operand): New.
18328
18329 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18330
18331 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18332 * config/rs6000/rs6000-call.c: ... to here.
18333
18334 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18335
18336 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18337 memory.
18338
18339 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18340
18341 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18342
18343 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18344
18345 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18346
18347 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18348
18349 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18350 (any_memory_operand): New predicate.
18351 (reg_or_mem_operand): Use it.
18352
18353 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18354
18355 PR target/91204
18356 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18357
18358 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18359
18360 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18361 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18362
18363 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18364
18365 * tree.def (OMP_LOOP): New tree code.
18366 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18367 (enum omp_clause_bind_kind): New enum.
18368 (struct tree_omp_clause): Add subcode.bind_kind.
18369 * tree.h (OMP_LOOP_CHECK): Rename to ...
18370 (OMP_LOOPING_CHECK): ... this.
18371 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18372 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18373 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18374 (OMP_CLAUSE_BIND_KIND): Define.
18375 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18376 bind clause entries.
18377 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18378 * tree-pretty-print.c (dump_omp_clause): Likewise.
18379 (dump_generic_node): Handle OMP_LOOP.
18380 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18381 (in_omp_construct): New variable.
18382 (is_gimple_stmt): Handle OMP_LOOP.
18383 (gimplify_scan_omp_clauses): For lastprivate don't set
18384 check_non_private if code == OMP_LOOP. For reduction clause
18385 on OMP_LOOP combined with parallel or teams propagate as shared
18386 on the combined construct. Handle OMP_CLAUSE_BIND.
18387 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18388 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18389 for constructs from a loop construct to gimplify_scan_omp_clauses.
18390 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18391 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18392 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18393 to match the implicit ORT_TARGET construct around whole body.
18394 Temporarily clear in_omp_construct when processing body.
18395 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18396 etc. temporarily set in_omp_construct when processing body.
18397 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18398 * omp-low.c (struct omp_context): Add loop_p.
18399 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18400 in that the original var might be private.
18401 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18402 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18403 addition of loop construct.
18404 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18405
18406 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18407 lastprivate non-addressable iterator of a collapse(1) simd.
18408
18409 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18410
18411 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18412 as in rs6000.c.
18413
18414 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18415
18416 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18417 refer to default conditions. Warn for the 'y' spec which is ignored
18418 by current linkers.
18419
18420 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18421
18422 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18423 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18424 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18425 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18426 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18427 init_cumulative_args, rs6000_promote_function_mode,
18428 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18429 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18430 rs6000_function_arg_boundary, rs6000_parm_offset,
18431 rs6000_parm_start, rs6000_arg_size,
18432 rs6000_darwin64_record_arg_advance_flush,
18433 rs6000_darwin64_record_arg_advance_recurse,
18434 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18435 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18436 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18437 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18438 rs6000_finish_function_arg, rs6000_function_arg,
18439 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18440 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18441 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18442 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18443 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18444 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18445 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18446 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18447 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18448 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18449 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18450 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18451 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18452 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18453 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18454 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18455 get_element_number, altivec_expand_vec_set_builtin,
18456 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18457 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18458 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18459 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18460 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18461 rs6000_expand_builtin, rs6000_vector_type,
18462 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18463 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18464 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18465 to rs6000-call.c.
18466 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18467 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18468 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18469 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18470 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18471 init_cumulative_args, rs6000_promote_function_mode,
18472 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18473 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18474 rs6000_function_arg_boundary, rs6000_parm_offset,
18475 rs6000_parm_start, rs6000_arg_size,
18476 rs6000_darwin64_record_arg_advance_flush,
18477 rs6000_darwin64_record_arg_advance_recurse,
18478 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18479 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18480 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18481 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18482 rs6000_finish_function_arg, rs6000_function_arg,
18483 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18484 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18485 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18486 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18487 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18488 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18489 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18490 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18491 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18492 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18493 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18494 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18495 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18496 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18497 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18498 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18499 get_element_number, altivec_expand_vec_set_builtin,
18500 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18501 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18502 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18503 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18504 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18505 rs6000_expand_builtin, rs6000_vector_type,
18506 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18507 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18508 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18509 to here from rs6000.c.
18510 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18511 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18512 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18513 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18514 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18515 rs6000_return_in_memory, rs6000_return_in_msb,
18516 rs6000_pass_by_reference, setup_incoming_varargs,
18517 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18518 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18519 rs6000_function_arg_padding, rs6000_function_arg,
18520 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18521 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18522 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18523 rs6000_passes_long_double, rs6000_passes_vector,
18524 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18525 altivec_builtin_mask_for_load) Add declarations.
18526 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18527 * config/config.gcc: Add new source file rs6000-call.c to garbage
18528 collector and extra_objs.
18529
18530 2019-07-19 Jeff Law <law@redhat.com>
18531
18532 PR tree-optimization/86061
18533 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18534 strncpy. Drop some trivial dead code.
18535 (maybe_trim_memstar_call): Handle strncpy.
18536
18537 2019-07-19 Richard Biener <rguenther@suse.de>
18538
18539 PR tree-optimization/91211
18540 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18541 memset encoding size.
18542
18543 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18544
18545 PR target/91204
18546 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18547
18548 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18549
18550 PR ipa/91194
18551 * ipa-inline.c (recursive_inlining): Fix limits check.
18552
18553 2019-07-19 Richard Biener <rguenther@suse.de>
18554
18555 PR tree-optimization/91200
18556 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18557 no PHI nodes in middle-bb.
18558
18559 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18560
18561 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18562 to +sve-bitperm.
18563 * config/aarch64/aarch64-option-extensions.def: Likewise.
18564
18565 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18566
18567 PR middle-end/91190
18568 * function.c (insert_temp_slot_address): Store into the hash table
18569 a copy of address to avoid RTL sharing issues.
18570
18571 2019-07-19 Richard Biener <rguenther@suse.de>
18572
18573 PR tree-optimization/91207
18574 Revert
18575 2019-07-17 Richard Biener <rguenther@suse.de>
18576
18577 PR tree-optimization/91178
18578 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18579 loads with a gap larger than the vector size always use
18580 VMAT_STRIDED_SLP.
18581 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18582 avoid loading vectors that are only contained in the gap
18583 and thus are not needed.
18584
18585 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18586
18587 * config/i386/i386.md (*addqi_2_slp): Remove.
18588 (*<code>qi_2_slp): Ditto.
18589
18590 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18591
18592 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18593 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18594 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18595 Rename function from rs6000_prefixed_address.
18596 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18597 TARGET_HAS_TOC.
18598 (TARGET_TOC): Likewise.
18599 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18600 rs6000.h.
18601 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18602 TARGET_HAS_TOC.
18603 (TARGET_TOC): Likewise.
18604 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18605 rs6000.h.
18606 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18607 TARGET_HAS_TOC.
18608 (TARGET_TOC): Likewise.
18609 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18610 check to require -mcmodel=medium for pc-relative addressing.
18611 (create_TOC_reference): Add assertion for TARGET_TOC.
18612 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18613 TARGET_NO_TOC.
18614 (rs6000_emit_move): Likewise.
18615 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18616 to 'TOC_alias_set'.
18617 (get_TOC_alias_set): Likewise.
18618 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18619 TARGET_NO_TOC.
18620 (rs6000_can_eliminate): Likewise.
18621 (rs6000_prefixed_address_mode_p): Rename function from
18622 rs6000_prefixed_address.
18623 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18624 TARGET_HAS_TOC and not pc-relative.
18625 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18626 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18627 TARGET_HAS_TOC.
18628 (TARGET_TOC): Likewise.
18629 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18630 rs6000.h.
18631
18632 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18633
18634 PR target/91188
18635 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18636 for operand 0. Do not use (match_dup) to match operand 1 with
18637 operand 0. Add check in insn constraint that either input operand
18638 matches operand 0. Use SWI12 mode iterator to also handle
18639 HImode operands.
18640 (*and<mode>_1_slp): Ditto.
18641 (*<code>qi_1_slp): Ditto.
18642 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18643 Do not use (match_dup) to match operand 1 with operand 0. Add
18644 check in insn constraint that operand 1 matches operand 0.
18645 Use SWI12 mode iterator to also handle HImode operands.
18646 (*ashl<mode>3_1_slp): Ditto.
18647 (*<shift_insn><mode>3_1_slp): Ditto.
18648 (*<rotate_insn><mode>3_1_slp): Ditto.
18649
18650 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18651
18652 * config/arm/arm-builtins.c
18653 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18654 (arm_expand_unop_builtin): Likewise.
18655 * config/arm/crypto.md
18656 (crypto_sha1h): Convert from define_insn to define_expand.
18657 (crypto_<crypto_pattern>): Likewise.
18658 (crypto_sha1h_lb): New define_insn.
18659 (crypto_<crypto_pattern>_lb): Likewise.
18660
18661 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18662
18663 PR target/90317
18664 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18665 (vsha1cq_u32): Likewise.
18666 (vsha1pq_u32): Likewise.
18667 (vsha1mq_u32): Likewise.
18668 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18669 vec select.
18670 (crypto_sha1c): Correct vec select.
18671 (crypto_sha1m): Likewise.
18672 (crypto_sha1p): Likewise.
18673
18674 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18675
18676 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18677 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18678 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18679 (subdi_zesidi_zesidi): Likewise.
18680 (negdi2_compare, negdi2_insn): Likewise.
18681 (negdi_extensidi): Likewise.
18682 (negdi_zero_extendsidi): Likewise.
18683 (arm_cmpdi_insn): Likewise.
18684 (subsi3_carryin): Use arm_borrow_operation.
18685 (subsi3_carryin_const): Likewise.
18686 (subsi3_carryin_const0): Likewise.
18687 (subsi3_carryin_compare): Likewise.
18688 (subsi3_carryin_compare_const): Likewise.
18689 (subsi3_carryin_compare_const0): Likewise.
18690 (subsi3_carryin_shift): Likewise.
18691 (rsbsi3_carryin_shift): Likewise.
18692 (negsi2_carryin_compare): Likewise.
18693
18694 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18695
18696 PR tree-optimization/91137
18697 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18698 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18699 Init, use and fini the above new field.
18700 (determine_base_object_1): New function.
18701 (determine_base_object): Reimplement using walk_tree.
18702
18703 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18704
18705 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18706 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18707 CLEANUP_FORCE_FAST_DCE is set.
18708 * ifcvt.c (rest_of_handle_if_conversion): Pass
18709 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18710 if-conversion succeeded.
18711
18712 2019-07-18 Richard Biener <rguenther@suse.de>
18713
18714 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18715 branches to make code less indented.
18716
18717 2019-07-17 Alexandre Oliva <oliva@adacore.com>
18718
18719 PR middle-end/81824
18720 * attribs.c (decls_mismatched_attributes): Simplify the logic
18721 that avoids duplicates and false positives.
18722
18723 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
18724
18725 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18726 data into data section when generating PIC code.
18727 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18728 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18729 generating code for SOM targets earlier than HP-UX 11. Otherwise,
18730 return 2 for SOM and 0 for other targets.
18731
18732 2019-07-17 Jeff Law <law@redhat.com>
18733
18734 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18735 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
18736 avoid unexpected switch statement fallthru.
18737
18738 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18739
18740 * config/i386/i386.md (*add<dwi>3_doubleword):
18741 Remove redundant constraints.
18742 (*add<mode>_1): Ditto.
18743 (*addhi_1): Ditto.
18744 (*addqi_1): Ditto.
18745 (*addqi_1_slp): Ditto.
18746 (*add<mode>_2): Ditto.
18747 (*addv<mode>4): Ditto.
18748 (*sub<dwi>3_doubleword): Ditto.
18749 (*sub<mode>_1): Ditto.
18750 (*subqi_1_slp): Ditto.
18751 (*sub<mode>_2): Ditto.
18752 (*subv<mode>4): Ditto.
18753 (*sub<mode>_3): Ditto.
18754 (@add<mode>3_carry): Ditto.
18755 (@sub<mode>3_carry): Ditto.
18756 (*add<mode>3_cc_overflow_1): Ditto.
18757 (*add<mode>3_zext_cc_overflow_2): Ditto.
18758 (*anddi_1): Ditto.
18759 (*and<mode>_1): Ditto.
18760 (*andqi_1): Ditto.
18761 (*andqi_1_slp): Ditto.
18762 (*anddi_2): Ditto.
18763 (*andqi_2_maybe_si): Ditto.
18764 (*and<mode>_2): Ditto.
18765 (*andqi_2_slp): Ditto.
18766 (*<code><mode>_1): Ditto.
18767 (*<code>qi_1): Ditto.
18768 (*<code>qi_1_slp): Ditto.
18769 (*<code><mode>_2): Ditto.
18770 (*<code>qi_2_slp): Ditto.
18771
18772 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
18773
18774 * alias.c (record_component_aliases): Do not simplify pointed-to
18775 types of ODR types.
18776
18777 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18778
18779 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
18780 partial reg stall on alternative 2.
18781
18782 2019-07-17 Richard Biener <rguenther@suse.de>
18783
18784 PR tree-optimization/91178
18785 * tree-ssa.c (release_defs_bitset): Iterate from higher to
18786 lower SSA names to avoid quadratic behavior in the common case.
18787 * tree-data-ref.c (split_constant_offset): Add limit argument
18788 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18789 (split_constant_offset_1): Add limit argument and use it to
18790 limit SSA def walking. Optimize the common plus/minus case.
18791
18792 2019-07-17 Richard Biener <rguenther@suse.de>
18793
18794 PR tree-optimization/91178
18795 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18796 loads with a gap larger than the vector size always use
18797 VMAT_STRIDED_SLP.
18798 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18799 avoid loading vectors that are only contained in the gap
18800 and thus are not needed.
18801
18802 2019-07-17 Richard Biener <rguenther@suse.de>
18803
18804 PR tree-optimization/91180
18805 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
18806 computation for memset partial defs.
18807
18808 2019-07-17 Jakub Jelinek <jakub@redhat.com>
18809
18810 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
18811 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
18812 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
18813 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
18814 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
18815 * omp-grid.c (grid_process_grid_body,
18816 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
18817 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
18818 == GF_OMP_FOR_KIND_SIMD.
18819 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
18820 check_omp_nesting_restrictions, scan_omp_1_stmt,
18821 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
18822 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
18823 omp_find_scan): Likewise.
18824 * omp-expand.c (expand_omp_for): Likewise.
18825 * omp-general.c (omp_extract_for_data): Likewise.
18826
18827 PR tree-optimization/91157
18828 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
18829 a vector boolean with scalar mode.
18830 (expand_vector_condition): Handle first operand being a vector boolean
18831 with scalar mode.
18832 (expand_vector_operations_1): For comparisons, don't bail out early
18833 if the return type is vector boolean with scalar mode, but comparison
18834 operand type is not.
18835
18836 2019-07-17 Richard Biener <rguenther@suse.de>
18837
18838 PR tree-optimization/91181
18839 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
18840 IFN_LOADs as calls.
18841
18842 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
18843
18844 * config/i386/i386.md (*testdi_1): Match CCZmode for
18845 constants that might have the SImode sign bit set.
18846 (*testqi_1_maybe_si): Remove "!" constraint modifier.
18847 Use correct constraints for pentium pairing.
18848 (*test<mode>_1): Ditto.
18849
18850 2019-07-16 Jeff Law <law@redhat.com>
18851
18852 PR rtl-optimization/91173
18853 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
18854 SSA_NAME with a constant value, fold its value into the offset
18855 and clear the base before calling gen_addr_rtx.
18856
18857 2019-07-16 Jakub Jelinek <jakub@redhat.com>
18858
18859 PR rtl-optimization/91164
18860 * dse.c (rest_of_handle_dse): If dead edges have been purged,
18861 invalidate dominance info.
18862
18863 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18864
18865 * read-md.h (md_reader::record_potential_iterator_use): Add a
18866 file_location parameter.
18867 * read-rtl.c (attribute_use::loc): New field.
18868 (map_attr_string): Take a file_location parameter. Report cases
18869 in which attributes map to multiple distinct values.
18870 (apply_attribute_uses): Update call accordingly.
18871 (md_reader::handle_overloaded_name): Likewise.
18872 (md_reader::apply_iterator_to_string): Likewise. Skip empty
18873 nonnull strings.
18874 (record_attribute_use): Take a file_location parameter.
18875 Initialize attribute_use::loc.
18876 (md_reader::record_potential_iterator_use): Take a file_location
18877 parameter. Update call to record_attribute_use.
18878 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
18879 (rtx_reader::read_rtx_code): Likewise.
18880 (rtx_reader::read_rtx_operand): Likewise. Record a location
18881 for implicitly-expanded empty strings.
18882
18883 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18884
18885 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
18886 Use file_location instead of separate fields.
18887 (md_reader::set_md_ptr_loc): Take a file_location instead of a
18888 separate filename and line number.
18889 * read-md.c (ptr_loc): As above.
18890 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
18891 (md_reader::fprint_md_ptr_loc): Likewise.
18892 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
18893 instead of a separate filename and line number.
18894 (md_reader::read_string): Update call accordingly.
18895
18896 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18897
18898 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
18899 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
18900 leaving the choice between SFDF and P implicit.
18901 (*mov<mode>_update2): Likewise.
18902 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
18903 rather than leaving the choice betweem IBM128 and GPR implicit.
18904 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
18905 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
18906 QHSI implicit.
18907 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
18908 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
18909 * config/rs6000/vsx.md
18910 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
18911 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
18912 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
18913 and VSX_EXTRACT_I implicit.
18914
18915 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18916
18917 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
18918 Explicitly use <MOVEP1:MODE> for the mode attribute.
18919
18920 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
18921
18922 PR bootstrap/91176
18923 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
18924
18925 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
18926
18927 PR target/91050
18928 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
18929 .machine directive.
18930
18931 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
18932
18933 * config/i386/i386.md (@test<mode>_ccno_1):
18934 Rename from test<mode>_ccno_1.
18935 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
18936 (*testqi_1_maybe_si): Remove modrm attribute.
18937 (*test<mode>_1): Ditto.
18938 * config/i386/i386-expand.c (ix86_split_idivmod): Use
18939 gen_test_ccno_1 and gen_extend_insn.
18940
18941 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
18942
18943 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
18944 to 0.
18945
18946 2019-07-15 Richard Biener <rguenther@suse.de>
18947
18948 PR middle-end/91162
18949 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
18950 node make sure to replace all uses with something valid.
18951
18952 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
18953
18954 PR tree-optimization/88497
18955 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
18956 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
18957 function undistribute_bitref_for_vector.
18958 (undistribute_bitref_for_vector): New function.
18959 (cleanup_vinfo_map): Likewise.
18960 (sort_by_mach_mode): Likewise.
18961
18962 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
18963
18964 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
18965 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
18966 and testdi_ccno_1 using SWI48 mode attribute.
18967 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
18968 x86_64_szext_general_operand.
18969 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
18970 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
18971 instead of genera_operand mode attribute.
18972
18973 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
18974
18975 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
18976 fopen and fclose to their respective types.
18977 (DotFn.invoke): Ditto.
18978
18979 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
18980
18981 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
18982 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
18983 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
18984 (array_index_predicate): Remove.
18985 (analyze_function_body): Account cost for variable ofsetted array
18986 indexing.
18987 (estimate_node_size_and_time): Do not compute array index hint.
18988 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
18989 (inline_read_section): Do not read array index hint.
18990 (ipa_fn_summary_write): Do not write array index hint.
18991 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
18992 * ipa-cp.c (hint_time_bonus): Remove.
18993 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
18994 (ipa_fnsummary): Remove array_index.
18995 * ipa-inline.c (want_inline_small_function_p): Do not use
18996 array_index.
18997 (edge_badness): Likewise.
18998 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
18999
19000 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19001
19002 PR target/91148
19003 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19004 superfluous "builtin function" phrasing.
19005
19006 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19007
19008 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19009 Break out from ...
19010 (aliasing_component_refs_walk): Break out from ...
19011 (aliasing_component_refs_p): ... here.
19012
19013 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19014
19015 PR target/91148
19016 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19017 "builtin function" phrasing.
19018
19019 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19020
19021 PR target/90723
19022 * recog.h (temporary_volatile_ok): New class.
19023 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19024 volatile_ok temporarily to true using temporary_volatile_ok.
19025 * expr.c (emit_block_move_via_cpymem): Likewise.
19026 * optabs.c (maybe_legitimize_operand): Likewise.
19027
19028 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19029
19030 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19031 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19032 uses inside of order(concurrent) constructs.
19033 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19034 OMP_CLAUSE_ORDER is seen.
19035 * omp-low.c (struct omp_context): Add order_concurrent member.
19036 (scan_sharing_clauses): Set ctx->order_concurrent if
19037 OMP_CLAUSE_ORDER is seen.
19038 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19039 of simd order(concurrent). Diagnose constructs not allowed inside of
19040 for order(concurrent).
19041 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19042 complaining about static double setjmp (double); or class static
19043 methods or non-global namespace setjmps.
19044 (omp_runtime_api_call): New function.
19045 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19046 order(concurrent) loops.
19047
19048 2019-07-12 Martin Sebor <msebor@redhat.com>
19049
19050 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19051 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19052 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19053 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19054
19055 2019-07-12 Jan Hubicka <jh@suse.cz>
19056
19057 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19058 (indirect_refs_may_alias_p): ... here.
19059 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19060 mem refs in the access paths.
19061
19062 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19063
19064 PR tree-optimization/89430
19065 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19066 store elimination for local variable without address escape.
19067
19068 2019-07-12 Jeff Law <law@redhat.com>
19069
19070 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19071 for the ".far" section.
19072
19073 2019-07-12 Richard Biener <rguenther@suse.de>
19074
19075 PR tree-optimization/91145
19076 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19077 chain check.
19078
19079 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19080
19081 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19082 rather than this_state as the lowering context for the ELSE
19083 seq in a GIMPLE_EH_ELSE.
19084
19085 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19086
19087 * vector-builder.h (vector_builder::elt): Allow already-supplied
19088 elements to be read back before building is complete.
19089
19090 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19091
19092 PR rtl-optimization/91136
19093 * df-core.c (ACCESSING REFS): Fix typos in comment.
19094 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19095 the beginning of the block to the initial set of live registers.
19096
19097 2019-07-12 Richard Biener <rguenther@suse.de>
19098
19099 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19100 * fold-const.c (get_array_ctor_element_at_index): Add
19101 ctor_idx output parameter informing the caller where in
19102 the constructor the element was (not) found. Add early exit
19103 for when the ctor is sorted.
19104 * gimple-fold.c (fold_array_ctor_reference): Support constant
19105 folding across multiple array elements.
19106
19107 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19108
19109 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19110 doesn't have location, set the current location to the function's end.
19111
19112 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19113
19114 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19115 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19116 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19117 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19118 * config/aarch64/aarch64-simd.md
19119 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19120 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19121 * config/aarch64/aarch64-sve.md
19122 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19123 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19124
19125 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19126
19127 * doc/md.texi: Document that @ patterns can have different
19128 numbers of operands.
19129 * genemit.c (handle_overloaded_gen): Handle this case.
19130 * genopinit.c (handle_overloaded_gen): Likewise.
19131 * gensupport.c (replace_operands_with_dups): Iterate over
19132 the new rtx's format rather than the old one's.
19133
19134 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19135
19136 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19137 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19138 order clause entries.
19139 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19140 * tree-pretty-print.c (dump_omp_clause): Likewise.
19141 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19142 Likewise.
19143 * omp-low.c (scan_sharing_clauses): Likewise.
19144 * tree-nested.c (convert_nonlocal_omp_clauses,
19145 convert_local_omp_clauses): Likewise.
19146
19147 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19148
19149 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19150 fallthrough target of current basic block isn't the placed
19151 right next.
19152
19153 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19154
19155 PR target/90980
19156 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19157 (_mm512_storeu_epi64): Likewise.
19158 (_mm512_loadu_epi32): Likewise.
19159 (_mm512_storeu_epi32): Likewise.
19160 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19161 (_mm_storeu_epi64): Likewise.
19162 (_mm256_storeu_epi32): Likewise.
19163 (_mm_storeu_epi32): Likewise.
19164
19165 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19166
19167 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19168
19169 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19170
19171 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19172 Handle Modula-2.
19173
19174 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19175
19176 PR target/91124
19177 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19178 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19179 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19180 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19181 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19182 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19183 define_insns.
19184 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19185 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19186 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19187 define_insns.
19188 (sse2_cvttpd2dq<mask_name>): Change into ...
19189 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19190 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19191 (*sse2_cvtpd2dq<mask_name>): Change into ...
19192 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19193 Add "C" constraint to const0_operand.
19194 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19195 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19196 changes.
19197
19198 PR target/91124
19199 * config/i386/i386-builtin-types.def
19200 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19201 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19202 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19203 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19204 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19205 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19206 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19207 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19208 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19209 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19210 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19211 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19212 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19213 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19214 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19215 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19216 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19217 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19218 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19219 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19220 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19221 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19222 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19223 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19224 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19225 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19226 __builtin_ia32_vpdpbusd_v4si_maskz,
19227 __builtin_ia32_vpdpbusds_v16si_mask,
19228 __builtin_ia32_vpdpbusds_v16si_maskz,
19229 __builtin_ia32_vpdpbusds_v8si_mask,
19230 __builtin_ia32_vpdpbusds_v8si_maskz,
19231 __builtin_ia32_vpdpbusds_v4si_mask,
19232 __builtin_ia32_vpdpbusds_v4si_maskz,
19233 __builtin_ia32_vpdpwssd_v16si_mask,
19234 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19235 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19236 __builtin_ia32_vpdpwssd_v4si_maskz,
19237 __builtin_ia32_vpdpwssds_v16si_mask,
19238 __builtin_ia32_vpdpwssds_v16si_maskz,
19239 __builtin_ia32_vpdpwssds_v8si_mask,
19240 __builtin_ia32_vpdpwssds_v8si_maskz,
19241 __builtin_ia32_vpdpwssds_v4si_mask,
19242 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19243 suffixed types rather than *_INT.
19244 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19245 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19246 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19247 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19248 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19249 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19250
19251 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19252
19253 * tree-vrp.c (intersect_ranges): If we know the intersection is
19254 empty, there is no need to conservatively add anything else to
19255 the set.
19256
19257 2019-07-11 Richard Biener <rguenther@suse.de>
19258
19259 PR middle-end/91131
19260 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19261 when the object is volatile and we have not cleared it even though
19262 there are no nonzero elements.
19263
19264 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19265
19266 * config/rs6000/predicates.md (cint34_operand): Update
19267 SIGNED_34BIT_OFFSET_P call.
19268 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19269 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19270 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19271 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19272 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19273 argument.
19274 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19275 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19276 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19277 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19278 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19279
19280 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19281
19282 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19283 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19284 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19285 (DEF_MIN_OSX_VERSION): New.
19286
19287 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19288
19289 * fold-const.c (fold_relational_const): Fix folding of
19290 vector-to-scalar NE_EXPRs.
19291 (test_vector_folding): Add more tests.
19292
19293 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19294
19295 PR target/91060
19296 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19297 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19298 (vec_setv2di_internal): Reexpress as...
19299 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19300 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19301 rather than gen_neon_vset_lane<mode>.
19302
19303 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19304
19305 PR target/91102
19306 * lra-constraints.c (process_alt_operands): Don't match user
19307 defined regs only if they are early clobbers.
19308
19309 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19310
19311 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19312
19313 2019-07-10 Richard Biener <rguenther@suse.de>
19314
19315 PR tree-optimization/91126
19316 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19317 native encoding offset for BYTES_BIG_ENDIAN.
19318 (vn_reference_lookup_3): Likewise.
19319
19320 2019-07-10 Richard Biener <rguenther@suse.de>
19321
19322 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19323 LHS whenever possible.
19324
19325 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19326
19327 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19328 from ...; work also on duplicated types.
19329 (nonoverlapping_component_refs_since_match): ... here
19330 (ncr_type_uid): Break out from ...
19331 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19332 available.
19333 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19334 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19335
19336 2019-07-09 Martin Sebor <msebor@redhat.com>
19337
19338 PR tree-optimization/90989
19339 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19340 optimization to just single character stores.
19341
19342 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19343
19344 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19345 Swap operands only once.
19346
19347 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19348
19349 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19350 for both call instructions.
19351
19352 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19353
19354 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19355 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19356
19357 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19358
19359 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19360 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19361 function from rs6000-logue.c back to rs6000.c.
19362 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19363
19364 2019-07-09 Martin Sebor <msebor@redhat.com>
19365
19366 PR c++/61339
19367 * auto-profile.c: Change class-key of PODs to struct and others
19368 to class.
19369 * basic-block.h: Same.
19370 * bitmap.c (bitmap_alloc): Same.
19371 * bitmap.h: Same.
19372 * builtins.c (expand_builtin_prefetch): Same.
19373 (expand_builtin_interclass_mathfn): Same.
19374 (expand_builtin_strlen): Same.
19375 (expand_builtin_mempcpy_args): Same.
19376 (expand_cmpstr): Same.
19377 (expand_builtin___clear_cache): Same.
19378 (expand_ifn_atomic_bit_test_and): Same.
19379 (expand_builtin_thread_pointer): Same.
19380 (expand_builtin_set_thread_pointer): Same.
19381 * caller-save.c (setup_save_areas): Same.
19382 (replace_reg_with_saved_mem): Same.
19383 (insert_restore): Same.
19384 (insert_save): Same.
19385 (add_used_regs): Same.
19386 * cfg.c (get_bb_copy): Same.
19387 (set_loop_copy): Same.
19388 * cfg.h: Same.
19389 * cfganal.h: Same.
19390 * cfgexpand.c (alloc_stack_frame_space): Same.
19391 (add_stack_var): Same.
19392 (add_stack_var_conflict): Same.
19393 (add_scope_conflicts_1): Same.
19394 (update_alias_info_with_stack_vars): Same.
19395 (expand_used_vars): Same.
19396 * cfghooks.c (redirect_edge_and_branch_force): Same.
19397 (delete_basic_block): Same.
19398 (split_edge): Same.
19399 (make_forwarder_block): Same.
19400 (force_nonfallthru): Same.
19401 (duplicate_block): Same.
19402 (lv_flush_pending_stmts): Same.
19403 * cfghooks.h: Same.
19404 * cfgloop.c (flow_loops_cfg_dump): Same.
19405 (flow_loop_nested_p): Same.
19406 (superloop_at_depth): Same.
19407 (get_loop_latch_edges): Same.
19408 (flow_loop_dump): Same.
19409 (flow_loops_dump): Same.
19410 (flow_loops_free): Same.
19411 (flow_loop_nodes_find): Same.
19412 (establish_preds): Same.
19413 (flow_loop_tree_node_add): Same.
19414 (flow_loop_tree_node_remove): Same.
19415 (flow_loops_find): Same.
19416 (find_subloop_latch_edge_by_profile): Same.
19417 (find_subloop_latch_edge_by_ivs): Same.
19418 (mfb_redirect_edges_in_set): Same.
19419 (form_subloop): Same.
19420 (merge_latch_edges): Same.
19421 (disambiguate_multiple_latches): Same.
19422 (disambiguate_loops_with_multiple_latches): Same.
19423 (flow_bb_inside_loop_p): Same.
19424 (glb_enum_p): Same.
19425 (get_loop_body_with_size): Same.
19426 (get_loop_body): Same.
19427 (fill_sons_in_loop): Same.
19428 (get_loop_body_in_dom_order): Same.
19429 (get_loop_body_in_custom_order): Same.
19430 (release_recorded_exits): Same.
19431 (get_loop_exit_edges): Same.
19432 (num_loop_branches): Same.
19433 (remove_bb_from_loops): Same.
19434 (find_common_loop): Same.
19435 (delete_loop): Same.
19436 (cancel_loop): Same.
19437 (verify_loop_structure): Same.
19438 (loop_preheader_edge): Same.
19439 (loop_exit_edge_p): Same.
19440 (single_exit): Same.
19441 (loop_exits_to_bb_p): Same.
19442 (loop_exits_from_bb_p): Same.
19443 (get_loop_location): Same.
19444 (record_niter_bound): Same.
19445 (get_estimated_loop_iterations_int): Same.
19446 (max_stmt_executions_int): Same.
19447 (likely_max_stmt_executions_int): Same.
19448 (get_estimated_loop_iterations): Same.
19449 (get_max_loop_iterations): Same.
19450 (get_max_loop_iterations_int): Same.
19451 (get_likely_max_loop_iterations): Same.
19452 * cfgloop.h (simple_loop_desc): Same.
19453 (get_loop): Same.
19454 (loop_depth): Same.
19455 (loop_outer): Same.
19456 (loop_iterator::next): Same.
19457 (loop_outermost): Same.
19458 * cfgloopanal.c (mark_irreducible_loops): Same.
19459 (num_loop_insns): Same.
19460 (average_num_loop_insns): Same.
19461 (expected_loop_iterations_unbounded): Same.
19462 (expected_loop_iterations): Same.
19463 (mark_loop_exit_edges): Same.
19464 (single_likely_exit): Same.
19465 * cfgloopmanip.c (fix_bb_placement): Same.
19466 (fix_bb_placements): Same.
19467 (remove_path): Same.
19468 (place_new_loop): Same.
19469 (add_loop): Same.
19470 (scale_loop_frequencies): Same.
19471 (scale_loop_profile): Same.
19472 (create_empty_if_region_on_edge): Same.
19473 (create_empty_loop_on_edge): Same.
19474 (loopify): Same.
19475 (unloop): Same.
19476 (fix_loop_placements): Same.
19477 (copy_loop_info): Same.
19478 (duplicate_loop): Same.
19479 (duplicate_subloops): Same.
19480 (loop_redirect_edge): Same.
19481 (can_duplicate_loop_p): Same.
19482 (duplicate_loop_to_header_edge): Same.
19483 (mfb_keep_just): Same.
19484 (has_preds_from_loop): Same.
19485 (create_preheader): Same.
19486 (create_preheaders): Same.
19487 (lv_adjust_loop_entry_edge): Same.
19488 (loop_version): Same.
19489 * cfgloopmanip.h: Same.
19490 * cgraph.h: Same.
19491 * cgraphbuild.c: Same.
19492 * combine.c (make_extraction): Same.
19493 * config/i386/i386-features.c: Same.
19494 * config/i386/i386-features.h: Same.
19495 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19496 (ix86_emit_outlined_ms2sysv_restore): Same.
19497 (ix86_noce_conversion_profitable_p): Same.
19498 (ix86_init_cost): Same.
19499 (ix86_simd_clone_usable): Same.
19500 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19501 Wstruct-not-pod.
19502 * coretypes.h: Same.
19503 * data-streamer-in.c (string_for_index): Change class-key of PODs
19504 to struct and others to class.
19505 (streamer_read_indexed_string): Same.
19506 (streamer_read_string): Same.
19507 (bp_unpack_indexed_string): Same.
19508 (bp_unpack_string): Same.
19509 (streamer_read_uhwi): Same.
19510 (streamer_read_hwi): Same.
19511 (streamer_read_gcov_count): Same.
19512 (streamer_read_wide_int): Same.
19513 * data-streamer.h (streamer_write_bitpack): Same.
19514 (bp_unpack_value): Same.
19515 (streamer_write_char_stream): Same.
19516 (streamer_write_hwi_in_range): Same.
19517 (streamer_write_record_start): Same.
19518 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19519 (add_cross_iteration_register_deps): Same.
19520 (build_intra_loop_deps): Same.
19521 * df-core.c (df_analyze): Same.
19522 (loop_post_order_compute): Same.
19523 (loop_inverted_post_order_compute): Same.
19524 * df-problems.c (df_rd_alloc): Same.
19525 (df_rd_simulate_one_insn): Same.
19526 (df_rd_local_compute): Same.
19527 (df_rd_init_solution): Same.
19528 (df_rd_confluence_n): Same.
19529 (df_rd_transfer_function): Same.
19530 (df_rd_free): Same.
19531 (df_rd_dump_defs_set): Same.
19532 (df_rd_top_dump): Same.
19533 (df_lr_alloc): Same.
19534 (df_lr_reset): Same.
19535 (df_lr_local_compute): Same.
19536 (df_lr_init): Same.
19537 (df_lr_confluence_n): Same.
19538 (df_lr_free): Same.
19539 (df_lr_top_dump): Same.
19540 (df_lr_verify_transfer_functions): Same.
19541 (df_live_alloc): Same.
19542 (df_live_reset): Same.
19543 (df_live_init): Same.
19544 (df_live_confluence_n): Same.
19545 (df_live_finalize): Same.
19546 (df_live_free): Same.
19547 (df_live_top_dump): Same.
19548 (df_live_verify_transfer_functions): Same.
19549 (df_mir_alloc): Same.
19550 (df_mir_reset): Same.
19551 (df_mir_init): Same.
19552 (df_mir_confluence_n): Same.
19553 (df_mir_free): Same.
19554 (df_mir_top_dump): Same.
19555 (df_word_lr_alloc): Same.
19556 (df_word_lr_reset): Same.
19557 (df_word_lr_init): Same.
19558 (df_word_lr_confluence_n): Same.
19559 (df_word_lr_free): Same.
19560 (df_word_lr_top_dump): Same.
19561 (df_md_alloc): Same.
19562 (df_md_simulate_one_insn): Same.
19563 (df_md_reset): Same.
19564 (df_md_init): Same.
19565 (df_md_free): Same.
19566 (df_md_top_dump): Same.
19567 * df-scan.c (df_insn_delete): Same.
19568 (df_insn_rescan): Same.
19569 (df_notes_rescan): Same.
19570 (df_sort_and_compress_mws): Same.
19571 (df_install_mws): Same.
19572 (df_refs_add_to_chains): Same.
19573 (df_ref_create_structure): Same.
19574 (df_ref_record): Same.
19575 (df_def_record_1): Same.
19576 (df_find_hard_reg_defs): Same.
19577 (df_uses_record): Same.
19578 (df_get_conditional_uses): Same.
19579 (df_get_call_refs): Same.
19580 (df_recompute_luids): Same.
19581 (df_get_entry_block_def_set): Same.
19582 (df_entry_block_defs_collect): Same.
19583 (df_get_exit_block_use_set): Same.
19584 (df_exit_block_uses_collect): Same.
19585 (df_mws_verify): Same.
19586 (df_bb_verify): Same.
19587 * df.h (df_scan_get_bb_info): Same.
19588 * doc/tm.texi: Same.
19589 * dse.c (record_store): Same.
19590 * dumpfile.h: Same.
19591 * emit-rtl.c (const_fixed_hasher::equal): Same.
19592 (set_mem_attributes_minus_bitpos): Same.
19593 (change_address): Same.
19594 (adjust_address_1): Same.
19595 (offset_address): Same.
19596 * emit-rtl.h: Same.
19597 * except.c (dw2_build_landing_pads): Same.
19598 (sjlj_emit_dispatch_table): Same.
19599 * explow.c (allocate_dynamic_stack_space): Same.
19600 (emit_stack_probe): Same.
19601 (probe_stack_range): Same.
19602 * expmed.c (store_bit_field_using_insv): Same.
19603 (store_bit_field_1): Same.
19604 (store_integral_bit_field): Same.
19605 (extract_bit_field_using_extv): Same.
19606 (extract_bit_field_1): Same.
19607 (emit_cstore): Same.
19608 * expr.c (emit_block_move_via_cpymem): Same.
19609 (expand_cmpstrn_or_cmpmem): Same.
19610 (set_storage_via_setmem): Same.
19611 (emit_single_push_insn_1): Same.
19612 (expand_assignment): Same.
19613 (store_constructor): Same.
19614 (expand_expr_real_2): Same.
19615 (expand_expr_real_1): Same.
19616 (try_casesi): Same.
19617 * flags.h: Same.
19618 * function.c (try_fit_stack_local): Same.
19619 (assign_stack_local_1): Same.
19620 (assign_stack_local): Same.
19621 (cut_slot_from_list): Same.
19622 (insert_slot_to_list): Same.
19623 (max_slot_level): Same.
19624 (move_slot_to_level): Same.
19625 (temp_address_hasher::equal): Same.
19626 (remove_unused_temp_slot_addresses): Same.
19627 (assign_temp): Same.
19628 (combine_temp_slots): Same.
19629 (update_temp_slot_address): Same.
19630 (preserve_temp_slots): Same.
19631 * function.h: Same.
19632 * fwprop.c: Same.
19633 * gcc-rich-location.h: Same.
19634 * gcov.c: Same.
19635 * genattrtab.c (check_attr_test): Same.
19636 (check_attr_value): Same.
19637 (convert_set_attr_alternative): Same.
19638 (convert_set_attr): Same.
19639 (check_defs): Same.
19640 (copy_boolean): Same.
19641 (get_attr_value): Same.
19642 (expand_delays): Same.
19643 (make_length_attrs): Same.
19644 (min_fn): Same.
19645 (make_alternative_compare): Same.
19646 (simplify_test_exp): Same.
19647 (tests_attr_p): Same.
19648 (get_attr_order): Same.
19649 (clear_struct_flag): Same.
19650 (gen_attr): Same.
19651 (compares_alternatives_p): Same.
19652 (gen_insn): Same.
19653 (gen_delay): Same.
19654 (find_attrs_to_cache): Same.
19655 (write_test_expr): Same.
19656 (walk_attr_value): Same.
19657 (write_attr_get): Same.
19658 (eliminate_known_true): Same.
19659 (write_insn_cases): Same.
19660 (write_attr_case): Same.
19661 (write_attr_valueq): Same.
19662 (write_attr_value): Same.
19663 (write_dummy_eligible_delay): Same.
19664 (next_comma_elt): Same.
19665 (find_attr): Same.
19666 (make_internal_attr): Same.
19667 (copy_rtx_unchanging): Same.
19668 (gen_insn_reserv): Same.
19669 (check_tune_attr): Same.
19670 (make_automaton_attrs): Same.
19671 (handle_arg): Same.
19672 * genextract.c (gen_insn): Same.
19673 (VEC_char_to_string): Same.
19674 * genmatch.c (print_operand): Same.
19675 (lower): Same.
19676 (parser::parse_operation): Same.
19677 (parser::parse_capture): Same.
19678 (parser::parse_c_expr): Same.
19679 (parser::parse_simplify): Same.
19680 (main): Same.
19681 * genoutput.c (output_operand_data): Same.
19682 (output_get_insn_name): Same.
19683 (compare_operands): Same.
19684 (place_operands): Same.
19685 (process_template): Same.
19686 (validate_insn_alternatives): Same.
19687 (validate_insn_operands): Same.
19688 (gen_expand): Same.
19689 (note_constraint): Same.
19690 * genpreds.c (write_one_predicate_function): Same.
19691 (add_constraint): Same.
19692 (process_define_register_constraint): Same.
19693 (write_lookup_constraint_1): Same.
19694 (write_lookup_constraint_array): Same.
19695 (write_insn_constraint_len): Same.
19696 (write_reg_class_for_constraint_1): Same.
19697 (write_constraint_satisfied_p_array): Same.
19698 * genrecog.c (optimize_subroutine_group): Same.
19699 * gensupport.c (process_define_predicate): Same.
19700 (queue_pattern): Same.
19701 (remove_from_queue): Same.
19702 (process_rtx): Same.
19703 (is_predicable): Same.
19704 (change_subst_attribute): Same.
19705 (subst_pattern_match): Same.
19706 (alter_constraints): Same.
19707 (alter_attrs_for_insn): Same.
19708 (shift_output_template): Same.
19709 (alter_output_for_subst_insn): Same.
19710 (process_one_cond_exec): Same.
19711 (subst_dup): Same.
19712 (process_define_cond_exec): Same.
19713 (mnemonic_htab_callback): Same.
19714 (gen_mnemonic_attr): Same.
19715 (read_md_rtx): Same.
19716 * ggc-page.c: Same.
19717 * gimple-loop-interchange.cc (dump_reduction): Same.
19718 (dump_induction): Same.
19719 (loop_cand::~loop_cand): Same.
19720 (free_data_refs_with_aux): Same.
19721 (tree_loop_interchange::interchange_loops): Same.
19722 (tree_loop_interchange::map_inductions_to_loop): Same.
19723 (tree_loop_interchange::move_code_to_inner_loop): Same.
19724 (compute_access_stride): Same.
19725 (compute_access_strides): Same.
19726 (proper_loop_form_for_interchange): Same.
19727 (tree_loop_interchange_compute_ddrs): Same.
19728 (prune_datarefs_not_in_loop): Same.
19729 (prepare_data_references): Same.
19730 (pass_linterchange::execute): Same.
19731 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19732 (unroll_jam_possible_p): Same.
19733 (fuse_loops): Same.
19734 (adjust_unroll_factor): Same.
19735 (tree_loop_unroll_and_jam): Same.
19736 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19737 (loop_versioning::expensive_stmt_p): Same.
19738 (loop_versioning::version_for_unity): Same.
19739 (loop_versioning::dump_inner_likelihood): Same.
19740 (loop_versioning::find_per_loop_multiplication): Same.
19741 (loop_versioning::analyze_term_using_scevs): Same.
19742 (loop_versioning::record_address_fragment): Same.
19743 (loop_versioning::analyze_expr): Same.
19744 (loop_versioning::analyze_blocks): Same.
19745 (loop_versioning::prune_conditions): Same.
19746 (loop_versioning::merge_loop_info): Same.
19747 (loop_versioning::add_loop_to_queue): Same.
19748 (loop_versioning::decide_whether_loop_is_versionable): Same.
19749 (loop_versioning::make_versioning_decisions): Same.
19750 (loop_versioning::implement_versioning_decisions): Same.
19751 * gimple-ssa-evrp-analyze.c
19752 (evrp_range_analyzer::record_ranges_from_phis): Same.
19753 * gimple-ssa-store-merging.c (split_store::split_store): Same.
19754 (count_multiple_uses): Same.
19755 (split_group): Same.
19756 (imm_store_chain_info::output_merged_store): Same.
19757 (pass_store_merging::process_store): Same.
19758 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
19759 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
19760 (is_max): Same.
19761 (alloca_call_type): Same.
19762 (pass_walloca::execute): Same.
19763 * gimple-streamer-in.c (input_phi): Same.
19764 (input_gimple_stmt): Same.
19765 * gimple-streamer.h: Same.
19766 * godump.c (go_force_record_alignment): Same.
19767 (go_format_type): Same.
19768 (go_output_type): Same.
19769 (go_output_fndecl): Same.
19770 (go_output_typedef): Same.
19771 (keyword_hash_init): Same.
19772 (find_dummy_types): Same.
19773 * graph.c (draw_cfg_nodes_no_loops): Same.
19774 (draw_cfg_nodes_for_loop): Same.
19775 * hard-reg-set.h (hard_reg_set_iter_next): Same.
19776 * hsa-brig.c: Same.
19777 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
19778 * hsa-dump.c (dump_hsa_cfun): Same.
19779 * hsa-gen.c (gen_function_def_parameters): Same.
19780 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
19781 * input.c (dump_line_table_statistics): Same.
19782 (test_lexer): Same.
19783 * input.h: Same.
19784 * internal-fn.c (get_multi_vector_move): Same.
19785 (expand_load_lanes_optab_fn): Same.
19786 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
19787 (expand_GOMP_SIMT_EXIT): Same.
19788 (expand_GOMP_SIMT_LAST_LANE): Same.
19789 (expand_GOMP_SIMT_ORDERED_PRED): Same.
19790 (expand_GOMP_SIMT_VOTE_ANY): Same.
19791 (expand_GOMP_SIMT_XCHG_BFLY): Same.
19792 (expand_GOMP_SIMT_XCHG_IDX): Same.
19793 (expand_addsub_overflow): Same.
19794 (expand_neg_overflow): Same.
19795 (expand_mul_overflow): Same.
19796 (expand_call_mem_ref): Same.
19797 (expand_mask_load_optab_fn): Same.
19798 (expand_scatter_store_optab_fn): Same.
19799 (expand_gather_load_optab_fn): Same.
19800 * ipa-cp.c (ipa_get_parm_lattices): Same.
19801 (print_all_lattices): Same.
19802 (ignore_edge_p): Same.
19803 (build_toporder_info): Same.
19804 (free_toporder_info): Same.
19805 (push_node_to_stack): Same.
19806 (ipcp_lattice<valtype>::set_contains_variable): Same.
19807 (set_agg_lats_to_bottom): Same.
19808 (ipcp_bits_lattice::meet_with): Same.
19809 (set_single_call_flag): Same.
19810 (initialize_node_lattices): Same.
19811 (ipa_get_jf_ancestor_result): Same.
19812 (ipcp_verify_propagated_values): Same.
19813 (propagate_scalar_across_jump_function): Same.
19814 (propagate_context_across_jump_function): Same.
19815 (propagate_bits_across_jump_function): Same.
19816 (ipa_vr_operation_and_type_effects): Same.
19817 (propagate_vr_across_jump_function): Same.
19818 (set_check_aggs_by_ref): Same.
19819 (set_chain_of_aglats_contains_variable): Same.
19820 (merge_aggregate_lattices): Same.
19821 (agg_pass_through_permissible_p): Same.
19822 (propagate_aggs_across_jump_function): Same.
19823 (call_passes_through_thunk_p): Same.
19824 (propagate_constants_across_call): Same.
19825 (devirtualization_time_bonus): Same.
19826 (good_cloning_opportunity_p): Same.
19827 (context_independent_aggregate_values): Same.
19828 (gather_context_independent_values): Same.
19829 (perform_estimation_of_a_value): Same.
19830 (estimate_local_effects): Same.
19831 (value_topo_info<valtype>::add_val): Same.
19832 (add_all_node_vals_to_toposort): Same.
19833 (value_topo_info<valtype>::propagate_effects): Same.
19834 (ipcp_propagate_stage): Same.
19835 (ipcp_discover_new_direct_edges): Same.
19836 (same_node_or_its_all_contexts_clone_p): Same.
19837 (cgraph_edge_brings_value_p): Same.
19838 (gather_edges_for_value): Same.
19839 (create_specialized_node): Same.
19840 (find_more_scalar_values_for_callers_subset): Same.
19841 (find_more_contexts_for_caller_subset): Same.
19842 (copy_plats_to_inter): Same.
19843 (intersect_aggregates_with_edge): Same.
19844 (find_aggregate_values_for_callers_subset): Same.
19845 (cgraph_edge_brings_all_agg_vals_for_node): Same.
19846 (decide_about_value): Same.
19847 (decide_whether_version_node): Same.
19848 (spread_undeadness): Same.
19849 (identify_dead_nodes): Same.
19850 (ipcp_store_vr_results): Same.
19851 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
19852 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
19853 (redirect_to_unreachable): Same.
19854 (edge_set_predicate): Same.
19855 (evaluate_conditions_for_known_args): Same.
19856 (evaluate_properties_for_edge): Same.
19857 (ipa_fn_summary_t::duplicate): Same.
19858 (ipa_call_summary_t::duplicate): Same.
19859 (dump_ipa_call_summary): Same.
19860 (ipa_dump_fn_summary): Same.
19861 (eliminated_by_inlining_prob): Same.
19862 (set_cond_stmt_execution_predicate): Same.
19863 (set_switch_stmt_execution_predicate): Same.
19864 (compute_bb_predicates): Same.
19865 (will_be_nonconstant_expr_predicate): Same.
19866 (phi_result_unknown_predicate): Same.
19867 (analyze_function_body): Same.
19868 (compute_fn_summary): Same.
19869 (estimate_edge_devirt_benefit): Same.
19870 (estimate_edge_size_and_time): Same.
19871 (estimate_calls_size_and_time): Same.
19872 (estimate_node_size_and_time): Same.
19873 (remap_edge_change_prob): Same.
19874 (remap_edge_summaries): Same.
19875 (ipa_merge_fn_summary_after_inlining): Same.
19876 (ipa_fn_summary_generate): Same.
19877 (inline_read_section): Same.
19878 (ipa_fn_summary_read): Same.
19879 (ipa_fn_summary_write): Same.
19880 * ipa-fnsummary.h: Same.
19881 * ipa-hsa.c (ipa_hsa_read_section): Same.
19882 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
19883 * ipa-icf.c (sem_function::param_used_p): Same.
19884 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
19885 * ipa-inline.c (edge_badness): Same.
19886 (inline_small_functions): Same.
19887 * ipa-polymorphic-call.c
19888 (ipa_polymorphic_call_context::stream_out): Same.
19889 * ipa-predicate.c (predicate::remap_after_duplication): Same.
19890 (predicate::remap_after_inlining): Same.
19891 (predicate::stream_out): Same.
19892 * ipa-predicate.h: Same.
19893 * ipa-profile.c (ipa_profile_read_summary): Same.
19894 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
19895 (count_formal_params): Same.
19896 (ipa_dump_param): Same.
19897 (ipa_alloc_node_params): Same.
19898 (ipa_print_node_jump_functions_for_edge): Same.
19899 (ipa_print_node_jump_functions): Same.
19900 (ipa_load_from_parm_agg): Same.
19901 (get_ancestor_addr_info): Same.
19902 (ipa_compute_jump_functions_for_edge): Same.
19903 (ipa_analyze_virtual_call_uses): Same.
19904 (ipa_analyze_stmt_uses): Same.
19905 (ipa_analyze_params_uses_in_bb): Same.
19906 (update_jump_functions_after_inlining): Same.
19907 (try_decrement_rdesc_refcount): Same.
19908 (ipa_impossible_devirt_target): Same.
19909 (update_indirect_edges_after_inlining): Same.
19910 (combine_controlled_uses_counters): Same.
19911 (ipa_edge_args_sum_t::duplicate): Same.
19912 (ipa_write_jump_function): Same.
19913 (ipa_write_indirect_edge_info): Same.
19914 (ipa_write_node_info): Same.
19915 (ipa_read_edge_info): Same.
19916 (ipa_prop_read_section): Same.
19917 (read_replacements_section): Same.
19918 * ipa-prop.h (ipa_get_param_count): Same.
19919 (ipa_get_param): Same.
19920 (ipa_get_type): Same.
19921 (ipa_get_param_move_cost): Same.
19922 (ipa_set_param_used): Same.
19923 (ipa_get_controlled_uses): Same.
19924 (ipa_set_controlled_uses): Same.
19925 (ipa_get_cs_argument_count): Same.
19926 * ipa-pure-const.c (analyze_function): Same.
19927 (pure_const_read_summary): Same.
19928 * ipa-ref.h: Same.
19929 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
19930 * ipa-split.c (test_nonssa_use): Same.
19931 (dump_split_point): Same.
19932 (dominated_by_forbidden): Same.
19933 (split_part_set_ssa_name_p): Same.
19934 (find_split_points): Same.
19935 * ira-build.c (finish_loop_tree_nodes): Same.
19936 (low_pressure_loop_node_p): Same.
19937 * ira-color.c (ira_reuse_stack_slot): Same.
19938 * ira-int.h: Same.
19939 * ira.c (setup_reg_equiv): Same.
19940 (print_insn_chain): Same.
19941 (ira): Same.
19942 * loop-doloop.c (doloop_condition_get): Same.
19943 (add_test): Same.
19944 (record_reg_sets): Same.
19945 (doloop_optimize): Same.
19946 * loop-init.c (loop_optimizer_init): Same.
19947 (fix_loop_structure): Same.
19948 * loop-invariant.c (merge_identical_invariants): Same.
19949 (compute_always_reached): Same.
19950 (find_exits): Same.
19951 (may_assign_reg_p): Same.
19952 (find_invariants_bb): Same.
19953 (find_invariants_body): Same.
19954 (replace_uses): Same.
19955 (can_move_invariant_reg): Same.
19956 (free_inv_motion_data): Same.
19957 (move_single_loop_invariants): Same.
19958 (change_pressure): Same.
19959 (mark_ref_regs): Same.
19960 (calculate_loop_reg_pressure): Same.
19961 * loop-iv.c (biv_entry_hasher::equal): Same.
19962 (iv_extend_to_rtx_code): Same.
19963 (check_iv_ref_table_size): Same.
19964 (clear_iv_info): Same.
19965 (latch_dominating_def): Same.
19966 (iv_get_reaching_def): Same.
19967 (iv_constant): Same.
19968 (iv_subreg): Same.
19969 (iv_extend): Same.
19970 (iv_neg): Same.
19971 (iv_add): Same.
19972 (iv_mult): Same.
19973 (get_biv_step): Same.
19974 (record_iv): Same.
19975 (analyzed_for_bivness_p): Same.
19976 (record_biv): Same.
19977 (iv_analyze_biv): Same.
19978 (iv_analyze_expr): Same.
19979 (iv_analyze_def): Same.
19980 (iv_analyze_op): Same.
19981 (iv_analyze): Same.
19982 (iv_analyze_result): Same.
19983 (biv_p): Same.
19984 (eliminate_implied_conditions): Same.
19985 (simplify_using_initial_values): Same.
19986 (shorten_into_mode): Same.
19987 (canonicalize_iv_subregs): Same.
19988 (determine_max_iter): Same.
19989 (check_simple_exit): Same.
19990 (find_simple_exit): Same.
19991 (get_simple_loop_desc): Same.
19992 * loop-unroll.c (report_unroll): Same.
19993 (decide_unrolling): Same.
19994 (unroll_loops): Same.
19995 (loop_exit_at_end_p): Same.
19996 (decide_unroll_constant_iterations): Same.
19997 (unroll_loop_constant_iterations): Same.
19998 (compare_and_jump_seq): Same.
19999 (unroll_loop_runtime_iterations): Same.
20000 (decide_unroll_stupid): Same.
20001 (unroll_loop_stupid): Same.
20002 (referenced_in_one_insn_in_loop_p): Same.
20003 (reset_debug_uses_in_loop): Same.
20004 (analyze_iv_to_split_insn): Same.
20005 * lra-eliminations.c (lra_debug_elim_table): Same.
20006 (setup_can_eliminate): Same.
20007 (form_sum): Same.
20008 (lra_get_elimination_hard_regno): Same.
20009 (lra_eliminate_regs_1): Same.
20010 (eliminate_regs_in_insn): Same.
20011 (update_reg_eliminate): Same.
20012 (init_elimination): Same.
20013 (lra_eliminate): Same.
20014 * lra-int.h: Same.
20015 * lra-lives.c (initiate_live_solver): Same.
20016 * lra-remat.c (create_remat_bb_data): Same.
20017 * lra-spills.c (lra_spill): Same.
20018 * lra.c (lra_set_insn_recog_data): Same.
20019 (lra_set_used_insn_alternative_by_uid): Same.
20020 (init_reg_info): Same.
20021 (expand_reg_info): Same.
20022 * lto-cgraph.c (output_symtab): Same.
20023 (read_identifier): Same.
20024 (get_alias_symbol): Same.
20025 (input_node): Same.
20026 (input_varpool_node): Same.
20027 (input_ref): Same.
20028 (input_edge): Same.
20029 (input_cgraph_1): Same.
20030 (input_refs): Same.
20031 (input_symtab): Same.
20032 (input_offload_tables): Same.
20033 (output_cgraph_opt_summary): Same.
20034 (input_edge_opt_summary): Same.
20035 (input_cgraph_opt_section): Same.
20036 * lto-section-in.c (lto_free_raw_section_data): Same.
20037 (lto_create_simple_input_block): Same.
20038 (lto_free_function_in_decl_state_for_node): Same.
20039 * lto-streamer-in.c (lto_tag_check_set): Same.
20040 (lto_location_cache::revert_location_cache): Same.
20041 (lto_location_cache::input_location): Same.
20042 (lto_input_location): Same.
20043 (stream_input_location_now): Same.
20044 (lto_input_tree_ref): Same.
20045 (lto_input_eh_catch_list): Same.
20046 (input_eh_region): Same.
20047 (lto_init_eh): Same.
20048 (make_new_block): Same.
20049 (input_cfg): Same.
20050 (fixup_call_stmt_edges): Same.
20051 (input_struct_function_base): Same.
20052 (input_function): Same.
20053 (lto_read_body_or_constructor): Same.
20054 (lto_read_tree_1): Same.
20055 (lto_read_tree): Same.
20056 (lto_input_scc): Same.
20057 (lto_input_tree_1): Same.
20058 (lto_input_toplevel_asms): Same.
20059 (lto_input_mode_table): Same.
20060 (lto_reader_init): Same.
20061 (lto_data_in_create): Same.
20062 * lto-streamer-out.c (output_cfg): Same.
20063 * lto-streamer.h: Same.
20064 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20065 (generate_prolog_epilog): Same.
20066 (mark_loop_unsched): Same.
20067 (dump_insn_location): Same.
20068 (loop_canon_p): Same.
20069 (sms_schedule): Same.
20070 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20071 (expand_omp_for_generic): Same.
20072 (expand_omp_for_static_nochunk): Same.
20073 (expand_omp_for_static_chunk): Same.
20074 (expand_omp_simd): Same.
20075 (expand_omp_taskloop_for_inner): Same.
20076 (expand_oacc_for): Same.
20077 (expand_omp_atomic_pipeline): Same.
20078 (mark_loops_in_oacc_kernels_region): Same.
20079 * omp-offload.c (oacc_xform_loop): Same.
20080 * omp-simd-clone.c (simd_clone_adjust): Same.
20081 * optabs-query.c (get_traditional_extraction_insn): Same.
20082 * optabs.c (expand_vector_broadcast): Same.
20083 (expand_binop_directly): Same.
20084 (expand_twoval_unop): Same.
20085 (expand_twoval_binop): Same.
20086 (expand_unop_direct): Same.
20087 (emit_indirect_jump): Same.
20088 (emit_conditional_move): Same.
20089 (emit_conditional_neg_or_complement): Same.
20090 (emit_conditional_add): Same.
20091 (vector_compare_rtx): Same.
20092 (expand_vec_perm_1): Same.
20093 (expand_vec_perm_const): Same.
20094 (expand_vec_cond_expr): Same.
20095 (expand_vec_series_expr): Same.
20096 (maybe_emit_atomic_exchange): Same.
20097 (maybe_emit_sync_lock_test_and_set): Same.
20098 (expand_atomic_compare_and_swap): Same.
20099 (expand_atomic_load): Same.
20100 (expand_atomic_store): Same.
20101 (maybe_emit_op): Same.
20102 (valid_multiword_target_p): Same.
20103 (create_integer_operand): Same.
20104 (maybe_legitimize_operand_same_code): Same.
20105 (maybe_legitimize_operand): Same.
20106 (create_convert_operand_from_type): Same.
20107 (can_reuse_operands_p): Same.
20108 (maybe_legitimize_operands): Same.
20109 (maybe_gen_insn): Same.
20110 (maybe_expand_insn): Same.
20111 (maybe_expand_jump_insn): Same.
20112 (expand_insn): Same.
20113 * optabs.h (create_expand_operand): Same.
20114 (create_fixed_operand): Same.
20115 (create_output_operand): Same.
20116 (create_input_operand): Same.
20117 (create_convert_operand_to): Same.
20118 (create_convert_operand_from): Same.
20119 * optinfo.h: Same.
20120 * poly-int.h: Same.
20121 * predict.c (optimize_insn_for_speed_p): Same.
20122 (optimize_loop_for_size_p): Same.
20123 (optimize_loop_for_speed_p): Same.
20124 (optimize_loop_nest_for_speed_p): Same.
20125 (get_base_value): Same.
20126 (predicted_by_loop_heuristics_p): Same.
20127 (predict_extra_loop_exits): Same.
20128 (predict_loops): Same.
20129 (predict_paths_for_bb): Same.
20130 (predict_paths_leading_to): Same.
20131 (propagate_freq): Same.
20132 (pass_profile::execute): Same.
20133 * predict.h: Same.
20134 * profile-count.c (profile_count::differs_from_p): Same.
20135 (profile_probability::differs_lot_from_p): Same.
20136 * profile-count.h: Same.
20137 * profile.c (branch_prob): Same.
20138 * regrename.c (free_chain_data): Same.
20139 (mark_conflict): Same.
20140 (create_new_chain): Same.
20141 (merge_overlapping_regs): Same.
20142 (init_rename_info): Same.
20143 (merge_chains): Same.
20144 (regrename_analyze): Same.
20145 (regrename_do_replace): Same.
20146 (scan_rtx_reg): Same.
20147 (record_out_operands): Same.
20148 (build_def_use): Same.
20149 * regrename.h: Same.
20150 * reload.h: Same.
20151 * reload1.c (init_reload): Same.
20152 (maybe_fix_stack_asms): Same.
20153 (copy_reloads): Same.
20154 (count_pseudo): Same.
20155 (count_spilled_pseudo): Same.
20156 (find_reg): Same.
20157 (find_reload_regs): Same.
20158 (select_reload_regs): Same.
20159 (spill_hard_reg): Same.
20160 (fixup_eh_region_note): Same.
20161 (set_reload_reg): Same.
20162 (allocate_reload_reg): Same.
20163 (compute_reload_subreg_offset): Same.
20164 (reload_adjust_reg_for_icode): Same.
20165 (emit_input_reload_insns): Same.
20166 (emit_output_reload_insns): Same.
20167 (do_input_reload): Same.
20168 (inherit_piecemeal_p): Same.
20169 * rtl.h: Same.
20170 * sanopt.c (maybe_get_dominating_check): Same.
20171 (maybe_optimize_ubsan_ptr_ifn): Same.
20172 (can_remove_asan_check): Same.
20173 (maybe_optimize_asan_check_ifn): Same.
20174 (sanopt_optimize_walker): Same.
20175 * sched-deps.c (add_dependence_list): Same.
20176 (chain_to_prev_insn): Same.
20177 (add_insn_mem_dependence): Same.
20178 (create_insn_reg_set): Same.
20179 (maybe_extend_reg_info_p): Same.
20180 (sched_analyze_reg): Same.
20181 (sched_analyze_1): Same.
20182 (get_implicit_reg_pending_clobbers): Same.
20183 (chain_to_prev_insn_p): Same.
20184 (deps_analyze_insn): Same.
20185 (deps_start_bb): Same.
20186 (sched_free_deps): Same.
20187 (init_deps): Same.
20188 (init_deps_reg_last): Same.
20189 (free_deps): Same.
20190 * sched-ebb.c: Same.
20191 * sched-int.h: Same.
20192 * sched-rgn.c (add_branch_dependences): Same.
20193 (concat_insn_mem_list): Same.
20194 (deps_join): Same.
20195 (sched_rgn_compute_dependencies): Same.
20196 * sel-sched-ir.c (reset_target_context): Same.
20197 (copy_deps_context): Same.
20198 (init_id_from_df): Same.
20199 (has_dependence_p): Same.
20200 (change_loops_latches): Same.
20201 (bb_top_order_comparator): Same.
20202 (make_region_from_loop_preheader): Same.
20203 (sel_init_pipelining): Same.
20204 (get_loop_nest_for_rgn): Same.
20205 (make_regions_from_the_rest): Same.
20206 (sel_is_loop_preheader_p): Same.
20207 * sel-sched-ir.h (inner_loop_header_p): Same.
20208 (get_all_loop_exits): Same.
20209 * selftest.h: Same.
20210 * sese.c (sese_build_liveouts): Same.
20211 (sese_insert_phis_for_liveouts): Same.
20212 * sese.h (defined_in_sese_p): Same.
20213 * sreal.c (sreal::stream_out): Same.
20214 * sreal.h: Same.
20215 * streamer-hooks.h: Same.
20216 * target-globals.c (save_target_globals): Same.
20217 * target-globals.h: Same.
20218 * target.def: Same.
20219 * target.h: Same.
20220 * targhooks.c (default_has_ifunc_p): Same.
20221 (default_empty_mask_is_expensive): Same.
20222 (default_init_cost): Same.
20223 * targhooks.h: Same.
20224 * toplev.c: Same.
20225 * tree-affine.c (aff_combination_mult): Same.
20226 (aff_combination_expand): Same.
20227 (aff_combination_constant_multiple_p): Same.
20228 * tree-affine.h: Same.
20229 * tree-cfg.c (build_gimple_cfg): Same.
20230 (replace_loop_annotate_in_block): Same.
20231 (replace_uses_by): Same.
20232 (remove_bb): Same.
20233 (dump_cfg_stats): Same.
20234 (gimple_duplicate_sese_region): Same.
20235 (gimple_duplicate_sese_tail): Same.
20236 (move_block_to_fn): Same.
20237 (replace_block_vars_by_duplicates): Same.
20238 (move_sese_region_to_fn): Same.
20239 (print_loops_bb): Same.
20240 (print_loop): Same.
20241 (print_loops): Same.
20242 (debug): Same.
20243 (debug_loops): Same.
20244 * tree-cfg.h: Same.
20245 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20246 (chrec_fold_multiply_poly_poly): Same.
20247 (chrec_evaluate): Same.
20248 (chrec_component_in_loop_num): Same.
20249 (reset_evolution_in_loop): Same.
20250 (is_multivariate_chrec): Same.
20251 (chrec_contains_symbols): Same.
20252 (nb_vars_in_chrec): Same.
20253 (chrec_convert_1): Same.
20254 (chrec_convert_aggressive): Same.
20255 * tree-chrec.h: Same.
20256 * tree-core.h: Same.
20257 * tree-data-ref.c (dump_data_dependence_relation): Same.
20258 (canonicalize_base_object_address): Same.
20259 (data_ref_compare_tree): Same.
20260 (prune_runtime_alias_test_list): Same.
20261 (get_segment_min_max): Same.
20262 (create_intersect_range_checks): Same.
20263 (conflict_fn_no_dependence): Same.
20264 (object_address_invariant_in_loop_p): Same.
20265 (analyze_ziv_subscript): Same.
20266 (analyze_siv_subscript_cst_affine): Same.
20267 (analyze_miv_subscript): Same.
20268 (analyze_overlapping_iterations): Same.
20269 (build_classic_dist_vector_1): Same.
20270 (add_other_self_distances): Same.
20271 (same_access_functions): Same.
20272 (build_classic_dir_vector): Same.
20273 (subscript_dependence_tester_1): Same.
20274 (subscript_dependence_tester): Same.
20275 (access_functions_are_affine_or_constant_p): Same.
20276 (get_references_in_stmt): Same.
20277 (loop_nest_has_data_refs): Same.
20278 (graphite_find_data_references_in_stmt): Same.
20279 (find_data_references_in_bb): Same.
20280 (get_base_for_alignment): Same.
20281 (find_loop_nest_1): Same.
20282 (find_loop_nest): Same.
20283 * tree-data-ref.h (dr_alignment): Same.
20284 (ddr_dependence_level): Same.
20285 * tree-if-conv.c (fold_build_cond_expr): Same.
20286 (add_to_predicate_list): Same.
20287 (add_to_dst_predicate_list): Same.
20288 (phi_convertible_by_degenerating_args): Same.
20289 (idx_within_array_bound): Same.
20290 (all_preds_critical_p): Same.
20291 (pred_blocks_visited_p): Same.
20292 (predicate_bbs): Same.
20293 (build_region): Same.
20294 (if_convertible_loop_p_1): Same.
20295 (is_cond_scalar_reduction): Same.
20296 (predicate_scalar_phi): Same.
20297 (remove_conditions_and_labels): Same.
20298 (combine_blocks): Same.
20299 (version_loop_for_if_conversion): Same.
20300 (versionable_outer_loop_p): Same.
20301 (ifcvt_local_dce): Same.
20302 (tree_if_conversion): Same.
20303 (pass_if_conversion::gate): Same.
20304 * tree-if-conv.h: Same.
20305 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20306 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20307 (free_rdg): Same.
20308 (stmt_has_scalar_dependences_outside_loop): Same.
20309 (copy_loop_before): Same.
20310 (create_bb_after_loop): Same.
20311 (const_with_all_bytes_same): Same.
20312 (generate_memset_builtin): Same.
20313 (generate_memcpy_builtin): Same.
20314 (destroy_loop): Same.
20315 (build_rdg_partition_for_vertex): Same.
20316 (compute_access_range): Same.
20317 (data_ref_segment_size): Same.
20318 (latch_dominated_by_data_ref): Same.
20319 (compute_alias_check_pairs): Same.
20320 (fuse_memset_builtins): Same.
20321 (finalize_partitions): Same.
20322 (find_seed_stmts_for_distribution): Same.
20323 (prepare_perfect_loop_nest): Same.
20324 * tree-parloops.c (lambda_transform_legal_p): Same.
20325 (loop_parallel_p): Same.
20326 (reduc_stmt_res): Same.
20327 (add_field_for_name): Same.
20328 (create_call_for_reduction_1): Same.
20329 (replace_uses_in_bb_by): Same.
20330 (transform_to_exit_first_loop_alt): Same.
20331 (try_transform_to_exit_first_loop_alt): Same.
20332 (transform_to_exit_first_loop): Same.
20333 (num_phis): Same.
20334 (gen_parallel_loop): Same.
20335 (gather_scalar_reductions): Same.
20336 (get_omp_data_i_param): Same.
20337 (try_create_reduction_list): Same.
20338 (oacc_entry_exit_single_gang): Same.
20339 (parallelize_loops): Same.
20340 * tree-pass.h: Same.
20341 * tree-predcom.c (determine_offset): Same.
20342 (last_always_executed_block): Same.
20343 (split_data_refs_to_components): Same.
20344 (suitable_component_p): Same.
20345 (valid_initializer_p): Same.
20346 (find_looparound_phi): Same.
20347 (insert_looparound_copy): Same.
20348 (add_looparound_copies): Same.
20349 (determine_roots_comp): Same.
20350 (predcom_tmp_var): Same.
20351 (initialize_root_vars): Same.
20352 (initialize_root_vars_store_elim_1): Same.
20353 (initialize_root_vars_store_elim_2): Same.
20354 (finalize_eliminated_stores): Same.
20355 (initialize_root_vars_lm): Same.
20356 (remove_stmt): Same.
20357 (determine_unroll_factor): Same.
20358 (execute_pred_commoning_cbck): Same.
20359 (base_names_in_chain_on): Same.
20360 (combine_chains): Same.
20361 (pcom_stmt_dominates_stmt_p): Same.
20362 (try_combine_chains): Same.
20363 (prepare_initializers_chain_store_elim): Same.
20364 (prepare_initializers_chain): Same.
20365 (prepare_initializers): Same.
20366 (prepare_finalizers_chain): Same.
20367 (prepare_finalizers): Same.
20368 (insert_init_seqs): Same.
20369 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20370 (compute_overall_effect_of_inner_loop): Same.
20371 (add_to_evolution_1): Same.
20372 (add_to_evolution): Same.
20373 (follow_ssa_edge_binary): Same.
20374 (follow_ssa_edge_expr): Same.
20375 (backedge_phi_arg_p): Same.
20376 (follow_ssa_edge_in_condition_phi_branch): Same.
20377 (follow_ssa_edge_in_condition_phi): Same.
20378 (follow_ssa_edge_inner_loop_phi): Same.
20379 (follow_ssa_edge): Same.
20380 (analyze_evolution_in_loop): Same.
20381 (analyze_initial_condition): Same.
20382 (interpret_loop_phi): Same.
20383 (interpret_condition_phi): Same.
20384 (interpret_rhs_expr): Same.
20385 (interpret_expr): Same.
20386 (interpret_gimple_assign): Same.
20387 (analyze_scalar_evolution_1): Same.
20388 (analyze_scalar_evolution): Same.
20389 (analyze_scalar_evolution_for_address_of): Same.
20390 (get_instantiated_value_entry): Same.
20391 (loop_closed_phi_def): Same.
20392 (instantiate_scev_name): Same.
20393 (instantiate_scev_poly): Same.
20394 (instantiate_scev_binary): Same.
20395 (instantiate_scev_convert): Same.
20396 (instantiate_scev_not): Same.
20397 (instantiate_scev_r): Same.
20398 (instantiate_scev): Same.
20399 (resolve_mixers): Same.
20400 (initialize_scalar_evolutions_analyzer): Same.
20401 (scev_reset_htab): Same.
20402 (scev_reset): Same.
20403 (derive_simple_iv_with_niters): Same.
20404 (simple_iv_with_niters): Same.
20405 (expression_expensive_p): Same.
20406 (final_value_replacement_loop): Same.
20407 * tree-scalar-evolution.h (block_before_loop): Same.
20408 * tree-ssa-address.h: Same.
20409 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20410 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20411 (record_edge_info): Same.
20412 * tree-ssa-live.c (var_map_base_fini): Same.
20413 (remove_unused_locals): Same.
20414 * tree-ssa-live.h: Same.
20415 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20416 (pass_ch_vect::execute): Same.
20417 (pass_ch::process_loop_p): Same.
20418 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20419 (movement_possibility): Same.
20420 (outermost_invariant_loop): Same.
20421 (stmt_cost): Same.
20422 (determine_max_movement): Same.
20423 (invariantness_dom_walker::before_dom_children): Same.
20424 (move_computations): Same.
20425 (may_move_till): Same.
20426 (force_move_till_op): Same.
20427 (force_move_till): Same.
20428 (memref_free): Same.
20429 (record_mem_ref_loc): Same.
20430 (set_ref_stored_in_loop): Same.
20431 (mark_ref_stored): Same.
20432 (sort_bbs_in_loop_postorder_cmp): Same.
20433 (sort_locs_in_loop_postorder_cmp): Same.
20434 (analyze_memory_references): Same.
20435 (mem_refs_may_alias_p): Same.
20436 (find_ref_loc_in_loop_cmp): Same.
20437 (rewrite_mem_ref_loc::operator): Same.
20438 (first_mem_ref_loc_1::operator): Same.
20439 (sm_set_flag_if_changed::operator): Same.
20440 (execute_sm_if_changed_flag_set): Same.
20441 (execute_sm): Same.
20442 (hoist_memory_references): Same.
20443 (ref_always_accessed::operator): Same.
20444 (refs_independent_p): Same.
20445 (record_dep_loop): Same.
20446 (ref_indep_loop_p_1): Same.
20447 (ref_indep_loop_p): Same.
20448 (can_sm_ref_p): Same.
20449 (find_refs_for_sm): Same.
20450 (loop_suitable_for_sm): Same.
20451 (store_motion_loop): Same.
20452 (store_motion): Same.
20453 (fill_always_executed_in): Same.
20454 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20455 (estimated_unrolled_size): Same.
20456 (loop_edge_to_cancel): Same.
20457 (remove_exits_and_undefined_stmts): Same.
20458 (remove_redundant_iv_tests): Same.
20459 (unloop_loops): Same.
20460 (estimated_peeled_sequence_size): Same.
20461 (try_peel_loop): Same.
20462 (canonicalize_loop_induction_variables): Same.
20463 (canonicalize_induction_variables): Same.
20464 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20465 (name_info): Same.
20466 (stmt_after_inc_pos): Same.
20467 (contains_abnormal_ssa_name_p): Same.
20468 (niter_for_exit): Same.
20469 (find_bivs): Same.
20470 (mark_bivs): Same.
20471 (find_givs_in_bb): Same.
20472 (find_induction_variables): Same.
20473 (find_interesting_uses_cond): Same.
20474 (outermost_invariant_loop_for_expr): Same.
20475 (idx_find_step): Same.
20476 (add_candidate_1): Same.
20477 (add_iv_candidate_derived_from_uses): Same.
20478 (alloc_use_cost_map): Same.
20479 (prepare_decl_rtl): Same.
20480 (generic_predict_doloop_p): Same.
20481 (computation_cost): Same.
20482 (determine_common_wider_type): Same.
20483 (get_computation_aff_1): Same.
20484 (get_use_type): Same.
20485 (determine_group_iv_cost_address): Same.
20486 (iv_period): Same.
20487 (difference_cannot_overflow_p): Same.
20488 (may_eliminate_iv): Same.
20489 (determine_set_costs): Same.
20490 (cheaper_cost_pair): Same.
20491 (compare_cost_pair): Same.
20492 (iv_ca_cand_for_group): Same.
20493 (iv_ca_recount_cost): Same.
20494 (iv_ca_set_remove_invs): Same.
20495 (iv_ca_set_no_cp): Same.
20496 (iv_ca_set_add_invs): Same.
20497 (iv_ca_set_cp): Same.
20498 (iv_ca_add_group): Same.
20499 (iv_ca_cost): Same.
20500 (iv_ca_compare_deps): Same.
20501 (iv_ca_delta_reverse): Same.
20502 (iv_ca_delta_commit): Same.
20503 (iv_ca_cand_used_p): Same.
20504 (iv_ca_delta_free): Same.
20505 (iv_ca_new): Same.
20506 (iv_ca_free): Same.
20507 (iv_ca_dump): Same.
20508 (iv_ca_extend): Same.
20509 (iv_ca_narrow): Same.
20510 (iv_ca_prune): Same.
20511 (cheaper_cost_with_cand): Same.
20512 (iv_ca_replace): Same.
20513 (try_add_cand_for): Same.
20514 (get_initial_solution): Same.
20515 (try_improve_iv_set): Same.
20516 (find_optimal_iv_set_1): Same.
20517 (create_new_iv): Same.
20518 (rewrite_use_compare): Same.
20519 (remove_unused_ivs): Same.
20520 (determine_scaling_factor): Same.
20521 * tree-ssa-loop-ivopts.h: Same.
20522 * tree-ssa-loop-manip.c (create_iv): Same.
20523 (compute_live_loop_exits): Same.
20524 (add_exit_phi): Same.
20525 (add_exit_phis): Same.
20526 (find_uses_to_rename_use): Same.
20527 (find_uses_to_rename_def): Same.
20528 (find_uses_to_rename_in_loop): Same.
20529 (rewrite_into_loop_closed_ssa): Same.
20530 (check_loop_closed_ssa_bb): Same.
20531 (split_loop_exit_edge): Same.
20532 (ip_end_pos): Same.
20533 (ip_normal_pos): Same.
20534 (copy_phi_node_args): Same.
20535 (gimple_duplicate_loop_to_header_edge): Same.
20536 (can_unroll_loop_p): Same.
20537 (determine_exit_conditions): Same.
20538 (scale_dominated_blocks_in_loop): Same.
20539 (niter_for_unrolled_loop): Same.
20540 (tree_transform_and_unroll_loop): Same.
20541 (rewrite_all_phi_nodes_with_iv): Same.
20542 * tree-ssa-loop-manip.h: Same.
20543 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20544 (number_of_iterations_ne): Same.
20545 (assert_no_overflow_lt): Same.
20546 (assert_loop_rolls_lt): Same.
20547 (number_of_iterations_lt): Same.
20548 (adjust_cond_for_loop_until_wrap): Same.
20549 (tree_simplify_using_condition): Same.
20550 (simplify_using_initial_conditions): Same.
20551 (simplify_using_outer_evolutions): Same.
20552 (loop_only_exit_p): Same.
20553 (ssa_defined_by_minus_one_stmt_p): Same.
20554 (number_of_iterations_popcount): Same.
20555 (number_of_iterations_exit): Same.
20556 (find_loop_niter): Same.
20557 (finite_loop_p): Same.
20558 (chain_of_csts_start): Same.
20559 (get_val_for): Same.
20560 (loop_niter_by_eval): Same.
20561 (derive_constant_upper_bound_ops): Same.
20562 (do_warn_aggressive_loop_optimizations): Same.
20563 (record_estimate): Same.
20564 (get_cst_init_from_scev): Same.
20565 (record_nonwrapping_iv): Same.
20566 (idx_infer_loop_bounds): Same.
20567 (infer_loop_bounds_from_ref): Same.
20568 (infer_loop_bounds_from_array): Same.
20569 (infer_loop_bounds_from_pointer_arith): Same.
20570 (infer_loop_bounds_from_signedness): Same.
20571 (bound_index): Same.
20572 (discover_iteration_bound_by_body_walk): Same.
20573 (maybe_lower_iteration_bound): Same.
20574 (estimate_numbers_of_iterations): Same.
20575 (estimated_loop_iterations): Same.
20576 (estimated_loop_iterations_int): Same.
20577 (max_loop_iterations): Same.
20578 (max_loop_iterations_int): Same.
20579 (likely_max_loop_iterations): Same.
20580 (likely_max_loop_iterations_int): Same.
20581 (estimated_stmt_executions_int): Same.
20582 (max_stmt_executions): Same.
20583 (likely_max_stmt_executions): Same.
20584 (estimated_stmt_executions): Same.
20585 (stmt_dominates_stmt_p): Same.
20586 (nowrap_type_p): Same.
20587 (loop_exits_before_overflow): Same.
20588 (scev_var_range_cant_overflow): Same.
20589 (scev_probably_wraps_p): Same.
20590 (free_numbers_of_iterations_estimates): Same.
20591 * tree-ssa-loop-niter.h: Same.
20592 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20593 (idx_analyze_ref): Same.
20594 (analyze_ref): Same.
20595 (gather_memory_references_ref): Same.
20596 (mark_nontemporal_store): Same.
20597 (emit_mfence_after_loop): Same.
20598 (may_use_storent_in_loop_p): Same.
20599 (mark_nontemporal_stores): Same.
20600 (should_unroll_loop_p): Same.
20601 (volume_of_dist_vector): Same.
20602 (add_subscript_strides): Same.
20603 (self_reuse_distance): Same.
20604 (insn_to_prefetch_ratio_too_small_p): Same.
20605 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20606 (patch_loop_exit): Same.
20607 (find_or_create_guard_phi): Same.
20608 (easy_exit_values): Same.
20609 (connect_loop_phis): Same.
20610 (connect_loops): Same.
20611 (compute_new_first_bound): Same.
20612 (split_loop): Same.
20613 (tree_ssa_split_loops): Same.
20614 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20615 (is_maybe_undefined): Same.
20616 (tree_may_unswitch_on): Same.
20617 (simplify_using_entry_checks): Same.
20618 (tree_unswitch_single_loop): Same.
20619 (tree_unswitch_loop): Same.
20620 (tree_unswitch_outer_loop): Same.
20621 (empty_bb_without_guard_p): Same.
20622 (used_outside_loop_p): Same.
20623 (get_vop_from_header): Same.
20624 (hoist_guard): Same.
20625 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20626 (get_lsm_tmp_name): Same.
20627 * tree-ssa-loop.h: Same.
20628 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20629 (build_and_add_sum): Same.
20630 (no_side_effect_bb): Same.
20631 (get_ops): Same.
20632 (linearize_expr): Same.
20633 (should_break_up_subtract): Same.
20634 (linearize_expr_tree): Same.
20635 * tree-ssa-scopedtables.c: Same.
20636 * tree-ssa-scopedtables.h: Same.
20637 * tree-ssa-structalias.c (condense_visit): Same.
20638 (label_visit): Same.
20639 (dump_pred_graph): Same.
20640 (perform_var_substitution): Same.
20641 (move_complex_constraints): Same.
20642 (remove_preds_and_fake_succs): Same.
20643 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20644 (determine_bb_domination_status): Same.
20645 (duplicate_thread_path): Same.
20646 (thread_through_all_blocks): Same.
20647 * tree-ssa-threadupdate.h: Same.
20648 * tree-streamer-in.c (streamer_read_string_cst): Same.
20649 (input_identifier): Same.
20650 (unpack_ts_type_common_value_fields): Same.
20651 (unpack_ts_block_value_fields): Same.
20652 (unpack_ts_translation_unit_decl_value_fields): Same.
20653 (unpack_ts_omp_clause_value_fields): Same.
20654 (streamer_read_tree_bitfields): Same.
20655 (streamer_alloc_tree): Same.
20656 (lto_input_ts_common_tree_pointers): Same.
20657 (lto_input_ts_vector_tree_pointers): Same.
20658 (lto_input_ts_poly_tree_pointers): Same.
20659 (lto_input_ts_complex_tree_pointers): Same.
20660 (lto_input_ts_decl_minimal_tree_pointers): Same.
20661 (lto_input_ts_decl_common_tree_pointers): Same.
20662 (lto_input_ts_decl_non_common_tree_pointers): Same.
20663 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20664 (lto_input_ts_field_decl_tree_pointers): Same.
20665 (lto_input_ts_function_decl_tree_pointers): Same.
20666 (lto_input_ts_type_common_tree_pointers): Same.
20667 (lto_input_ts_type_non_common_tree_pointers): Same.
20668 (lto_input_ts_list_tree_pointers): Same.
20669 (lto_input_ts_vec_tree_pointers): Same.
20670 (lto_input_ts_exp_tree_pointers): Same.
20671 (lto_input_ts_block_tree_pointers): Same.
20672 (lto_input_ts_binfo_tree_pointers): Same.
20673 (lto_input_ts_constructor_tree_pointers): Same.
20674 (lto_input_ts_omp_clause_tree_pointers): Same.
20675 (streamer_read_tree_body): Same.
20676 * tree-streamer.h: Same.
20677 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20678 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20679 (vect_analyze_possibly_independent_ddr): Same.
20680 (vect_analyze_data_ref_dependence): Same.
20681 (vect_compute_data_ref_alignment): Same.
20682 (vect_enhance_data_refs_alignment): Same.
20683 (vect_analyze_data_ref_access): Same.
20684 (vect_check_gather_scatter): Same.
20685 (vect_find_stmt_data_reference): Same.
20686 (vect_create_addr_base_for_vector_ref): Same.
20687 (vect_setup_realignment): Same.
20688 (vect_supportable_dr_alignment): Same.
20689 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20690 (adjust_phi_and_debug_stmts): Same.
20691 (vect_set_loop_mask): Same.
20692 (add_preheader_seq): Same.
20693 (vect_maybe_permute_loop_masks): Same.
20694 (vect_set_loop_masks_directly): Same.
20695 (vect_set_loop_condition_masked): Same.
20696 (vect_set_loop_condition_unmasked): Same.
20697 (slpeel_duplicate_current_defs_from_edges): Same.
20698 (slpeel_add_loop_guard): Same.
20699 (slpeel_can_duplicate_loop_p): Same.
20700 (create_lcssa_for_virtual_phi): Same.
20701 (iv_phi_p): Same.
20702 (vect_update_ivs_after_vectorizer): Same.
20703 (vect_gen_vector_loop_niters_mult_vf): Same.
20704 (slpeel_update_phi_nodes_for_loops): Same.
20705 (slpeel_update_phi_nodes_for_guard1): Same.
20706 (find_guard_arg): Same.
20707 (slpeel_update_phi_nodes_for_guard2): Same.
20708 (slpeel_update_phi_nodes_for_lcssa): Same.
20709 (vect_do_peeling): Same.
20710 (vect_create_cond_for_alias_checks): Same.
20711 (vect_loop_versioning): Same.
20712 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20713 (vect_inner_phi_in_double_reduction_p): Same.
20714 (vect_analyze_scalar_cycles_1): Same.
20715 (vect_fixup_scalar_cycles_with_patterns): Same.
20716 (vect_get_loop_niters): Same.
20717 (bb_in_loop_p): Same.
20718 (vect_get_max_nscalars_per_iter): Same.
20719 (vect_verify_full_masking): Same.
20720 (vect_compute_single_scalar_iteration_cost): Same.
20721 (vect_analyze_loop_form_1): Same.
20722 (vect_analyze_loop_form): Same.
20723 (vect_active_double_reduction_p): Same.
20724 (vect_analyze_loop_operations): Same.
20725 (neutral_op_for_slp_reduction): Same.
20726 (vect_is_simple_reduction): Same.
20727 (vect_model_reduction_cost): Same.
20728 (get_initial_def_for_reduction): Same.
20729 (get_initial_defs_for_reduction): Same.
20730 (vect_create_epilog_for_reduction): Same.
20731 (vectorize_fold_left_reduction): Same.
20732 (vectorizable_reduction): Same.
20733 (vectorizable_induction): Same.
20734 (vectorizable_live_operation): Same.
20735 (loop_niters_no_overflow): Same.
20736 (vect_get_loop_mask): Same.
20737 (vect_transform_loop_stmt): Same.
20738 (vect_transform_loop): Same.
20739 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20740 (vect_determine_precisions): Same.
20741 (vect_pattern_recog_1): Same.
20742 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20743 * tree-vect-stmts.c (stmt_vectype): Same.
20744 (process_use): Same.
20745 (vect_init_vector_1): Same.
20746 (vect_truncate_gather_scatter_offset): Same.
20747 (get_group_load_store_type): Same.
20748 (vect_build_gather_load_calls): Same.
20749 (vect_get_strided_load_store_ops): Same.
20750 (vectorizable_simd_clone_call): Same.
20751 (vectorizable_store): Same.
20752 (permute_vec_elements): Same.
20753 (vectorizable_load): Same.
20754 (vect_transform_stmt): Same.
20755 (supportable_widening_operation): Same.
20756 * tree-vectorizer.c (vec_info::replace_stmt): Same.
20757 (vec_info::free_stmt_vec_info): Same.
20758 (vect_free_loop_info_assumptions): Same.
20759 (vect_loop_vectorized_call): Same.
20760 (set_uid_loop_bbs): Same.
20761 (vectorize_loops): Same.
20762 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
20763 * tree.c (add_tree_to_fld_list): Same.
20764 (fld_type_variant_equal_p): Same.
20765 (fld_decl_context): Same.
20766 (fld_incomplete_type_of): Same.
20767 (free_lang_data_in_binfo): Same.
20768 (need_assembler_name_p): Same.
20769 (find_decls_types_r): Same.
20770 (get_eh_types_for_runtime): Same.
20771 (find_decls_types_in_eh_region): Same.
20772 (find_decls_types_in_node): Same.
20773 (assign_assembler_name_if_needed): Same.
20774 * value-prof.c (stream_out_histogram_value): Same.
20775 * value-prof.h: Same.
20776 * var-tracking.c (use_narrower_mode): Same.
20777 (prepare_call_arguments): Same.
20778 (vt_expand_loc_callback): Same.
20779 (resolve_expansions_pending_recursion): Same.
20780 (vt_expand_loc): Same.
20781 * varasm.c (const_hash_1): Same.
20782 (compare_constant): Same.
20783 (tree_output_constant_def): Same.
20784 (simplify_subtraction): Same.
20785 (get_pool_constant): Same.
20786 (output_constant_pool_2): Same.
20787 (output_constant_pool_1): Same.
20788 (mark_constants_in_pattern): Same.
20789 (mark_constant_pool): Same.
20790 (get_section_anchor): Same.
20791 * vr-values.c (compare_range_with_value): Same.
20792 (vr_values::extract_range_from_phi_node): Same.
20793 * vr-values.h: Same.
20794 * web.c (unionfind_union): Same.
20795 * wide-int.h: Same.
20796
20797 2019-07-09 Martin Sebor <msebor@redhat.com>
20798
20799 PR c++/61339
20800 * align.h: Change class-key from class to struct and vice versa
20801 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
20802 * alloc-pool.h: Same.
20803 * asan.c (shadow_mem_size): Same.
20804 * auto-profile.c: Same.
20805 * basic-block.h: Same.
20806 * bitmap.h: Same.
20807 * cfgexpand.c (set_rtl): Same.
20808 (expand_one_stack_var_at): Same.
20809 * cfghooks.h: Same.
20810 * cfgloop.h: Same.
20811 * cgraph.h: Same.
20812 * config/i386/i386.h: Same.
20813 * df-problems.c (df_print_bb_index): Same.
20814 * df-scan.c: Same.
20815 * df.h (df_single_use): Same.
20816 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
20817 (layout::annotation_line_showed_range_p): Same.
20818 (get_printed_columns): Same.
20819 (correction::ensure_terminated): Same.
20820 (line_corrections::~line_corrections): Same.
20821 * dojump.h: Same.
20822 * dse.c: Same.
20823 * dump-context.h: Same.
20824 * dumpfile.h: Same.
20825 * dwarf2out.c: Same.
20826 * edit-context.c: Same.
20827 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
20828 * flags.h: Same.
20829 * function.c (assign_stack_local): Same.
20830 * function.h: Same.
20831 * gcc.c: Same.
20832 * gcov.c (block_info::block_info): Same.
20833 * genattrtab.c: Same.
20834 * genextract.c: Same.
20835 * genmatch.c (comparison_code_p): Same.
20836 (id_base::id_base): Same.
20837 (decision_tree::print): Same.
20838 * genoutput.c: Same.
20839 * genpreds.c (write_one_predicate_function): Same.
20840 * genrecog.c (validate_pattern): Same.
20841 (find_operand_positions): Same.
20842 (optimize_subroutine_group): Same.
20843 (merge_pattern_transition::merge_pattern_transition): Same.
20844 (merge_pattern_info::merge_pattern_info): Same.
20845 (merge_state_result::merge_state_result): Same.
20846 (merge_into_state): Same.
20847 * gensupport.c: Same.
20848 * gensupport.h: Same.
20849 * ggc-common.c (init_ggc_heuristics): Same.
20850 * ggc-tests.c (test_union): Same.
20851 * gimple-loop-interchange.cc (dump_induction): Same.
20852 * gimple-loop-versioning.cc: Same.
20853 * gimple-match.h (gimple_match_cond::any_else): Same.
20854 * gimple-ssa-backprop.c: Same.
20855 * gimple-ssa-sprintf.c: Same.
20856 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
20857 Same.
20858 (store_immediate_info::store_immediate_info): Same.
20859 (merged_store_group::apply_stores): Same.
20860 (get_location_for_stmts): Same.
20861 * gimple-ssa-strength-reduction.c: Same.
20862 * gimple-ssa-warn-alloca.c: Same.
20863 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
20864 * godump.c (go_type_decl): Same.
20865 * hash-map-tests.c (test_map_of_strings_to_int): Same.
20866 * hash-map.h: Same.
20867 * hash-set-tests.c (test_set_of_strings): Same.
20868 * hsa-brig.c: Same.
20869 * hsa-common.h: Same.
20870 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
20871 * input.c (assert_loceq): Same.
20872 * input.h: Same.
20873 * ipa-cp.c: Same.
20874 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
20875 * ipa-fnsummary.h: Same.
20876 * ipa-inline.h: Same.
20877 * ipa-prop.h: Same.
20878 * ipa-split.c (visit_bb): Same.
20879 * ira-int.h (minmax_set_iter_next): Same.
20880 * loop-invariant.c: Same.
20881 * loop-iv.c: Same.
20882 * lra-eliminations.c: Same.
20883 * lra-int.h: Same.
20884 * lra-lives.c (mark_regno_dead): Same.
20885 * lra-remat.c: Same.
20886 * lra-spills.c: Same.
20887 * lto-streamer.h: Same.
20888 * mem-stats.h: Same.
20889 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
20890 * omp-low.c (omp_clause_aligned_alignment): Same.
20891 * optabs-query.h (get_vcond_eq_icode): Same.
20892 * optabs.h: Same.
20893 * opts.c (wrap_help): Same.
20894 * poly-int.h: Same.
20895 * predict.c (predict_paths_leading_to_edge): Same.
20896 * pretty-print.h: Same.
20897 * profile-count.h: Same.
20898 * read-md.h: Same.
20899 * read-rtl-function.c: Same.
20900 * ree.c: Same.
20901 * reginfo.c: Same.
20902 * regrename.c: Same.
20903 * regrename.h: Same.
20904 * reload.h: Same.
20905 * rtl-iter.h: Same.
20906 * rtl.h (costs_add_n_insns): Same.
20907 * sanopt.c: Same.
20908 * sched-int.h: Same.
20909 * sel-sched-ir.h: Same.
20910 * selftest.h: Same.
20911 * sese.h (vec_find): Same.
20912 * stmt.c: Same.
20913 * target-globals.h: Same.
20914 * tree-affine.c (aff_combination_find_elt): Same.
20915 * tree-affine.h: Same.
20916 * tree-data-ref.h: Same.
20917 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
20918 * tree-predcom.c: Same.
20919 * tree-scalar-evolution.c (find_var_scev_info): Same.
20920 * tree-ssa-alias.h: Same.
20921 * tree-ssa-ccp.c: Same.
20922 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
20923 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
20924 (rewrite_mem_refs): Same.
20925 (execute_sm_if_changed): Same.
20926 (hoist_memory_references): Same.
20927 * tree-ssa-loop-ivopts.c (operator<=): Same.
20928 * tree-ssa-loop.h: Same.
20929 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
20930 * tree-ssa-structalias.c: Same.
20931 * tree-switch-conversion.h (cluster::cluster): Same.
20932 (simple_cluster::simple_cluster): Same.
20933 * tree-vect-patterns.c (type_conversion_p): Same.
20934 * tree-vectorizer.c (dump_stmt_cost): Same.
20935 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
20936 * tree.c (protected_set_expr_location): Same.
20937 * tree.h (desired_pro_or_demotion_p): Same.
20938 (fndecl_built_in_p): Same.
20939 * unique-ptr-tests.cc: Same.
20940 * var-tracking.c (delete_variable_part): Same.
20941 * varasm.c (assemble_real): Same.
20942 (tree_output_constant_def): Same.
20943 * vec.c: Same.
20944 * wide-int-bitmask.h: Same.
20945 * wide-int.h (decompose): Same.
20946
20947 2019-07-09 Richard Biener <rguenther@suse.de>
20948
20949 PR tree-optimization/91114
20950 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
20951 find a vector type isn't fatal.
20952
20953 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20954
20955 * config/aarch64/aarch64-simd.md
20956 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
20957 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
20958 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
20959 (*aarch64_crypto_aese_fused,
20960 *aarch64_crypto_aesd_fused): Update to new definition.
20961 * config/aarch64/aarch64.c
20962 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
20963
20964 2019-07-09 Richard Biener <rguenther@suse.de>
20965
20966 * gimple-match.h (gimple_match_op::resimplify): New.
20967 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
20968 gimple_resimplify4, gimple_resimplify5): Remove.
20969 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
20970 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
20971 Make static.
20972 (gimple_match_op::resimplify): New.
20973 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
20974 according to availability. Use gimple_match_op::resimplify.
20975
20976 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
20977
20978 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
20979
20980 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20981
20982 * config/arm/crypto.md:
20983 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
20984 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
20985 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
20986 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
20987 * config/arm/arm.c
20988 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
20989 * config/arm/aarch-common-protos.h
20990 (aarch_crypto_can_dual_issue): Remove.
20991 * config/arm/aarch-common.c
20992 (aarch_crypto_can_dual_issue): Likewise.
20993 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
20994 * config/arm/cortex-a53.md: Likewise.
20995 * config/arm/cortex-a57.md: Likewise.
20996 * config/arm/iterators.md:
20997 (CRYPTO_BINARY): Redefine.
20998 (CRYPTO_UNARY): Removed.
20999 (CRYPTO_AES, CRYPTO_AESMC): New.
21000
21001 2019-07-09 Richard Biener <rguenther@suse.de>
21002
21003 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21004 (vn_reference_lookup_3): If the main ref has no access path recorded
21005 but orig_ref has use it to do access-path based disambiguation.
21006 (vn_reference_lookup_pieces): Adjust.
21007 (vn_reference_lookup): Pass down original ref if we valueized.
21008
21009 2019-07-09 Martin Liska <mliska@suse.cz>
21010
21011 * doc/extend.texi: Document influence on loop
21012 optimizers.
21013
21014 2019-07-09 Martin Liska <mliska@suse.cz>
21015
21016 * lto-compress.c (lto_normalized_zstd_level): Do not use
21017 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21018 of libzstd. One can use 0 as a default compression level.
21019
21020 2019-07-09 Martin Liska <mliska@suse.cz>
21021
21022 * doc/invoke.texi: Add link from -fprofile-dir option.
21023 Use better wording for 'gcno filename'.
21024
21025 2019-07-08 Martin Sebor <msebor@redhat.com>
21026
21027 PR middle-end/71924
21028 PR middle-end/90549
21029 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21030 comment.
21031 (args_loc_t): New type.
21032 (args_loc_t, locmap_t): same.
21033 (diag_returned_locals): New function.
21034 (is_addr_local): Same.
21035 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21036 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21037 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21038
21039 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21040
21041 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21042 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21043 and casts in offset when different, both through gimple stmts
21044 and through trees. Rewritten using loops to minimize code duplication
21045 for each operand.
21046
21047 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21048
21049 * emit-rtl.c (set_insn_locations): New function moved from...
21050 * function.c (set_insn_locations): ...here.
21051 * ira-emit.c (emit_moves): Propagate location of the first instruction
21052 to the inserted move instructions.
21053 * reg-stack.c (compensate_edge): Set the location if the sequence is
21054 inserted on the edge.
21055 * rtl.h (set_insn_locations): Declare.
21056
21057 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21058
21059 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21060 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21061 .machine string.
21062
21063 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21064
21065 PR rtl-optimization/88233
21066 * common.opt (fsplit-wide-types-early): New option.
21067 * common/config/rs6000/rs6000-common.c
21068 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21069 OPT_LEVELS_ALL.
21070 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21071 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21072 flag_split_wide_types_early.
21073 (pass_data_lower_subreg3): New.
21074 (pass_lower_subreg3): New.
21075 (make_pass_lower_subreg3): New.
21076 * passes.def (pass_lower_subreg2): Move after the loop passes.
21077 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21078 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21079 the pass pipeline; its previous place is taken by ...
21080 (make_pass_lower_subreg3): ... this.
21081
21082 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21083
21084 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21085 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21086
21087 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21088
21089 * config/s390/constraints.md: Add new jsc constraint.
21090 * config/s390/predicates.md: New predicates.
21091 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21092 * config/s390/s390.c (s390_valid_shift_count): New function.
21093 (print_shift_count_operand): Use s390_valid_shift_count.
21094 (print_operand): Likewise.
21095 * config/s390/s390.md: Use new predicate.
21096 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21097 * config/s390/vector.md: Use new predicate.
21098
21099 2019-07-08 Andrew Waterman <andrew@sifive.com>
21100 Jim Wilson <jimw@sifive.com>
21101
21102 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21103 bitsize instead of BITS_PER_WORD.
21104
21105 2019-07-08 Martin Liska <mliska@suse.cz>
21106
21107 * collect2.c (defined): Revert to before r254460.
21108 (scan_prog_file): Revert to before r254460.
21109
21110 2019-07-08 Richard Biener <rguenther@suse.de>
21111
21112 PR tree-optimization/83518
21113 * tree-ssa-sccvn.c: Include splay-tree.h.
21114 (struct pd_range, struct pd_data): New.
21115 (struct vn_walk_cb_data): Add data to track partial definitions.
21116 (vn_walk_cb_data::~vn_walk_cb_data): New.
21117 (vn_walk_cb_data::push_partial_def): New.
21118 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21119 (vn_reference_lookup_2): When partial defs are registered give up.
21120 (vn_reference_lookup_3): Track partial defs for memset and
21121 constructor zeroing and for defs from constants.
21122
21123 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21124
21125 * doc/install.texi (bootstrap-Og): Document.
21126
21127 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21128
21129 * config/riscv/pic.md (*local_pic_load_s<mode>)
21130 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21131 referenced by <mode>, giving...
21132 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21133 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21134 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21135 use <X:MODE> for the mode attribute.
21136
21137 2019-07-07 Jeff Law <law@redhat.com>
21138
21139 PR tree-optimization/91090
21140 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21141 in handling of ranges to simplify switch statements.
21142
21143 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21144
21145 * config/darwin.c (darwin_override_options): Make a final check on PIC
21146 options.
21147
21148 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21149
21150 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21151 on for kernel code.
21152
21153 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21154
21155 PR target/91068
21156 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21157 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21158 instead of matching them to "l" output operands.
21159
21160 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21161
21162 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21163 and check whether addr.reg is nonnull before using it.
21164
21165 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21166
21167 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21168 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21169 variable(s). For conditional lastprivate look through outer
21170 GIMPLE_OMP_SCAN context.
21171 (lower_omp_1): For conditional lastprivate look through outer
21172 GIMPLE_OMP_SCAN context.
21173
21174 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21175 member to combined_into_simd_safelen1.
21176 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21177 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21178 clauses if ctx->combined_into_simd_safelen1 put statements after the
21179 predicate conditionalized block rather than into it.
21180
21181 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21182
21183 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21184 operand 1.
21185 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21186 Make the choice of <mode> explicit, giving...
21187 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21188
21189 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21190
21191 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21192 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21193 of .md attributes.
21194 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21195 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21196 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21197 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21198 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21199 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21200 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21201 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21202 (*avx512f_scatterdi<mode>): Likewise.
21203 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21204
21205 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21206
21207 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21208 specify the mode iterator referenced by <mode>, giving...
21209 (*push1_h8300hs_<QHI:mode>): ...this.
21210
21211 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21212
21213 * config/gcn/gcn-valu.md
21214 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21215 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21216 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21217 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21218 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21219 but using the _exec comparison patterns.
21220 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21221 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21222 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21223 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21224 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21225 but using the _exec comparison patterns.
21226
21227 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21228
21229 * config/arm/sync.md
21230 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21231 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21232 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21233 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21234 <SIDI:cas_cmp_str>.
21235
21236 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21237
21238 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21239 (maybe_lookup_ctx): Add forward declaration.
21240 (omp_find_scan): Likewise. Walk into body of simd if composited
21241 with worksharing loop.
21242 (scan_omp_simd_scan): New function.
21243 (scan_omp_1_stmt): Call it.
21244 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21245 ctx->for_simd_scan_phase.
21246 (lower_rec_input_clauses): Do much less work for inscan reductions
21247 in ctx->for_simd_scan_phase is_simd regions.
21248 (lower_omp_scan): Set is_simd also on simd constructs composited
21249 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21250 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21251 emit their body after in simd constructs composited with worksharing
21252 loop.
21253 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21254
21255 * omp-low.c (omp_find_scan): Make static.
21256 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21257 the second loop, var2 represents the first partial sum and so needs
21258 to go before rprivb[ivar].
21259
21260 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21261
21262 * config/rs6000/rs6000-logue.c: Remove unused code.
21263
21264 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21265
21266 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21267
21268 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21269
21270 PR target/90712
21271 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21272 check with a frame laid out check.
21273
21274 2019-07-05 Richard Biener <rguenther@suse.de>
21275
21276 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21277 when comparing against a store with possibly the same value.
21278
21279 2019-07-05 Richard Biener <rguenther@suse.de>
21280
21281 PR tree-optimization/91091
21282 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21283 (walk_non_aliased_vuses): Likewise.
21284 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21285 (get_continuation_for_phi): New tbaa_p parameter and pass
21286 it down.
21287 (walk_non_aliased_vuses): Likewise.
21288 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21289 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21290 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21291 Likewise.
21292 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21293 (adjust_offsets_for_equal_base_address): New function.
21294 (vn_reference_lookup_3): Use it to catch more base equivalences.
21295 Handle and pass down tbaa_p flag.
21296 (vn_reference_lookup_pieces): Adjust.
21297 (vn_reference_lookup): Remove alias-set altering, instead pass
21298 down false as tbaa_p.
21299
21300 2019-07-05 Richard Biener <rguenther@suse.de>
21301
21302 PR tree-optimization/91091
21303 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21304 accesses can happen with -fno-strict-aliasing.
21305
21306 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21307
21308 * tree-ssa-alias.c (alias_stats): Add
21309 nonoverlapping_component_refs_since_match_p_must_overlap.
21310 (dump_alias_stats): Print it.
21311 (nonoverlapping_component_refs_since_match_p): Add early exit.
21312 (nonoverlapping_component_refs_p): Do not account early exit.
21313
21314 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21315
21316 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21317 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21318 (emit_eh_dispatch): Delete.
21319 (lower_catch): Emit the eh_dispatch manually and set the location of
21320 the first catch statement onto it.
21321 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21322 (lower_eh_dispatch): Propagate location.
21323 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21324 (eliminate_build): Likewise.
21325
21326 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21327
21328 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21329 phi nodes if possible.
21330 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21331 location info on the newly created statement.
21332 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21333 newly created increment if needed.
21334
21335 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21336
21337 PR middle-end/78884
21338 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21339 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21340 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21341 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21342 ctx->add_safelen1 is set.
21343
21344 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21345 GOMP_loop_start at the start of second worksharing loop in a scan.
21346 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21347 worksharing loop in a scan even if there are conditional lastprivates,
21348 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21349
21350 2019-07-04 Jan Hubicka <jh@suse.cz>
21351
21352 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21353 Fix check for match in the ref walk.
21354
21355 2019-07-04 Martin Liska <mliska@suse.cz>
21356
21357 * tree-ssa-loop-niter.c
21358 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21359 (estimate_numbers_of_iterations):
21360 Support __builtin_expect_with_probability for analysis
21361 of # of loop iterations.
21362
21363 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21364
21365 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21366 * except.c: Likewise.
21367 * expr.c (expand_expr_real_1): Reject it.
21368 * gimplify.c (gimplify_expr): Gimplify it, within
21369 TRY_FINALLY_EXPR.
21370 * tree-dump.c (dequeue_and_dump): Dump it.
21371 * tree-pretty-print.c (dump_generic_node): Likewise.
21372 * tree.c (block_may_fallthru): Handle it.
21373 * tree.def (EH_ELSE_EXPR): Introduce it.
21374 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21375 with GIMPLE_EH_ELSE as try/finally/else.
21376
21377 2019-07-04 Richard Biener <rguenther@suse.de>
21378
21379 PR ipa/91062
21380 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21381 parameter whether to disable GC collection.
21382 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21383 honor it.
21384 (execute_all_ipa_transforms): Likewise and pass it down.
21385 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21386 collection from applying IPA transforms.
21387 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21388 from applying IPA transforms.
21389
21390 2019-07-04 Richard Biener <rguenther@suse.de>
21391
21392 PR tree-optimization/90911
21393 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21394 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21395 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21396 scalar_loop_scaling.
21397 (vect_transform_loop): Scale scalar loop profile if needed.
21398 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21399 the loop copy from if-conversion adjust edge probabilities
21400 and scale the vectorized loop body profile, queue the scalar
21401 profile for updating after peeling.
21402
21403 2019-07-04 Jan Hubicka <jh@suse.cz>
21404
21405 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21406 parameters; return early for must-alias.
21407 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21408 outer types match, try nonoverlapping_component_refs
21409 if must-alias is not obvious.
21410 (indirect_refs_may_alias_p): Likewise.
21411 (refs_may_alias_p_2): Likewise.
21412
21413 2019-07-04 Richard Biener <rguenther@suse.de>
21414
21415 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21416 argument.
21417 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21418 globals into...
21419 (struct vn_walk_cb_data): New callback data struct.
21420 (vn_reference_lookup_2): Adjust.
21421 (vn_reference_lookup_3): Likewise.
21422 (vn_reference_lookup_pieces): Likewise.
21423 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21424 (visit_reference_op_load): Adjust.
21425
21426 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21427
21428 PR tree-optimization/91063
21429 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21430 stmt from stmts sequence before calling vect_init_vector_1.
21431 Formatting fix.
21432
21433 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21434
21435 PR target/88833
21436 * fwprop.c (reg_single_def_p): New function.
21437 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21438 (forward_propagate_into): New parameter reg_prop_only
21439 with default value false.
21440 Propagate def's src into loop only if SET_SRC and SET_DEST
21441 of def_set have single definitions.
21442 Likewise if reg_prop_only is set to true.
21443 (fwprop): New param fwprop_addr_p.
21444 Integrate fwprop_addr into fwprop.
21445 (fwprop_addr): Remove.
21446 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21447 to true.
21448 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21449 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21450 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21451
21452 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21453
21454 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21455 in worksharing loop scans.
21456
21457 PR tree-optimization/91074
21458 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21459 temporary.
21460
21461 PR rtl-optimization/90756
21462 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21463 for VECTOR_TYPE_P.
21464
21465 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21466
21467 * config/aarch64/aarch64.md: Remove redundant constraints from
21468 define_expand but keep some patterns untouched if they are
21469 specially selected by TARGET_SECONDARY_RELOAD hook.
21470 * config/aarch64/aarch64-sve.md: Likewise.
21471 * config/aarch64/atomics.md: Remove redundant constraints from
21472 define_expand.
21473 * config/aarch64/aarch64-simd.md: Likewise.
21474
21475 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21476
21477 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21478 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21479 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21480 clauses.
21481 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21482 DARWIN_NOPIE_SPEC.
21483
21484 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21485
21486 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21487 (STARTFILE_SPEC): Split crt3 into a separate spec.
21488 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21489 (DARWIN_CRT2_SPEC): New.
21490 (DARWIN_CRT3_SPEC): New.
21491 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21492 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21493 (DARWIN_CRT3_SPEC): New.
21494
21495 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21496
21497 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21498 Change the RTL attribute "length" from "4" to "*" to allow the
21499 length attribute to be adjusted automatically for prefixed load,
21500 store, and add immediate instructions.
21501 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21502 Likewise.
21503 (extendsi<mode>2, EXTSI iterator): Likewise.
21504 (movsi_internal1): Likewise.
21505 (movsi_from_sf): Likewise.
21506 (movdi_from_sf_zero_ext): Likewise.
21507 (mov<mode>_internal): Likewise.
21508 (movcc_internal1, QHI iterator): Likewise.
21509 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21510 (movsf_from_si): Likewise.
21511 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21512 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21513 (mov<mode>, FMOVE128 iterator): Likewise.
21514 (movdi_internal64): Likewise.
21515 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21516 Likewise.
21517 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21518 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21519 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21520 (vsx_splat_v4sf): Likewise.
21521
21522 2019-07-03 Mark Wielaard <mark@klomp.org>
21523
21524 PR debug/90981
21525 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21526 DW_AT_addr_base if there is actually a .debug_addr section with
21527 addresses.
21528 (output_addr_table): Add DWARF5 table header generation here after
21529 checking there are actually any addresses from...
21530 (dwarf2out_finish): ...here.
21531
21532 2019-07-03 Richard Biener <rguenther@suse.de>
21533
21534 PR middle-end/91069
21535 * match.pd (vec_perm -> bit_insert): Fix element read from
21536 first vector.
21537
21538 2019-07-03 Martin Liska <mliska@suse.cz>
21539
21540 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21541 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21542 condition.
21543 * generic-match-head.c: Include dbgcnt.h.
21544 * gimple-match-head.c: Likewise.
21545
21546 2019-07-03 Martin Liska <mliska@suse.cz>
21547
21548 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21549 (GCOV_COUNTER_V_TOPN): New.
21550 (GCOV_COUNTER_V_INDIR): Use _topn.
21551 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21552 (GCOV_TOPN_VALUES): New.
21553 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21554 (GCOV_TOPN_VALUES_COUNTERS): New.
21555 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21556 * tree-profile.c:
21557 (gimple_init_gcov_profiler): Rename variables from one_value
21558 to topn_values.
21559 (gimple_gen_one_value_profiler): Remove.
21560 (gimple_gen_topn_values_profiler): New function.
21561 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21562 names instead of SINGLE_VALUE.
21563 (stream_out_histogram_value): Likewise.
21564 (stream_in_histogram_value): Likewise.
21565 (get_most_common_single_value): Likewise.
21566 (gimple_divmod_fixed_value_transform): Likewise.
21567 (gimple_stringops_transform): Likewise.
21568 (gimple_divmod_values_to_profile): Likewise.
21569 (gimple_stringops_values_to_profile): Likewise.
21570 (gimple_find_values_to_profile): Likewise.
21571 * value-prof.h (enum hist_type): Rename to TOPN.
21572 (gimple_gen_one_value_profiler): Remove.
21573 (gimple_gen_topn_values_profiler): New.
21574
21575 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21576
21577 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21578 if it has the DW_AT_data_member_location attribute.
21579
21580 2019-07-03 Richard Biener <rguenther@suse.de>
21581
21582 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21583 dumping.
21584
21585 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21586
21587 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21588 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21589 (tlsdesc_small_sve_<mode>): Likewise.
21590
21591 2019-07-03 Martin Liska <mliska@suse.cz>
21592
21593 * Makefile.in: Define ZSTD_LIB.
21594 * common.opt: Adjust compression level
21595 to support also zstd levels.
21596 * config.in: Regenerate.
21597 * configure: Likewise.
21598 * configure.ac: Add --with-zstd and --with-zstd-include options
21599 and detect ZSTD.
21600 * doc/install.texi: Mention zstd dependency.
21601 * gcc.c: Print supported LTO compression algorithms.
21602 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21603 (lto_compression_zstd): Likewise.
21604 (lto_uncompression_zstd): Likewise.
21605 (lto_end_compression): Dispatch in between zlib and zstd.
21606 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21607 (lto_uncompression_zlib): Make it static.
21608 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21609 * lto-section-in.c (lto_get_section_data): Pass info
21610 about used compression.
21611 * lto-streamer-out.c: By default use zstd when possible.
21612 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21613 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21614
21615 2019-07-03 Martin Liska <mliska@suse.cz>
21616
21617 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21618 * lto-section-out.c (lto_destroy_simple_output_block): Never
21619 compress LTO_section_lto section.
21620 * lto-streamer-out.c (produce_asm): Do not set major_version
21621 and minor_version.
21622 (lto_output_toplevel_asms): Likewise.
21623 (produce_lto_section): New function.
21624 (lto_output): Call produce_lto_section.
21625 (lto_write_mode_table): Do not set major_version and
21626 minor_version.
21627 (produce_asm_for_decls): Likewise.
21628 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21629 type.
21630 (struct lto_header): Remove.
21631 (struct lto_section): New struct.
21632 (struct lto_simple_header): Do not inherit from lto_header.
21633 (struct lto_file_decl_data): Add lto_section_header field.
21634
21635 2019-07-03 Martin Liska <mliska@suse.cz>
21636
21637 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21638 dead assignemts.
21639 * reg-stack.c (check_asm_stack_operands): Likewise.
21640 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21641 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21642 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21643 force_expand_binop.
21644
21645 2019-07-03 Martin Liska <mliska@suse.cz>
21646
21647 PR tree-optimization/90892
21648 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21649 in string constants.
21650
21651 2019-07-03 Martin Liska <mliska@suse.cz>
21652
21653 PR middle-end/90899
21654 * multiple_target.c (create_dispatcher_calls): Add to comdat
21655 group only if set for ifunc.
21656
21657 2019-07-03 Martin Liska <mliska@suse.cz>
21658
21659 PR target/88056
21660 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21661 Define local_object_name in outer scope in order to handle
21662 use-after-scope issue.
21663
21664 2019-07-03 Martin Liska <mliska@suse.cz>
21665
21666 * common.opt: Add fprofile-note.
21667 * coverage.c (coverage_init): Append the option
21668 to bbg_file_name.
21669 * doc/invoke.texi: Document -fprofile-note.
21670
21671 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21672
21673 PR tree-optimization/91033
21674 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21675 vect_analyze_data_refs): Add bool * arguments.
21676 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21677 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21678 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21679 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21680 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21681 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21682 vect_analyze_data_refs caller.
21683
21684 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21685 clause.
21686 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21687 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21688 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21689 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21690 OMP_CLAUSE__SCANTEMP_ entry.
21691 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21692 * tree-pretty-print.c (dump_omp_clause): Likewise.
21693 * tree-nested.c (convert_nonlocal_omp_clauses,
21694 convert_local_omp_clauses): Likewise.
21695 * omp-general.h (struct omp_for_data): Add have_scantemp and
21696 have_nonctrl_scantemp members.
21697 * omp-general.c (omp_extract_for_data): Initialize them.
21698 * omp-low.c (struct omp_context): Add scan_exclusive member.
21699 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21700 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21701 ctx->scan_exclusive.
21702 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21703 of !ctx->scan_inclusive.
21704 (lower_rec_input_clauses): Simplify gimplification of dtors using
21705 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21706 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21707 loops. Don't add barrier for reduction_omp_orig_ref if
21708 ctx->scan_??xclusive.
21709 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21710 (lower_omp_scan): Use ctx->scan_exclusive instead
21711 of !ctx->scan_inclusive. Handle worksharing loops with inscan
21712 reductions. Use new_vard != new_var instead of repeated
21713 omp_is_reference calls.
21714 (omp_find_scan, lower_omp_for_scan): New functions.
21715 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21716 inscan reductions.
21717 * omp-expand.c (expand_omp_scantemp_alloc): New function.
21718 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21719 and fd->have_scantemp.
21720
21721 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21722 on worksharing loop propagate it as shared clause to containing
21723 combined parallel.
21724
21725 * omp-expand.c (expand_omp_for_static_nochunk,
21726 expand_omp_for_static_chunk): For nowait worksharing loop with
21727 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21728 at the end.
21729
21730 2019-07-02 qing zhao <qing.zhao@oracle.com>
21731
21732 PR preprocessor/90581
21733 * doc/cppopts.texi: Add document for -fmax-include-depth.
21734 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21735
21736 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
21737
21738 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21739 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21740 (mmx_packssdw): Ditto.
21741 (mmx_punpckhbw): Ditto.
21742 (mmx_punpcklbw): Ditto.
21743 (mmx_punpckhwd): Ditto.
21744 (mmx_punpcklwd): Ditto.
21745 (mmx_punpckhdq): Ditto.
21746 (mmx_punpckldq): Ditto.
21747 (*vec_dupv4hi): Ditto.
21748 (*vec_dupv2si): Ditto.
21749 (mmx_pmovmskb): Ditto.
21750 * config/i386/sse.md (sse_cvtpi2ps): Use
21751 TARGET_SSE2 && SSE_REG_P in split condition.
21752 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
21753 TARGET_SSSE3 && SSE_REGNO_P in split condition.
21754 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
21755 (ssse3_pshufbv8qi3): Ditto.
21756 (ssse3_palignrdi): Ditto.
21757
21758 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
21759
21760 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
21761 with inlined save and restore.
21762
21763 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
21764
21765 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
21766 to be inserted on single successor edge of the entry block. Then call
21767 commit_edge_insertions instead of inserting the instructions manually.
21768 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
21769 RTL expansion and rebuild jump labels chain.
21770
21771 2019-07-02 Richard Biener <rguenther@suse.de>
21772
21773 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
21774 TI_CHREC_KNOWN.
21775 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21776 Define here.
21777 * tree.c (build_common_tree_nodes): Initialize them.
21778 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21779 Make declarations comments.
21780 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
21781 chrec_known): Remove definitions.
21782 (initialize_scalar_evolutions_analyzer): Remove.
21783 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
21784 * tree-streamer.c (preload_common_nodes): Do not preload
21785 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
21786
21787 2019-07-02 Jan Hubicka <jh@suse.cz>
21788
21789 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
21790 sanity check.
21791
21792 2019-07-02 Jan Hubicka <jh@suse.cz>
21793
21794 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
21795 to ..
21796 (nonoverlapping_component_refs_since_match_p): ... this one;
21797 handle also non-decl bases; return -1 if search gave up.
21798 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
21799 nonoverlapping_component_refs_of_decl_p_no_alias to
21800 nonoverlapping_component_refs_since_match_p_may_alias,
21801 nonoverlapping_component_refs_since_match_p_no_alias.
21802 (dump_alias_stats): Update dumping.
21803 (aliasing_matching_component_refs_p): Break out from ...;
21804 dispatch to nonoverlapping_component_refs_for_decl_p
21805 and nonoverlapping_component_refs_since_match_p.
21806 (aliasing_component_refs_p): ... here; call
21807 nonoverlapping_component_refs_p in scenarios where we can not
21808 precisely determine base match.
21809 (decl_refs_may_alias_p): Use
21810 nonoverlapping_component_refs_since_match_p.
21811 (indirect_ref_may_alias_decl_p): Do not call
21812 nonoverlapping_component_refs_p.
21813 (indirect_refs_may_alias_p): Likewise.
21814
21815 2019-07-02 Jan Hubicka <jh@suse.cz>
21816
21817 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
21818 to clobber of return value.
21819
21820 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21821
21822 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
21823 for is_neon_type instructions that have not already been categorized.
21824
21825 2019-07-02 Richard Biener <rguenther@suse.de>
21826
21827 PR tree-optimization/58483
21828 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
21829 for MEM_REF base hashing.
21830 (equal_mem_array_ref_p): Likewise for base comparison.
21831
21832 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21833
21834 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
21835 parameterized name.
21836 (signbit<mode>2): Use that name. Simplify.
21837
21838 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
21839
21840 PR middle-end/66726
21841 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
21842 Tune heuristic from PR71016 to allow MIN / MAX.
21843
21844 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21845
21846 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
21847 parameterized name.
21848 (abs<mode>2): Use that name. Simplify.
21849
21850 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21851
21852 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
21853 parameterized name.
21854 (neg<mode>2): Use that name. Simplify.
21855
21856 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21857
21858 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
21859 name.
21860 (abs<mode>2): Use that name. Simplify.
21861
21862 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21863
21864 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
21865 name.
21866 (neg<mode>2): Use that name. Simplify.
21867
21868 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
21869
21870 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
21871 ("enabled" attribute): Handle sse_noavx isa attribute.
21872 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
21873 Use TARGET_SSE && SSE_REGNO_P in split condition.
21874 (*vec_dupv2sf): Ditto.
21875
21876 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21877
21878 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
21879 name.
21880 (floatsi<mode>2): Use that name. Simplify.
21881
21882 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21883
21884 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
21885 parameterized name.
21886 (extenddf<mode>2_vsx): Make this a parameterized name.
21887 (extenddf<mode>2): Use those names. Simplify.
21888
21889 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21890
21891 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
21892 name.
21893 (eh_return): Use that name. Simplify.
21894
21895 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21896
21897 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
21898 (doloop_end): Use that name. Simplify.
21899
21900 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21901
21902 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
21903 parameterized name.
21904 (indirect_jump): Use that name. Simplify.
21905
21906 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21907
21908 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
21909 parameterized name.
21910 (abs<mode>2): Use that name. Simplify.
21911
21912 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21913
21914 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
21915 parameterized name.
21916 (fix_trunc<mode>si2): Use that name. Simplify.
21917
21918 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21919
21920 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
21921 (allocate_stack): Use that name. Simplify.
21922
21923 2019-07-01 Martin Sebor <msebor@redhat.com>
21924
21925 PR middle-end/90923
21926 * hash-map.h (hash_map::put): On insertion invoke element ctor.
21927 (hash_map::get_or_insert): Same. Reformat comment.
21928 * hash-set.h (hash_set::add): On insertion invoke element ctor.
21929 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21930 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21931 * hash-table.h (hash_table::operator=): Prevent copy assignment.
21932 (hash_table::hash_table (const hash_table&)): Use copy ctor
21933 instead of assignment to copy elements.
21934
21935 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
21936 John David Anglin <danglin@gcc.gnu.org>
21937
21938 PR target/90963
21939 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
21940 using saved frame pointer.
21941
21942 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
21943
21944 PR middle-end/64242
21945 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
21946 Add frame clobber and schedule blockage.
21947
21948 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
21949
21950 * doc/invoke.texi (Link Options): Further editorial changes to
21951 -flinker-output docs.
21952
21953 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21954
21955 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
21956 Load both operands of a PLUS into registers separately.
21957
21958 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
21959
21960 * config/s390/vector.md: Fix shift count operand printing.
21961
21962 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21963
21964 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
21965
21966 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21967
21968 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
21969 Use recog_data to test for an output operand.
21970
21971 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21972
21973 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
21974 exclude any others that are disparaged or that are bound to need
21975 a reload or spill.
21976 (ira_get_dup_out_num): Expand comment.
21977
21978 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21979
21980 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
21981 constraint string for each operand/alternative combo. Only handle
21982 '%' at the start of constraint strings, and look for it outside
21983 the main loop.
21984
21985 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21986
21987 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
21988 alternative_mask instead of HARD_REG_SET to represent a
21989 bitmask of alternatives.
21990 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21991 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
21992
21993 2019-07-01 Martin Liska <mliska@suse.cz>
21994
21995 * edit-context.c (test_applying_fixits_unreadable_file): Do not
21996 use () for a constructor call.
21997 (test_applying_fixits_line_out_of_range): Likewise.
21998 * ggc-page.c (alloc_page): Use (void *) for %p printf format
21999 argument.
22000 (free_page): Likewise.
22001
22002 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22003
22004 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22005 parameter names to match usage (no functional change).
22006 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22007
22008 2019-07-01 Richard Biener <rguenther@suse.de>
22009
22010 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22011 pass parameter.
22012 (pass_fre::execute): Honor it.
22013 * passes.def: Adjust pass_fre invocations to allow iterating,
22014 add non-iterating pass_fre before late threading/dom.
22015
22016 2019-07-01 Richard Biener <rguenther@suse.de>
22017
22018 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22019 TARGET_MEM_REF handling to also handle address-taken ones.
22020
22021 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22022
22023 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22024 hardware attributes): Document avx512vp2intersect.
22025
22026 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22027
22028 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22029 (abs<mode>2): New expander.
22030 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22031 Use CODE_FOR_ssse3_absv8qi2.
22032 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22033 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22034
22035 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22036
22037 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22038 to sse, sse_noavx and avx. Update all uses.
22039
22040 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22041
22042 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22043 (*mmx_<plusminus_insn><mode>3): Ditto.
22044 (*mmx_mulv4hi3"): Ditto.
22045 (*mmx_smulv4hi3_highpart): Ditto.
22046 (*mmx_umulv4hi3_highpart): Ditto.
22047 (*mmx_pmaddwd): Ditto.
22048 (*sse2_umulv1siv1di3): Ditto.
22049 (*mmx_<code>v4hi3): Ditto.
22050 (*mmx_<code>v8qi3): Ditto.
22051 (mmx_ashr<mode>3): Ditto.
22052 ("mmx_<shift_insn><mode>3): Ditto.
22053 (*mmx_eq<mode>3): Ditto.
22054 (mmx_gt<mode>3): Ditto.
22055 (mmx_andnot<mode>3): Ditto.
22056 (*mmx_<code><mode>3): Ditto.
22057 (*mmx_pinsrw): Ditto.
22058 (*mmx_pextrw): Ditto.
22059 (mmx_pshufw_1): Ditto.
22060 (*mmx_uavgv8qi3): Ditto.
22061 (*mmx_uavgv4hi3): Ditto.
22062 ("mmx_psadbw): Ditto.
22063 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22064 (sse_cvttps2pi): Ditto.
22065 (ssse3_pmaddubsw): Ditto.
22066 (*ssse3_pmulhrswv4hi3): Ditto.
22067 (ssse3_psign<mode>3): Ditto.
22068
22069 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22070
22071 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22072 adjustment for bit-fields to all aggregate types.
22073
22074 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22075
22076 * config/rs6000/predicates.md (pcrel_address): Use
22077 SYMBOL_REF_LOCAL_P to determine if a label is local.
22078 (pcrel_external_address): New predicate.
22079 (non_prefixed_mem_operand): Delete, predicate not used.
22080 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22081 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22082 addressing.
22083 (SYMBOL_REF_PCREL_P): Likewise.
22084
22085 PR target/91009
22086 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22087 alternative.
22088 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22089 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22090 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22091
22092 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22093
22094 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22095 override on extra_headers.
22096
22097 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22098
22099 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22100 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22101 from warning.
22102 (darwin_driver_init): Likewise.
22103
22104 2019-06-28 Jan Beulich <jbeulich@suse.com>
22105
22106 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22107 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22108 Eliminate redundant alternative.
22109
22110 2019-06-28 Jan Beulich <jbeulich@suse.com>
22111
22112 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22113 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22114 Use vector_operand.
22115
22116 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22117
22118 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22119 having a lower cost regardless of the speed option.
22120
22121 2019-06-28 Jan Beulich <jbeulich@suse.com>
22122
22123 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22124 vector_operand plus, on both alternatives, "Bm" constraint.
22125
22126 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22127
22128 * config/arm/arm.md: Remove redundant constraints from
22129 define_expand but leave reload_inm and reload_outm patterns
22130 untouched since they need special constraints to work.
22131 * config/arm/arm-fixed.md: Remove redundant constraints from
22132 define_expand.
22133 * config/arm/iwmmxt.md: Likewise.
22134 * config/arm/neon.md: Likewise.
22135 * config/arm/sync.md: Likewise.
22136 * config/arm/thumb1.md: Likewise.
22137 * config/arm/vec-common.md: Likewise.
22138
22139 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22140
22141 * doc/install.texi: Document --disable-tm-clone-registry.
22142
22143 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22144
22145 PR c++/91024
22146 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22147 statements.
22148
22149 PR tree-optimization/91010
22150 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22151 return true. Otherwise, don't call operand_equal_p if offset1 or
22152 offset2 is NULL and just return false.
22153
22154 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22155
22156 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22157 user-specified float mode choice for kernel mode code.
22158
22159 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22160
22161 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22162 spec.
22163
22164 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22165
22166 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22167 use longcall for 64b code.
22168
22169 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22170
22171 * builtins.c (get_memory_rtx): Fix comment.
22172 * optabs.def (movmem_optab): Change to cpymem_optab.
22173 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22174 (emit_block_move_hints): Change movmem to cpymem.
22175 * defaults.h: Change movmem to cpymem.
22176 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22177 (default_use_by_pieces_infrastructure_p): Ditto.
22178 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22179 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22180 to cpymem.
22181 * config/aarch64/aarch64.h: Change movmem to cpymem.
22182 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22183 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22184 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22185 movmem to cpymem.
22186 * config/arc/arc-protos.h: Change movmem to cpymem.
22187 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22188 * config/arc/arc.h: Change movmem to cpymem in comment.
22189 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22190 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22191 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22192 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22193 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22194 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22195 * config/avr/avr-protos.h: Change movmem to cpymem.
22196 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22197 avr_out_movmem): Change movmem to cpymem.
22198 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22199 Change movmem to cpymem.
22200 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22201 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22202 Change movmem to cpymem.
22203 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22204 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22205 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22206 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22207 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22208 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22209 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22210 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22211 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22212 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22213 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22214 expand_small_cpymem_or_setmem,
22215 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22216 expand_set_or_cpymem_constant_prologue,
22217 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22218 * config/i386/i386-protos.h: Change movmem to cpymem.
22219 * config/i386/i386.h: Change movmem to cpymem in comment.
22220 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22221 (setmem<mode>): Change expansion function name.
22222 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22223 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22224 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22225 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22226 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22227 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22228 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22229 to cpymem.
22230 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22231 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22232 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22233 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22234 Change movmem to cpymem.
22235 * config/mips/mips.h: Change movmem to cpymem.
22236 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22237 * config/nds32/nds32-memory-manipulation.c
22238 (nds32_expand_movmemsi_loop_unknown_size,
22239 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22240 nds32_expand_movmemsi_unroll,
22241 nds32_expand_movmemsi): Change movmem to cpymem.
22242 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22243 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22244 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22245 (pa_adjust_insn_length): Change call to compute_movmem_length.
22246 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22247 movmemdi, movmemdi_prereload,
22248 movmemdi_postreload): Change movmem to cpymem.
22249 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22250 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22251 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22252 * config/riscv/riscv.h: Change movmem to cpymem.
22253 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22254 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22255 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22256 movmem to cpymem.
22257 * config/s390/s390-protos.h: Change movmem to cpymem.
22258 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22259 s390_expand_insv): Change movmem to cpymem.
22260 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22261 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22262 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22263 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22264 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22265 for nonexistent function.
22266 * config/vax/vax.h: Change movmem to cpymem in comment.
22267 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22268 * config/visium/visium.h: Change movmem to cpymem in comment.
22269 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22270 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22271 * doc/md.texi: Change movmem to cpymem and update description to match.
22272 * doc/rtl.texi: Change movmem to cpymem.
22273 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22274 * doc/tm.texi: Regenerate.
22275
22276 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22277
22278 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22279 -fvariable-expansion-in-unroller by default.
22280 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22281 default for Power.
22282
22283 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22284
22285 Revert
22286 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22287 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22288
22289 * config.gcc(rs6000-*-*): Define target_gtfiles.
22290
22291 2019-06-27 Jan Hubicka <jh@suse.cz>
22292
22293 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22294 (add_type_duplicate): When odr hash is not allocated, to nothing.
22295 (odr_based_tbaa_p): New function.
22296 (set_type_canonical_for_odr_type): New function.
22297 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22298 set_type_canonical_for_odr_type): New.
22299 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22300 ODR based TBAA are not equivalent to non-ODR types.
22301
22302 2019-06-27 Martin Liska <mliska@suse.cz>
22303
22304 PR tree-optimization/90974
22305 PR rtl-optimization/90975
22306 PR rtl-optimization/90976
22307 PR target/91016
22308 PR tree-optimization/91017
22309 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22310 unused tmp.
22311 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22312 initial commit of IRA.
22313 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22314 of op0 and op1.
22315 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22316 Remove unused mode1.
22317 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22318 to new_stmt_info.
22319
22320 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22321
22322 PR target/90991
22323 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22324 instead of register_operand for operands[1], add m to its constraints
22325 if operands[2] uses "C" constraint. Ensure in condition that if
22326 operands[2] is not 0, then operands[1] is not a MEM. For last two
22327 alternatives, use unaligned loads instead of aligned if operands[1] is
22328 misaligned_operand.
22329
22330 2019-06-27 Martin Liska <mliska@suse.cz>
22331
22332 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22333 dead assignments.
22334 * bt-load.c (move_btr_def): Likewise.
22335 * builtins.c (expand_builtin_apply_args_1): Likewise.
22336 (expand_builtin_apply): Likewise.
22337 * cfgexpand.c (expand_asm_stmt): Likewise.
22338 (construct_init_block): Likewise.
22339 * cfghooks.c (verify_flow_info): Likewise.
22340 * cfgloopmanip.c (remove_path): Likewise.
22341 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22342 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22343 * combine.c (simplify_if_then_else): Likewise.
22344 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22345 (choose_basereg): Likewise.
22346 (ix86_expand_prologue): Likewise.
22347 (ix86_preferred_output_reload_class): Likewise.
22348 * cselib.c (cselib_record_sets): Likewise.
22349 * df-scan.c (df_scan_alloc): Likewise.
22350 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22351 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22352 * emit-rtl.c (try_split): Likewise.
22353 * graphite-scop-detection.c (assign_parameter_index_in_region):
22354 Likewise.
22355 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22356 * ira-color.c (setup_profitable_hard_regs): Likewise.
22357 * ira.c (rtx_moveable_p): Likewise.
22358 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22359 * read-rtl.c (read_subst_mapping): Likewise.
22360 * regrename.c (scan_rtx): Likewise.
22361 * reorg.c (fill_slots_from_thread): Likewise.
22362 * tree-inline.c (tree_function_versioning): Likewise.
22363 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22364 * tree-ssa-sink.c (statement_sink_location): Likewise.
22365 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22366 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22367 (vect_create_epilog_for_reduction): Likewise.
22368 * tree.c (build_nonstandard_integer_type): Likewise.
22369
22370 2019-06-27 Richard Biener <rguenther@suse.de>
22371
22372 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22373
22374 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22375
22376 PR tree-optimization/89772
22377 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22378 out-of-bound accesses checking.
22379
22380 2019-06-27 Martin Liska <mliska@suse.cz>
22381
22382 PR tree-optimization/91014
22383 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22384 when LHS is NULL_TREE.
22385
22386 2019-06-27 Martin Liska <mliska@suse.cz>
22387
22388 * symbol-summary.h (traverse): Pass
22389 argument a to the call of callback.
22390 (gt_ggc_mx): Mark arguments as unused.
22391 (gt_pch_nx): Likewise.
22392
22393 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22394
22395 PR target/62147
22396 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22397 finiteness.
22398
22399 2019-06-26 Jeff Law <law@redhat.com>
22400
22401 PR tree-optimization/90883
22402 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22403 (delete_dead_or_redundant_assignment): Likewise.
22404
22405 PR tree-optimization/90883
22406 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22407 * tree-ssa-dse.c: Update various comments to distinguish between
22408 dead and redundant stores.
22409 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22410 (dse_optimize_redundant_stores): New function.
22411 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22412 Distinguish between dead and redundant calls in dump output. All
22413 callers updated.
22414 (delete_dead_or_redundant_assignment): Similarly for assignments.
22415 (dse_optimize_stmt): Handle _CHK variants. For statements which
22416 store 0 into multiple memory locations, try to prove a subsequent
22417 store is redundant.
22418
22419 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22420
22421 PR target/89021
22422 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22423 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22424
22425 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22426
22427 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22428 (branch_islands): New extern.
22429 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22430 * config/rs6000/rs6000.c: .. here.
22431
22432 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22433
22434 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22435 (powerpc*-*-*) ... to here.
22436
22437 2019-06-26 Jeff Law <law@redhat.com>
22438
22439 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22440 memcpy, memmove and memset builtins.
22441 (maybe_trim_memstar_call): Likewise.
22442
22443 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22444
22445 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22446
22447 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22448
22449 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22450
22451 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22452
22453 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22454 declaration.
22455 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22456 "static".
22457 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22458 declaration.
22459
22460 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22461
22462 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22463
22464 2019-06-26 Richard Biener <rguenther@suse.de>
22465
22466 PR ipa/90982
22467 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22468
22469 2019-06-26 Richard Biener <rguenther@suse.de>
22470
22471 * lto-streamer.h (lto_bitmap_alloc): Remove.
22472 (lto_bitmap_free): Likewise.
22473 * lto-streamer.c (lto_bitmap_alloc): Remove.
22474 (lto_bitmap_free): Likewise.
22475 (lto_obstack): Likewise.
22476 (lto_obstack_initialized): Likewise.
22477 * lto-streamer-out.c (lto_output): Use own obstack for local
22478 bitmap, free it consistently.
22479
22480 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22481
22482 PR target/90991
22483 * config/i386/sse.md
22484 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22485 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22486 insns if operands[2] is misaligned_operand.
22487
22488 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22489
22490 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22491 TARGET_POWERPC64.
22492 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22493 to GPR.
22494
22495 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22496
22497 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22498
22499 2019-06-26 Martin Liska <mliska@suse.cz>
22500
22501 PR tree-optimization/90973
22502 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22503 epilogue_cost_vec instead of prologue_cost_vec for
22504 a epilogue cost.
22505
22506 2019-06-26 Martin Liska <mliska@suse.cz>
22507
22508 * bb-reorder.c (connect_better_edge_p): Add missing else
22509 statement in the middle of if-else statements.
22510
22511 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22512 H.J. Lu <hongjiu.lu@intel.com>
22513 Olga Makhotina <olga.makhotina@intel.com>
22514
22515 * common/config/i386/i386-common.c
22516 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22517 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22518 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22519 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22520 (ix86_handle_option): Handle -mavx512vp2intersect.
22521 * config/i386/avx512vp2intersectintrin.h: New.
22522 * config/i386/avx512vp2intersectvlintrin.h: New.
22523 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22524 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22525 AVX512VP2INTERSECT.
22526 * config/i386/i386-builtin-types.def: Add new types.
22527 * config/i386/i386-builtin.def: Add new builtins.
22528 * config/i386/i386-builtins.c: (enum processor_features): Add
22529 F_AVX512VP2INTERSECT.
22530 (static const _isa_names_table isa_names_table): Ditto.
22531 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22532 __AVX512VP2INTERSECT__.
22533 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22534 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22535 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22536 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22537 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22538 * config/i386/i386-options.c (ix86_target_string): Add
22539 -mavx512vp2intersect.
22540 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22541 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22542 P2HImode and P2QImode.
22543 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22544 number for P2QImode and P2HImode.
22545 (ix86_regmode_natural_size): New function.
22546 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22547 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22548 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22549 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22550 * config/i386/i386.opt: Add -mavx512vp2intersect.
22551 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22552 avx512vp2intersectvlintrin.h.
22553 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22554 (define_mode_iterator VI48_AVX512VP2VL): New.
22555 (avx512vp2intersect_2intersect<mode>,
22556 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22557 * config.gcc: Add avx512vp2intersectvlintrin.h and
22558 avx512vp2intersectintrin.h to extra_headers.
22559 * doc/invoke.texi: Document -mavx512vp2intersect.
22560
22561 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22562
22563 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22564
22565 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22566
22567 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22568 savres_routine_syms, savres_routine_name, morestack_ref,
22569 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22570 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22571 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22572 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22573 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22574 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22575 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22576 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22577 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22578 get_stack_clash_protection_probe_interval,
22579 get_stack_clash_protection_guard_size,
22580 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22581 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22582 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22583 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22584 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22585 gen_frame_mem_offset, rs6000_savres_routine_name,
22586 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22587 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22588 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22589 rs6000_global_entry_point_prologue_needed_p,
22590 rs6000_get_separate_components, rs6000_components_for_bb,
22591 rs6000_disqualify_components, rs6000_emit_prologue_components,
22592 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22593 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22594 rs6000_output_savres_externs, rs6000_output_function_prologue,
22595 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22596 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22597 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22598 rs6000_output_function_epilogue, gen_add3_const,
22599 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22600 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22601 to rs6000-logue.c.
22602 (machine_function): Moved to rs6000.h.
22603 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22604 rs6000-internal.h.
22605 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22606 savres_routine_syms, savres_routine_name, morestack_ref,
22607 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22608 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22609 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22610 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22611 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22612 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22613 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22614 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22615 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22616 get_stack_clash_protection_probe_interval,
22617 get_stack_clash_protection_guard_size,
22618 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22619 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22620 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22621 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22622 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22623 gen_frame_mem_offset, rs6000_savres_routine_name,
22624 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22625 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22626 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22627 rs6000_global_entry_point_prologue_needed_p,
22628 rs6000_get_separate_components, rs6000_components_for_bb,
22629 rs6000_disqualify_components, rs6000_emit_prologue_components,
22630 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22631 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22632 rs6000_output_savres_externs, rs6000_output_function_prologue,
22633 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22634 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22635 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22636 rs6000_output_function_epilogue, gen_add3_const,
22637 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22638 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22639 to here from rs6000.c.
22640 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22641 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22642 quad_address_offset_p) Moved to here from rs6000.c.
22643 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22644 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22645 collector.
22646
22647 2019-06-25 Martin Liska <mliska@suse.cz>
22648
22649 * hash-table.c (hashtab_chk_error): Move here from ...
22650 * hash-table.h (hashtab_chk_error): ... here.
22651
22652 2019-06-25 Martin Liska <mliska@suse.cz>
22653
22654 PR tree-optimization/90978
22655 * df-scan.c (df_update_entry_block_defs): Remove dead else
22656 branch.
22657 (df_update_exit_block_uses): Likewise.
22658
22659 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22660 Andrew Stubbs <ams@codesourcery.com>
22661
22662 * config.gcc (thread_file): Set to gcn for AMD GCN.
22663 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22664 (TARGET_EMUTLS_VAR_INIT): New hook.
22665
22666 2019-06-25 Martin Jambor <mjambor@suse.cz>
22667
22668 PR ipa/90939
22669 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22670
22671 2019-06-25 Richard Biener <rguenther@suse.de>
22672
22673 PR tree-optimization/90930
22674 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22675 into parallel form in the last pass instance.
22676
22677 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22678
22679 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22680 (arc_legitimize_pic_address): Simplify and cleanup the function.
22681 (SYMBOLIC_CONST): Remove.
22682 (prepare_pic_move): Likewise.
22683 (prepare_move_operands): Handle complex mov cases here.
22684 (arc_legitimize_address_0): Remove call to
22685 arc_legitimize_pic_address.
22686 (arc_legitimize_address): Remove call to
22687 arc_legitimize_tls_address.
22688 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22689 (movhi_insn): Likewise.
22690
22691 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22692
22693 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22694 PTRDIFF_TYPE.
22695 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22696 format of "__intN" types for UINTMAX_TYPE.
22697 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22698 format of "__intN" types for SIZETYPE.
22699 * tree.c (build_common_tree_nodes): Accept "__intN__"
22700 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22701 * doc/invoke.texi: Document that __intN__ disables pedantic
22702 warnings.
22703
22704 2019-06-25 Jan Hubicka <jh@suse.cz>
22705
22706 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22707 base2_alias_set is non-zero before doing TBAA based disambiguation.
22708
22709 2019-06-25 Martin Liska <mliska@suse.cz>
22710
22711 PR tree-optimization/90973
22712 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22713 of prologue and epilogue.
22714
22715 2019-06-24 Jan Hubicka <jh@suse.cz>
22716
22717 * ipa-utils.h (type_with_linkage_p): Verify that type is
22718 CXX_ODR_P.
22719 (odr_type_p): Remove extra return.
22720 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22721 hash STRING_FLAG only for arrays and integers.
22722 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22723 Update analogously.
22724 * tree-streamer-out.c (pack_ts_type_common_value_fields):
22725 Likewise.
22726 * print-tree.c (print_node): Print cxx-odr-p
22727 and string-flag.
22728 * tree.c (need_assembler_name_p): Also check that type
22729 is CXX_ODR_TYPE_P
22730 (verify_type_variant): Update verification of SRING_FLAG;
22731 also check CXX_ODR_P.
22732 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22733 (TYPE_STRING_FLAG): Use it.
22734 (TYPE_CXX_ODR_P): New macro.
22735 * dwarf2out.c (gen_array_type_die): First check that type
22736 is an array and then test string flag.
22737
22738 2019-06-24 Richard Biener <rguenther@suse.de>
22739
22740 PR tree-optimization/90972
22741 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22742 in common code, dealing with STRING_CST properly.
22743
22744 2019-06-24 Richard Biener <rguenther@suse.de>
22745
22746 PR tree-optimization/90930
22747 PR tree-optimization/90316
22748 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22749 decrement of limit.
22750
22751 2019-06-24 Martin Sebor <msebor@redhat.com>
22752
22753 * tree-pretty-print.h: Remove unnecessary punctuation characters
22754 from a diagnostic.
22755 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
22756
22757 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
22758
22759 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
22760 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
22761 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
22762
22763 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22764
22765 * config/rs6000/darwin.h: Handle GCC target pragma.
22766
22767 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22768
22769 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
22770
22771 2019-06-22 Jeff Law <law@redhat.com>
22772
22773 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22774
22775 2019-06-22 Jan Hubicka <jh@suse.cz>
22776
22777 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
22778 give up on bitfields; continue searching for different refs
22779 appearing later.
22780
22781 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22782
22783 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22784 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
22785 containing the offset as possible simd lane access. Look through
22786 widening conversion. Move the
22787 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
22788
22789 2019-06-21 Richard Biener <rguenther@suse.de>
22790
22791 PR tree-optimization/90930
22792 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
22793 flag on new stmts to avoid re-processing them.
22794
22795 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
22796
22797 PR c++/90875 - added -Wswitch-outside-range option
22798 * doc/invoke.texi (Wswitch-outside-range): Document.
22799
22800 2019-06-21 Jeff Law <law@redhat.com>
22801
22802 PR tree-optimization/90949
22803 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
22804 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
22805
22806 2019-06-21 Richard Biener <rguenther@suse.de>
22807
22808 PR debug/90914
22809 * dwarf2out.c (prune_unused_types_walk): Always consider
22810 function-local extern declarations as used.
22811
22812 2019-06-21 Richard Biener <rguenther@suse.de>
22813
22814 PR tree-optimization/90913
22815 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
22816 the scalar variant of if-conversion versioning.
22817
22818 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22819
22820 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
22821 create another "omp scan inscan exclusive" array if
22822 !ctx->scan_inclusive.
22823 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
22824 (lower_omp_scan): Likewise.
22825 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
22826 2-bit bitfield for simd_lane_access_p member.
22827 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
22828 aux == (void *)-4 as simd lane access.
22829 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
22830 comment with permutations to show the canonical permutation order.
22831 (vectorizable_scan_store): Handle exclusive scan.
22832 (vectorizable_store): Call vectorizable_scan_store even for
22833 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
22834
22835 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22836 "omp simd array" arrays with one byte elements.
22837
22838 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
22839
22840 * config/alpha/alpha.md (@unaligned_store<mode>):
22841 Rename from unaligned_store<mode>.
22842 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
22843 * config/alpha/sync.md (@load_locked_<mode>): Rename
22844 from load_locked_<mode>.
22845 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
22846 (@atomic_compare_and_swap<mode>_1): Rename
22847 from atomic_compare_and_swap<mode>_1.
22848 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
22849 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
22850 Use gen_reload_in_aligned and gen_unaligned_store.
22851 (emit_load_locked): Remove.
22852 (emit_store_conditional): Ditto.
22853 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
22854 (alpha_split_compare_and_swap): Ditto.
22855 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
22856 (alpha_split_compare_and_swap_12): Use gen_load_locked
22857 and gen_store_conditional.
22858 (alpha_split_atomic_exchange): Ditto.
22859 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
22860 (alpha_split_atomic_exchange_12): Use gen_load_locked
22861 and gen_store_conditional.
22862
22863 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
22864
22865 * config/aarch64/aarch64-errata.h: New file.
22866 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
22867 (CA53_ERR_843419_SPEC): Delete.
22868 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
22869 * config/aarch64/aarch64-linux.h: Likewise.
22870 * config/aarch64/aarch64-netbsd.h: Likewise.
22871 * config/aarch64/aarch64-freebsd.h: Likewise.
22872
22873 2019-06-20 Marek Polacek <polacek@redhat.com>
22874
22875 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
22876
22877 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
22878
22879 * config/rs6000/rs6000.md (isa attribute): Add support for
22880 for a future processor.
22881
22882 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
22883
22884 PR target/54855
22885 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
22886 standard scalar operation pattern for V2DF.
22887 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
22888 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
22889 (*ieee_<ieee_maxmin><mode>3): Likewise.
22890 (vec_setv2df_0): Likewise.
22891
22892 2019-06-20 Jan Hubicka <jh@suse.cz>
22893
22894 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
22895 parameter; it has no use in gimple memory model.
22896 (indirect_ref_may_alias_decl_p): Update.
22897
22898 2019-06-20 Martin Liska <mliska@suse.cz>
22899
22900 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
22901 to 10.
22902
22903 2019-06-20 Jakub Jelinek <jakub@redhat.com>
22904
22905 * tree-vect-stmts.c (enum scan_store_kind): New type.
22906 (scan_store_can_perm_p): Change last argument from int * to
22907 vec<enum scan_store_kind> *, record precisely which permutations
22908 need whole vector left shift or that plus VEC_COND_EXPR.
22909 (vectorizable_scan_store): Adjust caller, use whole vector left shift
22910 and additional VEC_COND_EXPR only for those iterations that need it.
22911
22912 2019-06-20 Alexandre Oliva <oliva@adacore.com>
22913
22914 * config.gcc: Fix ARM --with-fpu checking and error message.
22915
22916 2019-06-19 Marek Polacek <polacek@redhat.com>
22917
22918 PR c++/60364 - noreturn after first decl not diagnosed.
22919 * attribs.c (get_attribute_namespace): No longer static.
22920 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
22921 attributes.
22922 (attr_noreturn_exclusions): Make it extern.
22923 * attribs.h (get_attribute_namespace): Declare.
22924 * tree-inline.c (function_attribute_inlinable_p): Use
22925 get_attribute_name.
22926
22927 2019-06-19 Martin Sebor <msebor@redhat.com>
22928
22929 PR tree-optimization/90626
22930 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
22931
22932 PR tree-optimization/90626
22933 * tree-ssa-strlen.c (strxcmp_unequal): New function.
22934 (handle_builtin_string_cmp): Call it.
22935
22936 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22937
22938 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
22939 and DARWIN_NOPIE_SPEC.
22940 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
22941 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
22942 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
22943 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
22944 (DARWIN_EXPORT_DYNAMIC): Delete.
22945 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
22946 and pie options processing to darwin.h.
22947 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
22948
22949 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22950
22951 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
22952 in computing the number of options to be moved.
22953
22954 2019-06-19 Maya Rashish <coypu@sdf.org>
22955
22956 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
22957 (CLEAR_INSN_CACHE) Use it.
22958
22959 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
22960
22961 * config/i386/i386.md (cmpstrnsi): Remove dead code.
22962
22963 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
22964
22965 PR middle-end/84521
22966 * builtins.c (expand_builtin_setjmp_setup): Save
22967 hard_frame_pointer_rtx.
22968 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
22969 restore fp.
22970 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
22971 non-local goto.
22972 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
22973 elimination code.
22974 (remove_reg_equal_offset_note): Remove unused function.
22975 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
22976 code.
22977 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22978 (arc_builtin_setjmp_frame_value): Remove function.
22979 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22980 (avr_builtin_setjmp_frame_value): Remove function.
22981 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22982 (ix86_builtin_setjmp_frame_value): Remove function.
22983 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
22984 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22985 (sparc_builtin_setjmp_frame_value): Remove function.
22986 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22987 (vax_builtin_setjmp_frame_value): Remove function.
22988 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
22989 pointer if has_nonlocal_label.
22990
22991 2019-06-19 Jakub Jelinek <jakub@redhat.com>
22992
22993 * doc/md.texi: Document vec_shl_<mode> pattern.
22994 * optabs.def (vec_shl_optab): New optab.
22995 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
22996 argument, if == vec_shl_optab, check for left whole vector shift
22997 pattern rather than right shift.
22998 (expand_vec_perm_const): Add vec_shl_optab support.
22999 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23000 in the comment.
23001 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23002 can be handled by vec_shl_optab.
23003 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23004 (check_scan_store): Use it.
23005 (vectorizable_scan_store): If target can't do normal permutations,
23006 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23007 after it.
23008 * config/i386/sse.md (vec_shl_<mode>): New expander.
23009
23010 * omp-low.c (lower_rec_input_clauses): Handle references properly
23011 in inscan clauses.
23012 (lower_omp_scan): Likewise.
23013
23014 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23015
23016 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23017 mem_mode is BLKmode.
23018
23019 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23020
23021 PR target/90922
23022 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23023 pointer adjustment for the case of no callee-saved registers and
23024 stack frame bigger than 128 bytes.
23025
23026 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23027
23028 PR middle-end/90862
23029 * omp-low.c (check_omp_nesting_restrictions): Handle
23030 GF_OMP_TARGET_KIND_OACC_DECLARE.
23031
23032 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23033
23034 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23035 (@add<mode>3_carry): Rename from add<mode>3_carry.
23036 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23037 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23038 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23039 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23040 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23041 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23042 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23043 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23044 (cmpstrnsi): Use gen_cmp_1.
23045 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23046 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23047 (@umonitor_<mode>): Rename from umonitor_<mode>.
23048 * config/i386/i386-expand.c (ix86_expand_copysign):
23049 Use gen_copysign3_const and gen_copysign3_var.
23050 (ix86_expand_xorsign): Use gen_xorsign3_1.
23051 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23052 gen_sub3_carry_ccgz and gen_cmp1.
23053 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23054 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23055 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23056 (ix86_split_lshr): Ditto.
23057 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23058
23059 2019-06-18 Jason Merrill <jason@redhat.com>
23060
23061 * tree.c (build_constructor): Add MEM_STAT_DECL.
23062
23063 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23064
23065 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23066 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23067 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23068 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23069 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23070 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23071 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23072 Use CC_NZC instead of CC.
23073 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23074 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23075 (aarch64_print_operand): Handle E_CC_NZCmode.
23076 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23077 of gen_set_clobber_cc.
23078
23079 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23080
23081 * config/aarch64/aarch64-sve.md: Tabify file.
23082
23083 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23084
23085 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23086 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23087 * config/aarch64/aarch64-sve.md: Use it.
23088
23089 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23090
23091 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23092 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23093 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23094 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23095 (aarch64_expand_sve_vec_cmp_int): Use it.
23096 (aarch64_expand_sve_vec_cmp_float): Likewise.
23097 * config/aarch64/aarch64-sve.md: Likewise throughout.
23098
23099 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23100 Kugan Vivekanandarajah <kuganv@linaro.org>
23101
23102 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23103 (*cond_<optab><mode>_z): Fold into...
23104 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23105 operand 4 can be tied to operand 0 (either inherently or via RA).
23106
23107 2019-06-18 Richard Biener <rguenther@suse.de>
23108
23109 PR debug/90900
23110 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23111 as if optimized away.
23112
23113 2019-06-18 Tom de Vries <tdevries@suse.de>
23114
23115 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23116 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23117 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23118 Rename to ...
23119 (define_insn "@set_softstack_<mode>"): ... this.
23120 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23121 (define_insn "@omp_simt_enter_<mode>"): ... this.
23122 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23123 (define_insn "@omp_simt_exit_<mode>"): ... this.
23124
23125 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23126
23127 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23128 vf parameter. Restore the previous iv step of nscalars_step,
23129 but give it iv_type rather than compare_type. Tweak code order
23130 to match the comments.
23131 (vect_set_loop_condition_masked): Update accordingly.
23132 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23133 for iv_precision. Tweak comment formatting.
23134
23135 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23136
23137 * config/darwin.c: Strip trailing whitespace.
23138
23139 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23140
23141 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23142 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23143
23144 2019-06-18 Martin Jambor <mjambor@suse.cz>
23145
23146 PR ipa/90889
23147 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23148 caller does not have flag_ipa_cp set.
23149
23150 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23151
23152 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23153 from "*fold_left_plus_<mode>", updated operands order.
23154 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23155 * internal-fn.c (mask_fold_left_direct): New define.
23156 (expand_mask_fold_left_optab_fn): Likewise.
23157 (direct_mask_fold_left_optab_supported_p): Likewise.
23158 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23159 * optabs.def (mask_fold_left_plus_optab): New optab.
23160 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23161 masked internal_fn for a reduction ifn.
23162 (vectorize_fold_left_reduction): Add support for masking reductions.
23163
23164 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23165
23166 PR middle-end/80791
23167 * target.def (predict_doloop_p): New hook.
23168 * targhooks.h (default_predict_doloop_p): New declaration.
23169 * targhooks.c (default_predict_doloop_p): New function.
23170 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23171 * doc/tm.texi: Regenerate.
23172 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23173 (TARGET_PREDICT_DOLOOP_P): New macro.
23174 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23175
23176 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23177
23178 * omp-low.c (struct omp_context): Add scan_inclusive field.
23179 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23180 if inclusive scan.
23181 (struct omplow_simd_context): Add lastlane member.
23182 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23183 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23184 1 or 2 argument.
23185 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23186 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23187 (lower_omp_scan): New function.
23188 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23189 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23190 check 3rd argument if present rather than 2nd.
23191 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23192 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23193 2-bit bitfield.
23194 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23195 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23196 than 2nd.
23197 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23198 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23199 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23200 init.
23201 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23202 IFN_GOMP_SIMD_LANE argument.
23203 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23204 encoded ->aux value.
23205 * tree-vect-stmts.c: Include attribs.h.
23206 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23207 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23208 functions.
23209 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23210 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23211
23212 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23213
23214 PR target/62055
23215 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23216 (*nabs<mode>2_1): Ditto.
23217 (nabs sse-reg splitter): New splitter.
23218 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23219
23220 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23221
23222 PR bootstrap/90873.
23223 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23224 TMR index check.
23225
23226 2019-06-17 Tom de Vries <tdevries@suse.de>
23227
23228 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23229 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23230 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23231 ...
23232 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23233 match_operand 0.
23234 (define_insn "omp_simt_enter_insn"): Rename to ...
23235 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23236 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23237 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23238 gen_omp_simt_enter_si.
23239 (define_expand "omp_simt_exit"): New.
23240 (define_insn "omp_simt_exit"): Rename to ...
23241 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23242 match_operand 0.
23243
23244 2019-06-17 Matthew Green <mrg@eterna.com.au>
23245 Maya Rashish <coypu@sdf.org>
23246
23247 * config.gcc (aarch64*-*-netbsd*): New target.
23248 * config/aarch64/aarch64-netbsd.h: New file.
23249 * config/aarch64/t-aarch64-netbsd: Likewise.
23250
23251 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23252
23253 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23254 the access path from base to first VIEW_CONVERT_EXPR or
23255 BIT_FIELD_REF.
23256
23257 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23258
23259 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23260 access path on BIT_FIELD_REFs.
23261
23262 2019-06-17 Martin Liska <mliska@suse.cz>
23263
23264 PR ipa/90874
23265 * ipa-utils.h (odr_type_p): Remove dead code.
23266
23267 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23268
23269 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23270 alternative Solaris 11.4 format.
23271 * configure: Regenerate.
23272
23273 2019-06-17 Tom de Vries <tdevries@suse.de>
23274
23275 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23276 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23277 match_operand 0.
23278 (define_insn "call_value_insn"): Rename to ...
23279 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23280 match_operand 0.
23281 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23282 DI.
23283
23284 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23285
23286 PR middle-end/64242
23287 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23288 frame clobbers and schedule block.
23289 (builtin_longjmp): Likewise.
23290
23291 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23292
23293 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23294 describe how to perform MSPABI compliant 64-bit shift.
23295 * config/msp430/msp430.md (ashldi3): New define_expand.
23296 (ashrdi3): New define_expand.
23297 (lshrdi3): New define_expand.
23298
23299 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23300
23301 * doc/sourcebuild.texi: Document new effective target keyword
23302 longlong64.
23303
23304 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23305
23306 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23307 indirect_refs_may_alias_p): Revert accidental commits.
23308
23309 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23310 at the end of structures.
23311
23312 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23313
23314 * config/darwin.c (machopic_indirect_call_target): Use renamed
23315 darwin_picsymbol_stubs to decide on output.
23316 (darwin_override_options): Handle darwin_picsymbol_stubs.
23317 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23318 (LD64_VERSION): Revise default.
23319 * config/darwin.opt: (mpic-symbol-stubs): New option.
23320 (darwin_picsymbol_stubs): New variable.
23321 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23322 rename to TARGET_MACHO_PICSYM_STUBS.
23323 * config/i386/i386.c (output_pic_addr_const): Likewise.
23324 * config/i386/i386.h Likewise.
23325 * config/rs6000/darwin.h: Likewise.
23326 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23327 darwin_picsymbol_stubs.
23328
23329 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23330
23331 * config/darwin.opt (prebind, noprebind, seglinkedit,
23332 noseglinkedit): Add RejectNegative.
23333
23334 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23335
23336 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23337 in my previous patch.
23338
23339 2019-06-16 Tom de Vries <tdevries@suse.de>
23340
23341 PR tree-optimization/89376
23342 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23343
23344 2019-06-15 Maya Rashish <coypu@sdf.org>
23345
23346 * doc/invoke.texi (Spec Files): Update location of the
23347 Fortran spec file.
23348
23349 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23350
23351 * doc/extend.texi (Common Function Attributes): Clarify
23352 no_sanitize. Fix grammar.
23353
23354 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23355
23356 * tree-ssa-alias.c (alias_stats): Add
23357 nonoverlapping_component_refs_p_may_alias,
23358 nonoverlapping_component_refs_p_no_alias,
23359 nonoverlapping_component_refs_of_decl_p_may_alias,
23360 nonoverlapping_component_refs_of_decl_p_no_alias.
23361 (dump_alias_stats): Dump them.
23362 (nonoverlapping_component_refs_of_decl_p): Add stats.
23363 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23364 ARRAY_REF.
23365
23366 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23367
23368 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23369 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23370 only.
23371 (*anddi3_doubleword): Split before reload. Merge with
23372 anddi->zext pre-reload splitter.
23373 (*andndi3_doubleword): Split before reload.
23374 (*<code>di3_doubleword): Ditto.
23375 (*one_cmpldi2_doubleword): Ditto.
23376
23377 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23378
23379 PR middle-end/90779
23380 * gimplify.c: Include omp-offload.h and context.h.
23381 (gimplify_bind_expr): Add "omp declare target" attributes
23382 to static block scope variables inside of target region or target
23383 functions.
23384
23385 2019-06-15 Tom de Vries <tdevries@suse.de>
23386
23387 PR tree-optimization/90009
23388 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23389 Return NULL if bb contains IFN_UNIQUE.
23390
23391 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23392
23393 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23394 (un): New define_mode_attr.
23395 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23396 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23397 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23398 merge into ...
23399 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23400
23401 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23402
23403 * config/darwin.opt: Add RejectNegative where needed, reorder
23404 and add minimal functional descriptions.
23405
23406 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23407
23408 PR rtl-optimization/90765
23409 * calls.c (update_stack_alignment_for_call): New function.
23410 (expand_call): Call update_stack_alignment_for_call when
23411 outgoing parameter is passed in the stack.
23412 (emit_library_call_value_1): Likewise.
23413 * function.c (locate_and_pad_parm): Don't update
23414 stack_alignment_needed and preferred_stack_boundary.
23415
23416 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23417
23418 PR target/90877
23419 * config/i386/i386-features.c
23420 (dimode_scalar_chain::compute_convert_gain): Replace
23421 mmxsse_to_integer with sse_to_integer.
23422 * config/i386/i386.c (ix86_register_move_cost): Verify that
23423 moves between MMX and non-MMX units require secondary memory.
23424 Correct costs of moves between SSE and integer units.
23425 * config/i386/i386.h (processor_costs): Rename cost of moving
23426 SSE register to integer to sse_to_integer. Rename cost of
23427
23428 2019-06-14 Matt Thomas <matt@3am-software.com>
23429 Matthew Green <mrg@eterna.com.au>
23430 Nick Hudson <skrll@netbsd.org>
23431 Maya Rashish <coypu@sdf.org>
23432 Richard Earnshaw <rearnsha@arm.com>
23433
23434 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23435 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23436 * config/arm/netbsd-eabi.h: New file.
23437 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23438 redefining.
23439 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23440 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23441 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23442 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23443
23444 2019-06-14 Richard Biener <rguenther@suse.de>
23445
23446 * tree-loop-distribution.c (classify_partition): Return
23447 whether a reduction appeared in all partitions and do not
23448 stop builtin detection because of this.
23449 (distribute_loop): Sort a non-builtin partition last if
23450 there's a reduction in all partitions and make sure the
23451 partition prevailing as last is not a builtin.
23452
23453 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23454
23455 PR ipa/90401
23456 * ipa-prop.c (add_to_agg_contents_list): New function.
23457 (clobber_by_agg_contents_list_p): Likewise.
23458 (extract_mem_content): Likewise.
23459 (get_place_in_agg_contents_list): Delete.
23460 (determine_known_aggregate_parts): Renamed from
23461 determine_locally_known_aggregate_parts. New parameter
23462 aa_walk_budget_p.
23463
23464 2019-06-13 Martin Sebor <msebor@redhat.com>
23465
23466 PR tree-optimization/90662
23467 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23468 to the same type.
23469
23470 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23471
23472 PR bootstrap/90873
23473 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23474 dbase is not TARGET_MEM_REF.
23475
23476 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23477
23478 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23479 Update all uses.
23480 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23481 Do not generate DImode extends for 32bit targets.
23482 (and->zext post-reload splitter): Use gen_extend_insn
23483 instead of indirect functions.
23484 (anddi->zext pre-reload splitter): New.
23485 (*zext<mode>_doubleword_and): Remove.
23486 (*zext<mode>_doubleword): Ditto.
23487 (*zextsi_doubleword): Dittto.
23488
23489 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23490
23491 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23492 Use gen_sub3_insn instead of indirect function.
23493 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23494 indirect function.
23495 (ix86_adjust_counter): Ditto.
23496
23497 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23498 Lijia He <helijia@linux.ibm.com>
23499
23500 PR tree-optimization/77820
23501 * tree-ssa-threadedge.c
23502 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23503 function.
23504 (thread_across_edge): Add call to
23505 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23506
23507 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23508
23509 * config/darwin-driver.c (validate_macosx_version_min): New.
23510 (darwin_default_min_version): Cleanup and validate supplied version.
23511 (darwin_driver_init): Likewise and push cleaned version into opts.
23512
23513 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23514
23515 PR tree-optimization/90869
23516 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23517 converts in MEM_REF referencing decl rather than view converts
23518 from decl type to MEM_REF type.
23519
23520 2019-06-13 Richard Biener <rguenther@suse.de>
23521
23522 PR tree-optimization/90856
23523 * tree-sra.c (build_ref_for_model): Only use
23524 build_reconstructed_reference when address-spaces are the same.
23525
23526 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23527
23528 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23529 wrap ei variable name in the declaration in ()s.
23530 (nvptx_single): Actually use mode_label variable. Formatting fix.
23531
23532 2019-06-13 Richard Biener <rguenther@suse.de>
23533
23534 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23535 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23536 also return the condition stmt.
23537 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23538 loop we can version and version that, reusing the loop version
23539 created by if-conversion instead of versioning again.
23540
23541 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23542
23543 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23544 may_contain_p.
23545 * tree-vrp (value_range_base::may_contain_p): Call into
23546 value_inside_range.
23547 (value_inside_range): Make private inside value_range_base class.
23548 Take min/max from *this.
23549 (range_includes_p): Remove.
23550 * tree-vrp.h (value_range_base): Add value_inside_range.
23551 (range_includes_p): Remove.
23552 (range_includes_zero_p): Call may_contain_p.
23553 * vr-values.c (compare_range_with_value): Same.
23554
23555 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23556
23557 * doc/extend.texi (ARC Function Attributes): Update info.
23558
23559 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23560
23561 PR tree-optimization/89713
23562 * doc/invoke.texi (-ffinite-loops): Document new option.
23563 * common.opt (-ffinite-loops): New option.
23564 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23565 IFN_GOACC_LOOP calls as necessary.
23566 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23567 is finite.
23568 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23569 IFN_GOACC_LOOP call is not used.
23570 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23571
23572 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23573
23574 PR target/88838
23575 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23576 compare_type is not with Pmode size, we will create an IV with
23577 Pmode size with truncated use (i.e. converted to the correct type).
23578 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23579 (vect_iv_limit_for_full_masking): New. Factored out of
23580 vect_set_loop_condition_masked.
23581 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23582 (vect_iv_limit_for_full_masking): Declare.
23583
23584 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23585
23586 PR target/88834
23587 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23588 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23589 (get_alias_ptr_type_for_ptr_address): Likewise.
23590 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23591 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23592 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23593 allow_reg_index_p.
23594
23595 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23596
23597 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23598
23599 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23600
23601 * common/config/pru/pru-common.c: New file.
23602 * config.gcc: Add PRU target.
23603 * config/pru/alu-zext.md: New file.
23604 * config/pru/constraints.md: New file.
23605 * config/pru/predicates.md: New file.
23606 * config/pru/pru-opts.h: New file.
23607 * config/pru/pru-passes.c: New file.
23608 * config/pru/pru-pragma.c: New file.
23609 * config/pru/pru-protos.h: New file.
23610 * config/pru/pru.c: New file.
23611 * config/pru/pru.h: New file.
23612 * config/pru/pru.md: New file.
23613 * config/pru/pru.opt: New file.
23614 * config/pru/t-pru: New file.
23615 * doc/extend.texi: Document PRU pragmas.
23616 * doc/invoke.texi: Document PRU-specific options.
23617 * doc/md.texi: Document PRU asm constraints.
23618
23619 2019-06-12 Martin Sebor <msebor@redhat.com>
23620
23621 PR middle-end/90676
23622 * tree-pretty-print.c (dump_mem_ref): New function. Include
23623 MEM_REF type in output when different size than operand.
23624 (dump_generic_node): Move code to dump_mem_ref and call it.
23625
23626 2019-06-12 Martin Sebor <msebor@redhat.com>
23627
23628 PR tree-optimization/90662
23629 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23630 to arrays.
23631
23632 2019-06-12 Tom de Vries <tdevries@suse.de>
23633
23634 PR tree-optimization/90009
23635 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23636
23637 2019-06-12 Martin Liska <mliska@suse.cz>
23638
23639 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23640 the created map.
23641 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23642 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23643 Do not sanitize created maps.
23644
23645 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23646
23647 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23648 value_range::singleton_p.
23649 * tree-vrp.c (value_range_constant_singleton): Remove.
23650 * tree-vrp.h (value_range_constant_singleton): Remove.
23651 * vr-values.c (vr_values::singleton): Use
23652 value_range::singleton_p.
23653
23654 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23655
23656 PR target/90811
23657 * cfgexpand.c (align_local_variable): Add really_expand argument,
23658 don't SET_DECL_ALIGN if it is false.
23659 (add_stack_var): Add really_expand argument, pass it through to
23660 align_local_variable.
23661 (expand_one_stack_var_1): Pass true as really_expand to
23662 align_local_variable.
23663 (expand_one_ssa_partition): Pass true as really_expand to
23664 add_stack_var.
23665 (expand_one_var): Pass really_expand through to add_stack_var.
23666
23667 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23668
23669 * config/arm/iterators.md (VABAL): New int iterator.
23670 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23671 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23672 UNSPEC_VABAL_U values.
23673
23674 2019-06-12 Martin Liska <mliska@suse.cz>
23675
23676 * value-prof.c (stream_out_histogram_value): Only first value
23677 can't be negative.
23678
23679 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23680
23681 PR c/90760
23682 * symtab.c (symtab_node::set_section): Allow being called on aliases
23683 as long as they aren't analyzed yet.
23684
23685 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23686
23687 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23688 to `mips_set_text_contents_type' to indicate whether a
23689 non-debug insn follows.
23690
23691 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23692
23693 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23694 enabling -mpcrel by default.
23695 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23696 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23697 that the test against -mcpu=future is done first. Then test if
23698 -mprefixed-addr is on for -mpcrel.
23699 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23700
23701 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23702
23703 PR target/90811
23704 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23705 instead of and.u%d.
23706
23707 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23708
23709 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23710
23711 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
23712
23713 PR c++/90449 - add -Winaccessible-base option.
23714 * doc/invoke.texi (Winaccessible-base): Document.
23715
23716 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23717
23718 PR tree-optimization/62041
23719 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23720
23721 2019-06-11 Jason Merrill <jason@redhat.com>
23722
23723 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23724 * tree.c (get_tree_code_name): Likewise.
23725 * print-tree.c (print_node): Only briefly print a node with an
23726 invalid code.
23727
23728 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23729
23730 PR bootstrap/90819
23731 * trans-mem.c (tm_memopt_compute_available): Add assertion
23732 that blocks is not empty. Formatting fix.
23733
23734 2019-06-11 Martin Liska <mliska@suse.cz>
23735
23736 PR c++/87847
23737 * hash-table.h: Extend create_gcc, add one parameter
23738 that is passed into hash_table::hash_table.
23739
23740 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
23741
23742 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23743 New prototype.
23744 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23745 Emit clobber also for non-sse operations.
23746 (ix86_split_fp_absneg_operator): New function.
23747 * config/i386/i386.md (SSEMODEF): New mode iterator.
23748 (ssevecmodef): New mode attribute.
23749 (<code>tf2): Use absneg code iterator.
23750 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23751 Add three-operand AVX alternatives.
23752 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
23753 Use absneg code iterator and X87MODEF mode iterator.
23754 (absneg fp_reg non-sse splitter): Call absneg code iterator
23755 and X87MODEF mode iterator.
23756 (absneg general_reg non-sse splitter): Use absneg code iterator
23757 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
23758 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
23759 code iterator. Add three-operand AVX alternative.
23760 (absneg sse_reg splitter): Use absneg code iterator
23761 and SSEMODEF mode iterator. Handle AVX operands.
23762 (absneg fp_reg splitter): Use absneg code iterator
23763 and MODEF mode iterator.
23764 (absneg general_reg splitter): Merge splitters using MODEF mode
23765 iterator. Use absneg code iterator. Call
23766 ix86_split_fp_absneg_operator.
23767 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
23768 Do not enable for non-sse modes before reload.
23769 (CSGNMODE): Remove.
23770 (CSGNVMODE): Ditto.
23771 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
23772 ssevecmodef mode attribute instaed of CSGNVMODE.
23773 (copysign<mode>3_const): Ditto.
23774 (copysign<mode>3_var): Ditto.
23775 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
23776 Use absneg code iterator. Simplify code using std::swap.
23777 * config/i386/predicates.md (absneg_operator): Remove.
23778
23779 2019-06-10 Martin Sebor <msebor@redhat.com>
23780
23781 * gimple-fold.c (get_range_strlen): Update comment that didn't
23782 make it into r267503 or related commits.
23783
23784 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
23785
23786 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
23787 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
23788
23789 2019-06-10 Jakub Jelinek <jakub@redhat.com>
23790
23791 * tree.def (OMP_SCAN): New tree code.
23792 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
23793 OMP_CLAUSE_EXCLUSIVE.
23794 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
23795 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
23796 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
23797 OMP_CLAUSE_{IN,EX}CLUSIVE.
23798 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23799 * tree-nested.c (convert_nonlocal_reference_stmt,
23800 convert_local_reference_stmt, convert_gimple_call): Handle
23801 GIMPLE_OMP_SCAN.
23802 * tree-pretty-print.c (dump_omp_clause): Handle
23803 OMP_CLAUSE_{IN,EX}CLUSIVE.
23804 (dump_generic_node): Handle OMP_SCAN.
23805 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
23806 * gimple.h (gomp_scan): New type.
23807 (is_a_helper <gomp_scan *>::test,
23808 is_a_helper <const gomp_scan *>::test): New templates.
23809 (gimple_build_omp_scan): Declare.
23810 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
23811 gimple_omp_scan_set_clauses): New inline functions.
23812 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
23813 * gimple.c (gimple_build_omp_scan): New function.
23814 (gimple_copy): Handle GIMPLE_OMP_SCAN.
23815 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
23816 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
23817 GIMPLE_OMP_TASKGROUP.
23818 (dump_gimple_omp_scan): New function.
23819 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
23820 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
23821 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
23822 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
23823 (is_gimple_stmt): Handle OMP_SCAN.
23824 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
23825 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23826 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
23827 mentioned in nested #pragma omp scan. Handle
23828 OMP_CLAUSE_{IN,EX}CLUSIVE.
23829 (gimplify_expr): Handle OMP_SCAN.
23830 * omp-low.c (check_omp_nesting_restrictions): For parent context,
23831 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
23832 simd constructs.
23833 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
23834 GIMPLE_OMP_SCAN.
23835
23836 2019-06-10 Martin Liska <mliska@suse.cz>
23837
23838 * ipa-cp.c (ignore_edge_p): New function.
23839 (build_toporder_info): Use it.
23840 * ipa-inline.c (ignore_edge_p): New function.
23841 (inline_small_functions): Use it.
23842 * ipa-pure-const.c (ignore_edge_for_nothrow):
23843 Verify opt_for_fn for caller and callee.
23844 (ignore_edge_for_pure_const): Likewise.
23845 * ipa-reference.c (ignore_edge_p): Extend to check
23846 for opt_for_fn.
23847 * ipa-utils.c (searchc): Refactor.
23848 * ipa-utils.h: Fix coding style.
23849
23850 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23851
23852 * config/arc/arc.c (arc_rtx_costs): Update costs.
23853
23854 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23855
23856 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
23857 (arc_split_ior): Likewise.
23858 (arc_check_mov_const): Likewise.
23859 (arc_split_mov_const): Likewise.
23860 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
23861 (arc_rtx_costs): Replace check Crr with Cax constraint.
23862 (prepare_move_operands): Cleanup, remove unused code.
23863 (arc_split_ior): New function.
23864 (arc_check_ior_const): Likewise.
23865 (arc_split_mov_const): Likewise.
23866 (arc_check_mov_const): Likewise.
23867 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
23868 in define_insn_and_split pattern.
23869 (iorsi3): Likewise.
23870 (mulsi3_v2): Add new matching variant.
23871 (andsi3_i): Cleanup pattern.
23872 (rotrsi3_cnt1): Update pattern.
23873 (rotrsi3_cnt8): New pattern.
23874 (ashlsi2_cnt8): Likewise.
23875 (ashlsi2_cnt16): Likewise.
23876 * config/arc/constraints.md (C0p): Update constraint.
23877 (Crr): Remove it.
23878 (C0x): New pattern.
23879 (Cax): New pattern.
23880
23881 2019-06-10 Martin Liska <mliska@suse.cz>
23882
23883 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
23884 Update coding style.
23885 (sem_item_optimizer::dump_cong_classes):
23886 Print how many items are in a non-singular class. Improve
23887 coding style.
23888
23889 2019-06-10 Martin Liska <mliska@suse.cz>
23890
23891 * value-prof.c (dump_histogram_value): Change dump format.
23892 (gimple_mod_subtract_transform): Remove legacy comment.
23893
23894 2019-06-10 Martin Liska <mliska@suse.cz>
23895
23896 * value-prof.c (dump_histogram_value): Print histogram values
23897 only if present.
23898
23899 2019-06-10 Martin Liska <mliska@suse.cz>
23900
23901 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
23902 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
23903 * ipa-profile.c (ipa_profile_generate_summary):
23904 Use get_most_common_single_value.
23905 * tree-profile.c (gimple_init_gcov_profiler):
23906 Instrument with __gcov_one_value_profiler_v2
23907 and __gcov_indirect_call_profiler_v4.
23908 * value-prof.c (dump_histogram_value):
23909 Print all values for HIST_TYPE_SINGLE_VALUE.
23910 (stream_out_histogram_value): Update assert for
23911 N values.
23912 (stream_in_histogram_value): Set number of
23913 counters for HIST_TYPE_SINGLE_VALUE.
23914 (get_most_common_single_value): New.
23915 (gimple_divmod_fixed_value_transform):
23916 Use get_most_common_single_value.
23917 (gimple_ic_transform): Likewise.
23918 (gimple_stringops_transform): Likewise.
23919 (gimple_find_values_to_profile): Set number
23920 of counters for HIST_TYPE_SINGLE_VALUE.
23921 * value-prof.h (get_most_common_single_value): New.
23922
23923 2019-06-10 Martin Liska <mliska@suse.cz>
23924
23925 * hash-map.h: Pass default value to hash_table ctor.
23926 * hash-table.h: Add default value to call of a ctor.
23927
23928 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
23929
23930 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
23931 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
23932
23933 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
23934
23935 PR target/90751
23936 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
23937 Call pa_output_function_label.
23938 (TARGET_ASM_FUNCTION_PROLOGUE): define.
23939 * config/pa/pa-protos.h (pa_output_function_label): Declare.
23940 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
23941 to declaration.
23942 (pa_linux_output_function_prologue): Declare.
23943 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
23944 (pa_output_function_label): New.
23945 (pa_output_function_prologue): Revise to use pa_output_function_label.
23946 (pa_linux_output_function_prologue): New.
23947 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
23948
23949 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
23950
23951 * tree-vrp.h (value_range_base::intersect): New.
23952 (value_range::intersect_helper): Move from here...
23953 (value_range_base::intersect_helper): ...to here.
23954 * tree-vrp.c (value_range::intersect_helper): Rename to...
23955 (value_range_base::intersect_helper): ...this, and rewrite to
23956 return a value instead of modifying THIS in place.
23957 Also, move equivalence handling...
23958 (value_range::intersect): ...here, while calling intersect_helper.
23959 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
23960 calling intersect.
23961 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
23962 Same.
23963 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
23964
23965 2019-06-07 Jakub Jelinek <jakub@redhat.com>
23966
23967 * Makefile.in (genprogerr): Add condmd.
23968 (genprog): Remove it here.
23969
23970 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
23971
23972 * doc/invoke.texi (AMD GCN Options): Add gfx906.
23973
23974 2019-06-07 Richard Biener <rguenther@suse.de>
23975
23976 PR debug/90574
23977 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
23978 that appear after user labels.
23979
23980 2019-06-07 Martin Liska <mliska@suse.cz>
23981
23982 * cselib.c (cselib_init): Disable hash table
23983 sanitization.
23984 * hash-set.h: Pass new default argument to m_table.
23985 * hash-table.c: Add global variable with hash table
23986 sanitization limit.
23987 * hash-table.h (Allocator>::hash_table): Add new argument
23988 to ctor.
23989 (hashtab_chk_error): New.
23990 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
23991 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
23992 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
23993
23994 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23995
23996 * common.opt (flto-odr-type-merging): Ignore.
23997 * invoke.texi (-flto-odr-type-merging): Remove.
23998 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
23999 (can_be_vtable_hashed_p): Remove.
24000 (hash_odr_vtable): Remove.
24001 (odr_vtable_hasher::hash): Remove.
24002 (types_same_for_odr): Remove.
24003 (types_odr_comparable): Remove.
24004 (odr_vtable_hasher::equal): Remove.
24005 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24006 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24007 (get_odr_type): Do not use vtable hash.
24008 (dump_odr_type): Remove commented out code.
24009 (build_type_inheritance_graph): Do not allocate vtable hash.
24010 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24011 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24012 (odr_type_p): Likewise.
24013 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24014 test.
24015
24016 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24017
24018 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24019 immediately after same_types_for_tbaa_p returns -1 and continue
24020 looking for possible exact match; if matching types are arrays
24021 watch for partial overlaps.
24022 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24023 (indirect_refs_may_alias_p): Do type based disambiguation first;
24024 update comment.
24025
24026 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24027
24028 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24029
24030 2019-06-07 Martin Liska <mliska@suse.cz>
24031
24032 * doc/invoke.texi: Remove param.
24033 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24034 Remove.
24035 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24036 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24037 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24038 * profile.c (instrument_values): Remove
24039 HIST_TYPE_INDIR_CALL_TOPN.
24040 * tree-profile.c (init_ic_make_global_vars):
24041 Always build __gcov_indirect_call only.
24042 (gimple_init_gcov_profiler): Remove usage
24043 of PARAM_INDIR_CALL_TOPN_PROFILE.
24044 (gimple_gen_ic_profiler): Likewise.
24045 * value-prof.c (dump_histogram_value): Likewise.
24046 (stream_in_histogram_value): Likewise.
24047 (gimple_indirect_call_to_profile): Likewise.
24048 (gimple_find_values_to_profile): Likewise.
24049 * value-prof.h (enum hist_type): Likewise.
24050
24051 2019-06-07 Martin Liska <mliska@suse.cz>
24052
24053 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24054 function.
24055
24056 2019-06-07 Martin Liska <mliska@suse.cz>
24057
24058 PR tree-optimization/78902
24059 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24060 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24061 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24062 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24063 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24064 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24065 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24066 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24067 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24068 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24069 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24070 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24071 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24072 New.
24073 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24074 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24075 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24076 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24077 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24078 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24079 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24080 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24081 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24082 warn_unused_result attribute.
24083 (BUILT_IN_STRDUP): Likewise.
24084 (BUILT_IN_STRNDUP): Likewise.
24085 (BUILT_IN_ALLOCA): Likewise.
24086 (BUILT_IN_CALLOC): Likewise.
24087 (BUILT_IN_MALLOC): Likewise.
24088 (BUILT_IN_REALLOC): Likewise.
24089
24090 2019-06-06 Jim Wilson <jimw@sifive.com>
24091
24092 PR target/89955
24093 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24094 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24095 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24096
24097 2019-06-06 Martin Sebor <msebor@redhat.com>
24098
24099 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24100 (handle_builtin_malloc): Remove trailing spaces.
24101 (handle_builtin_memset): Same.
24102 (handle_builtin_memcmp): Same.
24103 (compute_string_length): Same.
24104 (determine_min_objsize): Same.
24105 (handle_builtin_string_cmp): Same.
24106 (handle_char_store): Same. Break up excessively long line.
24107
24108 2019-06-06 Martin Jambor <mjambor@suse.cz>
24109
24110 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24111 check.
24112
24113 2019-06-06 Martin Jambor <mjambor@suse.cz>
24114
24115 * tree-sra.c (struct access): New field grp_same_access_path.
24116 (dump_access): Dump it.
24117 (build_reconstructed_reference): New function.
24118 (build_ref_for_model): Use it if possible.
24119 (path_comparable_for_same_access): New function.
24120 (same_access_path_p): Likewise.
24121 (sort_and_splice_var_accesses): Set the new flag.
24122 (analyze_access_subtree): Likewise.
24123 (propagate_subaccesses_across_link): Propagate zero value of the new
24124 flag down the access tree.
24125
24126 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24127
24128 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24129 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24130 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24131 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24132 Add gfx906.
24133
24134 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24135
24136 PR tree-optimization/90332
24137 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24138 Handle VALS containing two vectors.
24139 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24140 to...
24141 (@aarch64_combinez<mode>): ... This.
24142 (*aarch64_combinez_be<mode>): Rename to...
24143 (@aarch64_combinez_be<mode>): ... This.
24144 (vec_init<mode><Vhalf>): New define_expand.
24145 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24146
24147 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24148
24149 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24150 library functions only when not optimizing for size.
24151 (ashlsi3): Likewise.
24152 (ashrhi3): Likewise.
24153 (ashrsi3): Likewise.
24154 (lshrhi3): Likewise.
24155 (lshrsi3): Likewise.
24156
24157 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24158
24159 PR rtl-optimization/88751
24160 * ira.c (ira): Use the number of the actually referenced registers
24161 when calculating the threshold.
24162
24163 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24164
24165 * configure: Regenerate.
24166
24167 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24168
24169 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24170 register if it is in memory, so the shift can be emulated with a rotate
24171 instruction.
24172 (ashrhi3): Likewise.
24173 (lshrhi3): Likewise.
24174
24175 2019-06-06 Martin Liska <mliska@suse.cz>
24176
24177 PR tree-optimization/87954
24178 * match.pd: Simplify mult where both arguments are 0 or 1.
24179
24180 2019-06-06 Richard Biener <rguenther@suse.de>
24181
24182 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24183 put equivalences on UNDEFINED ranges.
24184 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24185 Make sure to drop defs of stmts added during simplification
24186 to VARYING.
24187
24188 2019-06-06 Richard Biener <rguenther@suse.de>
24189
24190 * tree-ssa-structalias.c: Include tree-cfg.h.
24191 (make_heapvar): Do not make heap vars artificial.
24192 (find_func_aliases_for_builtin_call): Handle stack allocation
24193 functions.
24194 (find_func_aliases): Delay processing of simple enough returns
24195 in non-IPA mode.
24196 (set_uids_in_ptset): Adjust.
24197 (find_what_var_points_to): Likewise.
24198 (solve_constraints): Do not dump points-to sets here.
24199 (compute_points_to_sets): Post-process return statements,
24200 amending the escaped solution. Dump points-to sets afterwards.
24201 (ipa_pta_execute): Dump points-to sets.
24202
24203 2019-06-06 Martin Liska <mliska@suse.cz>
24204
24205 PR web/87933
24206 * doc/install.texi: Fix HTML headers and
24207 titles for 'Installing GCC' pages.
24208
24209 2019-06-06 Martin Liska <mliska@suse.cz>
24210
24211 * ipa-icf-gimple.h (dump_message_1): Remove.
24212 (dump_message): Likewise.
24213 (return_false_with_message_1): Print also file.
24214 (return_false_with_msg): Likewise.
24215 (return_with_result): Likewise.
24216 (return_with_debug): Likewise.
24217 * ipa-icf.c (sem_function::equals_private): Remove call
24218 to dump_message.
24219
24220 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24221
24222 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24223 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24224 memory operand for it.
24225 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24226
24227 2019-06-05 Martin Sebor <msebor@redhat.com>
24228
24229 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24230 Adjust quoting and hyphenation.
24231 * convert.c (convert_to_real_1): Same.
24232 * gcc.c (driver_wrong_lang_callback): Same.
24233 (driver::handle_unrecognized_options): Same.
24234 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24235 * opts-common.c (cmdline_handle_error): Same.
24236 (read_cmdline_option): Same.
24237 * opts-global.c (complain_wrong_lang): Same.
24238 (print_ignored_options): Same.
24239 (handle_common_deferred_options): Same.
24240 * pretty-print.h: Same.
24241 * print-rtl.c (debug_bb_n_slim): Same.
24242 * sched-rgn.c (make_pass_sched_fusion): Same.
24243 * tree-cfg.c (verify_gimple_assign_unary): Same.
24244 (verify_gimple_label): Same.
24245 * tree-ssa-operands.c (verify_ssa_operands): Same.
24246 * varasm.c (do_assemble_alias): Same.
24247 (assemble_alias): Same.
24248
24249 2019-06-05 Richard Henderson <rth@twiddle.net>
24250
24251 * config/alpha/alpha.c (direct_return): Move down after
24252 struct machine_function definition; use saved frame_size;
24253 return bool.
24254 (struct machine_function): Add sa_mask, sa_size, frame_size.
24255 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24256 (alpha_compute_frame_layout): ... new function.
24257 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24258 (alpha_initial_elimination_offset): Use saved sa_size.
24259 (alpha_vms_initial_elimination_offset): Likewise.
24260 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24261 (alpha_expand_prologue): Use saved frame data. Merge integer
24262 and fp register save loops.
24263 (alpha_expand_epilogue): Likewise.
24264 (alpha_start_function): Use saved frame data.
24265 * config/alpha/alpha-protos.h (direct_return): Update.
24266 (alpha_sa_size): Remove.
24267
24268 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24269
24270 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24271 multiplication by a power-of-two value.
24272 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24273 and turn the modulo operation into a masking operation.
24274
24275 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24276
24277 PR debug/90733
24278 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24279 with VOIDmode inner operands.
24280
24281 2019-06-05 Richard Biener <rguenther@suse.de>
24282
24283 PR middle-end/90726
24284 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24285 turn an expression graph into a tree.
24286
24287 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24288
24289 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24290 member.
24291 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24292 treat it like explicit monotonic schedule modifier.
24293 (expand_omp_for): Initialize has_lastprivate_conditional.
24294 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24295 schedule modifier.
24296
24297 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24298 references, lookup in in hash map MEM_REF operand instead of the
24299 MEM_REF itself.
24300 (lower_omp_1): When looking for lastprivate conditional assignments,
24301 handle MEM_REFs with REFERENCE_TYPE operands.
24302
24303 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24304 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24305 and references a VLA. Handle references to non-VLAs if is_simd
24306 all privatization clauses like reductions.
24307 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24308 If omp_is_reference, use always omp simd arrays and set
24309 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24310 fails, emit reference initialization.
24311
24312 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24313
24314 PR target/89803
24315 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24316 _mm_mask_fpclass_sd_mask): New intrinsics.
24317 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24318 * config/i386/i386-builtin.def
24319 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24320 New builtins.
24321 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24322 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24323 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24324 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24325 case QI_FTYPE_V2SF_INT): Ditto.
24326 * config/i386/sse.md
24327 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24328 Extended to insnstructions with mask operands.
24329
24330 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24331
24332 * config/rs6000/constraints.md (define_register_constraint "wp"):
24333 Delete.
24334 (define_register_constraint "wq"): Delete.
24335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24336 (rs6000_init_hard_regno_mode_ok): Adjust.
24337 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24338 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24339 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24340 (define_mode_attr VSa): Delete.
24341 (define_mode_attr VSisa): New.
24342 (rest of file): Adjust.
24343 * doc/md.texi (Machine Constraints): Adjust.
24344
24345 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24346
24347 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24348 (define_attr "enabled"): Handle those new isa values.
24349
24350 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24351
24352 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24353 (define_mode_attr VSr5): Delete.
24354 (define_mode_attr VStype_sqrt): Delete.
24355 (define_mode_iterator VSX_SPDP): Delete.
24356 (define_mode_attr VS_spdp_res): Delete.
24357 (define_mode_attr VS_spdp_insn): Delete.
24358 (define_mode_attr VS_spdp_type): Delete.
24359 (*vsx_sqrt<mode>2): Adjust.
24360 (vsx_<VS_spdp_insn>): Delete, split to...
24361 (vsx_xscvdpsp): ... this. New. And...
24362 (vsx_xvcvspdp): ... this. New. And...
24363 (vsx_xvcvdpsp): ... this. New.
24364
24365 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24366
24367 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24368 and V2DF.
24369 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24370 (rest of file): Adjust.
24371
24372 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24373
24374 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24375 (vsx_extract_<mode>_var): Ditto.
24376
24377 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24378
24379 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24380 with just "wa".
24381
24382 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24383
24384 * config/rs6000/constraints.md (define_register_constraint "ww"):
24385 Delete.
24386 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24387 (rs6000_init_hard_regno_mode_ok): Adjust.
24388 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24389 RS6000_CONSTRAINT_ww.
24390 * config/rs6000/rs6000.md: Adjust.
24391 * config/rs6000/vsx.md: Adjust.
24392 * doc/md.texi (Machine Constraints): Adjust.
24393
24394 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24395
24396 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24397 (define_mode_attr sd): New.
24398 (define_mode_attr s): New.
24399 (define_mode_attr Ftrad): Delete.
24400 (define_mode_attr Fvsx): Delete.
24401 (define_mode_attr Fs): Delete.
24402 (rest of file): Use the new mode attributes.
24403 * config.rs6000/vsx.md: Use the new mode attributes.
24404
24405 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24406
24407 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24408 with just "wa".
24409
24410 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24411
24412 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24413 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24414 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24415
24416 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24417
24418 PR target/78263
24419 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24420 C++ with strict ANSI requirements.
24421
24422 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24423
24424 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24425 computations when step is 1.
24426
24427 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24428
24429 * config/rs6000/constraints.md (define_register_constraint "wf"):
24430 Delete.
24431 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24432 (rs6000_init_hard_regno_mode_ok): Adjust.
24433 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24434 RS6000_CONSTRAINT_wf.
24435 * config/rs6000/rs6000.md: Adjust.
24436 * config/rs6000/vsx.md: Adjust.
24437 * doc/md.texi (Machine Constraints): Adjust.
24438
24439 2019-06-04 Andrew Pinski <apinski@marvell.com>
24440
24441 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24442 Fix ILP32 value.
24443
24444 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24445
24446 * config/rs6000/constraints.md (define_register_constraint "wd"):
24447 Delete.
24448 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24449 (rs6000_init_hard_regno_mode_ok): Adjust.
24450 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24451 RS6000_CONSTRAINT_wd.
24452 * config/rs6000/rs6000.md: Adjust.
24453 * config/rs6000/vsx.md: Adjust.
24454 * doc/md.texi (Machine Constraints): Adjust.
24455
24456 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24457
24458 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24459 (rest of file): Adjust.
24460
24461 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24462
24463 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24464 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24465 (vsx_splat_<mode>_reg): Adjust.
24466
24467 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24468
24469 * config/rs6000/constraints.md (define_register_constraint "ws"):
24470 Delete.
24471 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24472 (rs6000_init_hard_regno_mode_ok): Adjust.
24473 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24474 RS6000_CONSTRAINT_ws.
24475 * config/rs6000/rs6000.md: Adjust.
24476 * config/rs6000/vsx.md: Adjust.
24477 * doc/md.texi (Machine Constraints): Adjust.
24478
24479 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24480
24481 * config/rs6000/constraints.md (define_register_constraint "wv"):
24482 Delete.
24483 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24484 (rs6000_init_hard_regno_mode_ok): Adjust.
24485 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24486 RS6000_CONSTRAINT_wv.
24487 * config/rs6000/rs6000.md: Adjust.
24488 * config/rs6000/vsx.md: Adjust.
24489 * doc/md.texi (Machine Constraints): Adjust.
24490
24491 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24492
24493 * config/rs6000/constraints.md (define_register_constraint "wi"):
24494 Delete.
24495 (define_register_constraint "wt"): Delete.
24496 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24497 (rs6000_init_hard_regno_mode_ok): Adjust.
24498 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24499 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24500 * config/rs6000/rs6000.md: Adjust.
24501 * config/rs6000/vsx.md: Adjust.
24502 * doc/md.texi (Machine Constraints): Adjust.
24503
24504 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24505
24506 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24507 const.
24508 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24509 default_elf_asm_output_external.
24510
24511 2019-06-04 Martin Liska <mliska@suse.cz>
24512
24513 * ipa-icf.c (INCLUDE_LIST): Remove.
24514 (sem_item_optimizer::execute): Remove call to init_wpa.
24515 * ipa-icf.h (init_wpa): Remove.
24516
24517 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24518
24519 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24520 conditional on combined for simd.
24521 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24522 member.
24523 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24524 constructs, don't remove lastprivate_conditional_map, but instead set
24525 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24526 to parent construct temporaries.
24527 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24528 like !ctx->lastprivate_conditional_map.
24529 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24530 use up->outer context instead of up.
24531 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24532 gimple_omp_for_combined_p.
24533 (expand_omp_for_static_nochunk): Likewise.
24534 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24535 probably moved over into expand_omp_for_generic rather than being copied
24536 there.
24537
24538 2019-06-04 Martin Liska <mliska@suse.cz>
24539
24540 * value-prof.c (dump_histogram_value): Fix typo.
24541 (gimple_mod_subtract_transform): Likewise.
24542
24543 2019-06-04 Richard Biener <rguenther@suse.de>
24544
24545 PR middle-end/90726
24546 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24547 (tree_contains_chrecs): Likewise.
24548 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24549 exponential behaivor from ...
24550 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24551 ... here.
24552 (expression_expensive_p): Avoid exponential behavior and compute
24553 expanded size, rejecting any expansion.
24554 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24555 (idx_contains_abnormal_ssa_name_p): Likewise.
24556 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24557 (contains_abnormal_ssa_name_p): Simplify and use
24558 walk_tree_without_duplicates.
24559
24560 2019-06-04 Richard Biener <rguenther@suse.de>
24561
24562 PR tree-optimization/90738
24563 Revert
24564 2019-06-03 Richard Biener <rguenther@suse.de>
24565
24566 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24567 full reference tree and record in ref->ref.
24568 (vn_reference_lookup_3): Pass in original ref to
24569 ao_ref_init_from_vn_reference.
24570 (vn_reference_lookup): Likewise.
24571 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24572 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24573 Handle non-decl bases in the original reference.
24574
24575 2019-06-04 Martin Liska <mliska@suse.cz>
24576
24577 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24578 number of references.
24579 (sem_item_optimizer::do_congruence_step):
24580 (sem_item_optimizer::worklist_push): Dump how references
24581 a class has.
24582 (sem_item_optimizer::worklist_pop): Use heap.
24583 (sem_item_optimizer::process_cong_reduction): Likewise.
24584 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24585
24586 2019-06-04 Martin Liska <mliska@suse.cz>
24587
24588 * ipa-icf.h (struct sem_usage_pair_hash): New.
24589 (sem_usage_pair_hash::hash): Likewise.
24590 (sem_usage_pair_hash::equal): Likewise.
24591 (struct sem_usage_hash): Likewise.
24592 * ipa-icf.c (sem_item::sem_item): Initialize
24593 referenced_by_count.
24594 (sem_item::add_reference): Register a reference
24595 in ref_map and not in target->usages.
24596 (sem_item::setup): Remove initialization of
24597 dead vectors.
24598 (sem_item::~sem_item): Remove usage of dead vectors.
24599 (sem_item::dump): Remove dump of references.
24600 (sem_item_optimizer::sem_item_optimizer): Initialize
24601 m_references.
24602 (sem_item_optimizer::read_section): Remove useless
24603 dump.
24604 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24605 (sem_item_optimizer::build_graph): Pass m_references
24606 to ::add_reference.
24607 (sem_item_optimizer::verify_classes): Remove usage of dead
24608 vectors.
24609 (sem_item_optimizer::traverse_congruence_split): Return true
24610 when a class is split.
24611 (sem_item_optimizer::do_congruence_step_for_index): Use
24612 hash_map for look up of (sem_item *, index). That brings
24613 significant speed up.
24614 (sem_item_optimizer::do_congruence_step): Return true
24615 when a split is done.
24616 (congruence_class::is_class_used): Use referenced_by_count.
24617
24618 2019-06-04 Alan Modra <amodra@gmail.com>
24619
24620 PR target/90689
24621 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24622 error.
24623
24624 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24625
24626 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24627 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24628 (rs6000_secondary_reload_simple_move): Adjust.
24629 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24630 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24631 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24632 comment.
24633 (power6x): Adjust.
24634 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24635 (floatunssi<mode>2_lfiwzx): Adjust.
24636 (fix_trunc<mode>si2_stfiwx): Adjust.
24637 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24638 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24639 (mfpgpr): Mark as deprecated.
24640 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24641 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24642 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24643
24644 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24645
24646 * config/rs6000/constraints.md (define_register_constraint "wg"):
24647 Delete.
24648 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24649 RS6000_CONSTRAINT_wg.
24650 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24651 (rs6000_init_hard_regno_mode_ok): Adjust.
24652 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24653 Delete "wg" alternatives.
24654 * doc/md.texi (Machine Constraints): Adjust.
24655
24656 2019-06-03 Alan Modra <amodra@gmail.com>
24657
24658 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24659 (get_uncond_jump_length): Assert length less than INT_MAX and
24660 non-negative.
24661
24662 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24663
24664 PR middle-end/64242
24665 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24666 block.
24667 (expand_builtin_nonlocal_goto): Likewise.
24668
24669 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24670
24671 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24672 (aarch64_asm_output_external): Declare.
24673 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24674 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24675 (aarch64_asm_output_alias): New.
24676 (aarch64_asm_output_external): New.
24677 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24678 (ASM_OUTPUT_EXTERNAL): Define.
24679
24680 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24681 * tree-vrp.h (value_range_base::nonzero_p): New.
24682 (value_range_base::set_nonnull): Rename to...
24683 (value_range_base::set_nonzero): ...this.
24684 (value_range_base::set_null): Rename to...
24685 (value_range_base::set_zero): ...this.
24686 (value_range::set_nonnull): Remove.
24687 (value_range::set_null): Remove.
24688 * tree-vrp.c (range_is_null): Remove.
24689 (range_is_nonnull): Remove.
24690 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24691 instead of range_is_*null.
24692 (extract_range_from_unary_expr): Same.
24693 (value_range_base::set_nonnull): Rename to...
24694 (value_range_base::set_nonzero): ...this.
24695 (value_range::set_nonnull): Remove.
24696 (value_range_base::set_null): Rename to...
24697 (value_range_base::set_zero): ...this.
24698 (value_range::set_null): Remove.
24699 (extract_range_from_binary_expr): Rename set_*null uses to
24700 set_*zero.
24701 (extract_range_from_unary_expr): Same.
24702 (union_helper): Same.
24703 * vr-values.c (get_value_range): Use set_*zero instead of
24704 set_*null.
24705 (vr_values::extract_range_from_binary_expr): Same.
24706 (vr_values::extract_range_basic): Same.
24707
24708 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24709
24710 PR driver/90684
24711 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24712
24713 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24714
24715 * config/aarch64/iterators.md (MAX_OPP): New code attr.
24716 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24717 Rename to...
24718 (aarch64_<su>abd<mode>_3): ... This.
24719 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24720
24721 2019-06-03 Richard Biener <rguenther@suse.de>
24722
24723 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24724 full reference tree and record in ref->ref.
24725 (vn_reference_lookup_3): Pass in original ref to
24726 ao_ref_init_from_vn_reference.
24727 (vn_reference_lookup): Likewise.
24728 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24729 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24730 Handle non-decl bases in the original reference.
24731
24732 2019-06-03 Martin Liska <mliska@suse.cz>
24733
24734 * doc/generic.texi: Remove Java Trees.
24735
24736 2019-06-03 Martin Liska <mliska@suse.cz>
24737
24738 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24739 returns 0 when operands are equal.
24740
24741 2019-06-03 Richard Biener <rguenther@suse.de>
24742
24743 PR tree-optimization/90716
24744 * tree-loop-distribution.c (destroy_loop): Process blocks in
24745 correct order.
24746
24747 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24748
24749 PR target/88837
24750 * vector-builder.h (vector_builder::count_dups): New method.
24751 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
24752 Declare prototype.
24753 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
24754 (vec_init<mode><Vel>): New pattern.
24755 * config/aarch64/aarch64.c (emit_insr): New function.
24756 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
24757 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
24758 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
24759 (aarch64_sve_expand_vector_init): Define two overloaded functions.
24760
24761 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24762
24763 PR tree-optimization/90681
24764 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
24765 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
24766 special case for SLP, but fail on non-groupped loads.
24767
24768 2019-06-03 Martin Liska <mliska@suse.cz>
24769
24770 * cfg.c (debug): Use TDF_DETAILS for debug and
24771 print edge info only once.
24772
24773 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
24774
24775 PR fortran/90539
24776 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
24777
24778 2019-06-01 Martin Sebor <msebor@redhat.com>
24779
24780 PR middle-end/90694
24781 * tree-pretty-print.c (dump_generic_node): Add parentheses.
24782
24783 2019-05-31 Jan Hubicka <jh@suse.cz>
24784
24785 * alias.c: Include ipa-utils.h.
24786 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
24787 * ipa-devirt.c (prevailing_odr_type): New.
24788 * ipa-utils.h (previaling_odr_type): Declare.
24789
24790 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
24791 Hongtao Liu <hongtao.liu@intel.com>
24792
24793 PR target/89355
24794 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
24795 NOTE_INSN_DELETED_LABEL check.
24796
24797 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
24798 Robert Suchanek <robert.suchanek@mips.com>
24799
24800 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
24801 and 3rd operands of the fmadd/fmsub/maddv builtin.
24802
24803 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24804
24805 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
24806 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24807 on OMP_SIMD if not nested inside of worksharing loop that also has
24808 lastprivate conditional clause for the same decl.
24809 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
24810 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
24811 on simd.
24812 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
24813 on simd construct.
24814 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
24815 on simd construct.
24816 (lower_lastprivate_clauses): Likewise.
24817 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
24818 calling lower_rec_input_clauses.
24819 (lower_omp_for): Likewise.
24820 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
24821 clause on simd construct.
24822 * omp-expand.c (expand_omp_simd): Initialize cond_var if
24823 OMP_CLAUSE__CONDTEMP_ clause is present.
24824
24825 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
24826 ivar and lvar.
24827
24828 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
24829
24830 PR c/43673
24831 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
24832 TEX_D32, TEX_D64 or TEX_D128.
24833
24834 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24835
24836 * match.pd (~(vec?cst1:cst2)): New transformation.
24837
24838 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24839
24840 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
24841 ((size_t)(A /[ex] B) CMP C): New transformation.
24842
24843 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
24844
24845 * doc/md.texi: Document define_insn_and_rewrite.
24846 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
24847 * gensupport.c (queue_elem): Update comment.
24848 (replace_operands_with_dups): New function.
24849 (gen_rewrite_sequence): Likewise.
24850 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
24851 * read-rtl.c (apply_subst_iterator): Likewise.
24852 (add_condition_to_rtx, named_rtx_p): Likewise.
24853 (rtx_reader::read_rtx_operand): Likewise.
24854 * config/aarch64/aarch64-sve.md
24855 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
24856 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
24857 define_insn_and_rewrite.
24858 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
24859 Remove separate define_split.
24860
24861 2019-05-31 Jan Hubicka <jh@suse.cz>
24862
24863 * tree-ssa-alias.c (type_has_components_p): New function.
24864 (aliasing_component_refs_p): Use it.
24865
24866 2019-05-31 Martin Liska <mliska@suse.cz>
24867
24868 * gdbhooks.py: Add const_tree to TreePrinter.
24869
24870 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
24871
24872 PR debug/86964
24873 * common.opt (feliminate-unused-debug-symbols): Enable by default.
24874 * doc/invoke.texi (Debugging Options): Document new default of
24875 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
24876
24877 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24878
24879 PR tree-optimization/90671
24880 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
24881 template_block used to be empty on the first call, don't use
24882 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
24883 seq with bb_seq and set it with set_bb_seq.
24884
24885 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
24886
24887 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
24888
24889 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24890 Michael Meissner <meissner@linux.ibm.com>
24891
24892 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
24893 (prefixed_mem_operand): Likewise.
24894 (non_prefixed_mem_operand): Likewise.
24895 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
24896 prototype.
24897 * config/rs6000/rs6000.c (print_operand_address): Handle
24898 PC-relative addresses.
24899 (mode_supports_prefixed_address_p): New function.
24900 (rs6000_prefixed_address): New function.
24901 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
24902 (SYMBOL_REF_PCREL_P): Likewise.
24903
24904 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24905
24906 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
24907 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
24908 (gimplify_omp_for): If worksharing loop with lastprivate conditional
24909 is nested inside of parallel region, add _condtemp_ clause to both.
24910 * tree-nested.c (convert_nonlocal_omp_clauses,
24911 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
24912 assertion failure.
24913 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
24914 member.
24915 * omp-general.c (omp_extract_for_data): Compute it.
24916 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
24917 (lower_rec_input_clauses): Likewise.
24918 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
24919 clause is already present, just add one further one after it.
24920 (lower_lastprivate_clauses): Handle cond_ptr with array type.
24921 (lower_send_shared_vars): Clear _condtemp_ vars.
24922 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
24923 or section or taskgroup.
24924 * omp-expand.c (determine_parallel_type): Disallow combining only if
24925 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
24926 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
24927 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24928 expand_omp_for_static_chunk, expand_omp_for): Use
24929 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
24930 determine if a special set of API routines are needed and if condtemp
24931 needs to be initialized, while always initialize cond_var if
24932 fd->lastprivate_conditional is non-zero.
24933
24934 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24935 Michael Meissner <meissner@linux.ibm.com>
24936
24937 * config/rs6000/constraints.md (eI): New constraint.
24938 * config/rs6000/predicates.md (cint34_operand): New predicate.
24939 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
24940 (SIGNED_34BIT_OFFSET_P): Likewise.
24941 * doc/md.texi (eI): Document constraint.
24942
24943 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
24944
24945 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
24946
24947 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24948 Michael Meissner <meissner@linux.ibm.com>
24949
24950 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
24951 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
24952 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
24953 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
24954 (OTHER_FUTURE_MASKS): Likewise.
24955 (POWERPC_MASKS): Likewise.
24956 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
24957 specified without -mprefixed-addr or -mcpu=future. Error if
24958 -mprefixed-addr is specified without -mcpu=future.
24959 (rs6000_opt_masks): Add entry for prefixed-addr.
24960 * rs6000.opt (mprefixed-addr): New option.
24961
24962 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
24963
24964 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
24965 cfun->is_thunk check.
24966
24967 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24968
24969 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
24970 to length.
24971
24972 2019-05-30 Martin Liska <mliska@suse.cz>
24973
24974 * gdbinit.in: Fix 'ptc' command. Add trt
24975 that prints TREE_TYPE($).
24976
24977 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
24978 Alan Modra <amodra@gmail.com>
24979
24980 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
24981 calls here...
24982 (rs6000_indirect_call_template_1): ...and here.
24983 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
24984 plt16_ha, plt16_lo, mtctr indirect calls. Use
24985 rs6000_pltseq_enum.
24986 (rs6000_decl_ok_for_sibcall): New function.
24987 (rs6000_function_ok_for_sibcall): Refactor.
24988 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
24989 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
24990 when pcrel. Reorganize.
24991 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
24992 * rs6000.h (rs6000_pltseq_enum): New enum.
24993 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
24994 (*pltseq_tocsave): Use rs6000_pltseq_enum.
24995 (*pltseq_plt16_ha): Likewise.
24996 (*pltseq_plt16_lo): Likewise.
24997 (*pltseq_mtctr): Likewise.
24998 (*pltseq_plt_pcrel): New insn.
24999 (*call_local_aix): Handle @notoc calls.
25000 (*call_value_local_aix): Likewise.
25001 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25002 (*call_value_nonlocal_aix): Likewise.
25003 (*call_indirect_pcrel): New insn.
25004 (*call_value_indirect_pcrel): Likewise.
25005
25006 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25007
25008 * config/i386/sse.md (*save_multiple<mode>): Rename from
25009 save_multiple<mode>.
25010 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25011 (*restore_multiple_and_return<mode>): Rename from
25012 restore_multiple_and_return<mode>.
25013 (*restore_multiple_leave_return<mode>): Rename from
25014 restore_multiple_leave_return<mode>.
25015
25016 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25017
25018 * config.gcc (rx-*-linux*): New target.
25019 * config/rx/elf.opt: New file.
25020 * config/rx/linux.h: Likewise.
25021 * config/rx/t-linux: Likewise.
25022 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25023 make it zero.
25024 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25025 (ASM_APP_OFF): Likewise.
25026 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25027 moved elsewhere.
25028
25029 2019-05-29 Jan Hubicka <jh@suse.cz>
25030
25031 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25032 variants are pointer equivalent.
25033
25034 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25035
25036 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25037 * config/aarch64/aarch64-sve2.md: New file.
25038 (<u>avg<mode>3_floor): New pattern.
25039 (<u>avg<mode>3_ceil): Likewise.
25040 (*<sur>h<addsub><mode>): Likewise.
25041 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25042 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25043
25044 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25045
25046 PR bootstrap/90543
25047 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25048 for var_opt_string printing. In cl_optimization_print_diff, print
25049 (null) instead of invoking undefined behavior if one of the
25050 var_opt_string pointers is NULL and use && instead of first || in the
25051 guarding condition. For var_target_other options, handle const char *
25052 target variables similarly to const char * optimize node variables.
25053
25054 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25055
25056 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25057 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25058 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25059 Add autib1716 and pacib1716 initialisation.
25060 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25061 for autib1716 and pacib1716.
25062 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25063 aarch64_post_cfi_startproc): Define.
25064 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25065 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25066 aarch64_handle_pac_ret_protection): Set default sign key to A.
25067 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25068 aarch64_expand_prologue): Add check for b-key.
25069 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25070 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25071 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25072 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25073 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25074 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25075 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25076 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25077 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25078 pauth_hint_num_a with pauth_hint_num.
25079 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25080 pauth_hint_num_a with pauth_hint_num.
25081 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25082 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25083 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25084 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25085 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25086 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25087 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25088 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25089 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25090 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25091 UNSPEC_AUTIA1716 respectively.
25092 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25093 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25094 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25095 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25096 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25097 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25098
25099 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25100
25101 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25102 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25103 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25104 explicit clause on combined parallel into implicit shared clause.
25105 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25106 and firstprivate if the decl has one too from combined parallel to
25107 the worksharing construct.
25108
25109 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25110 Michael Meissner <meissner@linux.ibm.com>
25111
25112 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25113
25114 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25115
25116 * rtl.h (LABEL_REF_P): New #define.
25117
25118 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25119
25120 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25121
25122 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25123
25124 * internal-fn.c: Marked mask_load_direct as vectorizable.
25125 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25126 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25127 combined even if masks different with allow_slp_p param.
25128 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25129 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25130 dissolve SLP-only vectorizable groups when SLP has been discarded.
25131 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25132 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25133 masks.
25134 (vect_build_slp_tree_1): Fixed comment typo.
25135 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25136 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25137 loads for SLP only.
25138 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25139 vectorizable.
25140 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25141
25142 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25143
25144 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25145 Remove obsolete use_thunk reference.
25146 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25147 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25148 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25149 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25150 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25151 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25152 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25153 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25154 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25155
25156 2019-05-28 Nathan Sidwell <nathan@acm.org>
25157
25158 * tree.h (IDENTIFIER_ANON_P): New.
25159 (anon_aggrname_format, anon_aggname_p): Don't declare.
25160 (make_anon_name): Declare.
25161 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25162 (hash_tree): Likewise.
25163 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25164 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25165 (anon_cnt, make_anon_name): New.
25166
25167 2019-05-28 Martin Liska <mliska@suse.cz>
25168
25169 PR other/90315
25170 * opts-global.c (decode_options): Print help for all
25171 help_option_arguments.
25172 * opts.c (print_help): Add new argument.
25173 (common_handle_option): Remember all values into
25174 help_option_arguments.
25175 * opts.h (print_help): Add new argument.
25176
25177 2019-05-28 Martin Liska <mliska@suse.cz>
25178
25179 PR ipa/90555
25180 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25181 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25182 (func_checker::compare_bb): Call compare_loops.
25183
25184 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25185
25186 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25187 on sections construct.
25188 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25189 construct.
25190 (lower_omp_sections): Handle lastprivate conditional.
25191 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25192 lastprivate_conditional_map.
25193 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25194
25195 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25196 critical, taskgroup and section regions when looking for a region
25197 with non-NULL lastprivate_conditional_map.
25198
25199 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25200
25201 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25202 (*ix86_gen_sub3): Ditto.
25203 (*ix86_gen_sub3_carry): Ditto.
25204 (*ix86_gen_one_cmpl2): Ditto.
25205 (*ix86_gen_andsp): Ditto.
25206 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25207 (gen_and2_insn): New static function.
25208 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25209 Use gen_add3_insn instead of ix86_gen_add3.
25210 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25211 instead of ix86_gen_add3.
25212 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25213 Use gen_sub3_insn instead of ix86_gen_sub3.
25214 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25215 instead of ix86_gen_add3.
25216 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25217 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25218 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25219 * config/i386/i386-options.c (ix86_option_override_internal):
25220 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25221 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25222
25223 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25224
25225 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25226 and DW_OP_GNU_const_index opcodes.
25227
25228 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25229
25230 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25231
25232 2019-05-27 Richard Biener <rguenther@suse.de>
25233
25234 PR tree-optimization/90637
25235 * tree-ssa-sink.c (statement_sink_location): Honor the
25236 computed sink location for single-uses.
25237
25238 2019-05-27 Richard Biener <rguenther@suse.de>
25239
25240 PR middle-end/90610
25241 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25242 a bit-insert.
25243
25244 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25245
25246 * config/i386/i386.md (@sub<mode>3_carry): Rename
25247 from sub<mode>3_carry.
25248 (@leave_<mode>): New expander.
25249 (*leave): Rename from leave.
25250 (*leave_rex64): Rename from leave_rex64.
25251 (@monitorx_<mode>): Rename from monitorx_<mode>.
25252 (@clzero_<mode>): Rename from clzero_<mode>.
25253 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25254 from sse3_monitor_<mode>.
25255 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25256 (*ix86_gen_leave): Ditto.
25257 (*ix86_gen_monitor): Ditto.
25258 (*ix86_gen_monitorx): Ditto.
25259 (*ix86_gen_clzero): Ditto.
25260 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25261 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25262 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25263 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25264 Use gen_sse3_monitor instead of ix86_gen_monitor.
25265 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25266 instead of ix86_gen_monitorx.
25267 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25268 instead of ix86_gen_clzero.
25269 * config/i386/i386-options.c (ix86_option_override_internal):
25270 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25271 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25272
25273 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25274
25275 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25276 Rename from tls_global_dynamic_64_<mode>.
25277 (@tls_local_dynamic_base_64_<mode>): Rename from
25278 tls_local_dynamic_base_64_<mode>.
25279 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25280 Remove indirect function.
25281 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25282 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25283 instead of ix86_gen_tls_global_dynamic_64.
25284 Use gen_tls_local_dynamic_base_64 instead of
25285 ix86_gen_tls_local_dynamic_base_64.
25286 * config/i386/i386-options.c (ix86_option_override_internal):
25287 Do not initialize ix86_gen_tls_global_dynamic_64 and
25288 ix86_gen_tls_local_dynamic_base_64.
25289
25290 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25291
25292 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25293 Rename from pro_epilogue_adjust_stack_<mode>_add.
25294 (@pro_epilogue_adjust_stack_sub_<mode>)
25295 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25296 (@allocate_stack_worker_probe_<mode>):
25297 Rename from allocate_stack_worker_probe_<mode>.
25298 (allocate_stack): Use gen_allocate_stack_worker_probe.
25299 (probe_stack): Use gen_probe_stack_1.
25300 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25301 (@adjust_stack_and_probe_<mode>): Rename from
25302 adjust_stack_and_probe<mode>.
25303 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25304 (stack_protect_set): Use gen_stack_protect_set_1.
25305 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25306 (stack_protect_test): Use gen_stack_protect_test_1.
25307 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25308 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25309 Remove indirect function.
25310 (*ix86_gen_adjust_stack_and_probe): Ditto.
25311 (*ix86_gen_probe_stack_range): Ditto.
25312 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25313 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25314 (ix86_adjust_stack_and_probe_stack_clash): Use
25315 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25316 (ix86_adjust_stack_and_probe): Ditto.
25317 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25318 of ix86_gen_probe_stack_range.
25319 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25320 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25321 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25322 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25323 CODE_FOR_stack_protect_test_{si,di}.
25324 * config/i386/i386-options.c (ix86_option_override_internal):
25325 Do not initialize ix86_gen_allocate_stack_worker,
25326 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25327
25328 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25329
25330 * doc/invoke.texi (Link Options): Many editorial changes around
25331 -flinker-output.
25332
25333 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25334
25335 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25336 pre-Solaris 11 referene and most Studio compiler details.
25337
25338 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25339
25340 PR target/90530
25341 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25342 DImode to SImode in floating-point registers on 64-bit target.
25343 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25344 register_operand in xmpyu patterns.
25345
25346 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25347
25348 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25349 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25350 OMP_CLAUSE__REDUCTEMP_.
25351 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25352 OMP_CLAUSE__CONDTEMP_.
25353 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25354 * tree-pretty-print.c (dump_omp_clause): Likewise.
25355 * tree-nested.c (convert_nonlocal_omp_clauses,
25356 convert_local_omp_clauses): Likewise.
25357 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25358 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25359 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25360 on OMP_FOR.
25361 (gimplify_omp_for): Warn and disable conditional modifier from
25362 lastprivate on loop iterators.
25363 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25364 member.
25365 * omp-general.c (omp_extract_for_data): Initialize it.
25366 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25367 member.
25368 (delete_omp_context): Delete it.
25369 (lower_lastprivate_conditional_clauses): New function.
25370 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25371 handle lastprivate conditional clauses.
25372 (lower_reduction_clauses): Add CLIST argument, emit it into
25373 the critical section if any.
25374 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25375 lower_reduction_clauses callers.
25376 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25377 to lower_lastprivate_clauses.
25378 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25379 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25380 clist into a critical section if not emitted there already by
25381 lower_reduction_clauses.
25382 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25383 callers.
25384 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25385 conditional variables.
25386 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25387 clause is present.
25388 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25389 expand_omp_for_static_chunk): Handle lastprivate conditional.
25390 (expand_omp_for): Handle fd.lastprivate_conditional like
25391 fd.have_reductemp.
25392
25393 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25394
25395 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25396 kernel does not exit cleanly.
25397 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25398
25399 2019-05-24 Jason Merrill <jason@redhat.com>
25400
25401 Revert:
25402 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25403
25404 2019-05-24 Richard Biener <rguenther@suse.de>
25405
25406 PR testsuite/90607
25407 * tree-loop-distribution.c (struct partition): Add location
25408 member.
25409 (partition_alloc): Initialize all fields.
25410 (generate_memset_builtin): Use the location recorded in the
25411 partition for the generated call.
25412 (generate_memcpy_builtin): Likewise.
25413 (classify_partition): Record the location of a single store
25414 as location for the partition.
25415
25416 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25417
25418 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25419 for lo-part.
25420
25421 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25422
25423 PR target/90588
25424 * common/config/aarch64/aarch64-common.c
25425 (aarch64_rewrite_selected_cpu): Change local temporary variable
25426 type from unsigned long to uint64_t.
25427 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25428 aarch64_get_extension_string_for_isa_flags): Change declaration to
25429 match new definition by replacing unsigned long with uint64_t.
25430
25431 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25432
25433 PR target/90568
25434 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25435 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25436 Handle stack_protect_test_<mode> codegen similarly to corresponding
25437 sub instruction.
25438
25439 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25440
25441 * config/i386/darwin.h: Reject -mfentry*.
25442 * doc/sourcebuild.texi: Document mfentry target support.
25443
25444 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25445
25446 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25447 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25448 false for PC-relative functions.
25449 (rs6000_output_function_prologue): Change called function name to
25450 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25451 name,1" for PC-relative functions.
25452 (rs6000_elf_declare_function_name): Change called function name to
25453 rs6000_global_entry_point_prologue_needed_p.
25454
25455 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25456
25457 PR target/90552
25458 * config/i386/i386.c (gen_rtx_cost):
25459 Use ix86_tune_cost instead of ix86_cost.
25460
25461 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25462 Michael Meissner <meissner@linux.ibm.com>
25463 Segher Boessenkool <segher@kernel.crashing.org>
25464
25465 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25466 OPTION_MASK_PCREL.
25467 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25468 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25469 (rs6000_fndecl_pcrel_p): Likewise.
25470 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25471 error if -mpcrel is requested without -mcpu=future.
25472 (rs6000_opt_masks): Add entry for pcrel.
25473 (rs6000_fndecl_pcrel_p): New function.
25474 (rs6000_pcrel_p): Likewise.
25475 * config/rs6000/rs6000.opt (mpcrel): New option.
25476 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25477
25478 2019-05-23 Jan Hubicka <jh@suse.cz>
25479 Martin Liska <mliska@suse.cz>
25480
25481 PR tree-optimization/90576
25482 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25483 poly_int_tree_p.
25484 (aliasing_component_refs_p): Fix three way size compare conditional;
25485 give up earlier in case we can not decide on equivalence.
25486
25487 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25488 Michael Meissner <meissner@linux.ibm.com>
25489 Segher Boessenkool <segher@kernel.crashing.org>
25490
25491 * config.gcc: Add future cpu.
25492 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25493 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25494 #define.
25495 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25496 (RS6000_CPU): New instantiation for future cpu.
25497 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25498 PROCESSOR_FUTURE.
25499 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25500 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25501 * config/rs6000/rs6000-tables.opt: Regenerate.
25502 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25503 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25504 (rs6000_machine_from_flags): Handle future cpu.
25505 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25506 PROCESSOR_POWER9 for now.
25507 (rs6000_adjust_cost): Likewise.
25508 (rs6000_issue_rate): Likewise.
25509 (rs6000_register_move_cost): Likewise.
25510 (rs6000_opt_masks): Add entry for future.
25511 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25512 (MASK_FUTURE): New #define.
25513 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25514 * config/rs6000/rs6000.opt (mfuture): New target option.
25515 * doc/invoke.texi (mcpu): Add future cpu.
25516
25517 2019-05-23 Martin Liska <mliska@suse.cz>
25518
25519 PR c++/90587
25520 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25521 operation points to a temporary (pointed via tree_to_wide_ref)
25522 that is out of scope after the &.
25523
25524 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25525
25526 PR c++/90592
25527 * doc/extend.texi (Function Names): Add missing word.
25528
25529 2019-05-23 Richard Biener <rguenther@suse.de>
25530
25531 PR tree-optimization/88440
25532 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25533 at -O[2s]+.
25534 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25535 generated call.
25536 (generate_memcpy_builtin): Likewise.
25537 (distribute_loop): Pass in whether to only distribute patterns.
25538 (prepare_perfect_loop_nest): Also allow size optimization.
25539 (pass_loop_distribution::execute): When optimizing a loop
25540 nest for size allow pattern replacement.
25541
25542 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25543
25544 PR target/90568
25545 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25546 of xor.
25547
25548 2019-05-23 Martin Liska <mliska@suse.cz>
25549
25550 PR sanitizer/90570
25551 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25552 expression similarly to gimplify_decl_expr.
25553
25554 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25555
25556 * cse.c (cse_dump_path): s/dump_file/f.
25557
25558 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25559
25560 PR c++/90462
25561 * diagnostic-format-json.cc: Include "selftest.h".
25562 (json_from_expanded_location): Only add "file" key for non-NULL
25563 file strings.
25564 (json_from_location_range): Don't add "start" and "finish"
25565 children if they are UNKNOWN_LOCATION.
25566 (selftest::test_unknown_location): New selftest.
25567 (selftest::test_bad_endpoints): New selftest.
25568 (selftest::diagnostic_format_json_cc_tests): New function.
25569 * json.cc (json::object::get): New function.
25570 (selftest::test_object_get): New selftest.
25571 (selftest::json_cc_tests): Call it.
25572 * json.h (json::object::get): New decl.
25573 * selftest-run-tests.c (selftest::run_tests): Call
25574 selftest::diagnostic_format_json_cc_tests.
25575 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25576 decl.
25577
25578 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25579 Andrew Stubbs <amd@codesourcery.com>
25580
25581 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25582 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25583 (kernel): Rename to...
25584 (main_kernel): ... this.
25585 (load_image): Load _init_array and _fini_array kernels.
25586 (run): Add argument for kernel to run.
25587 (main): Run init_array_kernel before main_kernel, and
25588 fini_array_kernel after.
25589 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25590 amdgpu_hsa_kernel attribute on functions.
25591 (gcn_disable_constructors): Delete.
25592 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25593 * config/gcn/crt0.c (size_t): Define.
25594 (_init_array, _fini_array): New.
25595 (__preinit_array_start, __preinit_array_end,
25596 __init_array_start, __init_array_end,
25597 __fini_array_start, __fini_array_end): Declare weak references.
25598
25599 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25600
25601 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25602
25603 2019-05-22 Jason Merrill <jason@redhat.com>
25604
25605 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25606
25607 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25608
25609 PR target/88483
25610 * config/i386/i386-options.c (ix86_init_machine_status): Set
25611 stack_frame_required to true.
25612 * config/i386/i386.c (ix86_get_frame_size): New function.
25613 (ix86_frame_pointer_required): Replace get_frame_size with
25614 ix86_get_frame_size.
25615 (ix86_compute_frame_layout): Likewise.
25616 (ix86_find_max_used_stack_alignment): Changed to void. Set
25617 stack_frame_required.
25618 (ix86_finalize_stack_frame_flags): Always call
25619 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25620 ix86_get_frame_size.
25621 * config/i386/i386.h (machine_function): Add stack_frame_required.
25622
25623 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25624
25625 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25626
25627 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25628
25629 * common/config/aarch64/aarch64-common.c
25630 (struct aarch64_option_extension, struct processor_name_to_arch,
25631 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25632 aarch64_contains_opt,
25633 aarch64_get_extension_string_for_isa_flags): Change type of
25634 variables storing flags to uint64_t.
25635 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25636 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25637 * config/aarch64/aarch64.c (struct processor,
25638 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25639 aarch64_validate_march, aarch64_override_options,
25640 aarch64_option_print, aarch64_handle_attr_isa_flags,
25641 aarch64_declare_function_name, aarch64_start_file): Make flag
25642 variables uint64_t.
25643 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25644 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25645 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25646 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25647 * config/aarch64/driver-aarch64.c
25648 (struct aarch64_arch_extension, struct aarch64_core_data,
25649 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25650 flag variables uint64_t.
25651 * doc/invoke.texi: Add documentation for new arguments.
25652
25653 2019-05-22 Richard Biener <rguenther@suse.de>
25654
25655 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25656 rewrite ...
25657 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25658
25659 2019-05-22 Martin Liska <mliska@suse.cz>
25660
25661 PR lto/90500
25662 * doc/extend.texi: Document the change.
25663
25664 2019-05-22 Richard Biener <rguenther@suse.de>
25665
25666 PR tree-optimization/90450
25667 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25668 (mem_ref_hasher::equal): Check it.
25669 (mem_ref_alloc): Initialize it.
25670 (gather_mem_refs_stmt): Set it.
25671
25672 2019-05-22 Richard Biener <rguenther@suse.de>
25673
25674 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25675 Add ABS_EXPR.
25676 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25677 as ABSU_EXPR.
25678
25679 2019-05-22 Alan Modra <amodra@gmail.com>
25680
25681 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25682 (ASM_CPU_SPEC): Conditionally add -many.
25683 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25684 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25685 (rs6000_file_start): ..extracted from here, and modified to
25686 test all ISA bits.
25687 (rs6000_output_function_prologue): Emit .machine as necessary.
25688
25689 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25690
25691 PR middle-end/90553
25692 * ira-lives.c (process_bb_node_lives): Consider defs
25693 for a call insn to be die before the call, not after.
25694
25695 * function.c (assign_parm_setup_block): Raise alignment of
25696 stacked parameter only for STRICT_ALIGNMENT targets.
25697
25698 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25699
25700 * config/rs6000/constraints.md (define_register_constraint "wz"):
25701 Delete.
25702 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25703 RS6000_CONSTRAINT_wz.
25704 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25705 (rs6000_init_hard_regno_mode_ok): Adjust.
25706 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25707 * doc/md.texi (Machine Constraints): Adjust.
25708
25709 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25710
25711 * config/rs6000/constraints.md (define_register_constraint "wl"):
25712 Delete.
25713 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25714 RS6000_CONSTRAINT_wl.
25715 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25716 (rs6000_init_hard_regno_mode_ok): Adjust.
25717 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25718 * doc/md.texi (Machine Constraints): Adjust.
25719
25720 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25721
25722 * config/rs6000/constraints.md (define_register_constraint "wm"):
25723 Delete.
25724 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25725 RS6000_CONSTRAINT_wm.
25726 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25727 (rs6000_init_hard_regno_mode_ok): Adjust.
25728 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25729 * doc/md.texi (Machine Constraints): Adjust.
25730
25731 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25732
25733 * config/rs6000/constraints.md (define_register_constraint "wk"):
25734 Delete.
25735 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25736 RS6000_CONSTRAINT_wk.
25737 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25738 (rs6000_init_hard_regno_mode_ok): Adjust.
25739 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25740 * doc/md.texi (Machine Constraints): Adjust.
25741
25742 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25743
25744 * config/rs6000/constraints.md (define_register_constraint "wj"):
25745 Delete.
25746 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25747 RS6000_CONSTRAINT_wj.
25748 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25749 (rs6000_init_hard_regno_mode_ok): Adjust.
25750 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25751 (VS_64dm): Delete.
25752 * config/rs6000/vsx.md: Ditto.
25753 * doc/md.texi (Machine Constraints): Adjust.
25754
25755 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25756
25757 * config/rs6000/constraints.md (define_register_constraint "wh"):
25758 Delete.
25759 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25760 RS6000_CONSTRAINT_wh.
25761 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25762 (rs6000_init_hard_regno_mode_ok): Adjust.
25763 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
25764 * doc/md.texi (Machine Constraints): Adjust.
25765
25766 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25767
25768 PR target/90547
25769 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25770 Avoid calling gen_lowpart with CONST operand.
25771
25772 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
25773
25774 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
25775 field template_last_to_copy.
25776 (ssa_create_duplicates): Set it, and use it. Attempt to
25777 preserve more debug stmts.
25778
25779 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25780
25781 * config/i386/sse.md (VF1_AVX2): New mode iterator.
25782 (signbit<mode>2): New expander
25783
25784 2019-05-21 James Clarke <jrtc27@jrtc27.com>
25785
25786 PR bootstrap/87338
25787 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
25788 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
25789
25790 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25791
25792 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
25793 %ebx and %ecx bafore calling cpuid with leaf 1 or
25794 non-constant leaf argument.
25795
25796 2019-05-21 Alan Modra <amodra@gmail.com>
25797
25798 PR target/90545
25799 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
25800 power9 direct move cost.
25801
25802 2019-05-21 Richard Biener <rguenther@suse.de>
25803
25804 PR middle-end/90510
25805 * fold-const.c (fold_read_from_vector): New function.
25806 * fold-const.h (fold_read_from_vector): Declare.
25807 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
25808 single-element insert permutations. Canonicalize selector
25809 further and fix issue with last commit.
25810
25811 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25812
25813 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
25814 parameter with default value false to declaration.
25815 (split_edges_for_insertion): New inline function. Wrapper for
25816 split_critical_edges with for_edge_insertion_p = true.
25817 * tree-cfg.c (split_critical_edges): Don't split non-critical
25818 edges if for_edge_insertion_p is false. Fix whitespace.
25819 * tree-ssa-pre.c (pass_pre::execute): Call
25820 split_edges_for_insertion instead of split_critical_edges.
25821 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
25822 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
25823 (pass_data_sink_code): Update function name in the comment.
25824
25825 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25826
25827 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
25828 around is_value_included_in that knows how to handle BIT_AND_EXPR.
25829 (is_pred_expr_subset_of): Use the new function. Handle more cases where
25830 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
25831 positives.
25832
25833 2019-05-21 Martin Liska <mliska@suse.cz>
25834
25835 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
25836 an extra newline.
25837 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
25838 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
25839 vec_lvsr.
25840 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25841 Quote a C type.
25842 (rs6000_function_arg): Likewise.
25843 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
25844 (rs6000_expand_ternop_builtin): Use interval syntax.
25845 (get_element_number): Likewise.
25846 (altivec_expand_builtin): Likewise.
25847 (rs6000_get_function_versions_dispatcher): Quote target_clones.
25848
25849 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25850
25851 PR c++/59813
25852 PR target/90418
25853 * function.h (struct function): Add calls_eh_return member.
25854 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
25855 gimplifying __builtin_eh_return call.
25856 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
25857 to cfun.
25858 (expand_call_inline): Or in src_cfun->calls_eh_return into
25859 dst_cfun->calls_eh_return.
25860 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
25861 cfun->calls_eh_return.
25862 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
25863 * lto-streamer-out.c (output_struct_function_base): Write
25864 calls_eh_return.
25865
25866 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
25867
25868 PR rtl-optimization/43147
25869 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
25870 IX86_BUILTIN_SHUFPD.
25871
25872 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25873
25874 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
25875 (refs_may_alias_p_1): ... here; update stats.
25876 (refs_may_alias_p): Do not update stats here.
25877
25878 2019-05-20 Richard Biener <rguenther@suse.de>
25879
25880 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
25881 doesn't produce pointers.
25882 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
25883 the first operand points to.
25884
25885 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25886
25887 * tree-ssa-alias.c (compare_sizes): New function.
25888 (sompare_type_sizes): New function
25889 (aliasing_component_refs_p): Use it.
25890 (indirect_ref_may_alias_decl_p): Likewise.
25891
25892 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25893
25894 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
25895
25896 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25897
25898 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
25899 (LIBLSAN_EARLY_SPEC): Likewise.
25900 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
25901
25902 2019-05-20 Martin Liska <mliska@suse.cz>
25903
25904 * config/i386/i386.c (ix86_libc_has_fast_function):
25905 Add ATTRIBUTE_UNUSED for the argument.
25906
25907 2019-05-20 Richard Biener <rguenther@suse.de>
25908
25909 * gimple-match-head.c: Include vec-perm-indices.h.
25910 * generic-match-head.c: Likewise.
25911 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
25912 is included.
25913 * fold-const.c (fold_vec_perm): Export.
25914 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
25915 (match.pd): ...here.
25916
25917 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25918
25919 * cfgloop.h (struct loop): Add simdlen member.
25920 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
25921 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
25922 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
25923 as new argument to autovectorize_vector_sizes target hook. If
25924 loop->simdlen, pick up vector size where the vectorization factor
25925 is equal to loop->simd, and if there is none, fall back to the first
25926 successful one.
25927 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
25928 caller.
25929 * omp-low.c (omp_clause_aligned_alignment): Likewise.
25930 * omp-general.c (omp_max_vf): Likewise.
25931 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
25932 * tree-vect-slp.c (vect_slp_bb): Likewise.
25933 * target.def (autovectorize_vector_sizes): Add ALL argument and
25934 document it.
25935 * doc/tm.texi: Adjust documentation.
25936 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
25937 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
25938 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
25939 bool argument.
25940 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
25941 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
25942 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
25943 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
25944 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
25945 preferred vector size is not 512-bit or 256-bit, just put those
25946 unpreferred ones last.
25947
25948 2019-05-20 Martin Liska <mliska@suse.cz>
25949
25950 * targhooks.c (default_libc_has_fast_function): New function.
25951 * targhooks.h (default_libc_has_fast_function): Likewise.
25952
25953 2019-05-20 Martin Liska <mliska@suse.cz>
25954
25955 PR middle-end/90263
25956 * builtins.c (expand_builtin_memory_copy_args): When having a
25957 target with fast mempcpy implementation do now use memcpy.
25958 * config/i386/i386.c (ix86_libc_has_fast_function): New.
25959 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
25960 * doc/tm.texi: Likewise.
25961 * doc/tm.texi.in: Likewise.
25962 * target.def:
25963 * expr.c (emit_block_move_hints): Add 2 new arguments.
25964 * expr.h (emit_block_move_hints): Bail out when libcall
25965 to memcpy would be used.
25966
25967 2019-05-20 Martin Liska <mliska@suse.cz>
25968
25969 * profile-count.c: Add vertical spacing in order
25970 to separate functions.
25971 * profile-count.h: Likewise.
25972
25973 2019-05-20 Martin Liska <mliska@suse.cz>
25974
25975 * profile-count.h: Do not use full qualified
25976 names if possible.
25977 * profile-count.c (profile_count::to_frequency): Likewise.
25978
25979 2019-05-20 Martin Liska <mliska@suse.cz>
25980
25981 * profile-count.h (enum profile_quality): Use capital letters
25982 for enum value names. Use the adjusted names.
25983 * profile-count.c: Use the adjusted names.
25984
25985 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25986
25987 * config/rs6000/constraints.md (define_register_constraint "wH"):
25988 Delete.
25989 (define_register_constraint "wI"): Delete.
25990 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25991 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
25992 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25993 (rs6000_init_hard_regno_mode_ok): Adjust.
25994 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
25995 resp. "d", or with "wa" as appropriate, all with "p8v".
25996 * config/rs6000/vsx.md: Ditto.
25997 * doc/md.texi (Machine Constraints): Adjust.
25998
25999 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26000
26001 * config/rs6000/constraints.md (define_register_constraint "wy"):
26002 Delete.
26003 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26004 RS6000_CONSTRAINT_wy.
26005 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26006 (rs6000_init_hard_regno_mode_ok): Adjust.
26007 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26008 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26009 (define_mode_attr Fisa): New.
26010 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26011 * doc/md.texi (Machine Constraints): Adjust.
26012
26013 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26014
26015 * config/rs6000/constraints.md (define_register_constraint "wu"):
26016 Delete.
26017 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26018 RS6000_CONSTRAINT_wu.
26019 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26020 (rs6000_init_hard_regno_mode_ok): Adjust.
26021 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26022 both with "p8v".
26023 (define_mode_attr Fa): Delete.
26024 * config/rs6000/vsx.md: Ditto.
26025 * doc/md.texi (Machine Constraints): Adjust.
26026
26027 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26028
26029 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26030 Delete.
26031 (define_register_constraint "wK"): Delete.
26032 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26033 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26034 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26035 (rs6000_init_hard_regno_mode_ok): Adjust.
26036 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26037 Replace "wK" constraint by "wH" with "p9v".
26038 * config/rs6000/vsx.md: Ditto.
26039 * doc/md.texi (Machine Constraints): Adjust.
26040
26041 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26042
26043 * config/rs6000/constraints.md (define_register_constraint "wb"):
26044 Delete.
26045 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26046 RS6000_CONSTRAINT_wb.
26047 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26048 (rs6000_init_hard_regno_mode_ok): Adjust.
26049 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26050 * config/rs6000/vsx.md: Ditto.
26051 * doc/md.texi (Machine Constraints): Adjust.
26052
26053 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26054
26055 * config/rs6000/constraints.md (define_register_constraint "wo"):
26056 Delete.
26057 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26058 RS6000_CONSTRAINT_wo.
26059 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26060 (rs6000_init_hard_regno_mode_ok): Adjust.
26061 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26062 * config/rs6000/altivec.md: Ditto.
26063 * doc/md.texi (Machine Constraints): Adjust.
26064
26065 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26066
26067 * config/darwin-c.c (darwin_register_objc_includes): Do not
26068 prepend the sysroot when building gnu-runtime header search
26069 paths.
26070
26071 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26072
26073 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26074 instead of direct output of the asm.
26075
26076 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26077
26078 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26079 argument to be type bool (was int before).
26080 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26081 at first use. Use type bool for some variables. Fix a theoretical
26082 eh_return bug for svr4.
26083
26084 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26085
26086 * config/rs6000/rs6000.md (isa): New attribute.
26087 (enabled): New attribute.
26088
26089 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26090
26091 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26092 assemble_start_function and assemble_end_function.
26093
26094 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26095
26096 PR middle-end/89433
26097 * omp-general.c (oacc_verify_routine_clauses): Change formal
26098 parameters. Add checking if already marked with an OpenACC
26099 'routine' directive. Adjust all users.
26100
26101 PR middle-end/89433
26102 * omp-general.c (oacc_build_routine_dims): Move some of its
26103 processing into...
26104 (oacc_verify_routine_clauses): ... this new function.
26105 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26106
26107 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26108
26109 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26110 formating of picbase labels to match other ports.
26111
26112 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26113
26114 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26115 in the generated code.
26116
26117 2019-05-16 Martin Sebor <msebor@redhat.com>
26118
26119 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26120 identifiers, keywords, operators, and types in diagnostics. Correct
26121 quoting, spelling, and sentence capitalization issues.
26122 (expand_builtin_atomic_is_lock_free): Same.
26123 (fold_builtin_next_arg): Same.
26124 * cfgexpand.c (expand_one_var): Same.
26125 (tree_conflicts_with_clobbers_p): Same.
26126 (expand_asm_stmt): Same.
26127 (verify_loop_structure): Same.
26128 * cgraphunit.c (process_function_and_variable_attributes): Same.
26129 * collect-utils.c (collect_execute): Same.
26130 * collect2.c (maybe_run_lto_and_relink): Same.
26131 (is_lto_object_file): Same.
26132 (scan_prog_file): Same.
26133 * convert.c (convert_to_real_1): Same.
26134 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26135 * except.c (verify_eh_tree): Same.
26136 * gcc.c (execute): Same.
26137 (eval_spec_function): Same.
26138 (run_attempt): Same.
26139 (driver::set_up_specs): Same.
26140 (compare_debug_auxbase_opt_spec_function): Same.
26141 * gcov-tool.c (unlink_gcda_file): Same.
26142 (do_merge): Same.
26143 (do_rewrite): Same.
26144 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26145 * gimplify.c (gimplify_asm_expr): Same.
26146 (gimplify_adjust_omp_clauses): Same.
26147 * hsa-gen.c (gen_hsa_addr_insns): Same.
26148 (gen_hsa_insns_for_load): Same.
26149 (gen_hsa_cmp_insn_from_gimple): Same.
26150 (gen_hsa_insns_for_operation_assignment): Same.
26151 (gen_get_level): Same.
26152 (gen_hsa_alloca): Same.
26153 (omp_simple_builtin::generate): Same.
26154 (gen_hsa_atomic_for_builtin): Same.
26155 (gen_hsa_insns_for_call): Same.
26156 * input.c (dump_location_info): Same.
26157 * ipa-devirt.c (compare_virtual_tables): Same.
26158 * ira.c (ira_setup_eliminable_regset): Same.
26159 * lra-assigns.c (lra_assign): Same.
26160 * lra-constraints.c (lra_constraints): Same.
26161 * lto-streamer-in.c (lto_input_mode_table): Same.
26162 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26163 (merge_and_complain): Same.
26164 (compile_offload_image): Same.
26165 (compile_images_for_offload_targets): Same.
26166 (debug_objcopy): Same.
26167 (run_gcc): Same.
26168 (main): Same.
26169 * opts.c (print_specific_help): Same.
26170 (parse_no_sanitize_attribute): Same.
26171 (print_help): Same.
26172 (handle_param): Same.
26173 * plugin.c (add_new_plugin): Same.
26174 (parse_plugin_arg_opt): Same.
26175 (try_init_one_plugin): Same.
26176 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26177 operators, and types in diagnostics. Correct quoting and spelling
26178 issues.
26179 * read-rtl-function.c (parse_edge_flag_token): Same.
26180 (function_reader::parse_enum_value): Same.
26181 * reg-stack.c (check_asm_stack_operands): Same.
26182 * regcprop.c (validate_value_data): Same.
26183 * sched-rgn.c (make_pass_sched_fusion): Same.
26184 * stmt.c (check_unique_operand_names): Same.
26185 * targhooks.c (default_target_option_pragma_parse): Same.
26186 * tlink.c (recompile_files): Same.
26187 * toplev.c (process_options): Same.
26188 (do_compile): Same.
26189 * trans-mem.c (diagnose_tm_1): Same.
26190 (ipa_tm_scan_irr_block): Same.
26191 (ipa_tm_diagnose_transaction): Same.
26192 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26193 format a tree code name in a diagnostic.
26194 (verify_types_in_gimple_min_lval): Same.
26195 (verify_types_in_gimple_reference): Same.
26196 (verify_gimple_call): Same.
26197 (verify_gimple_assign_unary): Same.
26198 (verify_gimple_assign_binary): Same.
26199 (verify_gimple_assign_ternary): Same.
26200 (verify_gimple_assign_single): Same.
26201 (verify_gimple_switch): Same.
26202 (verify_gimple_label): Same.
26203 (verify_gimple_phi): Same.
26204 (verify_gimple_in_seq): Same.
26205 (verify_eh_throw_stmt_node): Same.
26206 (collect_subblocks): Same.
26207 (gimple_verify_flow_info): Same.
26208 (do_warn_unused_result): Same.
26209 * tree-inline.c (expand_call_inline): Same.
26210 * tree-into-ssa.c (update_ssa): Same.
26211 * tree.c (tree_int_cst_elt_check_failed): Same.
26212 (tree_vec_elt_check_failed): Same.
26213 (omp_clause_operand_check_failed): Same.
26214 (verify_type_variant): Same.
26215 (verify_type): Same.
26216 * value-prof.c (verify_histograms): Same.
26217 * varasm.c (assemble_start_function): Same.
26218
26219 2019-05-16 Martin Sebor <msebor@redhat.com>
26220
26221 * config/i386/i386-expand.c (get_element_number): Quote keywords
26222 and other internal names in diagnostics. Adjust other diagnostic
26223 formatting issues noted by -Wformat-diag.
26224 * config/i386/i386-features.c
26225 (ix86_mangle_function_version_assembler_name): Same.
26226 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26227 * config/i386/i386.c (ix86_function_type_abi): Same.
26228 (ix86_function_ms_hook_prologue): Same.
26229 (classify_argument): Same.
26230 (ix86_expand_prologue): Same.
26231 (ix86_md_asm_adjust): Same.
26232 (ix86_memmodel_check): Same.
26233
26234 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26235
26236 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26237 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26238 and fpxx modes.
26239
26240 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26241
26242 PR target/90497
26243 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26244 intrinsics without SSE/SSE2/SSSE3.
26245 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26246 check.
26247 (*mmx_uavgv8qi3): Likewise.
26248
26249 2019-05-17 Richard Biener <rguenther@suse.de>
26250
26251 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26252 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26253
26254 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26255
26256 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26257 vec_sldw insn pattern.
26258
26259 2019-05-17 Richard Biener <rguenther@suse.de>
26260
26261 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26262
26263 2019-05-17 Martin Liska <mliska@suse.cz>
26264
26265 PR driver/90496
26266 * toplev.c (output_stack_usage): With LTO and sanitizer it
26267 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26268 has no file location.
26269
26270 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26271
26272 PR c++/90484
26273 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26274 sz0 is equal to sz1, instead return false in that case.
26275
26276 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26277 has non-constant expression, force sctx.lane and use two
26278 argument IFN_GOMP_SIMD_LANE instead of single argument.
26279 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26280 two argument IFN_GOMP_SIMD_LANE without lhs.
26281 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26282 member.
26283 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26284 Define.
26285 (LOOP_REQUIRES_VERSIONING): Or in
26286 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26287 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26288 simd_if_cond.
26289 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26290 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26291 from simd if clause if needed.
26292
26293 2019-05-16 Richard Biener <rguenther@suse.de>
26294
26295 * tree-affine.c (expr_to_aff_combination): New function split
26296 out from...
26297 (tree_to_aff_combination): ... here.
26298 (aff_combination_expand): Avoid building a GENERIC tree.
26299
26300 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26301
26302 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26303 assemble_start_function and assemble_end_function calls.
26304 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26305 assemble_start_function and assemble_end_function.
26306 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26307 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26308 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26309 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26310 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26311 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26312 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26313 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26314 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26315 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26316 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26317 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26318 Likewise.
26319 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26320 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26321 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26322 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26323 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26324 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26325 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26326 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26327 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26328 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26329 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26330 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26331 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26332 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26333 Likewise.
26334 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26335 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26336 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26337
26338 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26339
26340 * tree-ssa-alias.c (alias_stats): Add
26341 aliasing_component_refs_p_may_alias and
26342 aliasing_component_refs_p_no_alias.
26343 (dump_alias_stats): Print aliasing_component_refs_p stats.
26344 (aliasing_component_refs_p): Update stats.
26345
26346 2019-05-16 Martin Liska <mliska@suse.cz>
26347
26348 PR lto/90500
26349 * multiple_target.c (expand_target_clones): Do not allow
26350 target_clones being used with a symbol that is an alias.
26351
26352 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26353
26354 PR tree-optimization/90394
26355 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26356 positives rather than ICE for cases where (code2 == NE_EXPR
26357 && code1 == BIT_AND_EXPR).
26358
26359 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26360
26361 PR fortran/90329
26362 * tree-core.h (struct tree_decl_common): Document
26363 decl_nonshareable_flag for PARM_DECLs.
26364 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26365 * calls.c (expand_call): Don't try tail call if caller
26366 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26367 passed on the stack and callee needs to pass any arguments on the
26368 stack.
26369 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26370 else if instead of series of mutually exclusive ifs. Handle
26371 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26372 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26373
26374 * lto-streamer.h (LTO_major_version): Bump to 9.
26375
26376 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26377
26378 PR tree-optimization/90106
26379 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26380 new parameter as new internal function call, also move it to new
26381 basic block.
26382 (use_internal_fn): Pass internal function call to
26383 shrink_wrap_one_built_in_call_with_conds.
26384
26385 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26386
26387 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26388 max_vf to 1.
26389 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26390 safelen_int and set loop->dont_vectorize.
26391
26392 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26393
26394 PR target/89021
26395 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26396 SSE/SSE2/SSSE3.
26397 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26398 Likewise.
26399 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26400 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26401 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26402 is defined.
26403
26404 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26405
26406 PR target/89021
26407 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26408 define_insn_and_split to support SSE emulation.
26409 (*vec_extractv2sf_0): Likewise.
26410 (*vec_extractv2sf_1): Likewise.
26411 (*vec_extractv2si_0): Likewise.
26412 (*vec_extractv2si_1): Likewise.
26413 (*vec_extractv2si_zext_mem): Likewise.
26414 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26415 (vec_extractv2sf_1 splitter): Likewise.
26416 (vec_extractv2sfsf): Likewise.
26417 (vec_setv2si): Likewise.
26418 (vec_extractv2si_1 splitter): Likewise.
26419 (vec_extractv2sisi): Likewise.
26420 (vec_setv4hi): Likewise.
26421 (vec_extractv4hihi): Likewise.
26422 (vec_setv8qi): Likewise.
26423 (vec_extractv8qiqi): Likewise.
26424 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26425 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26426 (vec_extractv2sisi): Likewise.
26427 (vec_extractv4hihi): Likewise.
26428 (vec_extractv8qiqi): Likewise.
26429 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26430 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26431 (vec_initv2sisi): Likewise.
26432 (vec_initv4hihi): Likewise.
26433 (vec_initv8qiqi): Likewise.
26434 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26435 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26436 (vec_setv4hi): Likewise.
26437 (vec_setv8qi): Likewise.
26438
26439 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26440
26441 PR target/89021
26442 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26443 TARGET_MMX_WITH_SSE.
26444 (MMXMODE:*mov<mode>_internal): Likewise.
26445 (MMXMODE:movmisalign<mode>): Likewise.
26446
26447 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26448
26449 PR target/89021
26450 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26451 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26452 (sse2_cvtpd2pi): Ditto.
26453 (sse2_cvttpd2pi): Ditto.
26454 (*vec_concatv2sf_sse4_1): Ditto.
26455 (*vec_concatv2sf_sse): Ditto.
26456 (*vec_concatv2si_sse4_1): Ditto.
26457 (*vec_concatv2si): Ditto.
26458 (*vec_concatv4si_0): Ditto.
26459 (*vec_concatv2di_0): Ditto.
26460
26461 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26462
26463 PR target/89021
26464 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26465
26466 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26467
26468 PR target/89021
26469 * config/i386/sse.md (ssse3_palignrdi): Changed to
26470 define_insn_and_split to support SSE emulation.
26471
26472 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26473
26474 PR target/89021
26475 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26476
26477 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26478
26479 PR target/89021
26480 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26481 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26482 SSE emulation.
26483
26484 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26485
26486 PR target/89021
26487 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26488 or TARGET_MMX_WITH_SSE.
26489 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26490
26491 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26492
26493 PR target/89021
26494 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26495
26496 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26497
26498 PR target/89021
26499 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26500 Changed to define_insn_and_split to support SSE emulation.
26501
26502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26503
26504 PR target/89021
26505 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26506 Changed to define_insn_and_split to support SSE emulation.
26507
26508 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26509
26510 PR target/89021
26511 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26512 (*mmx_<emms>): This.
26513 (mmx_<emms>): New expander.
26514
26515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26516
26517 PR target/89021
26518 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26519 support.
26520 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26521
26522 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26523
26524 PR target/89021
26525 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26526
26527 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26528
26529 PR target/89021
26530 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26531
26532 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26533
26534 PR target/89021
26535 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26536 TARGET_MMX_WITH_SSE.
26537 (*mmx_uavgv4hi3): Add SSE emulation.
26538
26539 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26540
26541 PR target/89021
26542 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26543 and TARGET_MMX_WITH_SSE.
26544 (*mmx_uavgv8qi3): Add SSE emulation.
26545
26546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26547
26548 PR target/89021
26549 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26550 maskmovdqu for __MMX_WITH_SSE__.
26551
26552 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26553
26554 PR target/89021
26555 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26556 TARGET_MMX and TARGET_MMX_WITH_SSE.
26557 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26558
26559 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26560
26561 PR target/89021
26562 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26563 define_insn_and_split to support SSE emulation.
26564
26565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26566
26567 PR target/89021
26568 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26569 and TARGET_MMX_WITH_SSE.
26570 (mmx_<code>v8qi3): Likewise.
26571 (smaxmin:<code>v4hi3): New.
26572 (umaxmin:<code>v8qi3): Likewise.
26573 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26574 (umaxmin:*mmx_<code>v8qi3): Likewise.
26575
26576 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26577
26578 PR target/89021
26579 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26580 TARGET_MMX_WITH_SSE.
26581 (*mmx_pinsrw): Add SSE emulation.
26582
26583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26584
26585 PR target/89021
26586 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26587
26588 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26589
26590 PR target/89021
26591 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26592 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26593 SSE emulation.
26594
26595 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26596
26597 PR target/89021
26598 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26599 (sse_cvttps2pi): Likewise.
26600
26601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26602
26603 PR target/89021
26604 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26605 TARGET_MMX_WITH_SSE.
26606 (mmx_pshufw_1): Add SSE emulation.
26607 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26608 TARGET_MMX_WITH_SSE to support SSE emulation.
26609
26610 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26611
26612 PR target/89021
26613 * config/i386/constraints.md (Yw): New constraint.
26614 * config/i386/mmx.md (*vec_dupv2si): Changed to
26615 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26616 support SSE emulation.
26617
26618 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26619
26620 PR target/89021
26621 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26622 TARGET_MMX_WITH_SSE.
26623 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26624 support.
26625 (mmx_gt<mode>3): Likewise.
26626
26627 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26628
26629 PR target/89021
26630 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26631 TARGET_MMX_WITH_SSE. Add SSE support.
26632
26633 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26634
26635 PR target/89021
26636 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26637 TARGET_MMX_WITH_SSE.
26638 (any_logic:<code><mode>3): New.
26639 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26640 Add SSE support.
26641
26642 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26643
26644 PR target/89021
26645 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26646 TARGET_MMX_WITH_SSE. Add SSE emulation.
26647 (mmx_<shift_insn><mode>3): Likewise.
26648 (ashr<mode>3): New.
26649 (<shift_insn><mode>3): Likewise.
26650
26651 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26652
26653 PR target/89021
26654 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26655 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26656
26657 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26658
26659 PR target/89021
26660 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26661 TARGET_MMX_WITH_SSE.
26662 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26663 SSE support.
26664
26665 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26666
26667 PR target/89021
26668 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26669 TARGET_MMX_WITH_SSE.
26670 (mulv4hi3): New.
26671 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26672 support.
26673
26674 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26675
26676 PR target/89021
26677 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26678 (plusminus:mmx_<plusminus_insn><mode>3): Check
26679 TARGET_MMX_WITH_SSE.
26680 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26681 (<plusminus_insn><mode>3): New.
26682 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26683 (*mmx_<plusminus_insn><mode>3): Likewise.
26684
26685 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26686
26687 PR target/89021
26688 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26689 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26690 prototype.
26691 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26692 define_insn_and_split to support SSE emulation.
26693 (mmx_punpcklbw): Likewise.
26694 (mmx_punpckhwd): Likewise.
26695 (mmx_punpcklwd): Likewise.
26696 (mmx_punpckhdq): Likewise.
26697 (mmx_punpckldq): Likewise.
26698
26699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26700 Uros Bizjak <ubizjak@gmail.com>
26701
26702 PR target/89021
26703 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26704 New function.
26705 (ix86_split_mmx_pack): Likewise.
26706 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26707 New prototype.
26708 (ix86_split_mmx_pack): Likewise.
26709 * config/i386/i386.md (mmx_isa): New.
26710 (enabled): Also check mmx_isa.
26711 * config/i386/mmx.md (any_s_truncate): New code iterator.
26712 (s_trunsuffix): New code attr.
26713 (mmx_packsswb): Removed.
26714 (mmx_packssdw): Likewise.
26715 (mmx_packuswb): Likewise.
26716 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26717 MMX packsswb/packuswb with SSE2.
26718 (mmx_packssdw): Likewise.
26719 * config/i386/predicates.md (register_mmxmem_operand): New.
26720
26721 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26722
26723 PR target/89021
26724 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26725 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26726 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26727 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26728 (ix86_vector_mode_supported_p): Likewise.
26729 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26730
26731 2019-05-15 Martin Liska <mliska@suse.cz>
26732
26733 PR middle-end/90478
26734 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26735 Check for overflow.
26736
26737 2019-05-15 Richard Biener <rguenther@suse.de>
26738
26739 * tree-into-ssa.c (pass_build_ssa::execute): Run
26740 update_address_taken before going into SSA.
26741
26742 2019-05-15 Richard Biener <rguenther@suse.de>
26743
26744 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26745 as __BIT_FIELD_REF with type with -gimple.
26746
26747 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
26748
26749 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26750 semantically equivalent branches (left over after prior refactorings).
26751
26752 2019-05-15 Richard Biener <rguenther@suse.de>
26753
26754 PR tree-optimization/88828
26755 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
26756 bogus check.
26757
26758 2019-05-14 Richard Biener <rguenther@suse.de>
26759
26760 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
26761 as __VIEW_CONVERT with -gimple.
26762
26763 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26764
26765 PR target/82920
26766 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
26767 Darwin.
26768
26769 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26770
26771 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
26772 define_split to become a define_insn_and_split.
26773
26774 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26775
26776 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
26777 arguments.
26778 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
26779 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
26780 (sibcall_epilogue): Adjust.
26781 (epilogue): Adjust.
26782
26783 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26784
26785 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
26786 to unsupported ones.
26787 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
26788 * config.host: Likewise.
26789 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
26790 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
26791 __svr4__]: Remove "brand" fallback.
26792 [!KSTAT_DATA_STRING]: Remove.
26793 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
26794 to *-*-solaris2*.
26795 (comdat_group): Likewise.
26796 (set_have_as_tls): Likewise.
26797 (gcc_cv_target_dl_iterate_phdr): Likewise.
26798 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
26799 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
26800 * configure: Regenerate.
26801 * doc/install.texi: Simplify Solaris target triplets.
26802 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
26803 (Specific, *-*-solaris2*): Document Solaris 10 removal.
26804 Remove Solaris 10 references.
26805 Remove obsolete Solaris bug reference.
26806 (Specific, sparc-sun-solaris2.10): Remove.
26807
26808 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
26809
26810 * config/i386/i386.md (any_div): New code iterator.
26811 (paired_mod): New code attribute.
26812 (sgnprefix): Handle DIV and UDIV RTXes.
26813 (u): Ditto.
26814 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
26815 and udivmod<mode>4 patterns using any_div code iterator.
26816 (divmod splitters): Macroize splitters using any_div code iterator.
26817 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
26818 (*udivmodsi4_pow2_zext_2): Ditto.
26819 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
26820 and *udivmod<mode>4_noext patterns using any_div code iterator.
26821 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
26822 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
26823 patterns using any_div code iterator.
26824 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
26825 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
26826 patterns using any_div code iterator.
26827 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
26828 udivmodhiqi3 patterns using any_extend code iterator.
26829
26830 2019-05-14 Richard Biener <rguenther@suse.de>
26831 H.J. Lu <hongjiu.lu@intel.com>
26832
26833 PR tree-optimization/88828
26834 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
26835 permuting in a single non-constant element not extracted
26836 from a vector.
26837
26838 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
26839
26840 * internal-fn.def (SIGNBIT): New.
26841 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
26842 defined.
26843 (signbitv4sf2): Likewise.
26844
26845 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
26846
26847 PR target/90357
26848 * config/mips/mips.c (mips_split_move): Skip forward SRC into
26849 next insn when the SRC reg is dead.
26850
26851 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
26852
26853 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
26854 (alloc_cand_and_find_basis): Ditto.
26855 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
26856 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
26857 (create_add_imm_cand, slsr_process_cast): Ditto.
26858 (slsr_process_copy, replace_mult_candidate): Ditto.
26859 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
26860 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
26861 (pass_strength_reduction::execute): Init the first NULL element.
26862
26863 2019-05-13 Nathan Sidwell <nathan@acm.org>
26864
26865 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
26866 (run_attempt): Reformat line break.
26867
26868 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
26869
26870 PR target/90418
26871 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
26872 data registers in sibcall epilogues.
26873 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26874
26875 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
26876
26877 PR target/89221
26878 * configure.ac (--enable-frame-pointer):
26879 Disable by default for cygwin and mingw.
26880 * configure: Regenerate.
26881
26882 2019-05-13 Nathan Sidwell <nathan@acm.org>
26883
26884 * dwarf2out.c (breakout_comdat_types): Move comment to correct
26885 piece of code.
26886 (const_ok_for_output_1): Balance parens around #if/#else/#endif
26887 (gen_member_die): Move abstract origin check earlier. Only VARs
26888 can be static_inline_p. Simplify splicing control flow.
26889
26890 2019-05-13 Richard Biener <rguenther@suse.de>
26891
26892 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
26893 VIEW_CONVERT_EXPR.
26894 (vect_build_slp_tree_1): Likewise.
26895
26896 2019-05-13 Richard Biener <rguenther@suse.de>
26897
26898 PR tree-optimization/90402
26899 * tree-if-conv.c (tree_if_conversion): Value number only
26900 the loop body by making the latch an exit of the region
26901 as well.
26902 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
26903 processing PHIs.
26904 (do_rpo_vn): Deal with multiple edges into the entry block
26905 that are not backedges inside the region by skipping PHIs
26906 of the entry block.
26907
26908 2019-05-13 Richard Biener <rguenther@suse.de>
26909
26910 PR tree-optimization/90316
26911 * tree-ssa-pre.c (insert_aux): Fold into ...
26912 (insert): ... this function. Use a RPO walk to reduce the
26913 number of required iterations.
26914
26915 2019-05-13 Martin Liska <mliska@suse.cz>
26916
26917 PR tree-optimization/90416
26918 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
26919 string instead of passing the second part as va_arg argument.
26920
26921 2019-05-13 Martin Liska <mliska@suse.cz>
26922
26923 PR gcov-profile/90380
26924 * gcov.c (handle_cycle): Do not support zero cycle count,
26925 it should not be possible.
26926 (path_contains_zero_cycle_arc): New function.
26927 (circuit): Ignore zero cycle arc counts.
26928
26929 2019-05-13 Martin Liska <mliska@suse.cz>
26930
26931 PR gcov-profile/90380
26932 * gcov.c (enum loop_type): Remove the enum and
26933 the operator.
26934 (handle_cycle): Assert that we should not reach
26935 a negative count.
26936 (circuit): Use loop_found instead of a tri-state loop_type.
26937 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
26938 happen.
26939
26940 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26941
26942 PR target/82920
26943 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
26944 (ix86_output_indirect_branch_via_reg): Use output mechanism
26945 accounting for __USER_LABEL_PREFIX__.
26946 (ix86_output_indirect_branch_via_push): Likewise.
26947 (ix86_output_function_return): Likewise.
26948 (ix86_output_indirect_function_return): Likewise.
26949
26950 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
26951
26952 * doc/md.texi: Document use of code attributes in rtx patterns.
26953 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
26954 * read-rtl.c (find_code): Split out search loops into...
26955 (maybe_find_code): ...this new function.
26956 (check_code_iterator): Make the error message more informative.
26957 (check_code_attribute): New function.
26958 (rtx_reader::rtx_alloc_for_name): Likewise.
26959 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
26960 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
26961 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
26962 <max_opp> directly as an rtx code instead of via a match_operator.
26963 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
26964 (<su>abd<mode>_3): Update accordingly.
26965
26966 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26967
26968 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
26969 is given, print the state of the EH "save world" computation for
26970 Darwin.
26971
26972 2019-05-11 Jakub Jelinek <jakub@redhat.com>
26973
26974 PR c++/59813
26975 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
26976 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26977
26978 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
26979
26980 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
26981 Use pinsrd for TARGET_SSE4_1.
26982 * config/i386/sse.md (movdi_to_sse): Ditto.
26983
26984 2019-05-10 Richard Biener <rguenther@suse.de>
26985
26986 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
26987 (do_rpo_vn): Initialize next_value_id.
26988
26989 2019-05-10 Martin Liska <mliska@suse.cz>
26990
26991 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26992 Fix plural form.
26993
26994 2019-05-10 Jakub Jelinek <jakub@redhat.com>
26995
26996 PR tree-optimization/90385
26997 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
26998 arguments of the exit phis.
26999
27000 PR c++/90383
27001 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27002 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27003 id->do_not_fold.
27004 (copy_tree_body_r): Likewise.
27005 (copy_fn): Set id.do_not_fold to true.
27006
27007 2019-05-10 Martin Liska <mliska@suse.cz>
27008
27009 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27010 Reapply changes from r269790.
27011
27012 2019-05-10 Martin Liska <mliska@suse.cz>
27013
27014 PR middle-end/90340
27015 * doc/invoke.texi: New params.
27016 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27017 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27018 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27019 Use it.
27020 * tree-switch-conversion.h (struct jump_table_cluster):
27021 Likewise.
27022
27023 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27024
27025 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27026
27027 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27028
27029 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27030
27031 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27032
27033 PR rtl-optimization/88879
27034 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27035
27036 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27037
27038 PR target/90405
27039 * config/arm/arm.c (callee_saved_reg_p): Move before
27040 thumb_find_work_register.
27041 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27042 thumb_find_work_register. Only call df_get_live_out once.
27043 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27044 (thumb_find_work_register): Use
27045 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27046 algorithms to locate a spare call clobbered reg.
27047
27048 2019-05-09 Martin Liska <mliska@suse.cz>
27049
27050 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27051 and MAX_EXPR in GIMPLE FE format.
27052
27053 2019-05-09 Martin Liska <mliska@suse.cz>
27054
27055 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27056 * gimple-pretty-print.c (dump_gimple_bb_header):
27057 Dump BB count.
27058 (pp_cfg_jump): Dump edge probability.
27059 * profile-count.c (profile_quality_as_string): Simplify
27060 with a static array.
27061 (parse_profile_quality): New function.
27062 (profile_count::dump): Simplify with a static array.
27063 (profile_count::from_gcov_type): Add new argument.
27064 * profile-count.h (parse_profile_quality): Likewise.
27065 * predict.h (set_hot_bb_threshold): New.
27066 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27067 New param.
27068 * predict.c (get_hot_bb_threshold): Set from the new param.
27069 (set_hot_bb_threshold): New.
27070
27071 2019-05-09 Richard Biener <rguenther@suse.de>
27072
27073 PR tree-optimization/90395
27074 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27075 rewrite vector stores that throw internally.
27076
27077 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27078
27079 * cif-code.def (CHKP): Remove.
27080
27081 PR target/89221
27082 * configure.ac (--enable-frame-pointer): Disable by default for
27083 GNU systems.
27084 * configure: Regenerate.
27085
27086 2019-05-09 Alan Modra <amodra@gmail.com>
27087
27088 PR target/89271
27089 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27090 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27091 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27092 cost for general <-> vsx when direct moves are available.
27093 Cost union classes at minimal cost for any reg in the class.
27094 Correct calculation for moves between vsx, float, and altivec.
27095 Don't return a low cost for moves between special regs. Don't
27096 use hard coded register numbers.
27097 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27098 (rs6000_ira_change_pseudo_allocno_class): New function.
27099 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27100 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27101 alternatives.
27102 (movsi_internal1): Don't disparage vector alternatives.
27103 (mov<mode>_internal): Likewise, excepting alternative that
27104 will be split.
27105 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27106 we <- b alternative.
27107
27108 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27109
27110 PR c++/59813
27111 PR tree-optimization/89060
27112 * tree-ssa-live.h (live_vars_map): New typedef.
27113 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27114 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27115 (struct compute_live_vars_data): New type.
27116 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27117 live_vars_at_stmt, destroy_live_vars): New functions.
27118 * tree-tailcall.c: Include tree-ssa-live.h.
27119 (live_vars, live_vars_vec): New global variables.
27120 (find_tail_calls): Perform variable life analysis before punting.
27121 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27122 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27123 member.
27124 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27125 Perform variable life analysis to select variables that really need
27126 clobbers added.
27127 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27128 instead set id->eh_landing_pad_dest and assert it is the same.
27129 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27130
27131 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27132 Richard Earnshaw <rearnsha@arm.com>
27133
27134 PR target/88167
27135 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27136 function.
27137 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27138 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27139 register if both the epilogue and prologue can use call-clobbered
27140 regs.
27141 (thumb1_unexpanded_epilogue): Use
27142 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27143 picking temporaries for restoring high regs to match that of the
27144 prologue where possible.
27145 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27146 the list of work registers. Detect if the return address is still live
27147 at the end of the prologue and avoid using it for a work register if so.
27148 If the return address is not live, add LR to the list of pushable regs
27149 after the first pass.
27150
27151 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27152
27153 PR tree-optimization/90078
27154 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27155 (INFTY): Increase the value for infinite cost.
27156 (struct comp_cost): Promote type of members to int64_t.
27157 (infinite_cost): Don't set complexity in initialization.
27158 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27159 overflows to infinite_cost.
27160 (adjust_setup_cost): Promote type of parameter and cost computation
27161 to int64_t.
27162 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27163 int64_t.
27164 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27165 cost computation to int64_t.
27166 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27167 int64_t's format specifier in dump.
27168
27169 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27170
27171 PR tree-optimization/90240
27172 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27173 with respect to scaling factor pre-computed for each basic block.
27174 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27175 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27176 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27177 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27178 live range for array of loop's basic blocks. Cleanup aux field of
27179 loop's basic blocks.
27180
27181 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27182
27183 PR tree-optimization/90356
27184 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27185
27186 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27187
27188 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27189 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27190 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27191 (ix86_handle_option): Handle -mavx512bf16.
27192 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27193 to extra_headers.
27194 * config/i386/avx512bf16vlintrin.h: New.
27195 * config/i386/avx512bf16intrin.h: New.
27196 * config/i386/cpuid.h (bit_AVX512BF16): New.
27197 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27198 * config/i386/i386-builtin-types.def: Add new types.
27199 * config/i386/i386-builtin.def: Add new builtins.
27200 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27201 __AVX512BF16__.
27202 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27203 (ix86_option_override_internal): Handle BF16.
27204 (ix86_valid_target_attribute_inner_p): Ditto.
27205 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27206 * config/i386/i386-builtin.c (enum processor_features): Add
27207 F_AVX512BF16.
27208 (static const _isa_names_table isa_names_table): Ditto.
27209 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27210 (PTA_AVX512BF16): Ditto.
27211 * config/i386/i386.opt: Add -mavx512bf16.
27212 * config/i386/immintrin.h: Include avx512bf16intrin.h
27213 and avx512bf16vlintrin.h.
27214 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27215 avx512f_cvtneps2bf16_<mode><mask_name>,
27216 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27217 * config/i386/subst.md (mask_half): Add new subst.
27218 * doc/invoke.texi: Document -mavx512bf16.
27219
27220 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27221
27222 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27223 Delete declaration.
27224 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27225 (rs6000_debug_legitimize_reload_address): Delete.
27226 (rs6000_legitimize_reload_address_ptr): Delete.
27227 (rs6000_option_override_internal): Adjust.
27228 (mem_operand_gpr): Adjust comment.
27229 (legitimate_lo_sum_address_p): Ditto.
27230 (rs6000_legitimize_reload_address): Delete.
27231 (rs6000_debug_legitimize_reload_address): Delete.
27232 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27233
27234 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27235
27236 PR target/89765
27237 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27238 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27239 to compute vector element selector for both constant and variable
27240 operands.
27241
27242 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27243
27244 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27245 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27246 ashrdi3_cvt using SWI48 mode iterator.
27247
27248 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27249
27250 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27251 (aarch64_<su>abd<mode>_3): Likewise.
27252 (*aarch64_<su>abd<mode>_3): New define_insn.
27253 (<sur>sad<vsi2qi>): New define_expand.
27254 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27255 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27256 (build_vect_cond_expr): Likewise.
27257
27258 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27259
27260 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27261 clobbers outside of accessible_reg_set.
27262 * config/i386/i386.c (ix86_conditional_register_usage):
27263 Disable register sets by clearing corresponding bits in
27264 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27265 call_used_regs and don't clear corresponding reg_names array members.
27266
27267 2019-05-07 Richard Biener <rguenther@suse.de>
27268
27269 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27270 not specified still compute a comp_vectype for invariant
27271 compares.
27272
27273 2019-05-07 Richard Biener <rguenther@suse.de>
27274
27275 PR tree-optimization/90316
27276 * tree-ssa-pre.c (translate_vuse_through_block): When
27277 same_valid is NULL do not bother to search for a virtual
27278 PHI continuation.
27279 (phi_translate_1): When operands changed we cannot keep
27280 the same value-number so do not bother to ask whether
27281 that's possible from translate_vuse_through_block.
27282
27283 2019-05-07 Martin Liska <mliska@suse.cz>
27284
27285 * bitmap.c (bitmap_register): Come up with
27286 alloc_descriptor_max_uid and assign it for
27287 a new bitmap.
27288 (register_overhead): Use get_descriptor as
27289 a descriptor.
27290 (release_overhead): New.
27291 (bitmap_elem_to_freelist): Call it.
27292 (bitmap_elt_clear_from): Likewise.
27293 (bitmap_obstack_free): Likewise.
27294 (bitmap_move): Sensitively release memory.
27295 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27296 (bitmap_initialize): Initialize alloc_descriptor to zero.
27297 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27298
27299 2019-05-07 Richard Biener <rguenther@suse.de>
27300
27301 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27302 we build a SLP node. Remove max_size and limiting.
27303 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27304
27305 2019-05-07 Richard Biener <rguenther@suse.de>
27306
27307 PR tree-optimization/90316
27308 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27309 limit by reference.
27310 (walk_non_aliased_vuses): Take walking limit argument.
27311 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27312 walking if it is reached instead of just counting.
27313 (get_continuation_for_phi): Likewise.
27314 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27315 limiting to the callback.
27316 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27317 (vn_reference_lookup_3): Likewise.
27318 (vn_reference_lookup_pieces): Likewise.
27319 (vn_reference_lookup): Likewise.
27320 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27321 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27322 (avail_exprs_stack::lookup_avail_expr): Likewise.
27323
27324 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27325
27326 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27327 for comparaible types in the second direction even if first one
27328 hits incomparable type.
27329
27330 2019-05-07 Richard Biener <rguenther@suse.de>
27331
27332 PR lto/90369
27333 * lto-wrapper.c (debug_objcopy): Use the original filename
27334 including archive offset for the filename used for -save-temps.
27335
27336 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27337
27338 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27339 detection.
27340
27341 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27342 Hongtao Liu <hongtao.liu@intel.com>
27343
27344 PR target/89750
27345 PR target/86444
27346 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27347 Modified, original implementation isn't correct.
27348
27349 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27350
27351 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27352 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27353 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27354 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27355 (FRAME_POINTER_REGNUM): Change numbering.
27356 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27357 (alt_reg_names): Adjust.
27358 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27359 fixed.
27360 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27361 (DWARF_FRAME_REGISTERS): Delete.
27362 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27363 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27364 Adjust.
27365 (REG_ALLOC_ORDER): Adjust.
27366 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27367 (REG_CLASS_CONTENTS): Adjust.
27368 (RETURN_ADDR_RTX): Change comment.
27369 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27370 instead of 67.
27371 (REGISTER_NAMES): Adjust.
27372 (ADDITIONAL_REGISTER_NAMES): Adjust.
27373 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27374
27375 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27376
27377 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27378 Delete.
27379 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27380 (DWARF_FRAME_REGISTERS): Adjust.
27381 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27382 Adjust.
27383 (REG_ALLOC_ORDER): Adjust.
27384 (enum reg_class): Delete SPR_REGS.
27385 (REG_CLASS_NAMES): Delete SPR_REGS.
27386 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27387 (REGISTER_NAMES): Adjust.
27388 (ADDITIONAL_REGISTER_NAMES): Adjust.
27389 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27390 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27391 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27392 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27393 (htm_spr_regno): Delete.
27394 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27395 argument.
27396 (rs6000_dbx_register_number): Adjust.
27397
27398 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27399
27400 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27401
27402 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27403
27404 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27405 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27406
27407 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27408
27409 PR tree-optimization/88709
27410 PR tree-optimization/90271
27411 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27412 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27413 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27414 variable.
27415 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27416 of the store merging group is larger than
27417 PARAM_STORE_MERGING_MAX_SIZE parameter.
27418 (split_group): Add bzero_first argument. If set, always emit first
27419 the first store which must be = {} of the whole area and then for the
27420 rest of the stores consider all zero bytes as paddings.
27421 (imm_store_chain_info::output_merged_store): Check if first store
27422 is = {} of the whole area and if yes, determine which setting of
27423 bzero_first for split_group gives smaller number of stores. Adjust
27424 split_group callers.
27425 (lhs_valid_for_store_merging_p): Allow decls.
27426 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27427 no elts.
27428 (pass_store_merging::process_store): Likewise.
27429
27430 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27431
27432 PR target/89424
27433 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27434 handling of V1TImode.
27435
27436 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27437
27438 PR target/89221
27439 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27440 and enable_frame_pointer ...
27441 * configure.ac: ... here. Update help strings for
27442 --enable-frame-pointer.
27443 * configure: Regenerate.
27444 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27445 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27446 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27447 (USE_X86_64_FRAME_POINTER): Ditto.
27448
27449 2019-05-06 Martin Liska <mliska@suse.cz>
27450
27451 * config.gcc: Append to target_gtfiles and fix indentation.
27452
27453 2019-05-06 Richard Biener <rguenther@suse.de>
27454
27455 PR tree-optimization/90358
27456 * tree-vect-stmts.c (get_group_load_store_type): Properly
27457 detect unused upper half of load.
27458 (vectorizable_load): Likewise.
27459
27460 2019-05-06 Richard Biener <rguenther@suse.de>
27461
27462 PR tree-optimization/88828
27463 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27464 (simplify_vector_constructor): ...here. Handle constants in
27465 the constructor.
27466
27467 2019-05-06 Richard Biener <rguenther@suse.de>
27468
27469 PR tree-optimization/90328
27470 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27471 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27472 is valid in the loop nest before using it.
27473 (initialize_data_dependence_relation): Adjust.
27474 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27475 loop as loop-nest to dr_may_alias_p.
27476
27477 2019-05-06 Richard Biener <rguenther@suse.de>
27478
27479 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27480
27481 2019-05-06 Richard Biener <rguenther@suse.de>
27482
27483 PR tree-optimization/90316
27484 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27485 compute target on demand.
27486 (get_continuation_for_phi): Remove code walking stmts to
27487 get to a target virtual operand which could end up being
27488 quadratic.
27489
27490 2019-05-06 Martin Liska <mliska@suse.cz>
27491
27492 PR sanitizer/90312
27493 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27494 when -mabi is selected to a non-default version.
27495
27496 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27497 Martin Liska <mliska@suse.cz>
27498
27499 * Makefile.in: Add lto-dump.texi.
27500 * cgraph.h: Add new functions get_visibility_string and
27501 get_symtab_type_string.
27502 * doc/gcc.texi: Include lto-dump section.
27503 * doc/lto-dump.texi: New file.
27504 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27505 (parse_dump_option): Factor out this function.
27506 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27507 (parse_dump_option): Export the function.
27508 * symtab.c (symtab_node::get_visibility_string): New function.
27509 (symtab_node::get_symtab_type_string): Likewise.
27510
27511 2019-05-06 Martin Liska <mliska@suse.cz>
27512
27513 * config/i386/i386-builtins.c: New file.
27514 * config/i386/i386-builtins.h: New file.
27515 * config/i386/i386-expand.c: New file.
27516 * config/i386/i386-expand.h: New file.
27517 * config/i386/i386-features.c: New file.
27518 * config/i386/i386-features.h: New file.
27519 * config/i386/i386-options.c: New file.
27520 * config/i386/i386-options.h: New file.
27521 * config.gcc: Add new files into extra_objs and
27522 target_gtfiles.
27523 * config/i386/i386.c: Split content of the file
27524 into newly introduced files.
27525 * config/i386/i386.h: Declare common variables
27526 and macros.
27527 * config/i386/t-i386: Define dependencies for new files.
27528
27529 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27530
27531 PR target/89400
27532 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27533 Restrict 'all' variant to 32-bit configurations.
27534 (unaligned_loadhiu): Likewise.
27535 (unaligned_storehi): Likewise.
27536 (unaligned_storesi): Likewise.
27537 (unaligned_loadhis): Disable when compiling for thumb1.
27538
27539 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27540
27541 PR tree-optimization/90269
27542 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27543 Ignore clobbers.
27544
27545 2019-05-03 Martin Liska <mliska@suse.cz>
27546
27547 * hash-map.h: Add is_empty function.
27548 * hash-set.h: Likewise.
27549 * hash-table.h: Likewise.
27550 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27551 elements () == 0 (and similar usages).
27552 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27553 * gimplify.c (gimplify_bind_expr): Likewise.
27554 (gimplify_switch_expr): Likewise.
27555 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27556 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27557 * postreload-gcse.c (dump_hash_table): Likewise.
27558 (gcse_after_reload_main): Likewise.
27559 * predict.c (combine_predictions_for_bb): Likewise.
27560 * tree-parloops.c (reduction_phi): Likewise.
27561 (separate_decls_in_region): Likewise.
27562 (transform_to_exit_first_loop): Likewise.
27563 (gen_parallel_loop): Likewise.
27564 (gather_scalar_reductions): Likewise.
27565 (try_create_reduction_list): Likewise.
27566 * var-tracking.c (dump_vars): Likewise.
27567 (emit_notes_for_changes): Likewise.
27568 (vt_emit_notes): Likewise.
27569
27570 2019-05-03 Richard Biener <rguenther@suse.de>
27571
27572 PR tree-optimization/90316
27573 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27574 before running VN.
27575
27576 2019-05-03 Richard Biener <rguenther@suse.de>
27577
27578 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27579 peeling for gaps by loading only lower halves of vectors
27580 if possible.
27581 (vectorizable_load): Likewise.
27582
27583 2019-05-03 Richard Biener <rguenther@suse.de>
27584
27585 PR middle-end/89518
27586 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27587
27588 2019-05-03 Richard Biener <rguenther@suse.de>
27589
27590 PR middle-end/87314
27591 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27592 Handle STRING_CST vs DECL or STRING_CST.
27593
27594 2019-05-03 Richard Biener <rguenther@suse.de>
27595
27596 PR tree-optimization/88963
27597 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27598 vector loads feeding only BIT_FIELD_REFs to component
27599 loads. Rewrite stores fed by CONSTRUCTORs to component
27600 stores.
27601
27602 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27603
27604 * opts.h (finish_options): Remove lang_mask argument.
27605 (print_help, help_option_argument): Declare.
27606 * opts.c (print_help): Remove forward declaration, no longer static.
27607 (finish_options): Remove lang_mask argument, don't call print_help
27608 here.
27609 * opts-global.c (decode_options): Adjust finish_option caller, call
27610 print_help here.
27611
27612 PR tree-optimization/90303
27613 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27614 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27615
27616 2019-05-03 Richard Biener <rguenther@suse.de>
27617
27618 PR tree-optimization/89698
27619 * gimple-fold.c (canonicalize_constructor_val): Early out
27620 for constants, handle unfolded INTEGER_CSTs as they appear in
27621 C++ virtual table ctors.
27622
27623 2019-05-03 Richard Biener <rguenther@suse.de>
27624
27625 * passes.c (execute_function_todo): Remove dead code.
27626
27627 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27628
27629 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27630 the internal register number, for any "real" register.
27631
27632 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27633
27634 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27635 correct numbers for TFHAR, TFIAR, TEXASR.
27636
27637 2019-05-02 Richard Biener <rguenther@suse.de>
27638
27639 PR tree-optimization/89653
27640 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27641 update-address-taken before the pass.
27642 * passes.def (pass_tree_loop_init): Put comment before it.
27643
27644 2019-05-02 Richard Biener <rguenther@suse.de>
27645
27646 PR tree-optimization/89509
27647 * tree-ssa-structalias.c (compute_dependence_clique): Look
27648 at the first subvar when determining whether it is restrict.
27649
27650 2019-05-02 Richard Biener <rguenther@suse.de>
27651
27652 PR tree-optimization/90273
27653 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27654 useless debug stmts.
27655
27656 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27657
27658 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27659 ACLE branch.
27660 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27661 SVE ACLE branch.
27662 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27663 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27664 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27665 (vectorizable_reduction): Use the functions above to vectorize in a
27666 fully masked loop codes that don't have a conditional internal
27667 function.
27668
27669 2019-05-02 Martin Liska <mliska@suse.cz>
27670
27671 * cgraphclones.c: Call valid_attribute_p with 1 for
27672 target_clone.
27673 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27674 it's for target attribute.
27675 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27676 Add new boolean argument.
27677 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27678 Likewise.
27679 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27680 to ix86_valid_target_attribute_inner_p.
27681 (ix86_valid_target_attribute_p): Pass flags argument to
27682 ix86_valid_target_attribute_inner_p.
27683 (get_builtin_code_for_version): Use 0 as it's target attribute.
27684
27685 2019-05-02 Martin Liska <mliska@suse.cz>
27686
27687 * gcc.c (process_command): Add dummy file only
27688 if n_infiles == 0.
27689 * opts-global.c (decode_options): Pass lang_mask.
27690 * opts.c (print_help): New function.
27691 (finish_options): Print --help if help_option_argument
27692 is set.
27693 (common_handle_option): Factor out content of OPT__help_
27694 into print_help.
27695 * opts.h (finish_options): Add new argument.
27696
27697 2019-05-02 Martin Liska <mliska@suse.cz>
27698
27699 PR target/88809
27700 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27701 With -minline-all-stringops use inline expansion using 4B loop.
27702 * doc/invoke.texi: Document the change of
27703 -minline-all-stringops.
27704
27705 2019-05-01 Jeff Law <law@redhat.com>
27706
27707 PR tree-optimization/88797
27708 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27709 PHI feeds a conditional on the RHS of an assignment.
27710
27711 2019-04-30 Andrew Waterman <andrew@sifive.com>
27712 Jim Wilson <jimw@sifive.com>
27713
27714 * config/riscv/constraints.md (L): New.
27715 * config/riscv/predicates.md (lui_operand): New.
27716 (sfb_alu_operand): New.
27717 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27718 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27719 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27720 * config/riscv/risc.md (type): Add sfb_alu.
27721 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
27722 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
27723 (branch_zero<mode>): Delete.
27724 (mov<mode>cc): New.
27725 (mov<GPR:mode><X:mode>cc): Likewise.
27726 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
27727
27728 2019-04-30 Nathan Sidwell <nathan@acm.org>
27729
27730 * tree.h (MARK_TS_EXP): New.
27731
27732 2019-04-30 Martin Liska <mliska@suse.cz>
27733
27734 * opts.c (enable_warning_as_error): Provide hints
27735 for unknown options.
27736
27737 2019-04-30 Martin Liska <mliska@suse.cz>
27738
27739 PR debug/90288
27740 * doc/invoke.texi: Add missing dash for gas-locview-support
27741 and gno-as-locview-support.
27742
27743 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27744
27745 PR target/89093
27746 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27747 whitespace at the start of target attribute string.
27748
27749 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27750
27751 PR target/86538
27752 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27753 Define __ARM_FEATURE_ATOMICS.
27754
27755 2019-04-30 Martin Liska <mliska@suse.cz>
27756
27757 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
27758 into built_in_function enum. Remove code for endp == 2 and
27759 use BUILT_IN_* constants.
27760 (gimple_fold_builtin): Call the function with fcode.
27761
27762 2019-04-30 Martin Liska <mliska@suse.cz>
27763
27764 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
27765 DECL_FUNCTION_CODE into ix86_builtins enum before
27766 the switch statement.
27767
27768 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27769
27770 PR tree-optimization/89475
27771 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
27772 calls.
27773
27774 2019-04-30 Martin Liska <mliska@suse.cz>
27775
27776 PR translation/90274
27777 * opts.c (print_filtered_help): Wrap string in _(...).
27778
27779 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
27780
27781 PR tree-optimization/90240
27782 Revert:
27783 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27784
27785 PR tree-optimization/90078
27786 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27787 checks for infinite_cost overflow.
27788
27789 2019-04-29 Jeff Law <law@redhat.com>
27790
27791 * passes.def: Move -Wrestrict pass after copy propagation.
27792
27793 2019-04-29 Maya Rashish <coypu@sdf.org>
27794
27795 * config.gcc (default_gnu_indirect_function): Default to yes
27796 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
27797 sparc*-*-netbsd*, x86_64-*-netbsd*.
27798
27799 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
27800
27801 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
27802 where cond2 is NE_EXPR.
27803 (is_value_included_in): Update comment.
27804
27805 2019-04-29 Richard Biener <rguenther@suse.de>
27806
27807 PR tree-optimization/90278
27808 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
27809 EH on comparison simplification.
27810
27811 2019-04-29 Jason Merrill <jason@redhat.com>
27812
27813 PR c++/82081 - tail call optimization breaks noexcept
27814 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
27815 nothrow function to a might-throw function into a tail call.
27816
27817 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
27818
27819 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
27820 (DDR_INNER_LOOP): Likewise.
27821 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
27822 (initialize_data_dependence_relation): Likewise.
27823 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
27824
27825 2019-04-29 Jakub Jelinek <jakub@redhat.com>
27826
27827 PR rtl-optimization/90257
27828 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
27829 return value.
27830
27831 Revert the revert:
27832 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27833
27834 PR target/90178
27835 Revert:
27836 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27837
27838 Revert the revert:
27839 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27840
27841 Revert:
27842 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27843
27844 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27845
27846 2019-04-29 Richard Biener <rguenther@suse.de>
27847
27848 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
27849 rhs issue a reset.
27850
27851 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
27852
27853 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
27854 varasm.h, and netbsd-protos.h.
27855
27856 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
27857
27858 PR target/89261
27859 * config/i386/i386-protos.h (ix86_data_alignment): Change
27860 the second argument type to unsigned int.
27861 * config/i386/i386.c (ix86_data_alignment): Change "align"
27862 argument type to unsigned int.
27863
27864 2019-04-27 Martin Liska <mliska@suse.cz>
27865
27866 PR middle-end/90258
27867 * opt-suggestions.c (option_proposer::build_option_suggestions):
27868 When get_valid_option_values returns empty values, add the
27869 misspelling candidate.
27870
27871 2019-04-26 Jim Wilson <jimw@sifive.com>
27872
27873 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
27874 parameter.
27875 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
27876 Pass orig_mode to riscv_build_integer.
27877 (riscv_split_integer): Pass mode to riscv_move_integer.
27878 (riscv_legitimize_const_move): Likewise.
27879 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
27880 promoted_mode. Replace force_reg call with code to load constant into
27881 promoted reg and then subreg it for the store.
27882 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
27883 riscv_move_integer.
27884
27885 2018-04-26 Eugene Sharygin <eush@ispras.ru>
27886
27887 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
27888 corrupt codes.
27889
27890 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
27891
27892 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
27893 commentary about the encoding of precision.
27894
27895 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
27896
27897 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
27898 * config/i386/t-freebsd64: New file.
27899 * config.gcc: Add the t-freebsd64 for multilib support.
27900
27901 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
27902
27903 * doc/extend.texi (vector_size): Add missing comma after @xref.
27904
27905 2019-04-25 Jakub Jelinek <jakub@redhat.com>
27906
27907 * BASE-VER: Set to 10.0.0.
27908
27909 2019-04-25 Richard Biener <rguenther@suse.de>
27910
27911 PR middle-end/89765
27912 * gimplify.c (gimplify_expr): Avoid turning a lvalue
27913 VIEW_CONVERT_EXPR into one operating on an rvalue.
27914
27915 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
27916
27917 PR target/89929
27918 * config/i386/i386.c (feature_priority): Moved to file scope.
27919 (processor_features): Likewise.
27920 (processor_model): Likewise.
27921 (_arch_names_table): Likewise.
27922 (arch_names_table): Likewise.
27923 (_feature_list): Removed.
27924 (feature_list): Likewise.
27925 (_isa_names_table): Moved to file scope. Add priority.
27926 (isa_names_table): Likewise.
27927 (get_builtin_code_for_version): Replace feature_list with
27928 isa_names_table. Update error message for P_ZERO priority.
27929
27930 2019-04-25 Richard Biener <rguenther@suse.de>
27931
27932 * tree-pass.h (make_pass_phi_only_cprop): Remove.
27933 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
27934
27935 2019-04-24 Jeff Law <law@redhat.com>
27936
27937 PR tree-optimization/90037
27938 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
27939 * passes.def: Replace all instance of phi-only cprop with the
27940 lattice propagator. Move propagation pass from after erroneous
27941 path isolation to before erroneous path isolation.
27942 * tree-ssa-phionlycprop.c: Remove.
27943
27944 2019-04-24 Richard Biener <rguenther@suse.de>
27945
27946 PR middle-end/90213
27947 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
27948 by size and BITS_PER_UNIT on poly-wide-ints.
27949
27950 2019-04-25 Richard Biener <rguenther@suse.de>
27951
27952 PR middle-end/90194
27953 * match.pd: Add pattern to simplify view-conversion of an
27954 empty constructor.
27955
27956 2019-04-24 Clement Chigot <clement.chigot@atos.net>
27957
27958 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
27959 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
27960 for Go on 32 bit AIX.
27961 * config/rs6000/aix72.h: Likewise.
27962
27963 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27964
27965 PR target/90193
27966 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
27967 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
27968
27969 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
27970
27971 PR target/89952
27972 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
27973 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
27974 for restored hard frame pointer.
27975 (s390_sched_dependencies_evaluation): Implement new target hook.
27976 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
27977
27978 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
27979
27980 * config/arc/arc-options.def: Fix typos and spelling mistakes.
27981 * config/arc/arc.c (arc_init): Cleanup warning message.
27982 (arc_override_options): Likewise.
27983
27984 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27985
27986 PR target/90187
27987 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
27988 a register if both if_true and if_false are MEMs.
27989
27990 PR tree-optimization/90208
27991 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
27992 after labels of new_bb, not before them.
27993
27994 PR tree-optimization/90211
27995 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
27996 which are not SSA_NAMEs.
27997
27998 2018-04-23 Sudakshina Das <sudi.das@arm.com>
27999
28000 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28001 AArch64.
28002 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28003
28004 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28005
28006 PR rtl-optimization/87979
28007 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28008 not equal zero.
28009
28010 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28011
28012 PR rtl-optimization/84032
28013 * modulo-sched.c (ps_insn_find_column): Change condition so that
28014 branch will always be the last insn in a row inside partial
28015 schedule.
28016
28017 2019-04-23 Richard Biener <rguenther@suse.de>
28018
28019 PR debug/90131
28020 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28021 dest_single_pred_p argument.
28022 (remove_forwarder_block): Adjust.
28023 (remove_forwarder_block_with_phi): Likewise.
28024
28025 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28026 Bernd Edlinger <bernd.edlinger@hotmail.de>
28027 Jakub Jelinek <jakub@redhat.com>
28028
28029 PR target/89093
28030 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28031 if used with general-regs-only.
28032 (arm_conditional_register_usage): Don't add non-general regs if
28033 general-regs-only.
28034 (arm_valid_target_attribute_rec): Handle general-regs-only.
28035 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28036 general-regs-only.
28037 (TARGET_HARD_FLOAT_SUB): Define.
28038 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28039 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28040 (TARGET_REALLY_IWMMXT2): Likewise.
28041 * config/arm/arm.opt: Add -mgeneral-regs-only.
28042 * doc/extend.texi: Document ARM general-regs-only target.
28043 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28044
28045 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28046
28047 PR tree-optimization/90078
28048 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28049 checks for infinite_cost overflow.
28050
28051 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28052
28053 PR tree-optimization/90021
28054 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28055 and check univariate against it.
28056 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28057 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28058
28059 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28060
28061 PR target/90178
28062 Revert:
28063 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28064
28065 Revert the revert:
28066 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28067
28068 Revert:
28069 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28070
28071 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28072
28073 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28074
28075 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28076 names using operand format, rather than hard-wired.
28077 (speculation_barrier): Likewise.
28078
28079 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28080
28081 PR tree-optimization/88055
28082 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28083 (gen_one_condition): Use it if !HONOR_NANS.
28084
28085 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28086
28087 PR middle-end/90139
28088 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28089 assign_temp instead of gen_reg_rtx.
28090
28091 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28092
28093 PR translation/90118
28094 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28095 Add missing space before %<.
28096
28097 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28098
28099 PR rtl-optimization/87871
28100 * ira-lives.c (make_object_dead): Don't add conflicts to
28101 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28102
28103 2019-04-18 Martin Sebor <msebor@redhat.com>
28104
28105 PR middle-end/89797
28106 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28107 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28108 assuming type size fits in SHWI.
28109
28110 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28111
28112 PR ipa/85051
28113 * ipa-inline.c (flatten_function): New parameter UPDATE.
28114 (ipa_inline, early_inliner): Use it.
28115
28116 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28117
28118 * fold-const.c (int_const_binop): Return early on failure.
28119
28120 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28121
28122 PR middle-end/85164
28123 * combine.c (force_int_to_mode): Cast the argument rather than
28124 the result of known_alignment.
28125 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28126
28127 2019-04-18 Richard Biener <rguenther@suse.de>
28128
28129 PR debug/90131
28130 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28131 out from ...
28132 (remove_forwarder_block): ... here.
28133 (remove_forwarder_block_with_phi): Also move debug stmts here.
28134
28135 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28136
28137 PR translation/79183
28138 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28139 inform where appropriate.
28140
28141 2019-04-18 Richard Biener <rguenther@suse.de>
28142
28143 * tree.c (get_qualified_type): Put found type variants at the
28144 head of the variant list.
28145
28146 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28147
28148 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28149
28150 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28151
28152 PR target/90125
28153 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28154 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28155 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28156 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28157 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28158
28159 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28160
28161 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28162 even for allocno's with no conflicts.
28163 (print_conflicts): Print an extra newline.
28164
28165 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28166
28167 * auto-inc-dec.c (attempt_change): Set the alignment of the
28168 temporary memory to that of the original.
28169
28170 2019-04-17 Joao Moreira <jmoreira@suse.de>
28171
28172 * targhooks.c (default_print_patchable_function_entry): Emit
28173 __patchable_function_entries section with writable flags to allow
28174 relocation resolution.
28175
28176 2019-04-17 Jonny Grant <jg@jguk.org>
28177
28178 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28179
28180 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28181
28182 PR middle-end/90095
28183 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28184 on lowpart SUBREGs.
28185
28186 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28187
28188 * config/arc/arc.c (arc_init): Format diagnostic string.
28189 (arc_override_options): Likewise.
28190 (check_if_valid_regno_const): Likewise.
28191 (arc_reorg): Likewise.
28192
28193 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28194
28195 PR target/17108
28196 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28197 name.
28198 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28199 name.
28200 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28201 (*movdi_update1): Use Pmode.
28202 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28203 (movdi_<mode>_update_stack): Rename to ...
28204 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28205 use Pmode.
28206 (*movsi_update1): Use Pmode.
28207 (*movsi_update2): Use Pmode.
28208 (movsi_update): Rename to ...
28209 (movsi_<mode>_update): ... this. Use Pmode.
28210 (movsi_update_stack): Fix condition.
28211 (*movhi_update1): Use Pmode. Fix argument to
28212 avoiding_indexed_address_p.
28213 (*movhi_update2): Ditto.
28214 (*movhi_update3): Ditto.
28215 (*movhi_update4): Ditto.
28216 (*movqi_update1): Ditto.
28217 (*movqi_update2): Ditto.
28218 (*movqi_update3): Ditto.
28219 (*movsf_update1, *movdf_update1): Merge, rename to...
28220 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28221 avoiding_indexed_address_p. Add "size" attribute.
28222 (*movsf_update2, *movdf_update2): Merge, rename to...
28223 (*mov<mode>_update2): This. Ditto.
28224 (*movsf_update3): Use Pmode. Fix argument to
28225 avoiding_indexed_address_p.
28226 (*movsf_update4): Ditto.
28227 (allocate_stack): Simplify condition. Adjust pattern names.
28228
28229 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28230
28231 PR target/89093
28232 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28233 whitespace at the start of target attribute string.
28234
28235 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28236
28237 PR target/84369
28238 * config/rs6000/power9.md: Add store forwarding bypass.
28239
28240 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28241
28242 PR debug/89528
28243 * valtrack.c (dead_debug_insert_temp): Reset debug references
28244 to the return value of a call being removed.
28245
28246 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28247
28248 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28249 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28250 implement target hook.
28251 (arc_memory_move_cost): New function.
28252 (TARGET_REGISTER_MOVE_COST): Define.
28253 (TARGET_MEMORY_MOVE_COST): Likewise.
28254 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28255 (MEMORY_MOVE_COST): Likewise.
28256
28257 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28258
28259 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28260 (sibcall_value_insn): Likewise.
28261 * config/arc/constraints.md (Rs5): Remove.
28262
28263 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28264
28265 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28266 for last two fake registers.
28267 (arc_conditional_register_usage): Make sure fake frame and arg
28268 pointer regs are in general regs class.
28269 (FRAME_POINTER_MASK): Remove.
28270 (RETURN_ADDR_MASK): Remove.
28271 (arc_must_save_register): Use hard frame regnum.
28272 (frame_restore_reg): Use hard_frame_pointer_rtx.
28273 (arc_save_callee_saves): Likewise.
28274 (arc_restore_callee_saves): Likewise.
28275 (arc_save_callee_enter): Likewise.
28276 (arc_restore_callee_leave): Likewise.
28277 (arc_save_callee_milli): Likewise.
28278 (arc_eh_return_address_location): Likewise.
28279 (arc_check_multi): Use hard frame regnum.
28280 (arc_can_eliminate): Likewise.
28281 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28282 for register allocator.
28283 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28284 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28285 (FRAME_POINTER_REGNUM): Change it to a fake register.
28286 (HARD_FRAME_POINTER_REGNUM): Defined.
28287 (ARG_POINTER_REGNUM): Change it to a new fake register.
28288 (ELIMINABLE_REGS): Update.
28289 (REGISTER_NAMES): Update names.
28290 * config/arc/arc.md (LP_START): Remove.
28291 (LP_END): Likewise.
28292 (shift_si3_loop): Update pattern.
28293
28294 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28295
28296 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28297 to avoid delay slot scheduling.
28298 (arc_must_save_register): Don't save SP.
28299 * config/arc/arc.md (stack_tie): Remove.
28300 (UNSPEC_ARC_STKTIE): Likewise.
28301
28302 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28303 Shiva Chen <shiva0217@gmail.com>
28304
28305 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28306 code gen with large shift amount.
28307
28308 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28309
28310 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28311 subreg.
28312
28313 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28314
28315 PR target/90096
28316 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28317 print -m64/-mx32/-m32 if it is true.
28318 (ix86_debug_options, ix86_function_specific_print): Pass true as
28319 ADD_ABI_P to ix86_target_string.
28320 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28321 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28322 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28323
28324 PR rtl-optimization/90082
28325 * dce.c (can_delete_call): New function.
28326 (deletable_insn_p, mark_insn): Use it.
28327
28328 PR tree-optimization/90090
28329 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28330 throw internally.
28331 (is_division_by_square): Likewise. Formatting fix.
28332
28333 2019-04-16 Richard Biener <rguenther@suse.de>
28334
28335 PR tree-optimization/56049
28336 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28337 equality check if alias-set zero will prevail.
28338
28339 2019-04-15 Jeff Law <law@redhat.com>
28340
28341 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28342 size and alignment as unsigned.
28343
28344 2019-04-15 Richard Biener <rguenther@suse.de>
28345
28346 PR debug/90074
28347 * tree-loop-distribution.c (destroy_loop): Preserve correct
28348 debug info.
28349
28350 2019-04-15 Richard Biener <rguenther@suse.de>
28351
28352 PR tree-optimization/90071
28353 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28354 abnormal operands from def stmts.
28355
28356 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28357
28358 PR rtl-optimization/89794
28359 * combine.c (count_auto_inc): New function.
28360 (try_combine): Count how many auto_inc expressions there were in the
28361 original instructions. Ensure we have the same number in the new
28362 instructions. Remove the code that tried to ensure auto_inc side
28363 effects on i1 and i0 are not lost.
28364
28365 2019-04-15 Richard Biener <rguenther@suse.de>
28366
28367 PR ipa/88936
28368 * tree.h (auto_var_p): Declare.
28369 * tree.c (auto_var_p): New function, split out from ...
28370 (auto_var_in_fn_p): ... here.
28371 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28372 member.
28373 (new_var_info): Initialize it.
28374 (set_uids_in_ptset): Also set the shadow variable uid if required.
28375 (ipa_pta_execute): Postprocess points-to solutions assigning
28376 shadow variable uids for locals that may reach their containing
28377 function recursively.
28378 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28379 assert but instead check whether the points-to solution is
28380 a singleton.
28381
28382 2019-04-15 Martin Jambor <mjambor@suse.cz>
28383
28384 PR ipa/pr89693
28385 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28386 the thunk chain.
28387
28388 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28389
28390 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28391
28392 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28393 Kito Cheng <kito.cheng@gmail.com>
28394 Shiva Chen <shiva0217@gmail.com>
28395
28396 * config/nds32/nds32-md-auxiliary.c
28397 (nds32_legitimize_pic_address): Use new PIC pattern.
28398 (nds32_legitimize_tls_address): Use new TLS pattern.
28399 (nds32_output_symrel): New.
28400 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28401 (nds32_alloc_relax_group_id): Ditto.
28402 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28403 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28404 relax_group_id.
28405 (nds32_group_tls_insn): Ditto.
28406 (nds32_group_float_insns): Ditto.
28407 * config/nds32/nds32.md (tls_le): New.
28408 (sym_got): Ditto.
28409
28410 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28411
28412 * configure: Add nds32 target for dwarf2 debug_line checking.
28413 * configure.ac: Regenerated.
28414
28415 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28416
28417 PR lto/89358
28418 * ipa-devirt.c (skip_in_fields_list_p): New.
28419 (odr_types_equivalent_p): Use it.
28420
28421 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28422
28423 PR target/89093
28424 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28425 instead of strncmp when checking for thumb and arm. Formatting fixes.
28426
28427 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28428
28429 * doc/install.texi: Document --with-target-system-zlib.
28430
28431 2019-04-12 Martin Sebor <msebor@redhat.com>
28432
28433 PR c/88383
28434 PR c/89288
28435 PR c/89798
28436 PR c/89797
28437 * targhooks.c (default_vector_alignment): Avoid assuming
28438 argument fits in SHWI.
28439 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28440 a shift expression.
28441 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28442
28443 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28444
28445 PR rtl-optimization/89965
28446 * dce.c: Include rtl-iter.h.
28447 (struct check_argument_load_data): New type.
28448 (check_argument_load): New function.
28449 (find_call_stack_args): Check for loads from stack slots still tracked
28450 in sp_bytes and punt if any is found.
28451
28452 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28453
28454 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28455
28456 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28457 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28458
28459 2019-04-12 Martin Liska <mliska@suse.cz>
28460
28461 PR middle-end/89970
28462 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28463 in error message.
28464 (separate_attrs): Handle multiple 'default's.
28465 (expand_target_clones): Rework error handling code.
28466
28467 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28468
28469 PR target/87532
28470 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28471 mode of vector rather than mode of destination for move instruction.
28472 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28473 Use QI inner mode with V16QI vector mode.
28474
28475 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28476
28477 PR target/52726
28478 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28479 "invalid %%t operand" in output_operand_lossage message.
28480
28481 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28482
28483 * config/s390/predicates.md (permute_pattern_operand): New
28484 predicate.
28485 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28486 operand for the permute pattern.
28487 ("*vec_perm<mode>"): New insn definition.
28488 ("bswap<mode>"): Generate the permute pattern operand in the
28489 expander and perform the operand reloads for pre arch13 level
28490 already.
28491 ("*bswap<mode>_emu"): Rename to ...
28492 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28493 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28494 Add the USE operand for the permute pattern.
28495 ("*vec_set_bswap_vec<mode>"): Likewise.
28496
28497 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28498
28499 PR c/89946
28500 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28501 and gcc_unreachable if it fails, just call tree_to_uhwi which
28502 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28503 Start warning message with a lower-case letter. Formatting fixes.
28504
28505 PR rtl-optimization/90026
28506 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28507 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28508 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28509 in cfglayout mode, use emit_barrier_after_bb.
28510
28511 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28512
28513 PR rtl-optimization/87763
28514 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28515 New Instruction.
28516
28517 2019-04-11 Tom de Vries <tdevries@suse.de>
28518
28519 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28520 max macro using statement expression.
28521
28522 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28523
28524 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28525 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28526 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28527 read_only_private_data_section using xcoff_private_rodata_section_name.
28528 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28529
28530 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28531
28532 PR target/90016
28533 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28534
28535 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28536
28537 PR rtl-optimization/89965
28538 * dce.c (sp_based_mem_offset): New function.
28539 (find_call_stack_args): Use sp_based_mem_offset.
28540
28541 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28542
28543 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28544
28545 2019-04-11 Richard Biener <rguenther@suse.de>
28546
28547 PR tree-optimization/90020
28548 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28549 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28550 * tree-ssa-pre.c (compute_avail): Use it to not put
28551 possibly trapping references after a call that might not
28552 return into EXP_GEN.
28553 * gcse.c (compute_hash_table_work): Do not elide
28554 marking a block containing a call if the call might not
28555 return.
28556
28557 2019-04-11 Richard Biener <rguenther@suse.de>
28558
28559 PR tree-optimization/90018
28560 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28561 Test both SLP and interleaving variants.
28562
28563 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28564
28565 * config/s390/8561.md: New file.
28566 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28567 Add arch13 cpu model.
28568 * config/s390/s390-opts.h (enum processor_type): Likewise.
28569 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28570 (s390_get_unit_mask): Likewise.
28571 (s390_is_fpd): Likewise.
28572 (s390_is_fxd): Likewise.
28573 * config/s390/s390.h (s390_tune_attr): Likewise.
28574 * config/s390/s390.md: Include arch13 pipeline description.
28575 * config/s390/s390.opt: Add arch13.
28576
28577 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28578
28579 PR rtl-optimization/87763
28580 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28581 New prototype.
28582 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28583 New function.
28584 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28585 New instruction.
28586 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28587 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28588 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28589 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28590
28591 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28592
28593 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28594 "Although" in -fipa-icf documentation.
28595
28596 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28597 of using multiple -g options.
28598
28599 2019-04-10 Martin Liska <mliska@suse.cz>
28600
28601 PR gcov-profile/89959
28602 * doc/gcov.texi: Make documentation of -x option
28603 more precise.
28604
28605 2019-04-10 Richard Biener <rguenther@suse.de>
28606
28607 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28608 member.
28609 (DR_GROUP_SAME_DR_STMT): Remove.
28610 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28611 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28612 replace with assert.
28613 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28614 (vect_record_grouped_load_vectors): Remove unreachable code.
28615
28616 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28617
28618 PR target/90016
28619 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28620 obsolete reference to N.
28621
28622 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28623
28624 PR middle-end/90025
28625 * expr.c (store_expr): Set properly size on the MEM passed to
28626 clear_storage.
28627
28628 PR c++/90010
28629 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28630 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28631 translation is needed, and when translation is needed, only append
28632 ... if the string length is hostsz or more bytes long. Avoid using
28633 strncpy or strcat.
28634
28635 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28636
28637 PR target/90024
28638 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28639 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28640 into three.
28641 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28642 differences directly.
28643 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28644
28645 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28646
28647 PR translation/90011
28648 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28649 from diagnostics.
28650 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28651 diagnostics.
28652 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28653 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28654 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28655 trailing space from -gsplit-dwarf diagnostics.
28656
28657 PR tree-optimization/89998
28658 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28659 instead of integer_type_node if possible, don't add ranges if return
28660 type is not compatible with int.
28661 * gimple-fold.c (gimple_fold_builtin_sprintf,
28662 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28663 integer_type_node.
28664
28665 2019-04-09 Martin Liska <mliska@suse.cz>
28666
28667 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28668 * doc/install.texi: Document the new config.
28669
28670 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28671
28672 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28673 use gimple_expr_type for load and store calls. Skip over the
28674 condition argument in a conditional internal function.
28675 Protect use of TREE_INT_CST_LOW.
28676
28677 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28678
28679 PR target/90015
28680 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28681 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28682 trailing period from it too.
28683
28684 2019-04-08 wu yuan <wuyuan5@huawei.com>
28685
28686 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28687 * config/aarch64/aarch64.md: Add "tsv110.md".
28688 * config/aarch64/tsv110.md: New file.
28689
28690 2019-04-08 Richard Biener <rguenther@suse.de>
28691
28692 PR tree-optimization/90006
28693 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28694 calls like lrint.
28695
28696 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28697
28698 PR target/83033
28699 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28700 construction.
28701 (fma_root_node): Likewise.
28702 (func_fma_steering): Likewise.
28703
28704 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28705
28706 PR rtl-optimization/89865
28707 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28708
28709 PR rtl-optimization/89865
28710 * config/i386/i386.md
28711 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28712 numbers not to clash with the additional operands[4].
28713 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28714 with extra register copy in the middle.
28715
28716 2019-04-08 Martin Liska <mliska@suse.cz>
28717
28718 PR gcov-profile/89961
28719 * doc/gcov.texi: Document data_file.
28720 * gcov.c (generate_results): Add data_info into JSON output.
28721
28722 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28723
28724 PR tree-optimization/89725
28725 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
28726 loop's chrec as invariant symbol.
28727 * tree-chrec.h (chrec_contains_symbols): New parameter.
28728 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28729 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28730 function of loops not in DDR's loop_nest.
28731 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28732
28733 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
28734
28735 PR target/89623
28736 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28737 Mask.
28738
28739 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
28740
28741 PR target/89945
28742 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28743 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28744
28745 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
28746
28747 * sched-deps.c (sched_macro_fuse_insns): Check return value of
28748 targetm.fixed_condition_code_regs.
28749
28750 2019-04-05 Richard Biener <rguenther@suse.de>
28751
28752 PR debug/89892
28753 PR debug/89905
28754 * tree-cfgcleanup.c (remove_forwarder_block): Always move
28755 debug bind stmts but reset them if they are not valid at the
28756 destination.
28757
28758 2019-04-05 Martin Liska <mliska@suse.cz>
28759
28760 PR translation/89936
28761 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
28762 order to wrap keywords or arguments.
28763 * collect2.c (main): Likewise.
28764 (scan_prog_file): Likewise.
28765 (scan_libraries): Likewise.
28766 * common/config/riscv/riscv-common.c
28767 (riscv_subset_list::parsing_subset_version): Likewise.
28768 (riscv_subset_list::parse_std_ext): Likewise.
28769 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28770 Likewise.
28771 * config/arm/arm.c (arm_option_override): Likewise.
28772 * config/cris/cris.c (cris_print_operand): Likewise.
28773 * config/darwin-c.c (darwin_pragma_options): Likewise.
28774 (darwin_pragma_unused): Likewise.
28775 (darwin_pragma_ms_struct): Likewise.
28776 * config/ft32/ft32.c (ft32_print_operand): Likewise.
28777 * config/i386/i386.c (print_reg): Likewise.
28778 (ix86_print_operand): Likewise.
28779 * config/i386/xm-djgpp.h: Likewise.
28780 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
28781 * config/m32c/m32c.c (m32c_option_override): Likewise.
28782 * config/msp430/msp430.c (msp430_option_override): Likewise.
28783 * config/nds32/nds32.c (nds32_option_override): Likewise.
28784 * config/nvptx/mkoffload.c (main): Likewise.
28785 * config/rx/rx.c (rx_print_operand): Likewise.
28786 (valid_psw_flag): Likewise.
28787 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
28788 (vms_pragma_nomember_alignment): Likewise.
28789 (vms_pragma_extern_model): Likewise.
28790 * lto-wrapper.c (compile_offload_image): Likewise.
28791 * omp-offload.c (oacc_parse_default_dims): Likewise.
28792 * symtab.c (symtab_node::verify_base): Likewise.
28793 * tlink.c (recompile_files): Likewise.
28794 (start_tweaking): Likewise.
28795 * tree-profile.c (parse_profile_filter): Likewise.
28796
28797 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
28798
28799 PR tree-optimization/89956
28800 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
28801 multiple negates of the same value.
28802
28803 2019-04-04 Martin Sebor <msebor@redhat.com>
28804
28805 PR middle-end/89957
28806 PR middle-end/89911
28807 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
28808 have the same precision since the function crashes otherwise.
28809 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
28810 has non-zero arguments.
28811
28812 2019-04-04 Martin Sebor <msebor@redhat.com>
28813
28814 PR middle-end/89934
28815 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
28816 out if the number of arguments is less than expected.
28817
28818 2019-04-04 Jeff Law <law@redhat.com>
28819
28820 PR rtl-optimization/89399
28821 * ree.c (combine_set_extension): Use single_set rather than
28822 digging into PATTERN for items on the candidate list.
28823 (combine_reaching_defs): Likewise.
28824
28825 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
28826
28827 PR rtl-optimization/46590
28828 * loop-invariant.c (find_defs): Move df_remove_problem and
28829 df_process_deferred_rescans to move_invariants.
28830 Move df_live_add_problem and df_live_set_all_dirty calls
28831 to move_invariants.
28832 (move_invariants): Likewise.
28833 (move_loop_invariants): Likewise, making the df_live calls
28834 conditional on -O. Remove the problem again if we added it
28835 locally.
28836
28837 2019-04-03 qing zhao <qing.zhao@oracle.com>
28838
28839 PR tree-optimization/89730
28840 * ipa-inline.c (can_inline_edge_p): Delete the checking for
28841 -flive-patching=inline-only-static.
28842 (can_inline_edge_by_limits_p): Add the checking for
28843 -flive-patching=inline-only-static and grant always_inline
28844 even when -flive-patching=inline-only-static is specified.
28845
28846 2019-04-03 Jeff Law <law@redhat.com>
28847
28848 PR rtl-optimization/81025
28849 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
28850
28851 2019-04-03 Richard Biener <rguenther@suse.de>
28852
28853 PR tree-optimization/84101
28854 * tree-vect-stmts.c: Include explow.h for hard_function_value,
28855 regs.h for hard_regno_nregs.
28856 (cfun_returns): New helper.
28857 (vect_model_store_cost): When vectorizing a store to a decl
28858 we return and the function ABI returns in a multi-reg location
28859 account for the possible spilling that will happen.
28860
28861 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
28862
28863 * config/s390/s390.c (s390_legitimate_address_p): Reject long
28864 displacement addresses for vector mode operands.
28865
28866 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
28867
28868 * config/arc/arc.c (GMASK_LEN): Define.
28869 (arc_restore_callee_saves): Restore first blink when
28870 !optimize_size.
28871
28872 2019-04-03 Sudakshina Das <sudi.das@arm.com>
28873
28874 * doc/extend.texi: Add deprecated comment on sign-return-address
28875 function attribute and add mbranch-protection.
28876 * doc/invoke.texi: Add bti to the options for mbranch-protection.
28877
28878 2019-04-03 Richard Biener <rguenther@suse.de>
28879
28880 PR lto/89896
28881 * lto-wrapper.c (run_gcc): Avoid implicit rules making
28882 the all target phony.
28883
28884 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
28885
28886 PR target/89902
28887 PR target/89903
28888 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
28889 Return false for variable DImode shifts.
28890 (dimode_scalar_chain::compute_convert_gain): Do not handle
28891 register count operand in variable DImode shifts.
28892 (dimode_scalar_chain::make_vector_copies): Remove support to copy
28893 count argument of a variable shift instruction to a vector register.
28894 (dimode_scalar_chain::convert_reg): Remove support to convert
28895 count argument of a variable shift instruction.
28896
28897 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28898
28899 PR rtl-optimization/84206
28900 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
28901 iterating over loop headers.
28902
28903 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28904
28905 PR rtl-optimization/85876
28906 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
28907 beyond the original fence.
28908
28909 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
28910
28911 * config.gcc: Mark spu* targets as deprecated/obsolete.
28912
28913 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28914
28915 * config/s390/s390-builtin-types.def: New builtin function type
28916 definitions. Remove unused types.
28917 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
28918 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
28919 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
28920 overloaded builtins.
28921 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
28922 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
28923 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
28924 (vec_double, vec_signed, vec_unsigned): Define to use the new
28925 overloaded builtins.
28926 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
28927 Remove expanders.
28928
28929 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28930
28931 * config/s390/s390-builtin-types.def: New builtin function type
28932 definitions.
28933 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
28934 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
28935 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
28936 (s390_vstrszh, s390_vstrszf): New low-level builtins.
28937 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
28938 constant definitions.
28939 * config/s390/vecintrin.h (vec_search_string_cc)
28940 (vec_search_string_until_zero_cc): New builtin name definitions.
28941 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
28942 expanders.
28943 ("vec_vstrs<mode>"): New insn definition.
28944
28945 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28946
28947 * config/s390/s390-builtin-types.def: Add new builtin function
28948 types.
28949 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
28950 New overloaded builtins.
28951 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
28952 s390_vsrd.
28953 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
28954 (UNSPEC_VEC_SLDBYTE): ... this.
28955 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
28956 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
28957 definitions.
28958 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
28959 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
28960 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
28961
28962 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28963
28964 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
28965 New insn definition.
28966 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
28967 * config/s390/vector.md (V_HW_HSD): ... here.
28968
28969 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28970
28971 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
28972 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
28973 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
28974 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
28975 New insn definitions.
28976
28977 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28978
28979 * config/s390/s390-builtin-types.def: Add new builtin function type.
28980 * config/s390/s390-builtins.def: Add overloaded builtin
28981 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
28982 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
28983 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
28984 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
28985 ("eltswap<mode>"): New expander.
28986 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
28987 insn definitions.
28988
28989 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28990
28991 * config/s390/s390-builtin-types.def: Add new builtin function types.
28992 * config/s390/s390-builtins.def: Add overloaded builtin
28993 s390_vec_revb. Add low-level builtins for vlbr and vstbr
28994 instructions.
28995 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
28996 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
28997 ("bswap<mode>"): New expander.
28998 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
28999
29000 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29001
29002 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29003 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29004 vector builtin version number in __VEC__.
29005
29006 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29007
29008 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29009 iterators.
29010 (SFSI): New mode attribute.
29011 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29012 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29013 rename to ...
29014 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29015 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29016 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29017 ("floatsi<mode>2"): Add wcefb instruction.
29018
29019 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29020
29021 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29022 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29023 mode iterators.
29024 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29025 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29026 support 32 bit fp-int conversions. Rename to ...
29027 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29028 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29029 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29030 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29031 ... to these.
29032
29033 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29034
29035 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29036 if-then-else constructs if we can use the select instruction.
29037 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29038
29039 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29040
29041 * config/s390/s390.md ("*popcountdi_arch13_cc")
29042 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29043 definition.
29044 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29045 Append _z196 to make it ...
29046 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29047 ("popcounthi2_z196"): ... this.
29048 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29049 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29050
29051 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29052
29053 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29054 certain compares for arch13 in order to make use of the condition
29055 code result produced by the new instructions.
29056 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29057 nxrk, and nxgrk instruction patterns.
29058 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29059 (inv_no): Add new code iterator together with some attributes.
29060 ("*andc_split_<mode>"): Disable splitter for arch13.
29061 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29062 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29063 ("*<ANDOR:bitops_name>c<GPR:mode>")
29064 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29065 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29066 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29067 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29068
29069 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29070
29071 * common/config/s390/s390-common.c (processor_flags_table): New
29072 entry for arch13.
29073 * config.gcc: Support arch13 with the --with-arch= configure flag.
29074 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29075 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29076 * config/s390/s390.c (s390_get_sched_attrmask)
29077 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29078 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29079 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29080 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29081 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29082 definitions.
29083 * config/s390/s390.opt: Support arch13 as processor type in
29084 command line options.
29085
29086 2019-04-02 Martin Liska <mliska@suse.cz>
29087
29088 PR translation/89912
29089 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29090 Fix param description of graphite-max-arrays-per-scop.
29091
29092 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29093
29094 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29095 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29096 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29097
29098 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29099
29100 PR rtl-optimization/85412
29101 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29102 sel_sched_region_1, not after.
29103
29104 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29105
29106 PR rtl-optimization/86928
29107 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29108 compute_live if necessary.
29109 (sel_redirect_edge_and_branch): Likewise.
29110
29111 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29112
29113 PR rtl-optimization/89865
29114 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29115 register if it is a part of small class.
29116
29117 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29118
29119 PR rtl-optimization/87273
29120 * sel-sched-ir.c (merge_fences): Remove assert.
29121
29122 2019-04-01 Richard Biener <rguenther@suse.de>
29123
29124 PR tree-optimization/46590
29125 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29126 (dom_walker::m_reachability): Add in place of...
29127 (dom_walker::m_skip_unreachable_blocks): ...this.
29128 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29129 Move complex initialization ...
29130 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29131 lazily and initialize edge flags on each invocation.
29132 (dom_walker::bb_reachable): Use m_reachability.
29133
29134 2019-04-01 Martin Liska <mliska@suse.cz>
29135
29136 PR driver/89861
29137 * opt-suggestions.c (option_proposer::build_option_suggestions):
29138 Add variant without any argument in order to provide better
29139 hints.
29140
29141 2019-04-01 Richard Biener <rguenther@suse.de>
29142
29143 PR c/71598
29144 * gimple.c: Include langhooks.h.
29145 (gimple_get_alias_set): Treat enumeral types as the underlying
29146 integer type.
29147
29148 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29149 Eric Botcazou <ebotcazou@adacore.com>
29150
29151 PR rtl-optimization/89862
29152 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29153 that operates on the full registers for WORD_REGISTER_OPERATIONS
29154 architectures.
29155
29156 2019-03-29 Jim Wilson <jimw@sifive.com>
29157
29158 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29159 Clear MASK_RVC and then set if C subset supported.
29160
29161 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29162
29163 PR c/89872
29164 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29165 non-addressable complit into its initializer if it is volatile.
29166
29167 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29168
29169 * opts-common.c (integral_argument): Set errno properly in one case.
29170
29171 2019-03-29 Martin Liska <mliska@suse.cz>
29172
29173 * doc/invoke.texi: Remove -Wchkp from documentation.
29174
29175 2019-03-29 Martin Liska <mliska@suse.cz>
29176
29177 * dbgcnt.c (print_limit_reach): New function.
29178 (dbg_cnt): Use it.
29179
29180 2019-03-29 Martin Liska <mliska@suse.cz>
29181
29182 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29183 (dbg_cnt_process_opt): Parse first tokens aas
29184 dbg_cnt_process_single_pair is also using strtok.
29185
29186 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29187
29188 PR rtl-optimization/87485
29189 * function.c (expand_function_end): Move stack_protect_epilogue
29190 before loading of return value into hard register(s).
29191
29192 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29193
29194 PR middle-end/89621
29195 * tree-inline.h (struct copy_body_data): Add
29196 dont_remap_vla_if_no_change flag.
29197 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29198 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29199 and remap_type_2 returns false.
29200 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29201 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29202 only from where it is copied to nested contexts.
29203
29204 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29205
29206 PR target/89865
29207 * config/i386/i386.md (RMW operation with LEA peephole):
29208 Use LEAMODE mode attribute instead of SWI mode iterator for
29209 LEA pattern.
29210
29211 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29212
29213 PR target/89848
29214 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29215 Also process XEXP (src, 0) of a shift insn.
29216
29217 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29218
29219 PR middle-end/89725
29220 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29221 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29222
29223 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29224
29225 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29226 test.
29227 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29228 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29229 immediately after first one with df_analyze in between, but rather
29230 process all bbs, queueing ones that need second pass in a worklist,
29231 df_analyze, process queued debug insn changes and if second pass is
29232 needed, process bbs from worklist, df_analyze, process queued debug
29233 insns again.
29234
29235 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29236 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29237 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29238
29239 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29240
29241 PR c/79022
29242 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29243 definition.
29244
29245 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29246
29247 PR target/85667
29248 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29249 function for 32-bit MS_ABI.
29250 (function_value_ms_32): New function.
29251
29252 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29253
29254 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29255 (movdi): Call gen_movdi_symbol_save_scc.
29256 (gen_movdi_symbol_save_scc): New insn and split.
29257
29258 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29259
29260 PR rtl-optimization/89313
29261 * function.c (matching_constraint_num): New static function.
29262 (match_asm_constraints_1): Use it. Fixup white space and comment.
29263 Don't replace inputs with non-matching constraints which conflict
29264 with early clobber outputs.
29265
29266 2019-03-27 Jeff Law <law@redhat.com>
29267
29268 PR rtl-optimization/87761
29269 PR rtl-optimization/89826
29270 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29271 slightly later.
29272 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29273 note problem to get REG_DEAD/REG_UNUSED notes updated.
29274
29275 2019-03-27 Richard Biener <rguenther@suse.de>
29276
29277 PR tree-optimization/89463
29278 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29279 queue edges to remove.
29280 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29281 dead stmts. Delay edge removal until PHIs are removed to
29282 make debug-stmt creation not confused by seemingly degenerate
29283 PHIs.
29284
29285 2019-03-27 Alan Modra <amodra@gmail.com>
29286
29287 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29288 throughout file.
29289 * config/rs6000/darwin.h: Likewise.
29290 * config/rs6000/rs6000.c: Likewise.
29291
29292 2019-03-27 Alan Modra <amodra@gmail.com>
29293
29294 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29295 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29296
29297 2019-03-26 Andrew Waterman <andrew@sifive.com>
29298 Jim Wilson <jimw@sifive.com>
29299
29300 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29301 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29302 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29303 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29304 (generic_alu): Add auipc to type list.
29305 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29306 (riscv_microarchitecture): Declare.
29307 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29308 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29309 field.
29310 (riscv_microarchitecture): New.
29311 (sifive_7_tune_info): New.
29312 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29313 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29314 entries.
29315 (riscv_store_data_bypass_p): New.
29316 (riscv_option_override): Set riscv_microarchitecture from
29317 cpu->microarchitecture.
29318 * config/riscv/riscv.md: Include sifive-7.md.
29319 (type): Add auipc.
29320 (tune): New.
29321 (auipc<mode>): Change type to auipc.
29322 (restore_stack_nonlocal): New.
29323 * config/riscv/sifive-7.md: New.
29324 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29325
29326 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29327
29328 PR target/89827
29329 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29330 Also process XEXP (src, 0) of a shift insn.
29331
29332 2019-03-26 Richard Biener <rguenther@suse.de>
29333
29334 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29335 (copy_debug_stmt): Likewise.
29336 (expand_call_inline): Likewise.
29337 (copy_bb): Avoid redundant lookup & set of gimple_block.
29338 * gimple-low.c (lower_gimple_return): Likewise.
29339 (lower_builtin_setjmp): Likewise.
29340
29341 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29342
29343 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29344 is constant 0, turn into static const data member initialized to false.
29345 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29346 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29347
29348 2019-03-26 Jason Merrill <jason@redhat.com>
29349 Jakub Jelinek <jakub@redhat.com>
29350
29351 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29352 method.
29353 (mem_alloc_description::release_object_overhead): Fix comment typos.
29354 * hash-table.h (hash_table::~hash_table): Call
29355 release_instance_overhead only if m_entries is non-NULL, otherwise
29356 call unregister_descriptor.
29357
29358 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29359
29360 PR tree-optimization/81740
29361 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29362 In case of outer loop vectorization, check for backward dependence
29363 at the inner loop if outer loop dependence is reversed.
29364
29365 2019-03-26 Alan Modra <amodra@gmail.com>
29366
29367 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29368 rs6000_vector_mem init. Correct wI and wJ comment.
29369
29370 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29371
29372 PR rtl-optimization/88347
29373 PR rtl-optimization/88423
29374 * sched-deps.c (sched_analyze_insn): Take into account that for
29375 tablejumps the barrier appears after a label and a jump_table_data.
29376
29377 2019-03-25 Martin Sebor <msebor@redhat.com>
29378
29379 PR c/89812
29380 * c-common.c (check_user_alignment): Rename local. Correct maximum
29381 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29382 convert it to UHWI when it fits.
29383
29384 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29385
29386 PR debug/86964
29387 * dwarf2out.c (premark_used_variables): New function.
29388 (prune_unused_types_walk): Do not mark not premarked external
29389 variables.
29390 (prune_unused_types): Call premark_used_variables.
29391
29392 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29393
29394 PR rtl-optimization/89676
29395 * lra-constraints.c (curr_insn_transform): Do match reload for
29396 early clobbers when the match was successful only for different
29397 registers.
29398
29399 2019-03-25 Martin Sebor <msebor@redhat.com>
29400
29401 * doc/extend.texi (Common Type Attributes): Document vector_size.
29402 (Common Variable Attributes): Mention size constraint. Correct
29403 quoting and typos.
29404 (Vector Extensions): Use @dfn when defining bas type. Clarify
29405 base type and size constraints.
29406
29407 2019-03-25 Richard Biener <rguenther@suse.de>
29408
29409 PR tree-optimization/89789
29410 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29411 changes from non-undefined back to undefined.
29412
29413 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29414
29415 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29416 heap string and a gc string, but since this variable is unknown to
29417 ggc the gc string might get reused and corrupted. Fixed by always
29418 using a heap string.
29419
29420 2019-03-25 Richard Biener <rguenther@suse.de>
29421
29422 PR tree-optimization/89779
29423 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29424 to remove IV defs, delay actual removal.
29425 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29426 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29427 very end, properly also reset loop control IV information.
29428
29429 2019-03-25 Richard Biener <rguenther@suse.de>
29430
29431 PR tree-optimization/89802
29432 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29433 move EH data to folded stmt.
29434
29435 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29436
29437 * config/s390/s390-builtin-types.def: Remove few unused types and
29438 fix sort order for others.
29439
29440 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29441
29442 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29443 expected and found types with -mdebug during builtin matching.
29444
29445 2019-03-25 Richard Biener <rguenther@suse.de>
29446
29447 PR middle-end/89790
29448 * fold-const.c (operand_equal_p): Revert last change with
29449 updated comment.
29450
29451 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29452
29453 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29454 notes for the result of the __tls_get_addr calls.
29455 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29456
29457 2019-03-24 Jeff Law <law@redhat.com>
29458
29459 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29460
29461 PR rtl-optimization/87761
29462 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29463 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29464 as needed.
29465 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29466 rescans. Reprocess blocks as needed, calling df_analyze before
29467 reprocessing. Always call df_analyze before fixing up debug bind
29468 insns.
29469
29470 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29471
29472 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29473 big endian.
29474
29475 2019-03-22 Andrew Pinski <apinski@marvell.com>
29476
29477 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29478 attrribute for uxtw.
29479
29480 2019-03-26 Jeff Law <law@redhat.com>
29481
29482 PR rtl-optimization/87761
29483 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29484 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29485 (mips_split_move): Accept new INSN argument. Try to forward SRC
29486 into the next instruction.
29487 (mips_split_move_insn): Pass INSN through to mips_split_move.
29488
29489 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29490
29491 PR rtl-optimization/89676
29492 * lra-constraints.c (curr_insn_transform): Do match reload for
29493 early clobbers even if the match was successful.
29494
29495 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29496
29497 PR c++/87481
29498 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29499
29500 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29501
29502 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29503
29504 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29505
29506 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29507 <avx512>_fmsub_<mode>_mask3<round_name>,
29508 <avx512>_fnmadd_<mode>_mask3<round_name>,
29509 <avx512>_fnmsub_<mode>_mask3<round_name>,
29510 avx512f_vmfmadd_<mode>_mask3<round_name>,
29511 avx512f_vmfmsub_<mode>_mask3<round_name>,
29512 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29513 instead of register_operand and %v instead of v for match_operand 1.
29514 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29515 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29516 <round_nimm_predicate> instead of register_operand and %v instead of v
29517 for match_operand 1.
29518
29519 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29520 <avx512>_fmadd_<mode>_mask3<round_name>,
29521 <avx512>_fmsub_<mode>_mask<round_name>,
29522 <avx512>_fmsub_<mode>_mask3<round_name>,
29523 <avx512>_fnmadd_<mode>_mask<round_name>,
29524 <avx512>_fnmadd_<mode>_mask3<round_name>,
29525 <avx512>_fnmsub_<mode>_mask<round_name>,
29526 <avx512>_fnmsub_<mode>_mask3<round_name>,
29527 <avx512>_fmaddsub_<mode>_mask<round_name>,
29528 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29529 <avx512>_fmsubadd_<mode>_mask<round_name>,
29530 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29531 <round_nimm_predicate> instead of nonimmediate_operand.
29532 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29533 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29534 Use register_operand instead of <round_nimm_predicate> for the
29535 operand that needs to match output.
29536 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29537 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29538 Likewise. Formatting fixes.
29539
29540 PR target/89784
29541 * config/i386/i386.c (enum ix86_builtins): Remove
29542 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29543 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29544 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29545 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29546 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29547 __builtin_ia32_vfmsubss3_mask3): New builtins.
29548 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29549 avx512f_vmfmadd_<mode>_mask3<round_name>,
29550 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29551 *avx512f_vmfmsub_<mode>_mask<round_name>,
29552 avx512f_vmfmsub_<mode>_mask3<round_name>,
29553 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29554 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29555 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29556 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29557 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29558 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29559 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29560 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29561 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29562 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29563 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29564 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29565 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29566 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29567 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29568 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29569 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29570 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29571 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29572 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29573 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29574 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29575 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29576 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29577 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29578 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29579 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29580 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29581
29582 2019-03-21 Martin Sebor <msebor@redhat.com>
29583
29584 PR tree-optimization/89350
29585 * builtins.c (compute_objsize): Also ignore offsets whose upper
29586 bound is negative.
29587 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29588 (builtin_memref::builtin_memref): Initialize new member.
29589 Allow EXPR to be null.
29590 (builtin_memref::extend_offset_range): Replace local with a member.
29591 Avoid assuming pointer offsets are unsigned.
29592 (builtin_memref::set_base_and_offset): Determine base object
29593 before computing offset range.
29594 (builtin_access::builtin_access): Handle memset.
29595 (builtin_access::generic_overlap): Replace local with a member.
29596 (builtin_access::strcat_overlap): Same.
29597 (builtin_access::overlap): Same.
29598 (maybe_diag_overlap): Same.
29599 (maybe_diag_access_bounds): Same.
29600 (wrestrict_dom_walker::check_call): Handle memset.
29601 (check_bounds_or_overlap): Same.
29602
29603 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29604 Jakub Jelinek <jakub@redhat.com>
29605
29606 PR lto/89692
29607 * tree.c (fld_type_variant, fld_incomplete_type_of,
29608 fld_process_array_type): Call fld->pset.add and don't call
29609 add_tree_to_fld_list if it returns true.
29610 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29611 non-marked types from TYPE_NEXT_VARIANT list.
29612 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29613
29614 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29615
29616 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29617 to false, if true, don't alloc_entries during construction, but defer
29618 it to the first method that needs m_entries allocated.
29619 (hash_table::hash_table, hash_table::~hash_table,
29620 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29621 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29622 hash_table::clear_slot, hash_table::traverse_noresize,
29623 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29624 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29625 false.
29626 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29627 NO_INSERT instead of find_with_hash.
29628 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29629 hash_set::m_table): Add Lazy to template params of hash_table.
29630 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29631 * attribs.c (test_attribute_exclusions): Likewise.
29632 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29633 hash_set. Add tests for hash_set with Lazy = true.
29634
29635 2019-03-21 Richard Biener <rguenther@suse.de>
29636
29637 PR tree-optimization/89779
29638 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29639 checks with respect to released SSA names now having error_mark_node
29640 type.
29641 * fold-const.c (operand_equal_p): Likewise.
29642
29643 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29644
29645 PR target/89775
29646 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29647 available to ...
29648 (s390_optimize_register_info): Use global_not_special_regno_p to
29649 check for global regs.
29650
29651 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29652
29653 PR target/89752
29654 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29655 update this_alternative nor this_alternative_set.
29656
29657 2019-03-19 Jim Wilson <jimw@sifive.com>
29658
29659 PR target/89411
29660 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29661 align, size, offset. Use them to handle a BLKmode reference. Update
29662 comment.
29663 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29664
29665 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29666
29667 PR rtl-optimization/89768
29668 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29669 instead of GEN_INT.
29670 (unroll_loop_runtime_iterations): Likewise.
29671
29672 2019-03-19 Martin Sebor <msebor@redhat.com>
29673
29674 PR tree-optimization/89644
29675 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29676 rather than endptr as an indicator of nul-termination.
29677
29678 PR tree-optimization/89644
29679 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29680 arrays in determining sequence sizes in strncpy and stpncpy.
29681
29682 2019-03-19 Martin Liska <mliska@suse.cz>
29683
29684 PR middle-end/89737
29685 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29686 unlikely_edges if there's an edge that belongs to both these sets.
29687
29688 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29689
29690 PR target/89746
29691 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29692 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29693 go via a stack temporary.
29694
29695 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29696
29697 PR target/89378
29698 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29699 instead of gen_rtx_SUBREG.
29700 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29701
29702 2019-03-19 Richard Biener <rguenther@suse.de>
29703
29704 PR debug/88389
29705 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29706
29707 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
29708
29709 PR lto/87809
29710 PR lto/89335
29711 * tree.c (free_lang_data_in_decl): Do not free context of C++
29712 destrutors.
29713
29714 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29715
29716 PR target/89506
29717 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29718 subs for the first alternative except when operands[3] is 1.
29719
29720 PR target/89752
29721 * gimplify.c (gimplify_asm_expr): For output argument with
29722 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29723 diagnose error.
29724
29725 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
29726
29727 PR rtl-optimization/89753
29728 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29729 explicit unrolling factor even more robust.
29730
29731 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29732
29733 PR target/89726
29734 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29735 compensation use x2 += 1 instead of x2 -= -1 and when honoring
29736 signed zeros, do another copysign after the compensation.
29737
29738 2019-03-18 Martin Sebor <msebor@redhat.com>
29739
29740 PR tree-optimization/89720
29741 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29742 more conservatively, the same as anti-range.
29743
29744 2019-03-18 Richard Biener <rguenther@suse.de>
29745
29746 PR middle-end/88945
29747 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29748 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29749 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
29750 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29751
29752 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
29753
29754 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
29755 Extend queue to 1024 entries.
29756 Add "consumed" field.
29757 (gomp_print_output): Remove print_index parameter.
29758 Add final parameter.
29759 Change limit to unsigned.
29760 Use consumed field to implement circular buffer.
29761 Detect interrupted print in final pass.
29762 Flush output at the end.
29763 (run): Update gomp_print_output usage.
29764 (main): Initialize kernargs->output_data.consumed.
29765
29766 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
29767
29768 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
29769 calculation of the minimum number of scalar iterations for
29770 fully-predicated loops.
29771
29772 2019-03-18 Martin Jambor <mjambor@suse.cz>
29773
29774 PR tree-optimization/89546
29775 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
29776 any propagation to its children took place.
29777
29778 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
29779
29780 PR target/89627
29781 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
29782 parameter, and make use of it.
29783 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
29784
29785 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29786
29787 * config/arc/arc.opt (mcode-density-frame): Get the inital value
29788 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
29789 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29790 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29791 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
29792 match what the ops is doing.
29793 (push_multi_fp_blink): Likewise.
29794 * config/arc/arc.c (arc_override_options): Enable enter/leave when
29795 compiling for size and elf target.
29796 (arc_save_callee_enter): Adjust note to match what enter/leave
29797 operation does.
29798
29799 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29800
29801 * config/arc/arc.md (tst_movb): Fix constraint.
29802
29803 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29804
29805 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
29806
29807 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29808
29809 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
29810 * config/arc/arc.c (arc_conditional_register_usage): Remove all
29811 reg_alloc_order references.
29812 (size_alloc_order): Define.
29813 (arc_adjust_reg_alloc_order): New function.
29814 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
29815 order.
29816 (ADJUST_REG_ALLOC_ORDER): Define.
29817 (HONOR_REG_ALLOC_ORDER): Likewise.
29818
29819 2019-03-18 Richard Biener <rguenther@suse.de>
29820
29821 PR target/87561
29822 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
29823 loads and stores a bit more.
29824
29825 2019-03-18 Richard Biener <rguenther@suse.de>
29826
29827 PR target/87561
29828 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
29829 load pessimization to stores as well.
29830
29831 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
29832
29833 PR middle-end/86979
29834 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
29835 successor, use NULL as its av set.
29836
29837 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29838
29839 PR rtl-optimization/89721
29840 * lra-constraints (invariant_p): Return false if side_effects_p holds.
29841
29842 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
29843
29844 PR target/87532
29845 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29846 When handling vec_extract, use modular arithmetic to allow
29847 constant selectors greater than vector length.
29848 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
29849 V1TImode vectors to have constant selector values greater than 0.
29850 Use modular arithmetic to compute vector index.
29851 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
29852 index for in-memory vectors. Correct code generation for
29853 in-register vectors.
29854 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
29855 compute index.
29856
29857 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
29858
29859 PR c++/88534
29860 PR c++/88537
29861 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
29862 VAR_DECL args.
29863
29864 2019-03-15 Jakub Jelinek <jakub@redhat.com>
29865
29866 PR c++/89709
29867 * tree.c (inchash::add_expr): Strip any location wrappers.
29868 * fold-const.c (operand_equal_p): Move stripping of location wrapper
29869 after hash verification.
29870
29871 PR debug/89704
29872 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
29873 SIGN_EXTEND and ZERO_EXTEND.
29874
29875 2019-03-14 Jason Merrill <jason@redhat.com>
29876 Jakub Jelinek <jakub@redhat.com>
29877
29878 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
29879 than if is_empty (*slot).
29880 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
29881 existing elt and for elt removal.
29882 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
29883 of already removed elt.
29884
29885 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
29886
29887 PR target/89650
29888 * config/i386/i386.c (remove_partial_avx_dependency): Handle
29889 REG_EH_REGION note.
29890
29891 2019-03-14 Martin Liska <mliska@suse.cz>
29892
29893 PR other/89712
29894 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
29895
29896 2019-03-14 Richard Biener <rguenther@suse.de>
29897
29898 PR target/89711
29899 * config/i386/i386.c (make_resolver_func): Properly set
29900 DECL_CONTEXT on the RESULT_DECL.
29901 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
29902
29903 2019-03-14 Richard Biener <rguenther@suse.de>
29904
29905 * gimple-pretty-print.c: Include cfgloop.h.
29906 (dump_gimple_phi): Adjust.
29907 (dump_gimple_bb_header): Dump loop header for GIMPLE.
29908 (pp_cfg_jump): Adjust.
29909 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
29910 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
29911 (lower_phi_internal_fn): Remove.
29912 (verify_gimple_call): Remove IFN_PHI special-casing.
29913 (dump_function_to_file): Dump IL state.
29914 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
29915 done to deal with PHI nodes being present in non-SSA state.
29916
29917 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29918
29919 PR ipa/89684
29920 * multiple_target.c (create_dispatcher_calls): Change
29921 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
29922 In the node->iterate_referring loop, push *ref rather than ref, call
29923 ref->remove_reference () and always pass 0 to iterate_referring.
29924
29925 PR rtl-optimization/89679
29926 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
29927 would contain a paradoxical SUBREG.
29928
29929 2019-03-14 Richard Biener <rguenther@suse.de>
29930
29931 PR tree-optimization/89710
29932 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
29933 safe_dyn_cast.
29934
29935 2019-03-14 Martin Liska <mliska@suse.cz>
29936
29937 * coverage.c (coverage_begin_function): Stream also
29938 end_column.
29939 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
29940 documentation about function declaration location.
29941 * gcov-dump.c (tag_function): Print whole range
29942 of function declaration.
29943 * gcov.c (struct function_info): Add end_column field.
29944 (function_info::function_info): Initialize it.
29945 (output_json_intermediate_file): Output {start,end}_column
29946 fields.
29947 (read_graph_file): Read end_column.
29948
29949 2019-03-14 Richard Biener <rguenther@suse.de>
29950
29951 PR middle-end/89698
29952 * fold-const.c (operand_equal_p): For INDIRECT_REF check
29953 that the access types are similar.
29954
29955 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29956
29957 PR tree-optimization/89703
29958 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
29959 aren't compatible also with builtin_decl_explicit. Check pure
29960 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
29961 and BUILT_IN_STPNCPY{,_CHK}.
29962
29963 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
29964
29965 PR target/89523
29966 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
29967 addr32 prefix to VSIB address for X32.
29968 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
29969 "%M2" to opcode.
29970 (*avx512pf_gatherpf<mode>df_mask): Likewise.
29971 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
29972 (*avx512pf_scatterpf<mode>df_mask): Likewise.
29973 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
29974 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
29975 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
29976 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
29977 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
29978 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
29979 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
29980 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
29981 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
29982 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
29983 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
29984 (*avx512f_scatterdi<mode>): Likewise.
29985
29986 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
29987
29988 PR target/85860
29989 * lra-constraints.c (inherit_in_ebb): Update
29990 potential_reload_hard_regs along with live_hard_regs.
29991
29992 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29993
29994 PR debug/89498
29995 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
29996 DWARF_OFFSET_SIZE.
29997 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
29998
29999 2019-03-13 Martin Sebor <msebor@redhat.com>
30000
30001 PR tree-optimization/89662
30002 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30003 has a size.
30004
30005 2019-03-13 Richard Biener <rguenther@suse.de>
30006
30007 PR middle-end/89677
30008 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30009 throw FP expressions at tree-affine.
30010
30011 2019-03-14 Richard Biener <rguenther@suse.de>
30012
30013 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30014 dump negative integer constants using _Literal (type) -num.
30015
30016 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30017
30018 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30019 nonlocal_value member.
30020
30021 PR middle-end/88588
30022 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30023 (ipa_simd_modify_function_body): Handle PHIs.
30024
30025 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30026
30027 * config/s390/s390.c (s390_option_override_internal): Use more
30028 aggressive inlining parameters.
30029
30030 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30031
30032 * config/s390/3906.md: New file.
30033 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30034 (LONGRUNNING_THRESHOLD): Remove.
30035 (MAX_SCHED_MIX_SCORE): Decrease.
30036 (MAX_SCHED_MIX_DISTANCE): Decrease.
30037 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30038 (struct s390_sched_state): New struct to hold scheduling state.
30039 (S390_SCHED_STATE_NORMAL): Remove.
30040 (S390_SCHED_STATE_CRACKED): Remove.
30041 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30042 (s390_get_sched_attrmask): Use new attribute.
30043 (s390_get_unit_mask): Use new units.
30044 (s390_is_fpd): New function.
30045 (s390_is_fxd): New function.
30046 (s390_is_longrunning): New function.
30047 (s390_sched_score): Use new functions.
30048 (s390_sched_reorder): Likewise.
30049 (s390_sched_variable_issue): Rework and use new functions.
30050 (s390_sched_init): Use new functions.
30051 * config/s390/s390.h (s390_tune_attr): Add z14.
30052 * config/s390/s390.md: Add z14.
30053
30054 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30055
30056 * config/s390/2964.md: Update pipeline description.
30057 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30058 (LONGRUNNING_THRESHOLD): Remove.
30059 (LATENCY_FACTOR): Remove.
30060 (s390_get_unit_mask): Add unit.
30061 (s390_sched_score): Use fxd/fpd.
30062 (s390_sched_variable_issue): Use fxd/fpd.
30063
30064 2019-03-12 Martin Liska <mliska@suse.cz>
30065
30066 * config/i386/i386.c: Reword an error message.
30067
30068 2019-03-12 Martin Jambor <mjambor@suse.cz>
30069
30070 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30071 terminate with newline.
30072
30073 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30074
30075 PR target/52726
30076 * config/s390/s390.md (tabort): Use %wd instead of
30077 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30078 letters and periods.
30079 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30080 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30081 's with %< and %>.
30082
30083 PR middle-end/89663
30084 * builtins.c (expand_builtin_int_roundingfn,
30085 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30086 gcc_unreachable if validate_arglist fails.
30087
30088 2019-03-12 Richard Biener <rguenther@suse.de>
30089
30090 PR tree-optimization/89664
30091 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30092 free the occurance tree after the early out.
30093
30094 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30095
30096 PR middle-end/89655
30097 PR bootstrap/89656
30098 * vr-values.c (vr_values::update_value_range): If
30099 old_vr->varying_p (), don't update it, make new_vr also VARYING
30100 and return false.
30101
30102 2019-03-11 Martin Liska <mliska@suse.cz>
30103
30104 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30105 Fix double string quoting.
30106
30107 2019-03-11 Martin Liska <mliska@suse.cz>
30108
30109 * collect-utils.c (collect_wait): Wrap apostrophes
30110 in gcc internal format with %'.
30111 * collect2.c (main): Likewise.
30112 (scan_prog_file): Likewise.
30113 (scan_libraries): Likewise.
30114 * config/i386/i386.c (ix86_expand_call): Likewise.
30115 (ix86_handle_interrupt_attribute): Likewise.
30116 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30117 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30118 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30119 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30120 * symtab.c (symtab_node::verify_base): Likewise.
30121 * tree-cfg.c (verify_gimple_label): Likewise.
30122 * tree.c (verify_type_variant): Likewise.
30123
30124 2019-03-11 Martin Liska <mliska@suse.cz>
30125
30126 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30127 in a string format message and fix GNU coding style.
30128 (expand_builtin_set_thread_pointer): Likewise.
30129 * common/config/aarch64/aarch64-common.c
30130 (aarch64_rewrite_selected_cpu): Likewise.
30131 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30132 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30133 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30134 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30135 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30136 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30137 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30138 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30139 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30140 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30141 Likewise.
30142 * common/config/riscv/riscv-common.c
30143 (riscv_subset_list::parsing_subset_version): Likewise.
30144 (riscv_subset_list::parse_std_ext): Likewise.
30145 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30146 (riscv_subset_list::parse): Likewise.
30147 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30148 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30149 (aarch64_override_options_internal): Likewise.
30150 (aarch64_validate_mcpu): Likewise.
30151 (aarch64_validate_march): Likewise.
30152 (aarch64_validate_mtune): Likewise.
30153 (aarch64_override_options): Likewise.
30154 * config/alpha/alpha.c (alpha_option_override): Likewise.
30155 * config/arc/arc.c (arc_init): Likewise.
30156 (parse_mrgf_banked_regs_option): Likewise.
30157 (arc_override_options): Likewise.
30158 (arc_expand_builtin_aligned): Likewise.
30159 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30160 (arm_expand_builtin): Likewise.
30161 * config/arm/arm.c (arm_option_check_internal): Likewise.
30162 (arm_configure_build_target): Likewise.
30163 (arm_option_override): Likewise.
30164 (arm_options_perform_arch_sanity_checks): Likewise.
30165 (arm_handle_cmse_nonsecure_entry): Likewise.
30166 (arm_handle_cmse_nonsecure_call): Likewise.
30167 (arm_tls_referenced_p): Likewise.
30168 (thumb1_expand_prologue): Likewise.
30169 * config/avr/avr.c (avr_option_override): Likewise.
30170 * config/bfin/bfin.c (bfin_option_override): Likewise.
30171 * config/c6x/c6x.c (c6x_option_override): Likewise.
30172 * config/cr16/cr16.c (cr16_override_options): Likewise.
30173 * config/cris/cris.c (cris_option_override): Likewise.
30174 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30175 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30176 * config/darwin.c (darwin_override_options): Likewise.
30177 * config/frv/frv.c (frv_expand_builtin): Likewise.
30178 * config/h8300/h8300.c (h8300_option_override): Likewise.
30179 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30180 (ix86_option_override_internal): Likewise.
30181 (warn_once_call_ms2sysv_xlogues): Likewise.
30182 (ix86_expand_prologue): Likewise.
30183 (split_stack_prologue_scratch_regno): Likewise.
30184 (ix86_warn_parameter_passing_abi): Likewise.
30185 * config/ia64/ia64.c (fix_range): Likewise.
30186 * config/m68k/m68k.c (m68k_option_override): Likewise.
30187 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30188 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30189 (mips_set_compression_mode): Likewise.
30190 * config/mmix/mmix.c (mmix_option_override): Likewise.
30191 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30192 * config/msp430/msp430.c (msp430_option_override): Likewise.
30193 * config/nds32/nds32.c (nds32_option_override): Likewise.
30194 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30195 (nios2_option_override): Likewise.
30196 (nios2_expand_custom_builtin): Likewise.
30197 * config/nvptx/mkoffload.c (main): Likewise.
30198 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30199 * config/pa/pa.c (fix_range): Likewise.
30200 (pa_option_override): Likewise.
30201 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30202 (riscv_option_override): Likewise.
30203 * config/rl78/rl78.c (rl78_option_override): Likewise.
30204 * config/rs6000/aix61.h: Likewise.
30205 * config/rs6000/aix71.h: Likewise.
30206 * config/rs6000/aix72.h: Likewise.
30207 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30208 * config/rs6000/freebsd64.h: Likewise.
30209 * config/rs6000/linux64.h: Likewise.
30210 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30211 (rs6000_expand_zeroop_builtin): Likewise.
30212 (rs6000_expand_mtfsb_builtin): Likewise.
30213 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30214 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30215 (rs6000_invalid_builtin): Likewise.
30216 (rs6000_expand_split_stack_prologue): Likewise.
30217 * config/rs6000/rtems.h: Likewise.
30218 * config/rx/rx.c (valid_psw_flag): Likewise.
30219 (rx_expand_builtin): Likewise.
30220 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30221 * config/s390/s390.c (s390_expand_builtin): Likewise.
30222 (s390_function_profiler): Likewise.
30223 (s390_option_override_internal): Likewise.
30224 (s390_option_override): Likewise.
30225 * config/sh/sh.c (sh_option_override): Likewise.
30226 (sh_builtin_saveregs): Likewise.
30227 (sh_fix_range): Likewise.
30228 * config/sh/vxworks.h: Likewise.
30229 * config/sparc/sparc.c (sparc_option_override): Likewise.
30230 * config/spu/spu.c (spu_option_override): Likewise.
30231 (fix_range): Likewise.
30232 * config/visium/visium.c (visium_option_override): Likewise.
30233 (visium_handle_interrupt_attr): Likewise.
30234 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30235 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30236 (dbg_cnt_process_opt): Likewise.
30237 * dwarf2out.c (output_dwarf_version): Likewise.
30238 * except.c (expand_eh_return): Likewise.
30239 * gcc.c (defined): Likewise.
30240 (driver_handle_option): Likewise.
30241 (process_command): Likewise.
30242 (compare_files): Likewise.
30243 (driver::prepare_infiles): Likewise.
30244 (driver::do_spec_on_infiles): Likewise.
30245 (driver::maybe_run_linker): Likewise.
30246 * omp-offload.c (oacc_parse_default_dims): Likewise.
30247 * opts-global.c (handle_common_deferred_options): Likewise.
30248 * opts.c (parse_sanitizer_options): Likewise.
30249 (common_handle_option): Likewise.
30250 (enable_warning_as_error): Likewise.
30251 * passes.c (enable_disable_pass): Likewise.
30252 * plugin.c (parse_plugin_arg_opt): Likewise.
30253 (default_plugin_dir_name): Likewise.
30254 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30255 (default_pch_valid_p): Likewise.
30256 * toplev.c (init_asm_output): Likewise.
30257 (process_options): Likewise.
30258 (toplev::run_self_tests): Likewise.
30259 * tree-cfg.c (verify_gimple_call): Likewise.
30260 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30261 (tree_inlinable_function_p): Likewise.
30262 * var-tracking.c (vt_find_locations): Likewise.
30263
30264 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30265
30266 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30267 only on the else branch.
30268
30269 2019-03-11 Martin Liska <mliska@suse.cz>
30270
30271 * gcov.c (output_intermediate_json_line): Print function
30272 name of each line.
30273 (output_json_intermediate_file): Add new argument.
30274 * doc/gcov.texi: Document the change.
30275
30276 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30277
30278 PR rtl-optimization/89588
30279 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30280 explicit unrolling factor more robust.
30281
30282 2019-03-11 Richard Biener <rguenther@suse.de>
30283
30284 PR tree-optimization/89649
30285 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30286 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30287 on the prolog and epilog loops.
30288 (vect_loop_versioning): Return copy of loop.
30289 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30290 on the non-vectorized version of the loop.
30291
30292 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30293
30294 PR target/68924
30295 * config/i386/sse.md (*vec_extractv2di_0_sse):
30296 Add (=r,x) alternative and corresponding splitter.
30297
30298 2019-03-10 Martin Jambor <mjambor@suse.cz>
30299
30300 PR tree-optimization/85762
30301 PR tree-optimization/87008
30302 PR tree-optimization/85459
30303 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30304 it points to if there is a type changing MEM_REF. Adjust all callers.
30305 (build_accesses_from_assign): Disable total scalarization if
30306 contains_vce_or_bfcref_p returns true through the new parameter, for
30307 both rhs and lhs.
30308
30309 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30310
30311 PR c/88568
30312 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30313 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30314
30315 PR target/79645
30316 * common.opt (fdiagnostics-show-labels,
30317 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30318 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30319 gas-locview-support, ginline-points, ginternal-reset-location-views):
30320 Terminate description text with a dot.
30321 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30322 * config/mcore/mcore.opt (m210, m340): Likewise.
30323 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30324 mnops=): Start description text with a capital letter.
30325 * config/arc/arc.opt (msize-level=): Likewise.
30326 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30327 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30328 mnewlib): Likewise.
30329 * config/ft32/ft32.opt (msim): Likewise.
30330 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30331 (mnodiv, mnopm): Terminate description text with a dot.
30332 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30333 a colon.
30334 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30335 Likewise.
30336 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30337 text.
30338
30339 PR rtl-optimization/89634
30340 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30341 are modified in BB_END (e->src) instruction.
30342
30343 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30344
30345 PR target/79926
30346 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30347 messages more amenable to translation, and improve wording.
30348
30349 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30350
30351 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30352 ud- and du-chains between phases.
30353
30354 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30355
30356 PR debug/89631
30357 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30358 instead of POLY_INT_CST.
30359
30360 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30361
30362 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30363 requirement.
30364
30365 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30366
30367 PR target/68924
30368 PR target/78782
30369 PR target/87558
30370 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30371 (_mm_storeu_si64): Ditto.
30372
30373 2019-03-08 Martin Liska <mliska@suse.cz>
30374
30375 PR target/86952
30376 * config/i386/i386.c (ix86_option_override_internal): Disable
30377 jump tables when retpolines are used.
30378
30379 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30380
30381 PR go/63560
30382 * ipa-split.c (execute_split_functions): Do not split
30383 'noinline' or 'section' function.
30384
30385 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30386
30387 PR target/79846
30388 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30389 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30390 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30391
30392 PR ipa/80000
30393 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30394 from diagnostics. Formatting fixes.
30395
30396 PR target/85665
30397 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30398 warn_odr diagnostics.
30399
30400 PR other/80058
30401 * lra-constraints.c (process_alt_operands): Avoid one space before
30402 " at the end of line and another after " on another line in a string
30403 literal.
30404 * attribs.c (handle_dll_attribute): Likewise.
30405 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30406
30407 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30408 warning_at or inform messages in G_() if there is no ?:.
30409
30410 PR tree-optimization/89550
30411 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30412 returned true. Formatting fixes.
30413 (expand_builtin_strnlen): Formatting fixes.
30414 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30415 if warning_at returned true.
30416 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30417
30418 2019-03-08 Richard Biener <rguenther@suse.de>
30419
30420 PR middle-end/89578
30421 * cfgloop.h (struct loop): Add owned_clique field.
30422 * cfgloopmanip.c (copy_loop_info): Copy it.
30423 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30424 cliques.
30425 * tree-inline.c (copy_loops): Remap owned_clique.
30426 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30427 * lto-streamer-out.c (output_cfg): Likewise.
30428
30429 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30430
30431 PR target/80190
30432 * config/darwin.c: Include intl.h.
30433 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30434 composing the message out of two separate parts.
30435
30436 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30437
30438 PR target/80003
30439 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30440 doesn't start with a capital letter and doesn't end with a dot.
30441 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30442 with a capital letter.
30443 (ix86_mangle_function_version_assembler_name): Likewise.
30444 (ix86_generate_version_dispatcher_body): Likewise.
30445 (fold_builtin_cpu): Likewise.
30446 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30447 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30448 translators, wrap full type name in %qs.
30449
30450 PR translation/79999
30451 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30452 depend clause with source (or sink) modifier.
30453 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30454
30455 PR target/89602
30456 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30457 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30458 (avx512f_load<mode>_mask): New define_expand.
30459 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30460 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30461 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30462 __builtin_ia32_movess_mask): New builtins.
30463 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30464 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30465 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30466 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30467
30468 2019-03-07 Martin Jambor <mjambor@suse.cz>
30469
30470 PR lto/87525
30471 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30472 for extern inline functions.
30473
30474 2019-03-07 Martin Jambor <mjambor@suse.cz>
30475
30476 PR ipa/88235
30477 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30478 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30479 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30480 have multiple callees. At the end check if declarations match as
30481 opposed to cgraph_nodes.
30482
30483 2019-03-07 Martin Liska <mliska@suse.cz>
30484
30485 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30486 which is equivalent to searching for this in clones chain.
30487 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30488 names with a neighbour and special case first node in a chain.
30489
30490 2019-01-25 Jason Merrill <jason@redhat.com>
30491
30492 PR c++/80916 - spurious "static but not defined" warning.
30493 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30494 for an internal symbol with DECL_EXTERNAL.
30495
30496 2019-04-07 Richard Biener <rguenther@suse.de>
30497
30498 PR middle-end/89618
30499 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30500 * tree-inline.c (copy_loops): Simplify.
30501
30502 2019-03-07 Martin Liska <mliska@suse.cz>
30503
30504 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30505
30506 2019-03-07 Richard Biener <rguenther@suse.de>
30507
30508 PR tree-optimization/89595
30509 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30510 stmt iterator as reference, take boolean output parameter to
30511 indicate whether the stmt was removed and thus the iterator
30512 already advanced.
30513 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30514 stmts created by folding.
30515
30516 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30517
30518 PR c++/89585
30519 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30520 at toplevel.
30521
30522 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30523
30524 PR rtl-optimization/88845
30525 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30526 LRA.
30527 * lra.c (remove_scratches_1): New function.
30528 (remove_scratches): Use it.
30529 (lra_emit_move): Likewise.
30530
30531 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30532
30533 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30534 unaligned_access variable.
30535 * config/arc/arc.c (arc_override_options): Set unaligned access
30536 default on for HS CPUs.
30537 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30538
30539 2019-03-06 Martin Liska <mliska@suse.cz>
30540
30541 PR gcov-profile/89577
30542 * doc/gcov.texi: Prefer to use --coverage.
30543 * doc/sourcebuild.texi: Likewise.
30544
30545 2019-03-02 Jason Merrill <jason@redhat.com>
30546
30547 PR c++/86485 - -Wmaybe-unused with empty class ?:
30548 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30549
30550 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30551
30552 PR target/89587
30553 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30554 if_multiarch.
30555
30556 PR middle-end/89590
30557 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30558 exactly one argument.
30559
30560 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30561 Richard Sandiford <richard.sandiford@arm.com>
30562
30563 PR tree-optimization/89570
30564 * match.pd (vec_cond into cond_op simplification): Don't use
30565 get_conditional_internal_fn, use as_internal_fn (cond_op).
30566
30567 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30568
30569 PR target/89222
30570 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30571 to decide when to split off a non-zero offset from a symbol.
30572 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30573 in function symbols.
30574
30575 2019-03-05 Richard Biener <rguenther@suse.de>
30576
30577 PR tree-optimization/89594
30578 * tree-if-conv.c (pass_if_conversion::execute): Handle
30579 case where .LOOP_VECTORIZED_FUNCTION was removed.
30580
30581 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30582
30583 PR bootstrap/89560
30584 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30585 instead alloca it only when needed with the needed size.
30586
30587 PR tree-optimization/89570
30588 * match.pd (vec_cond into cond_op simplification): Guard with
30589 vectorized_internal_fn_supported_p test and #if GIMPLE.
30590
30591 PR tree-optimization/89566
30592 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30593 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30594 Punt if get_user_idx_format succeeds, but idx_format argument is
30595 not provided or doesn't have pointer type, or if idx_args is above
30596 number of provided arguments.
30597
30598 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30599
30600 PR tree-optimization/89437
30601 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30602
30603 2019-03-04 Richard Biener <rguenther@suse.de>
30604
30605 PR middle-end/89572
30606 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30607 safe_dyn_cast.
30608
30609 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30610
30611 PR tree-optimization/89487
30612 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30613 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30614 (distribute_loop): Don't do runtime alias check if there is non-
30615 addressable data reference.
30616 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30617 is a register variable.
30618
30619 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30620
30621 PR target/89506
30622 * config/arm/arm.md (cmpsi2_addneg): Use
30623 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30624 If operands[2] is 0 or INT_MIN, force use of subs.
30625 (*compare_scc splitter): Use gen_int_mode.
30626 (*negscc): Likewise.
30627 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30628
30629 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30630 Monk Chiang <sh.chiang04@gmail.com>
30631
30632 * common/config/riscv/riscv-common.c: Include sstream.
30633 (riscv_subset_list::to_string): New.
30634 (riscv_arch_str): Likewise.
30635 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30636 * config.in: Regen.
30637 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30638 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30639 (riscv_emit_attribute): New.
30640 (riscv_file_start): Emit attribute if needed.
30641 (riscv_option_override): Init riscv_emit_attribute_p.
30642 * config/riscv/riscv.opt (mriscv-attribute): New option.
30643 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30644 * configure: Regen.
30645 * doc/install.texi: Document --with-riscv-attribute.
30646 * doc/invoke.texi: Document -mriscv-attribute.
30647
30648 * common/config/riscv/riscv-common.c:
30649 Include config/riscv/riscv-protos.h.
30650 (INCLUDE_STRING): Defined.
30651 (RISCV_DONT_CARE_VERSION): Defined.
30652 (riscv_subset_t): Declare.
30653 (riscv_subset_t::riscv_subset_t): New.
30654 (riscv_subset_list): Declare.
30655 (riscv_subset_list::riscv_subset_list): New.
30656 (riscv_subset_list::~riscv_subset_list): Likewise.
30657 (riscv_subset_list::parsing_subset_version): Likewise.
30658 (riscv_subset_list::parse_std_ext): Likewise.
30659 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30660 (riscv_subset_list::add): Likewise.
30661 (riscv_subset_list::lookup): Likewise.
30662 (riscv_subset_list::xlen): Likewise.
30663 (riscv_subset_list::parse): Likewise.
30664 (riscv_supported_std_ext): Likewise.
30665 (current_subset_list): Likewise.
30666 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30667 parse.
30668
30669 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30670
30671 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30672 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30673 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30674
30675 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30676
30677 PR rtl-optimization/85899
30678 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30679 fallthru edges leading to the exit block.
30680
30681 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30682
30683 PR target/89517
30684 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30685 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30686
30687 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30688
30689 PR tree-optimization/89535
30690 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30691 for each operand. Calculate the fallback choice for mask operands
30692 and pass it to vect_get_vec_def_for_operand.
30693
30694 2019-03-01 Richard Biener <rguenther@suse.de>
30695
30696 PR middle-end/89541
30697 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30698 get virtual operands.
30699 (get_expr_operands): Handle CONST_DECL like other decls.
30700
30701 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30702
30703 PR middle-end/89503
30704 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30705 on DECL_P and EXPR_P.
30706
30707 2019-03-01 Richard Biener <rguenther@suse.de>
30708
30709 PR middle-end/89497
30710 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30711 argument, defaulted to zero.
30712 * passes.c (execute_function_todo): Pass down SSA update flags
30713 to cleanup_tree_cfg.
30714 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30715 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30716 form if requested.
30717 (cleanup_tree_cfg): Get and pass down SSA update flags.
30718
30719 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30720
30721 PR bootstrap/89539
30722 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30723 early_lto_debug argument.
30724
30725 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
30726
30727 PR tree-optimization/89536
30728 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30729 only whether bit #0 of the value is 0 instead of the entire value.
30730
30731 2019-02-28 Marek Polacek <polacek@redhat.com>
30732
30733 PR c++/87068 - missing diagnostic with fallthrough statement.
30734 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30735 at the end of a seq, save its location to walk_stmt_info.
30736 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30737 a switch.
30738
30739 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
30740
30741 PR lto/88585
30742 * tree.c (find_atomic_core_type): Move ahead in file.
30743 (check_base_type): Correctly compare alignments of atomic types.
30744
30745 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
30746
30747 PR target/89455
30748 * config/i386/i386.c (get_builtin_code_for_version): Identify
30749 Westmere from PCLMUL, instead of AES.
30750
30751 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30752
30753 PR target/89434
30754 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
30755 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
30756 -UINTVAL (...).
30757
30758 2019-02-28 Tamar Christina <tamar.christina@arm.com>
30759
30760 PR target/88530
30761 * config/aarch64/aarch64-option-extensions.def: Document it.
30762 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
30763 if empty hwcaps.
30764
30765 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30766
30767 PR c/89520
30768 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
30769 builtins if they don't have a single scalar floating point argument.
30770 Formatting fixes.
30771
30772 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
30773
30774 PR rtl-optimization/89490
30775 * varasm.c (get_block_for_section): Bail out for mergeable sections.
30776 (default_use_anchors_for_symbol_p, output_object_block): Assert the
30777 block section is not mergeable.
30778
30779 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30780
30781 PR target/70341
30782 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
30783 old define_insn to ...
30784 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
30785 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
30786 Rename old define_insn to ...
30787 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
30788 (thumb2_casesi_internal_pic): New define_expand. Rename old
30789 define_insn to ...
30790 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
30791 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
30792 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
30793
30794 2019-02-27 Richard Biener <rguenther@suse.de>
30795
30796 PR debug/88878
30797 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
30798
30799 2019-02-27 Richard Biener <rguenther@suse.de>
30800
30801 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
30802 building.
30803
30804 2019-02-27 Richard Biener <rguenther@suse.de>
30805
30806 PR debug/88878
30807 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
30808 parameter, prefix section name with .gnu.debuglto_ if true.
30809 (dwarf2out_finish): Pass false to output_comdat_type_unit.
30810 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
30811
30812 2019-02-27 Richard Biener <rguenther@suse.de>
30813
30814 PR debug/89514
30815 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
30816 rather than on use_debug_types, doing what output_die does.
30817 (value_format): Likewise.
30818
30819 2019-02-27 Martin Jambor <mjambor@suse.cz>
30820 Martin Sebor <msebor@redhat.com>
30821
30822 * doc/invoke.texi (Warning Options): Reword description of
30823 -Wno-absolute-value.
30824
30825 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30826
30827 PR tree-optimization/89280
30828 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
30829 builtin_setjmp_setup_bb): New functions.
30830 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
30831 When visiting __builtin_setjmp_setup block, queue in special
30832 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
30833 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
30834 from visited after the loop if they don't have any visited successor
30835 blocks.
30836
30837 2018-02-26 Steve Ellcey <sellcey@marvell.com>
30838
30839 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
30840 New function.
30841 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
30842
30843 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30844
30845 PR c++/89507
30846 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
30847 with types other than sizetype/ssizetype.
30848
30849 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30850
30851 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
30852 (enum sparc_processor_type): ...this.
30853 (enum sparc_code_model_type): New enumeration type.
30854 (enum sparc_memory_model_type): Tweak comments.
30855 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
30856 (mtune): Likewise.
30857 (mcmodel): Use sparc_code_model enumeration and variable.
30858 (sparc_code_model): New enumeration.
30859 (mdebug): Add Undocumented marker.
30860 * config/sparc/sparc.h (enum cmodel): Delete.
30861 (sparc_cmodel): Likewise.
30862 (TARGET_CM_MEDLOW): Adjust to above renaming.
30863 (TARGET_CM_MEDMID): Likewise.
30864 (TARGET_CM_MEDANY): Likewise.
30865 (TARGET_CM_EMBMEDANY): Likewise.
30866 * config/sparc/sparc.c (sparc_cmodel): Delete.
30867 (sparc_option_override): Remove string/value mapping support for the
30868 code model. Move code and memory model support to after the handling
30869 of target flags. Do private machine setup last.
30870 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
30871 (sparc_legitimize_reload_address): Likewise.
30872 (sparc_output_mi_thunk): Likewise.
30873 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
30874
30875 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30876
30877 PR tree-optimization/89500
30878 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
30879 (handle_builtin_strlen): Remove noncst_bound variable. Always
30880 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
30881 cst if the first cst bytes starting at x are known to be non-zero,
30882 even if the string is not zero terminated. Don't try to modify
30883 *si for strnlen. Update strlen_to_stridx only for strlen or if
30884 we can prove strnlen returns the same value as strlen would.
30885
30886 2019-02-26 Martin Liska <mliska@suse.cz>
30887
30888 * alloc-pool.h (struct pool_usage): Remove extra
30889 print_dash_line.
30890 * bitmap.h (struct bitmap_usage): Likewise.
30891 * ggc-common.c (struct ggc_usage): Likewise.
30892 * mem-stats.h (struct mem_usage): Likewise.
30893 (mem_alloc_description::dump): Print dash lines
30894 here and repeat header at the end of a table report.
30895 It's then more readable.
30896 * tree-phinodes.c (phinodes_print_statistics): Make
30897 horizontal alignment.
30898 * tree-ssanames.c (ssanames_print_statistics): Likewise.
30899 * vec.c (struct vec_usage): Remove extra print_dash_line.
30900 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
30901
30902 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
30903
30904 * doc/extend.texi (__builtin_object_size):
30905 Use @pxref instead of @xref inside parenthesis.
30906 (__builtin_has_attribute): Add missing comma after @xref.
30907 (__builtin_object_size): Ditto.
30908 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
30909
30910 2019-02-26 Jeff Law <law@redhat.com>
30911
30912 PR rtl-optimization/87761
30913 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
30914 detect obviously dead insns and delete them.
30915
30916 2019-02-26 Richard Biener <rguenther@suse.de>
30917
30918 PR tree-optimization/89505
30919 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
30920 to handle restrict pointed-to vars with multiple subvars
30921 correctly.
30922
30923 2019-02-26 Richard Biener <rguenther@suse.de>
30924
30925 PR tree-optimization/89489
30926 * tree-parloops.c (create_loop_fn): Copy over last_clique.
30927
30928 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30929
30930 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
30931 and move around comment.
30932 <BIT_AND_EXPR>: Likewise.
30933 <BIT_NOT_EXPR>: Add specific handling for boolean types.
30934
30935 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30936
30937 PR target/89474
30938 * config/i386/i386.c (remove_partial_avx_dependency): Call
30939 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
30940 after changing possibly many instructions to use that pseudo. Fix up
30941 insertion of v4sf_const0 setter at the start of bb.
30942
30943 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30944
30945 PR c/80409
30946 * doc/extend.texi (Variadic Pointer Args): New section.
30947
30948 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30949 Martin Sebor <msebor@gmail.com>
30950
30951 * common.opt (Wattribute-alias): Likewise.
30952 * doc/invoke.texi (Option Summary): List general form of
30953 -Wattribute-alias=. List positive form of -Wmissing-attributes.
30954 (-Wmissing-attributes): Invert entry, rewrite and correct default.
30955 Add cross-references.
30956 (-Wattribute-alias): Rewrite and correct default. Mention
30957 considered attributes (same as for -Wmissing-attributes).
30958
30959 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
30960
30961 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
30962 (_mm_cvtpd_ps): Likewise.
30963 (_mm_cvttpd_epi32): Likewise.
30964
30965 PR target/89338
30966 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
30967 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
30968
30969 PR target/89339
30970 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
30971
30972 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30973
30974 PR target/88530
30975 * common/config/aarch64/aarch64-common.c
30976 (struct aarch64_option_extension): Add is_synthetic.
30977 (all_extensions): Use it.
30978 (TARGET_OPTION_INIT_STRUCT): Define hook.
30979 (struct gcc_targetm_common): Moved to end.
30980 (all_extensions_by_on): New.
30981 (opt_ext_cmp, typedef opt_ext): New.
30982 (aarch64_option_init_struct): New.
30983 (aarch64_contains_opt): New.
30984 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
30985 * config/aarch64/aarch64-option-extensions.def
30986 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
30987 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
30988 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
30989 Set is_synthetic to false.
30990 (crypto): Set is_synthetic to true.
30991 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
30992 SYNTHETIC.
30993
30994 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30995
30996 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30997 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
30998 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30999 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31000 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31001 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31002 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31003 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31004 Rename ...
31005 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31006 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31007 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31008 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31009 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31010 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31011 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31012 vfmlsl_laneq_high_f16): ... To this.
31013 * config/arm/neon.md: Update comments.
31014
31015 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31016
31017 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31018 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31019 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31020 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31021 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31022 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31023 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31024 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31025 Rename ...
31026 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31027 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31028 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31029 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31030 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31031 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31032 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31033 vfmlslq_laneq_high_f16): ... To this.
31034
31035 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31036
31037 PR rtl-optimization/86096
31038 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31039 comparing mw_order values.
31040
31041 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31042
31043 PR target/89434
31044 * config/arm/arm.md (*subsi3_carryin_const): Use
31045 arm_neg_immediate_operand predicate instead of
31046 arm_not_immediate_operand, "L" constraint instead of "K" and
31047 print it using %n2 instead of %B2.
31048 (*subsi3_carryin_const0): New define_insn.
31049 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31050 instead of arm_not_operand and "I" constraint instead of "K" and
31051 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31052 another match_operand and in the condition check that it is negation
31053 of operands[2].
31054 (*subsi3_carryin_compare_const0): New define_ins.
31055 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31056 *subsi3_carryin_const.
31057 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31058 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31059
31060 PR target/89438
31061 * config/arm.vfp.md (*negdf2_vfp): Use
31062 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31063 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31064
31065 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31066
31067 PR rtl-optimization/89445
31068 * simplify-rtx.c (simplify_ternary_operation): Don't use
31069 simplify_merge_mask on operands that may trap.
31070 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31071 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31072 second operand is CONST_VECTOR, check if any element could be zero.
31073 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31074 their operands can trap.
31075
31076 2019-02-23 Martin Sebor <msebor@redhat.com>
31077
31078 * gimple-ssa-sprintf.c (target_strtol): Rename...
31079 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31080 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31081 check for range error.
31082
31083 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31084
31085 PR driver/69471
31086 * opts-common.c (prune_options): Also prune joined switches
31087 with Negative and RejectNegative.
31088 * config/i386/i386.opt (march=): Add Negative(march=).
31089 (mtune=): Add Negative(mtune=).
31090 * doc/options.texi: Document Negative used together with Joined
31091 and RejectNegative.
31092
31093 2019-02-22 Martin Sebor <msebor@redhat.com>
31094
31095 * doc/extend.texi (Other Builtins): Add
31096 __builtin_is_constant_evaluated.
31097
31098 2019-02-22 Richard Biener <rguenther@suse.de>
31099
31100 PR tree-optimization/87609
31101 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31102
31103 2019-02-22 Jeff Law <law@redhat.com>
31104
31105 PR rtl-optimization/87761
31106 * config/mips/mips.md: Add new combiner pattern to recognize
31107 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31108
31109 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31110
31111 PR target/89324
31112 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31113 destination register in peepholes generating patterns for ADDS/SUBS.
31114 (add<mode>3_compare0,
31115 *addsi3_compare0_uxtw, add<mode>3_compareC,
31116 add<mode>3_compareV_imm, add<mode>3_compareV,
31117 *adds_<optab><ALLX:mode>_<GPI:mode>,
31118 *subs_<optab><ALLX:mode>_<GPI:mode>,
31119 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31120 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31121 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31122 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31123 sub<mode>3_compare1): Allow stack pointer for source register.
31124 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31125
31126 2019-02-22 Martin Sebor <msebor@redhat.com>
31127
31128 PR tree-optimization/88993
31129 PR tree-optimization/88853
31130 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31131 New helper.
31132 (sprintf_dom_walker::call_info::is_string_func): New helper.
31133 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31134 for formatted string functions.
31135 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31136
31137 2019-02-22 Martin Sebor <msebor@redhat.com>
31138
31139 PR c/89425
31140 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31141 unreachable subexpressions.
31142
31143 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31144 Hongtao Liu <hongtao.liu@intel.com>
31145 Sunil K Pandey <sunil.k.pandey@intel.com>
31146
31147 PR target/87007
31148 * config/i386/i386-passes.def: Add
31149 pass_remove_partial_avx_dependency.
31150 * config/i386/i386-protos.h
31151 (make_pass_remove_partial_avx_dependency): New.
31152 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31153 New function.
31154 (pass_data_remove_partial_avx_dependency): New.
31155 (pass_remove_partial_avx_dependency): Likewise.
31156 (make_pass_remove_partial_avx_dependency): Likewise.
31157 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31158 (*extendsfdf2): Add avx_partial_xmm_update.
31159 (truncdfsf2): Likewise.
31160 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31161 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31162
31163 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31164
31165 PR middle-end/85598
31166 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31167 analysis for pass.
31168
31169 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31170
31171 PR target/89444
31172 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31173 (PTA_SKYLAKE): Add PTA_AES.
31174 (PTA_GOLDMONT): Likewise.
31175
31176 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31177
31178 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31179 instruction if enabled.
31180 (aarch64_override_options): Remove reference to return address key.
31181
31182 2019-02-22 Richard Biener <rguenther@suse.de>
31183
31184 PR tree-optimization/89440
31185 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31186 not necessary assert.
31187
31188 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31189
31190 PR fortran/72741
31191 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31192 (oacc_replace_fn_attrib_attr): ... this new function.
31193 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31194 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31195
31196 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31197
31198 * config/arm/arm-cpus.in (ares): Rename to...
31199 (neoverse-n1): ... This. Add ares as alias.
31200 * config/arm/arm-tables.opt: Regenerate.
31201 * config/arm/arm-tune.md: Likewise.
31202 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31203
31204 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31205
31206 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31207 * config/aarch64/aarch64-tune.md: Regenerate.
31208 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31209
31210 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31211
31212 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31213 (neoversen1_tunings): ... This.
31214 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31215 (neoverse-n1): New CPU.
31216 * config/aarch64/aarch64-tune.md: Regenerate.
31217 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31218
31219 2019-02-22 Richard Biener <rguenther@suse.de>
31220
31221 PR middle-end/87609
31222 * cfghooks.h (dependence_hash): New typedef.
31223 (struct copy_bb_data): New type.
31224 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31225 (duplicate_block): Likewise.
31226 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31227 (copy_bbs): Create and pass down copy_bb_data.
31228 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31229 (rtl_duplicate_bb): Likewise.
31230 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31231 remap dependence info.
31232
31233 2019-02-22 Richard Biener <rguenther@suse.de>
31234
31235 PR tree-optimization/87609
31236 * tree-core.h (tree_base): Document special clique values.
31237 * tree-inline.c (remap_dependence_clique): Do not use the
31238 special clique value of one.
31239 (maybe_set_dependence_info): Use clique one.
31240 (clear_dependence_clique): New callback.
31241 (compute_dependence_clique): Clear clique one from all refs
31242 before assigning it (again).
31243
31244 2019-02-21 Martin Sebor <msebor@redhat.com>
31245
31246 * doc/extend.texi (__clear_cache): Correct signature.
31247
31248 2019-02-21 Ian Lance Taylor <iant@golang.org>
31249
31250 PR go/89170
31251 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31252 than output_constant_def.
31253 (add_constant_to_table): New static function.
31254 (output_constant_def): Call add_constant_to_table.
31255 (tree_output_constant_def): Likewise.
31256
31257 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31258
31259 PR c++/89285
31260 * builtins.c (fold_builtin_arith_overflow): If first two args are
31261 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31262 to ifn.
31263
31264 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31265
31266 PR target/87412
31267 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31268 error for -mindirect-branch/-mfunction-return with incompatible
31269 -fcf-protection.
31270
31271 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31272
31273 PR bootstrap/88714
31274 * constraints.md (q): Remove.
31275 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31276 instead of q.
31277
31278 2019-02-21 Martin Jambor <mjambor@suse.cz>
31279
31280 PR hsa/89302
31281 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31282 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31283 (omp_adjust_for_condition): ...here. Added necessary parameters.
31284 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31285 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31286 proper values to new parameters of omp_adjust_for_condition.
31287
31288 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31289
31290 PR middle-end/89412
31291 * expr.c (expand_assignment): If result is a MEM, use change_address
31292 instead of simplify_gen_subreg.
31293
31294 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31295 David Malcolm <dmalcolm@redhat.com>
31296
31297 PR middle-end/89091
31298 * fold-const.c (decode_field_reference): Return NULL_TREE if
31299 lang_hooks.types.type_for_size returns NULL. Check it before
31300 overwriting *exp_. Use return NULL_TREE instead of return 0.
31301
31302 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31303
31304 PR middle-end/88074
31305 PR middle-end/89415
31306 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31307 buggy mpc_norm.
31308
31309 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31310
31311 PR target/89397
31312 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31313 TARGET_SSE in addition to TARGET_SSE_MATH.
31314
31315 (ix86_excess_precision): Ditto.
31316 (ix86_float_exceptions_rounding_supported_p): Ditto.
31317 (use_rsqrt_p): Ditto.
31318 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31319
31320 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31321
31322 PR c/89410
31323 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31324 linenum_arith_t when determining if two adjacent line spans are
31325 close enough to merge.
31326 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31327 lines within each line_span.
31328
31329 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31330
31331 PR target/86487
31332 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31333 paradoxical SUBREGS.
31334
31335 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31336
31337 PR target/88100
31338 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31339 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31340 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31341 range checking it.
31342
31343 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31344
31345 * config/gcn/gcn.c (print_operand): Fix typo.
31346
31347 2019-02-19 Richard Biener <rguenther@suse.de>
31348
31349 PR middle-end/88074
31350 * toplev.c (do_compile): Initialize mpfr's exponent range
31351 based on available float modes.
31352
31353 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31354
31355 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31356 as long as the epilogue isn't completed.
31357
31358 2019-02-18 Martin Sebor <msebor@redhat.com>
31359
31360 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31361 __has_cpp_attribute, and __has_include.
31362
31363 2019-02-18 Martin Sebor <msebor@redhat.com>
31364
31365 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31366
31367 2019-02-18 Martin Sebor <msebor@redhat.com>
31368
31369 PR middle-end/89294
31370 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31371 expression.
31372 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31373
31374 2019-02-18 Richard Biener <rguenther@suse.de>
31375
31376 PR tree-optimization/89296
31377 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31378 of no-warning flag to cases that might emit the bogus warning.
31379
31380 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31381
31382 PR bootstrap/88714
31383 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31384 "q" constraint.
31385 * config/arm/vfp.md (*movdi_vfp): Likewise.
31386 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31387 "q" constraint for operands[0].
31388
31389 PR target/89369
31390 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31391 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31392 pattern in a temporary buffer.
31393 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31394 than 64-operands[2].
31395
31396 PR target/89361
31397 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31398 s390_indirect_branch_settings): Define unconditionally.
31399 (s390_set_current_function): Likewise, but guard the whole body except
31400 the s390_indirect_branch_settings call with
31401 #if S390_USE_TARGET_ATTRIBUTE.
31402 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31403
31404 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31405 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31406 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31407 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31408 HOST_WIDE_INT_1U instead of 1ULL.
31409 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31410 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31411 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31412 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31413 instead of 1UL.
31414 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31415 instead of 1ul.
31416
31417 2019-02-18 Martin Jambor <mjambor@suse.cz>
31418
31419 PR tree-optimization/89209
31420 * tree-sra.c (create_access_replacement): New optional parameter
31421 reg_tree. Use it as a type if non-NULL and access type is not of
31422 a register type.
31423 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31424 to create_access_replacement.
31425 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31426 Check lacc is non-NULL before attempting to re-create it on the RHS.
31427
31428 2019-02-18 Martin Liska <mliska@suse.cz>
31429
31430 PR ipa/89306
31431 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31432 by default.
31433 (symbol_table::free_edge): Recycle m_summary_id.
31434 * cgraph.h (get_summary_id): New.
31435 (symbol_table::release_symbol): Set m_summary_id to -1
31436 by default.
31437 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31438 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31439 function_summary to fast_function_summary.
31440 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31441 * ipa-pure-const.c (class funct_state_summary_t):
31442 Switch from function_summary to fast_function_summary.
31443 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31444 (class ipa_ref_opt_summary_t): Switch from function_summary
31445 to fast_function_summary.
31446 * symbol-summary.h (class function_summary_base): New class
31447 that is created from base of former function_summary.
31448 (function_summary_base::unregister_hooks): New.
31449 (class function_summary): Inherit from function_summary_base.
31450 (class call_summary_base): New class
31451 that is created from base of former call_summary.
31452 (class call_summary): Inherit from call_summary_base.
31453 (struct is_same): New.
31454 (class fast_function_summary): New summary class.
31455 (class fast_call_summary): New summary class.
31456 * vec.h (vec_safe_grow_cleared): New function.
31457
31458 2019-02-18 Martin Liska <mliska@suse.cz>
31459
31460 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31461 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31462 * doc/tm.texi: Document new target hook.
31463 * doc/tm.texi.in: Likewise.
31464 * target.def: Add new target macro.
31465 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31466 suffixes.
31467
31468 2019-02-17 Alan Modra <amodra@gmail.com>
31469
31470 PR target/89271
31471 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31472 output reg on add insn.
31473 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31474
31475 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31476
31477 PR target/89372
31478 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31479 (PMULHRSW): Likewise.
31480 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31481 TARGET_AVX2.
31482 (ssse3_pmulhrswv4hi3): New expander.
31483
31484 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31485
31486 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31487 MMX. Add isa attribute.
31488
31489 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31490
31491 PR rtl-optimization/66152
31492 * builtins.h (c_readstr): Declare.
31493 * builtins.c (c_readstr): Remove forward declaration. Add
31494 null_terminated_p argument, if false, read all bytes from the
31495 string instead of stopping after '\0'.
31496 * expr.c (string_cst_read_str): New function.
31497 (store_expr): Use string_cst_read_str instead of
31498 builtin_strncpy_read_str. Try to store by pieces the whole
31499 exp_len first, and only if that fails, split it up into
31500 store by pieces followed by clear_storage. Formatting fix.
31501
31502 * config/i386/i386.md (*movqi_internal): Remove static from
31503 buf variable. Use output_asm_insn (buf, operands); return "";
31504 instead of return buf;.
31505 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31506 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31507 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31508
31509 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31510
31511 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31512 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31513 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31514 (CC1_SPEC): Likewise.
31515 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31516
31517 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31518
31519 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31520 the base address on 64-bit strict-alignment platforms.
31521
31522 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31523
31524 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31525
31526 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31527
31528 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31529
31530 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31531
31532 PR rtl-optimization/88308
31533 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31534 on copied instruction.
31535
31536 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31537
31538 * final.c (insn_current_reference_address): Replace test on JUMP_P
31539 with test on jump_to_label_p.
31540 * config/visium/visium-passes.def: New file.
31541 * config/visium/t-visium (PASSES_EXTRA): Define.
31542 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31543 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31544 (TRAMPOLINE_ALIGNMENT): Define.
31545 * config/visium/visium.c (visium_option_override): Do not register
31546 the machine-specific reorg pass here.
31547 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31548 for the GR6.
31549 (output_branch): Adjust threshold for long branch instruction.
31550 * config/visium/visium.md (cpu): Move around.
31551 (length): Adjust for the GR6.
31552
31553 2019-02-15 Richard Biener <rguenther@suse.de>
31554 Jakub Jelinek <jakub@redhat.com>
31555
31556 PR tree-optimization/89278
31557 * tree-loop-distribution.c: Include tree-eh.h.
31558 (generate_memset_builtin, generate_memcpy_builtin): Call
31559 rewrite_to_non_trapping_overflow on builtin->size before passing it
31560 to force_gimple_operand_gsi.
31561
31562 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31563
31564 PR other/89342
31565 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31566 optimize_debug.
31567 * opth-gen.awk: Likewise.
31568
31569 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31570
31571 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31572 Enable MMX, SSE and SSE2 by default.
31573 * config/i386/i386.c (ix86_option_override_internal): Do not
31574 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31575
31576 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31577
31578 PR rtl-optimization/89354
31579 * combine.c (make_extraction): Punt if extraction_mode is narrower
31580 than len bits.
31581
31582 2019-02-14 Maya Rashish <coypu@sdf.org>
31583
31584 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31585 * config/netbsd-d.c: New file.
31586 * config/t-netbsd: Add netbsd-d.o
31587
31588 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31589
31590 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31591 affects_type_identity to true for aarch64_vector_pcs.
31592 (aarch64_comp_type_attributes): New function.
31593 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31594
31595 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31596
31597 PR target/88850
31598 * config/arm/iterators.md (ANY64): Add V4HF.
31599
31600 2019-02-14 Martin Liska <mliska@suse.cz>
31601
31602 PR rtl-optimization/89242
31603 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31604 process a transformation.
31605
31606 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31607
31608 PR tree-optimization/89314
31609 * fold-const.c (fold_binary_loc): Cast strlen argument to
31610 const char * before dereferencing it. Formatting fixes.
31611
31612 PR middle-end/89284
31613 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31614
31615 2019-02-13 Ian Lance Taylor <iant@golang.org>
31616
31617 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31618 and set current index for other optimizations.
31619
31620 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31621
31622 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31623 nonimmediate_operand as operand 2 predicate.
31624 (vec_set<VF2_512_256:mode>_0): Ditto.
31625 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31626 (*vec_concatv2si): Remove alternative 2.
31627 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31628 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31629 (vec_concatv2di): Split alternatives 4,5,6 to ...
31630 (*vec_concatv2di_0) ... new pattern.
31631
31632 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31633
31634 PR target/89190
31635 * config/arm/arm.c (ldm_stm_operation_p) Set
31636 addr_reg_in_reglist correctly for first register.
31637 (load_multiple_sequence): Remove dead base check.
31638 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31639
31640 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31641
31642 PR target/88847
31643 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31644 Expose as @aarch64_pred_mov.
31645 * config/aarch64/aarch64.c (aarch64_classify_address):
31646 Use expand_insn which legitimizes operands.
31647
31648 2019-02-13 Martin Liska <mliska@suse.cz>
31649
31650 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31651 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31652 and pointer_offset fields.
31653 (initialize_argument_information): Remove usage of dead
31654 fields.
31655 * cgraph.h (struct cgraph_thunk_info): Remove
31656 add_pointer_bounds_args.
31657 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31658 fields.
31659 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31660 fields.
31661 * config/i386/i386.c (ix86_function_arg_advance): Remove
31662 unrelated comment.
31663 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31664 (def_builtin): Remove usage of dead fields.
31665 (ix86_add_new_builtins): Likewise.
31666 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31667 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31668 (sem_function::init): Likewise.
31669 (sem_variable::merge): Likewise.
31670 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31671 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31672 * lto-cgraph.c (lto_output_node): Likewise.
31673 (lto_output_varpool_node): Likewise.
31674 (input_node): Likewise.
31675 (input_varpool_node): Likewise.
31676 * lto-streamer-out.c (lto_output): Likewise.
31677 * tree-inline.c (expand_call_inline): Remove usage of
31678 assign_stmts.
31679 * tree-inline.h (struct copy_body_data): Likewise.
31680 * varpool.c (varpool_node::dump): Likewise.
31681
31682 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31683
31684 PR middle-end/89303
31685 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31686 into pt->vars_contains_escaped_heap instead of setting
31687 pt->vars_contains_escaped_heap to it.
31688
31689 PR middle-end/89281
31690 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31691 INTVAL (size), compare it to GET_MODE_MASK instead of
31692 1 << GET_MODE_BITSIZE.
31693
31694 PR target/89290
31695 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31696 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31697 -mcmodel=large.
31698
31699 2019-02-13 Martin Liska <mliska@suse.cz>
31700
31701 PR lto/88858
31702 * cfgrtl.c (remove_barriers_from_footer): New function.
31703 (try_redirect_by_replacing_jump): Use it.
31704 (cfg_layout_redirect_edge_and_branch): Likewise.
31705
31706 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31707
31708 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31709 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31710 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31711 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31712 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31713 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31714 New BU_CRYPTO_2.
31715 * config/rs6000/rs6000.c (builtin_function_type)
31716 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31717 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31718 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31719 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31720 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31721
31722 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
31723
31724 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31725 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31726
31727 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
31728
31729 PR target/89229
31730 * config/i386/i386.md (*movoi_internal_avx): Revert revision
31731 268678 and revision 268657.
31732 (*movti_internal): Likewise.
31733
31734 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
31735
31736 PR target/89233
31737 * config/s390/s390.c (s390_decompose_address): Update comment.
31738 (s390_check_qrst_address): Reject invalid address forms after
31739 LRA.
31740
31741 2019-02-12 Martin Liska <mliska@suse.cz>
31742
31743 PR lto/88876
31744 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31745 we need default values of funct_state for a function that
31746 is not optimized.
31747
31748 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
31749
31750 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31751 the object to pick the size of stores on strict-alignment platforms.
31752
31753 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
31754 (*movdi_insn_sp32): Likewise.
31755 (*movdi_insn_sp64): Likewise.
31756
31757 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
31758
31759 PR lto/88677
31760 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
31761 types that needs constructiong.
31762 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
31763
31764 2019-02-12 Richard Biener <rguenther@suse.de>
31765
31766 PR tree-optimization/89253
31767 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
31768 duplicate the loop.
31769
31770 2019-02-11 David Malcolm <dmalcolm@redhat.com>
31771
31772 PR lto/88147
31773 * input.c (selftest::test_line_offset_overflow): New selftest.
31774 (selftest::input_c_tests): Call it.
31775
31776 2019-02-11 Martin Sebor <msebor@redhat.com>
31777
31778 PR tree-optimization/88771
31779 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
31780 when -Wstringop-overflow is set.
31781 (builtin_memref::builtin_memref): Adjust excessive upper bound
31782 only when lower bound is not excessive.
31783 (maybe_diag_overlap): Detect and diagnose excessive bounds via
31784 -Wstringop-ovefflow.
31785 (maybe_diag_offset_bounds): Rename...
31786 (maybe_diag_access_bounds): ...to this.
31787 (check_bounds_or_overlap): Adjust for name change above.
31788
31789 2019-02-11 Martin Sebor <msebor@redhat.com>
31790
31791 PR c++/87996
31792 * builtins.c (max_object_size): Move from here...
31793 * builtins.h (max_object_size): ...and here...
31794 * tree.c (max_object_size): ...to here...
31795 * tree.h (max_object_size): ...and here.
31796
31797 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
31798
31799 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
31800 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
31801 for correct semantics.
31802
31803 2019-02-11 Alan Modra <amodra@gmail.com>
31804
31805 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
31806 -mlongcall and -mpltseq.
31807 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
31808 (RS/6000 and PowerPC Options <-mpltseq>): Document.
31809 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
31810 * config/rs6000/sysv4.opt (mpltseq): New option.
31811 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
31812 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
31813 support is lacking. Don't allow -mpltseq with -mbss-plt.
31814 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
31815 -mpltseq given for ELFv1.
31816 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
31817 Only use UNSPEC_PLTSEQ for inline PLT calls.
31818 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
31819 use UNSPEC_PLTSEQ for inline PLT calls.
31820 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
31821 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
31822 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
31823 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31824 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31825 (pltseq_mtctr_<mode>): Likewise.
31826
31827 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31828
31829 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
31830 Solaris ld.
31831 * configure: Regenerate.
31832
31833 2019-02-11 Jakub Jelinek <jakub@redhat.com>
31834
31835 PR bootstrap/88714
31836 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
31837 instead of r.
31838
31839 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31840
31841 * function.c (assign_parm_setup_block): Use the stored
31842 size, not the passed size, when allocating stack-space,
31843 also for a parameter with alignment larger than
31844 MAX_SUPPORTED_STACK_ALIGNMENT.
31845
31846 2019-02-11 Martin Liska <mliska@suse.cz>
31847
31848 PR ipa/89009
31849 * ipa-cp.c (build_toporder_info): Remove usage of a param.
31850 * ipa-inline.c (inline_small_functions): Likewise.
31851 * ipa-pure-const.c (propagate_pure_const): Likewise.
31852 (propagate_nothrow): Likewise.
31853 * ipa-reference.c (propagate): Likewise.
31854 * ipa-utils.c (struct searchc_env): Remove unused field.
31855 (searchc): Always search across AVAIL_INTERPOSABLE.
31856 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
31857 the only called IPA pure const can properly not propagate
31858 across interposable boundary.
31859 * ipa-utils.h (ipa_reduced_postorder): Remove param.
31860
31861 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
31862
31863 * config/nds32/nds32.md (call_internal, call_value_internal,
31864 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
31865
31866 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31867
31868 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
31869 typo.
31870
31871 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
31872
31873 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
31874 in comments
31875
31876 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31877
31878 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
31879
31880 2019-02-10 Jakub Jelinek <jakub@redhat.com>
31881
31882 PR tree-optimization/89268
31883 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
31884 if preds is non-NULL.
31885
31886 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31887
31888 PR lto/89272
31889 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
31890 polymorphic types.
31891
31892 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31893
31894 * config/nds32/nds32.md (trap): New pattern.
31895
31896 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31897
31898 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
31899 dwarf span.
31900
31901 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31902
31903 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
31904 to split POST_INC.
31905
31906 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31907
31908 * ipa-visibility.c (localize_node): Also do not localize
31909 LDPR_PREVAILING_DEF_IRONLY_EXP.
31910
31911 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31912
31913 PR lto/87957
31914 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
31915 instead of type_with_linkage.
31916
31917 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31918
31919 PR ipa/88755
31920 * params.def (uninlined-function-insns, uninlined-function-time,
31921 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
31922 bound so we don't get overflows.
31923
31924 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
31925
31926 * config/rs6000/rs6000-string.c (expand_compare_loop,
31927 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
31928 memcmp/strncmp.
31929
31930 2019-02-09 Jakub Jelinek <jakub@redhat.com>
31931
31932 PR middle-end/89246
31933 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31934 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
31935 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
31936
31937 2019-02-09 Alan Modra <amodra@gmail.com>
31938
31939 PR target/88343
31940 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
31941 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
31942 setup.
31943
31944 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
31945
31946 PR middle-end/88560
31947 * lra-constraints.c (process_alt_operands): Don't increase reject
31948 for memory when offset memory is required.
31949
31950 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
31951
31952 * config/s390/vector.md: Implement vector copysign.
31953
31954 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31955
31956 * expr.c (expand_constructor): Correct indentations.
31957
31958 2019-02-08 Richard Biener <rguenther@suse.de>
31959
31960 PR tree-optimization/89247
31961 * tree-if-conv.c: Include tree-cfgcleanup.h.
31962 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
31963 (tree_if_conversion): Pass through predicate vector.
31964 (pass_if_conversion::execute): Do CFG cleanup and SSA update
31965 inline, see if any if-converted loops we refrece in
31966 LOOP_VECTORIZED calls vanished and fixup.
31967 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
31968
31969 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
31970
31971 * config/s390/constraints.md (jdd): New constraint.
31972
31973 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31974
31975 PR target/89229
31976 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
31977 upper 16 vector registers without TARGET_AVX512VL.
31978 (*movti_internal): Likewise.
31979
31980 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31981
31982 PR rtl-optimization/89234
31983 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
31984 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
31985 (copy_reg_eh_region_note_backward): Likewise.
31986
31987 2019-02-08 Richard Biener <rguenther@suse.de>
31988
31989 PR middle-end/89223
31990 * tree-data-ref.c (initialize_matrix_A): Fail if constant
31991 doesn't fit in HWI.
31992 (analyze_subscript_affine_affine): Handle failure from
31993 initialize_matrix_A.
31994
31995 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31996
31997 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
31998 cfun everywhere.
31999
32000 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32001
32002 PR tree-optimization/86637
32003 PR tree-optimization/89235
32004 * tree-vect-loop.c (optimize_mask_stores): Add an
32005 auto_purge_vect_location sentinel to ensure that vect_location is
32006 purged on exit.
32007 * tree-vectorizer.c
32008 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32009 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32010 to ensure that vect_location is purged on exit.
32011 (pass_slp_vectorize::execute): Likewise, replacing the manual
32012 reset.
32013 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32014
32015 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32016
32017 * config/aarch64/iterators.md (max_opp): New code_attr.
32018 (USMAX): New code iterator.
32019 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32020 (aarch64_smax): Likewise.
32021 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32022 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32023 MINUS (MAX MIN).
32024
32025 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32026
32027 PR target/89229
32028 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32029 for TARGET_AVX512VL.
32030 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32031
32032 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32033
32034 * config/s390/s390-builtin-types.def: Add new types.
32035 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32036 (s390_vec_xlw4): Make the memory operand into a const pointer.
32037 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32038 float.
32039 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32040 a new vector type with the alignment of the scalar memory operand.
32041
32042 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32043 Jakub Jelinek <jakub@redhat.com>
32044
32045 PR bootstrap/88714
32046 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32047 arm_count_ldrdstrd_insns): New declarations.
32048 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32049 MINUS.
32050 (valid_operands_ldrd_strd): New function.
32051 (arm_count_ldrdstrd_insns): New function.
32052 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32053 sets instead of single DImode set and define new insns to match this.
32054
32055 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32056
32057 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32058 Make it a C initializer.
32059
32060 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32061
32062 PR/target 88850
32063 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32064
32065 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32066
32067 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32068 Use neon_dot<q> for type.
32069 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32070
32071 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32072
32073 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32074 Use neon_dot<q> for type.
32075 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32076 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32077
32078 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32079
32080 PR rtl-optimization/89225
32081 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32082 sizes check.
32083
32084 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32085
32086 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32087 after restoring registers saved to allocate the frame on Windows.
32088
32089 2019-02-06 Richard Biener <rguenther@suse.de>
32090
32091 PR tree-optimization/89182
32092 * graphite.h (cached_scalar_evolution_in_region): Declare.
32093 * graphite.c (struct seir_cache_key): New.
32094 (struct sese_scev_hash): Likewise.
32095 (seir_cache): New global.
32096 (cached_scalar_evolution_in_region): New function.
32097 (graphite_transform_loops): Allocate and release seir_cache.
32098 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32099 cached_scalar_evolution_in_region.
32100 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32101 Simplify.
32102 (scop_detection::graphite_can_represent_expr: Use
32103 cached_scalar_evolution_in_region.
32104 (scop_detection::stmt_simple_for_scop_p): Likewise.
32105 (find_params_in_bb): Likewise.
32106 (gather_bbs::before_dom_children): Likewise.
32107 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32108 (add_loop_constraints): Likewise.
32109
32110 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32111
32112 PR middle-end/89210
32113 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32114 operand to new_unary_operation only if both element types are integral
32115 and it isn't a widening conversion. Return NULL_TREE if
32116 new_unary_operation failed.
32117
32118 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32119
32120 PR target/88856
32121 * config/s390/s390.md: Remove load and test FP splitter.
32122
32123 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32124
32125 PR target/89112
32126 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32127 expand_compare_loop, expand_block_compare_gpr,
32128 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32129 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32130 #include "profile-count.h" and "predict.h" for types and functions
32131 needed to work with REG_BR_PROB notes.
32132
32133 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32134
32135 PR target/89112
32136 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32137 for the long branch case.
32138
32139 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32140
32141 PR target/89188
32142 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32143 can throw, non-call exceptions are enabled and we can't delete
32144 dead exceptions or alter cfg. Set must_clean if
32145 delete_insn_and_edges returns true, don't set it blindly for calls.
32146 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32147
32148 PR rtl-optimization/89195
32149 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32150 of the original MEM.
32151
32152 2019-02-05 Martin Liska <mliska@suse.cz>
32153
32154 PR gcov-profile/89000
32155 * gcov.c (function_summary): Remove argument.
32156 (file_summary): New function.
32157 (print_usage): Replace tabs with spaces.
32158 (generate_results): Use new function file_summary.
32159
32160 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32161
32162 PR target/89186
32163 * optabs.c (prepare_cmp_insn): Pass x and y to
32164 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32165
32166 2019-02-05 Richard Biener <rguenther@suse.de>
32167
32168 PR middle-end/89150
32169 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32170 (struct bitmap_element): Drop chain_prev so we properly recurse on
32171 the prev member, supporting tree views.
32172 (struct bitmap_head): GTY skip the obstack member.
32173
32174 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32175
32176 PR c/88698
32177 * doc/extend.texi (Vector Extensions): Add an example of using vector
32178 types together with x86 intrinsics.
32179
32180 2019-02-04 Alan Modra <amodra@gmail.com>
32181
32182 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32183 str[] size to 160, and comment.
32184
32185 2019-02-04 Alan Modra <amodra@gmail.com>
32186
32187 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32188 (rs6000_pltseq_template): Guard output of TLS markers with
32189 TARGET_TLS_MARKERS.
32190 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32191 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32192 to use inline PLT sequences.
32193 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32194 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32195 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32196
32197 2019-02-04 Martin Liska <mliska@suse.cz>
32198
32199 PR ipa/88985
32200 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32201 out when ipa_fn_summaries does not contain entry for callee.
32202
32203 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32204
32205 * config/sparc/sparc.h: Remove superfluous blank lines.
32206 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32207 (got_register_rtx): ...this.
32208 (sparc_got): Adjust to above renaming.
32209 (sparc_tls_got): Likewise.
32210 (sparc_delegitimize_address): Likewise.
32211 (sparc_output_mi_thunk): Likewise.
32212 (sparc_init_pic_reg): Likewise.
32213 (save_local_or_in_reg_p): Fix test on the GOT register.
32214 (USE_HIDDEN_LINKONCE): Move around.
32215 (get_pc_thunk_name): Likewise.
32216 (gen_load_pcrel_sym): Likewise.
32217 (load_got_register): Likewise.
32218
32219 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32220
32221 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32222 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32223
32224 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32225
32226 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32227 into consideration.
32228
32229 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32230
32231 * config.gcc (with_nds32_lib, glibc):
32232 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32233 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32234 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32235
32236 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32237
32238 PR target/89071
32239 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32240 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32241 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32242 (*rcpsf2_sse): Ditto.
32243 (*rsqrtsf2_sse): Ditto.
32244 (sse4_1_round<mode<2): Ditto.
32245
32246 2019-02-03 Richard Biener <rguenther@suse.de>
32247
32248 PR debug/87295
32249 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32250 orig.
32251
32252 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32253
32254 PR middle-end/87887
32255 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32256 Punt with warning on aggregate return or argument types. Ignore
32257 type/mode checking for uniform arguments.
32258
32259 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32260
32261 * combine.c (try_combine): Do not print "Can't combine" messages unless
32262 printing failed combination attempts.
32263
32264 2019-02-01 Martin Jambor <mjambor@suse.cz>
32265
32266 PR hsa/87863
32267 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32268 segment and global segment variables before making them static.
32269
32270 2019-02-01 Martin Jambor <mjambor@suse.cz>
32271
32272 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32273 missed optimization dump with dump_enabled_p.
32274
32275 2019-02-01 Richard Biener <rguenther@suse.de>
32276
32277 PR middle-end/88597
32278 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32279 the instantiate cache.
32280 (instantiate_scev_binary): Elide second operand procesing
32281 if equal to the first.
32282 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32283 (chrec_contains_undetermined): Likewise.
32284 (tree_contains_chrecs): Likewise.
32285
32286 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32287
32288 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32289
32290 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32291
32292 PR tree-optimization/89143
32293 * wide-int-range.h (wide_int_range_absu): Declare.
32294 * wide-int-range.cc (wide_int_range_absu): New function.
32295 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32296
32297 PR tree-optimization/88107
32298 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32299 instead of assertion that eh_region_outermost is non-NULL, if it
32300 is NULL, set *ALL to true and return NULL.
32301 (move_sese_region_to_fn): Adjust caller, if all is set, call
32302 duplicate_eh_regions with NULL region.
32303
32304 2019-02-01 Richard Biener <rguenth@suse.de>
32305
32306 PR rtl-optimization/88593
32307 * mode-switching.c (optimize_mode_switching): Free dominators before
32308 calling cleanup_cfg.
32309
32310 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32311
32312 PR tree-optimization/88932
32313 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32314
32315 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32316
32317 PR middle-end/89137
32318 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32319 bogus clang warning.
32320
32321 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32322
32323 PR target/89071
32324 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32325 alternative to avoid partial SSE register stall for TARGET_AVX.
32326 (truncdfsf2): Ditto.
32327 (sse4_1_round<mode>2): Ditto.
32328
32329 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32330
32331 PR tree-optimization/89008
32332 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32333 process anything of the form X * 0.
32334
32335 2019-01-31 Richard Biener <rguenther@suse.de>
32336
32337 PR tree-optimization/89135
32338 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32339 with abnormal preds.
32340
32341 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32342
32343 PR sanitizer/89124
32344 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32345 always_inline callees into no_sanitize_address callers.
32346
32347 2019-01-31 Richard Biener <rguenther@suse.de>
32348
32349 PR rtl-optimization/89115
32350 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32351
32352 2019-01-30 Martin Sebor <msebor@redhat.com>
32353
32354 PR other/89106
32355 * doc/extend.texi (cast to a union): Correct and expand.
32356
32357 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32358
32359 PR rtl-optimization/87246
32360 * lra-constraints.c (simplify_operand_subreg): Reload memory
32361 in subreg if the address became invalid.
32362
32363 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32364
32365 PR target/87064
32366 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32367 Disable for little-endian.
32368
32369 2019-01-30 Richard Biener <rguenther@suse.de>
32370
32371 PR rtl-optimization/89115
32372 * opts.c (default_options_optimization): Reduce
32373 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32374 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32375 to the default.
32376
32377 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32378
32379 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32380 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32381 type of vector element when vec_extract is implemented by direct
32382 move.
32383
32384 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32385
32386 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32387
32388 2019-01-30 Richard Biener <rguenther@suse.de>
32389
32390 PR tree-optimization/89111
32391 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32392 canonicalization to appropriately sized access types.
32393
32394 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32395
32396 PR c++/89105
32397 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32398 for arguments to functions that are TU-local and shouldn't be
32399 referenced by assembly.
32400
32401 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32402
32403 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32404 after '='.
32405
32406 2019-01-29 Martin Sebor <msebor@redhat.com>
32407
32408 PR c/88956
32409 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32410
32411 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32412
32413 PR c++/66676
32414 PR ipa/89104
32415 * omp-simd-clone.c (simd_clone_clauses_extract)
32416 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32417 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32418
32419 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32420
32421 * config.gcc: Force .init_array for ARC.
32422
32423 2019-01-29 Richard Biener <rguenther@suse.de>
32424
32425 PR debug/87295
32426 * dwarf2out.c (collect_skeleton_dies): New helper.
32427 (copy_decls_for_unworthy_types): Call it.
32428 (build_abbrev_table): Assert we do not try to replace
32429 DW_AT_signature refs with local refs.
32430
32431 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32432
32433 PR middle-end/89002
32434 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32435 for lastprivate/linear IV, push gimplify context around gimplify_assign
32436 and, if it needed any temporaries, pop it into a gimple bind around the
32437 sequence.
32438
32439 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32440
32441 * common.opt (-Wattribute-alias): Remove "no-" from name.
32442 Make -Wattribute-alias command line option and
32443 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32444
32445 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32446
32447 PR target/89073
32448 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32449 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32450 x86 ISA options.
32451 (bmi2): Add missing @opindex.
32452 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32453 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32454 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32455 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32456 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32457 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32458 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32459 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32460 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32461 xsavec, xsaveopt and xsaves options.
32462
32463 2019-01-28 Richard Biener <rguenther@suse.de>
32464
32465 PR debug/89076
32466 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32467 support removal.
32468
32469 2019-01-28 Richard Biener <rguenther@suse.de>
32470
32471 PR tree-optimization/88739
32472 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32473 BIT_FIELD_REFs only are applied to mode-precision operands
32474 when they are integral.
32475 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32476 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32477 BIT_FIELD_REFs of non-mode-precision integral operands.
32478
32479 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32480
32481 PR target/87214
32482 * config/i386/sse.md
32483 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32484 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32485 first constants in pairs are multiples of 2. Formatting fixes.
32486 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32487 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32488 first constants in each quadruple are multiples of 4. Formatting fixes.
32489
32490 2019-01-26 Martin Jambor <mjambor@suse.cz>
32491
32492 PR ipa/88933
32493 * tree-inline.c: Include tree-cfgcleanup.h.
32494 (delete_unreachable_blocks_update_callgraph): Move...
32495 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32496 ...here, make externally visible, make second argument bool, adjust
32497 all callers.
32498 * tree-cfgcleanup.c: Include cgraph.h.
32499 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32500 Declare.
32501 * ipa-prop.c: Include tree-cfgcleanup.h.
32502 (ipcp_transform_function): Call
32503 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32504
32505 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32506
32507 PR rtl-optimization/88846
32508 * ira.c (process_set_for_memref_referenced_p): New.
32509 (memref_referenced_p): Add new param. Use
32510 process_set_for_memref_referenced_p. Add new switch cases.
32511 (memref_used_between_p): Pass new arg to memref_referenced_p.
32512
32513 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32514
32515 PR target/88469
32516 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32517 argument ABI_BREAK. Set to true if the calculated alignment has
32518 changed in gcc-9. Check bit-fields for their base type alignment.
32519 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32520 (aarch64_function_arg_boundary): Likewise.
32521 (aarch64_gimplify_va_arg_expr): Likewise.
32522
32523 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32524
32525 PR middle-end/89037
32526 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32527 instead of accessing TREE_INT_CST_ELT directly.
32528
32529 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32530
32531 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32532 fenv_exceptions description.
32533
32534 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32535
32536 PR rtl-optimization/87763
32537 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32538 Allow SUBREG when matching CC_NZmode compare.
32539
32540 2019-01-25 Richard Biener <rguenther@suse.de>
32541
32542 PR tree-optimization/89049
32543 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32544 Look at the pattern stmt to determine if the stmt is vectorized.
32545
32546 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32547
32548 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32549 (pred_mov<mode>): Handle all-register forms using both a new
32550 alternative and a split.
32551
32552 2019-01-25 Richard Biener <rguenther@suse.de>
32553
32554 PR tree-optimization/86865
32555 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32556 Reject non-do-while loops.
32557
32558 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32559
32560 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32561 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32562 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32563 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32564 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32565 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32566 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32567 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32568 vlogical_operand, gpc_reg_operand, int_reg_operand,
32569 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32570 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32571 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32572 (save_world_operation, restore_world_operation, lmw_operation,
32573 stmw_operation): Use MEM_P and REG_P.
32574 (tie_operand): Use MEM_P.
32575 (vrsave_operation, crsave_operation): Use REG_P.
32576 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32577 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32578 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32579 (call_operand): Use HARD_REGISTER_P.
32580 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32581 Use CONST_INT_P.
32582 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32583 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32584 quad_aligned_load_p, replace_swapped_aligned_store,
32585 recombine_lvx_pattern, replace_swapped_aligned_load,
32586 recombine_stvx_pattern): Use MEM_P.
32587 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32588 Use MEM_P and SYMBOL_REF_P.
32589 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32590 (insn_is_swappable_p): Use REG_P and MEM_P.
32591 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32592 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32593 Use CONST_INT_P.
32594 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32595 Use CONST_DOUBLE_P.
32596 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32597 CONST_WIDE_INT_P.
32598 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32599 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32600 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32601 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32602 reg_or_subregno:
32603 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32604 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32605 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32606 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32607 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32608 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32609 rs6000_split_logical_di): Use CONST_INT_P.
32610 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32611 REG_P and SYMBOL_REF_P.
32612 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32613 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32614 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32615 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32616 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32617 (small_data_operand, print_operand_address): Use CONST_INT_P and
32618 SYMBOL_REF_P.
32619 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32620 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32621 Use HARD_REGISTER_NUM_P.
32622 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32623 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32624 SUBREG_P and SYMBOL_REF_P.
32625 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32626 and HARD_REGISTER_NUM_P.
32627 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32628 reg_or_subregno.
32629 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32630 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32631 MEM_P and REG_P.
32632 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32633 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32634 find_addr_reg): Use REG_P.
32635 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32636 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32637 (offsettable_ok_by_alignment, constant_pool_expr_p,
32638 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32639 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32640 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32641 rs6000_assemble_integer, create_TOC_reference,
32642 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32643 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32644 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32645 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32646 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32647 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32648 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32649 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32650 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32651 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32652 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32653 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32654 and cbranch<mode>4): Use CONST_INT_P.
32655 (multiple define_splits): Use REG_P and SUBREG_P.
32656 (define_expands call, call_value): Use MEM_P.
32657 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32658 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32659 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32660 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32661 and HARD_REGISTER_NUM_P.
32662 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32663
32664 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32665
32666 PR rtl-optimization/88948
32667 * rtl.h (prepare_copy_insn): New prototype.
32668 * gcse.c (prepare_copy_insn): New function, split out from
32669 process_insert_insn.
32670 (process_insert_insn): Use prepare_copy_insn.
32671 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32672 instead of gen_move_insn.
32673
32674 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32675
32676 PR debug/89006
32677 * config/i386/i386.c (ix86_pic_register_p): Return true for
32678 UNSPEC_SET_GOT too.
32679
32680 PR tree-optimization/88964
32681 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32682 punt if HONOR_SNANS (chrec).
32683
32684 PR middle-end/89015
32685 * tree-nested.c (convert_nonlocal_reference_stmt,
32686 convert_local_reference_stmt, convert_tramp_reference_stmt,
32687 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32688 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32689 or GIMPLE_OMP_TASK.
32690
32691 PR tree-optimization/89027
32692 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32693 for "omp simd array" variables.
32694
32695 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32696
32697 PR target/88469
32698 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32699 force the alignment of m_val.
32700
32701 2019-01-24 Richard Biener <rguenther@suse.de>
32702
32703 PR lto/87187
32704 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32705 When in "legacy" debug mode make sure to reset self-origins.
32706
32707 2019-01-24 Martin Liska <mliska@suse.cz>
32708
32709 PR gcov-profile/88994
32710 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32711 result will be always smaller or equal to the original.
32712 * gcov.c (mangle_name): Fix else branch where we should
32713 also copy to PTR and shift the pointer.
32714
32715 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32716
32717 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32718 * vr-values.c (find_case_label_ranges): Fix a comment typo.
32719
32720 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
32721
32722 * common/config/i386/i386-common.c
32723 (OPTION_MASK_ISA_ENQCMD_SET,
32724 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32725 (ix86_handle_option): Handle -menqcmd.
32726 * config.gcc (enqcmdintrin.h): New header file.
32727 * config/i386/cpuid.h (bit_ENQCMD): New bit.
32728 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32729 -menqcmd.
32730 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32731 function type.
32732 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32733 __builtin_ia32_enqcmds): New builtins.
32734 * config/i386/i386-c.c (__ENQCMD__): New macro.
32735 * config/i386/i386-option.c (ix86_target_string): Add
32736 -menqcmd.
32737 (ix86_valid_target_attribute_inner_p): Likewise.
32738 * config/i386/i386-expand.c
32739 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32740 IX86_BUILTIN_ENQCMDS.
32741 * config/i386/i386.h (TARGET_ENQCMD): New.
32742 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32743 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32744 (movdir64b_<mode>): Parameterize to enable share expansion code
32745 with ENQCMD in function ix86_expand_builtin.
32746 * config/i386/i386.opt: Add -menqcmd.
32747 * config/i386/immintrin.h: Include enqcmdintrin.h.
32748 * config/i386/enqcmdintrin.h: New intrinsic file.
32749 * doc/invoke.texi: Add -menqcmd.
32750
32751 2019-01-23 Bin Cheng <bin.cheng@arm.com>
32752 Steve Ellcey <sellcey@marvell.com>
32753
32754 PR target/85711
32755 * recog.c (address_operand): Return false on wrong mode for address.
32756 (constrain_operands): Check for mode with 'p' constraint.
32757
32758 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
32759
32760 PR target/88998
32761 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
32762 Disparage MMX alternative.
32763 (sse2_cvtpd2pi): Ditto.
32764 (sse2_cvttpd2pi): Ditto.
32765
32766 2019-01-23 David Malcolm <dmalcolm@redhat.com>
32767
32768 PR driver/89014
32769 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
32770 use-after-free of the result of
32771 aarch64_get_extension_string_for_isa_flags.
32772
32773 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32774
32775 PR c/44715
32776 * doc/extend.texi: Document break and continue behavior in
32777 statement expressions.
32778
32779 2019-01-23 Richard Biener <rguenther@suse.de>
32780
32781 PR tree-optimization/89008
32782 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
32783 not leave another stray operand.
32784
32785 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32786
32787 * BASE-VER: Bump to 9.0.1.
32788
32789 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
32790
32791 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
32792 thunk that returns by reference, use the type of the return object
32793 of the thunk instead of that of the alias to build the dereference.
32794
32795 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
32796
32797 * config/arc/atomic.md: Add operand to DMB instruction.
32798
32799 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32800
32801 PR tree-optimization/88964
32802 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
32803 build_zero_cst instead of build_int_cst. Return false for loop
32804 invariants which honor signed zeros.
32805
32806 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
32807
32808 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
32809
32810 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32811
32812 PR target/88965
32813 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
32814 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
32815 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
32816
32817 PR middle-end/88968
32818 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
32819 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
32820
32821 PR target/87064
32822 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
32823 Disable for little endian.
32824
32825 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32826
32827 PR target/88469
32828 * config/arm/arm.c (arm_needs_double_word_align): Check
32829 DECL_BIT_FIELD_TYPE.
32830
32831 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
32832 H.J. Lu <hongjiu.lu@intel.com>
32833
32834 PR target/88909
32835 * config/i386/i386-builtin.def: Add mask2 to all builtin
32836 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
32837 SPECIAL_ARGS.
32838 * config/i386/i386.c (BDESC): Add mask2 to the definition.
32839 (BDESC_FIRST): Likewise.
32840 (define_builtin): Add an argument for mask2. Updated to handle
32841 both ix86_isa_flags and ix86_isa_flags2.
32842 (define_builtin_const): Likewise.
32843 (define_builtin_pure): Likewise.
32844 (define_builtin2): Deleted.
32845 (define_builtin_const2): Likewise.
32846 (builtin_description): Add a member, mask2.
32847 (bdesc_*): Add mask2 to builtin initializations.
32848 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
32849 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
32850 support.
32851 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
32852
32853 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
32854
32855 PR target/88954
32856 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
32857 noplt attribute.
32858
32859 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32860
32861 PR target/88469
32862 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
32863 alignment is dominated by a bitfield with 64-bit aligned base type.
32864 (arm_function_arg): Emit a warning if the alignment has changed since
32865 earlier GCC releases.
32866 (arm_function_arg_boundary): Likewise.
32867 (arm_setup_incoming_varargs): Likewise.
32868
32869 2019-01-22 Richard Biener <rguenther@suse.de>
32870
32871 PR tree-optimization/88862
32872 * graphite-scop-detection.c
32873 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
32874
32875 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
32876
32877 * doc/extend.tex (AMD GCN Function Attributes): New section.
32878 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
32879 * doc/invoke.texi (AMD GCN Options): New section.
32880 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
32881
32882 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
32883
32884 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
32885 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
32886
32887 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32888
32889 PR tree-optimization/88044
32890 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
32891 is false in the first iteration, but !every_iteration, return false
32892 instead of true with niter->niter zero.
32893
32894 PR rtl-optimization/88904
32895 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
32896 any nonequal registers before processing BB_END (b).
32897
32898 PR target/88905
32899 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
32900 GET_MODE (op0).
32901 (expand_binop_directly, expand_doubleword_clz,
32902 expand_doubleword_popcount, expand_ctz, expand_ffs,
32903 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
32904
32905 PR rtl-optimization/49429
32906 PR target/49454
32907 PR rtl-optimization/86334
32908 PR target/88906
32909 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
32910 addressable from here...
32911 (emit_block_op_via_libcall): ... to here.
32912
32913 2019-01-22 Richard Biener <rguenther@suse.de>
32914
32915 * tree-vect-loop.c (vect_analyze_loop_operations): Use
32916 auto_vec for cost vector to fix memleak.
32917 (vectorize_fold_left_reduction): Properly gather SLP defs.
32918 (vectorizable_comparison): Do not swap operands to properly
32919 gather SLP defs.
32920
32921 2019-01-22 Alan Modra <amodra@gmail.com>
32922
32923 PR target/88614
32924 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
32925 stays a reg. Allow a const_int.
32926 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
32927 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
32928 (IS_NOMARK_TLSGETADDR): Define.
32929 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
32930 (rs6000_output_tlsargs): New function.
32931 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
32932 __tls_get_addr call takes an arg.
32933 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
32934 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
32935 delete split..
32936 (call_value_nonlocal_sysv): ..or here, delete split.
32937 (tls_gdld_nomark): Delete.
32938 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
32939 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
32940 (call_value_nonlocal_sysv): Likewise.
32941 (call_value_nonlocal_sysv_secure): Likewise.
32942 (call_value_nonlocal_aix): Likewise.
32943 (call_value_indirect_aix): Likewise.
32944 (call_value_indirect_elfv2): Likewise.
32945 (call_value_local32, call_value_local64): Disable for no-mark tls.
32946 (call_value_local_aix): Likewise.
32947
32948 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
32949
32950 PR target/88938
32951 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
32952 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
32953
32954 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
32955
32956 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
32957 string contents as hash_map keys.
32958
32959 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32960
32961 PR c/88928
32962 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
32963 for rvalue context. Handle rvalues correctly. Use min_align_of_type
32964 instead of TYPE_ALIGN.
32965 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
32966 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
32967 pointer from TYPE_STUB_DECL.
32968
32969 2019-01-21 Richard Biener <rguenther@suse.de>
32970
32971 PR tree-optimization/88934
32972 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
32973 at the possibly non-constant operand.
32974 (vect_get_constant_vectors): Adjust.
32975
32976 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
32977
32978 PR target/71659
32979 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
32980 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
32981 instead of _X86INTRIN_H_INCLUDED.
32982 * onfig/i386/clwbintrin.h: Likewise.
32983 * config/i386/pkuintrin.h: Likewise.
32984 * config/i386/prfchwintrin.h: Likewise.
32985 * config/i386/rdseedintrin.h: Likewise.
32986 * config/i386/wbnoinvdintrin.h: Likewise.
32987 * config/i386/xsavecintrin.h: Likewise.
32988 * config/i386/xsavesintrin.h: Likewise.
32989 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
32990 * config/i386/xsaveintrin.h: Likewise.
32991 * config/i386/xsaveoptintrin.h: Likewise.
32992 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
32993 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
32994 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
32995 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
32996 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
32997 * config/i386/immintrin.h: Here.
32998
32999 2019-01-20 Martin Jambor <mjambor@suse.cz>
33000
33001 PR ipa/87615
33002 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33003 with aa_walk_budget.
33004 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33005 aa_walk_budget_p parameter.
33006 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33007 walk. Updated all callers.
33008 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33009 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33010 unmodified_parm.
33011 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33012 parameter info. Extract info from fbi. Pass fbi to recursive calls
33013 and to unmodified_parm.
33014 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33015 info, updated call to will_be_nonconstant_expr_predicate.
33016 (param_change_prob): New parameter fbi, limit AA walking.
33017 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33018 calls to various above functions.
33019 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33020 parameter. Use it to limit AA walking.
33021 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33022 fbi, limit AA walk.
33023 (detect_type_change): New parameter fbi, pass it on to
33024 detect_type_change_from_memory_writes.
33025 (detect_type_change_ssa): Likewise.
33026 (aa_overwalked): Removed.
33027 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33028 accordingly, adjust to the neew AA limiting scheme.
33029 (parm_ref_data_preserved_p): Likewise.
33030 (ipa_compute_jump_functions_for_edge): Adjust call to
33031 get_dynamic_type.
33032 (ipa_analyze_call_uses): Likewise.
33033 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33034 (ipa_analyze_node): Initialize aa_walk_budget.
33035 (ipcp_transform_function): Likewise.
33036 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33037 to get_dynamic_type.
33038
33039 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33040
33041 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33042 outside of #if CHECKING_P code.
33043
33044 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33045
33046 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33047 New function, split out from...
33048 (loop_versioning::analyze_stride): ...here.
33049 (loop_versioning::find_per_loop_multiplication): Use gassign.
33050 (loop_versioning::analyze_term_using_scevs): Return a success code.
33051 (loop_versioning::analyze_arbitrary_term): New function.
33052 (loop_versioning::analyze_address_fragment): Use
33053 analyze_arbitrary_term if all else fails.
33054
33055 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33056
33057 PR target/88892
33058 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33059 operands.
33060
33061 2019-01-18 Richard Biener <rguenther@suse.de>
33062
33063 PR tree-optimization/88903
33064 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33065 scalar stmts a SLP shift amount is composed of when detecting
33066 shifts by scalars.
33067
33068 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33069
33070 PR target/88799
33071 * config/arm/arm-cpus.in (mp): New feature.
33072 (sec): New feature.
33073 (fgroup ARMv7ve): Add mp and sec features.
33074 (arch armv7-a): Add options to allow mp and sec extensions.
33075 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33076 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33077 extenstions to the base architecture.
33078 (cpu cortex-a8): Add sec extension to the base architecture.
33079 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33080 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33081 variants down to the base v7-a varaint.
33082 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33083 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33084 of permitted extensions for -march=armv7-a and for
33085 -mcpu=generic-armv7-a.
33086
33087 2019-01-18 Martin Liska <mliska@suse.cz>
33088
33089 * params.def: Fix comment.
33090 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33091 name.
33092 (gimple_gen_ic_func_profiler): Likewise.
33093
33094 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33095
33096 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33097 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33098 and put in error checks for stack protector guard options.
33099 (aarch64_stack_protect_guard): New.
33100 (TARGET_STACK_PROTECT_GUARD): Define.
33101 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33102 (reg_stack_protect_address<mode>): New.
33103 (stack_protect_set): Adjust for SSP_GLOBAL.
33104 (stack_protect_test): Likewise.
33105 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33106 (-mstack-protector-guard): Likewise.
33107 (-mstack-protector-guard-offset): Likewise.
33108
33109 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33110
33111 PR tree-optimization/86214
33112 * tree-inline.h (struct copy_body_data): Add
33113 add_clobbers_to_eh_landing_pads member.
33114 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33115 (copy_edges_for_bb): Call it if EH edge destination is <
33116 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33117 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33118 if flag_stack_reuse != SR_NONE and clear it afterwards.
33119
33120 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33121
33122 PR target/85596
33123 * doc/install.texi (with-multilib-list): Document for aarch64.
33124
33125 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33126
33127 PR target/88734
33128 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33129 (("..."))) with ("...").
33130
33131 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33132
33133 * doc/extend.texi (Built-in Functions for Memory Model Aware
33134 Atomic Operations): Document atomic fetch and nand.
33135
33136 2019-01-18 Martin Liska <mliska@suse.cz>
33137 Richard Biener <rguenther@suse.de>
33138
33139 PR middle-end/88587
33140 * cgraph.h (create_version_clone_with_body): Add new argument
33141 with attributes.
33142 * cgraphclones.c (cgraph_node::create_version_clone): Add
33143 DECL_ATTRIBUTES to a newly created decl. And call
33144 valid_attribute_p so that proper cl_target_optimization_node
33145 is set for the newly created declaration.
33146 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33147 for declaration.
33148 (expand_target_clones): Do not call valid_attribute_p, it must
33149 be already done.
33150 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33151 vector types.
33152
33153 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33154
33155 PR target/88734
33156 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33157 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33158 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33159
33160 2019-01-17 Martin Sebor <msebor@redhat.com>
33161
33162 PR middle-end/88273
33163 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33164 Handle anti-ranges the same as no range at all.
33165
33166 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33167
33168 * config/aarch64/aarch64.c (cgraph.h): New include.
33169 (intl.h): New include.
33170 (supported_simd_type): New function.
33171 (currently_supported_simd_type): Ditto.
33172 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33173 (aarch64_simd_clone_adjust): Ditto.
33174 (aarch64_simd_clone_usable): Ditto.
33175 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33176 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33177 (TARGET_SIMD_CLONE_USABLE): Ditto.
33178 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33179 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33180 call.
33181
33182 2019-01-17 Martin Sebor <msebor@redhat.com>
33183
33184 PR tree-optimization/88800
33185 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33186 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33187 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33188 redundant argument. Add new argument and issue diagnostics under
33189 its control. Detect out-of-bounds access even with warnings
33190 disabled.
33191 (check_bounds_or_overlap): Change return type. Add argument.
33192 (wrestrict_dom_walker::check_call): Adjust.
33193 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33194 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33195 check_bounds_or_overlap's return value.
33196 (handle_builtin_stxncpy): Same.
33197 (handle_builtin_strcat): Same.
33198
33199 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33200 Kwok Cheung Yeung <kcy@codesourcery.com>
33201 Julian Brown <julian@codesourcery.com>
33202 Tom de Vries <tom@codesourcery.com>
33203
33204 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33205
33206 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33207
33208 * doc/sourcebuild.texi: Document dg-require-effective-target
33209 llvm_binutils and offload_gcn.
33210
33211 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33212 Kwok Cheung Yeung <kcy@codesourcery.com>
33213 Julian Brown <julian@codesourcery.com>
33214 Tom de Vries <tom@codesourcery.com>
33215
33216 * doc/sourcebuild.texi: Document dg-required-effective-target
33217 exceptions.
33218
33219 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33220 Kwok Cheung Yeung <kcy@codesourcery.com>
33221 Julian Brown <julian@codesourcery.com>
33222 Tom de Vries <tom@codesourcery.com>
33223 Jan Hubicka <hubicka@ucw.cz>
33224 Martin Jambor <mjambor@suse.cz>
33225
33226 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33227 * configure.ac: Check for dlopen.
33228 * configure: Regenerate.
33229
33230 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33231 Kwok Cheung Yeung <kcy@codesourcery.com>
33232 Julian Brown <julian@codesourcery.com>
33233 Tom de Vries <tom@codesourcery.com>
33234 Jan Hubicka <hubicka@ucw.cz>
33235 Martin Jambor <mjambor@suse.cz>
33236
33237 * common/config/gcn/gcn-common.c: New file.
33238 * config/gcn/driver-gcn.c: New file.
33239 * config/gcn/gcn-builtins.def: New file.
33240 * config/gcn/gcn-hsa.h: New file.
33241 * config/gcn/gcn-modes.def: New file.
33242 * config/gcn/gcn-opts.h: New file.
33243 * config/gcn/gcn-passes.def: New file.
33244 * config/gcn/gcn-protos.h: New file.
33245 * config/gcn/gcn-run.c: New file.
33246 * config/gcn/gcn-tree.c: New file.
33247 * config/gcn/gcn.c: New file.
33248 * config/gcn/gcn.h: New file.
33249 * config/gcn/gcn.opt: New file.
33250 * config/gcn/t-gcn-hsa: New file.
33251
33252 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33253 Kwok Cheung Yeung <kcy@codesourcery.com>
33254 Julian Brown <julian@codesourcery.com>
33255 Tom de Vries <tom@codesourcery.com>
33256 Jan Hubicka <hubicka@ucw.cz>
33257 Martin Jambor <mjambor@suse.cz>
33258
33259 * config/gcn/constraints.md: New file.
33260 * config/gcn/gcn-valu.md: New file.
33261 * config/gcn/gcn.md: New file.
33262 * config/gcn/predicates.md: New file.
33263
33264 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33265
33266 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33267 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33268 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33269 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33270
33271 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33272
33273 PR target/88851
33274 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33275 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33276 it and document registers.
33277
33278 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33279
33280 * config/aarch64/aarch64.c (ares_tunings): Define.
33281 * config/aarch64/aarch64-cores.def (ares): Use the above.
33282
33283 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33284
33285 PR target/88794
33286 Revert:
33287 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33288
33289 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33290 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33291 (_mm512_maskz_fixupimm_round_pd): Ditto.
33292 (_mm512_fixupimm_round_ps): Ditto.
33293 (_mm512_maskz_fixupimm_round_ps): Ditto.
33294 (_mm_fixupimm_round_sd): Ditto.
33295 (_mm_maskz_fixupimm_round_sd): Ditto.
33296 (_mm_fixupimm_round_ss): Ditto.
33297 (_mm_maskz_fixupimm_round_ss): Ditto.
33298 (_mm512_fixupimm_pd): Ditto.
33299 (_mm512_maskz_fixupimm_pd): Ditto.
33300 (_mm512_fixupimm_ps): Ditto.
33301 (_mm512_maskz_fixupimm_ps): Ditto.
33302 (_mm_fixupimm_sd): Ditto.
33303 (_mm_maskz_fixupimm_sd): Ditto.
33304 (_mm_fixupimm_ss): Ditto.
33305 (_mm_maskz_fixupimm_ss): Ditto.
33306 (_mm512_mask_fixupimm_round_pd): Update builtin.
33307 (_mm512_mask_fixupimm_round_ps): Ditto.
33308 (_mm_mask_fixupimm_round_sd): Ditto.
33309 (_mm_mask_fixupimm_round_ss): Ditto.
33310 (_mm512_mask_fixupimm_pd): Ditto.
33311 (_mm512_mask_fixupimm_ps): Ditto.
33312 (_mm_mask_fixupimm_sd): Ditto.
33313 (_mm_mask_fixupimm_ss): Ditto.
33314 * config/i386/avx512vlintrin.h:
33315 (_mm256_fixupimm_pd): Update parameters and builtin.
33316 (_mm256_maskz_fixupimm_pd): Ditto.
33317 (_mm256_fixupimm_ps): Ditto.
33318 (_mm256_maskz_fixupimm_ps): Ditto.
33319 (_mm_fixupimm_pd): Ditto.
33320 (_mm_maskz_fixupimm_pd): Ditto.
33321 (_mm_fixupimm_ps): Ditto.
33322 (_mm_maskz_fixupimm_ps): Ditto.
33323 (_mm256_mask_fixupimm_pd): Update builtin.
33324 (_mm256_mask_fixupimm_ps): Ditto.
33325 (_mm_mask_fixupimm_pd): Ditto.
33326 (_mm_mask_fixupimm_ps): Ditto.
33327 * config/i386/i386-builtin-types.def: Add new types and remove
33328 useless ones.
33329 * config/i386/i386-builtin.def: Update builtin definitions.
33330 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33331 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33332 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33333 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33334 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33335 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33336 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33337 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33338 * config/i386/subst.md:
33339 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33340 (round_saeonly_sd_mask_op4): Ditto.
33341 (round_saeonly_expand_operand5): Ditto.
33342 (round_saeonly_expand): Update.
33343
33344 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33345
33346 PR target/88794
33347 Revert:
33348 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33349
33350 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33351 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33352 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33353 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33354 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33355 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33356 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33357
33358 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33359
33360 PR target/88794
33361 Revert:
33362 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33363
33364 PR target/88489
33365 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33366 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33367 instead of UNSPEC_FIXUPIMM.
33368
33369 2019-01-17 Richard Biener <rguenther@suse.de>
33370
33371 PR lto/86736
33372 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33373 and friends for the LTO part of debug info.
33374
33375 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33376
33377 PR tree-optimization/86214
33378 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33379 if x == y.
33380
33381 PR rtl-optimization/88870
33382 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33383 throw if we can't alter the cfg or delete dead exceptions.
33384 (mark_insn): Don't call find_call_stack_args for such calls.
33385
33386 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33387
33388 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33389 prototypes for vec_st.
33390 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33391 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33392 mainly on signed/unsigned long long and double.
33393
33394 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33395
33396 PR target/88861
33397 * combine.c (delete_noop_moves): Convert to "bool" return,
33398 returning true if any edges are eliminated.
33399 (combine_instructions): Also return true if delete_noop_moves
33400 returns true.
33401
33402 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33403
33404 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33405 correct max nunits for endian swap.
33406 (aarch64_expand_fcmla_builtin): Correct subreg code.
33407 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33408 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33409 lane endianness.
33410
33411 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33412
33413 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33414 Handle split indirect COMPLEX_TYPE arguments.
33415
33416 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33417
33418 PR target/86891
33419 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33420 bit is set by add and compare.
33421 (CC_ADC): New CC_MODE.
33422 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33423 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33424 comparison. Add detection for CC_ADCmode.
33425 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33426 CC_ADCmode.
33427 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33428 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33429 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33430 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33431 to eliminate the need for zero-extending the operands.
33432 (add<mode>3_compareC_imm): Delete. Merge into ...
33433 (add<mode>3_compareC): ... this. Restructure the comparison to
33434 eliminate the need for zero-extending the operands.
33435 (add<mode>3_carryin): Use LTU for the overflow detection.
33436 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33437 Reexpress comparison for overflow.
33438 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33439 (add<mode>3_carryinC): Likewise.
33440 (add<mode>3_carryinV): Use LTU for carry between partials.
33441 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33442 handling of CC_Cmode and add CC_ADCmode.
33443 (aarch64_borrow_operation): Likewise.
33444
33445 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33446
33447 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33448 Remove patternmode.
33449 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33450 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33451 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33452 Remove endianness conversion.
33453
33454 2019-01-16 Martin Liska <mliska@suse.cz>
33455
33456 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33457 for GCC driver.
33458 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33459 a new argument.
33460 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33461 (path_prefix_reset): Move up in the source file.
33462 (find_fortran_preinclude_file): Make complex search for the
33463 fortran header files.
33464
33465 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33466
33467 * godump.c (go_output_typedef): When outputting a typedef, refer
33468 to the underlying type by its name and not its structure.
33469
33470 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33471
33472 PR c++/88795
33473 * tree.c (build_function_type): Assert that arg_types is not
33474 error_mark_node.
33475
33476 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33477
33478 PR inline-asm/52813
33479 * doc/extend.texi: Document that listing the stack pointer in the
33480 clobber list of an asm is a deprecated feature.
33481 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33482 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33483 warning instead of an error for clobbers of the stack pointer.
33484 Add a note explaining why.
33485
33486 2019-01-15 Richard Biener <rguenther@suse.de>
33487
33488 PR debug/88046
33489 * dwarf2out.c (gen_member_die): Do not generate inheritance
33490 DIEs late.
33491
33492 2019-01-15 Richard Biener <rguenther@suse.de>
33493
33494 PR tree-optimization/88855
33495 * tree-if-conv.c (combine_blocks): Collect
33496 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33497
33498 2019-01-15 Tom de Vries <tdevries@suse.de>
33499
33500 PR target/80547
33501 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33502 lhs == NULL_TREE for gang-level reduction.
33503
33504 2019-01-15 Richard Biener <rguenther@suse.de>
33505 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33506
33507 PR ipa/88788
33508 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33509 return true if SSA_NAME is already marked in visited bitmap.
33510 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33511
33512 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33513
33514 PR tree-optimization/88775
33515 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33516 equal == 0 equality pointer comparisons some more if compared in
33517 integral types and either one points to an automatic var and the
33518 other to a global, or we can prove at least one points to the middle
33519 or both point to start or both point to end.
33520
33521 2019-01-14 Andi Kleen <ak@linux.intel.com>
33522
33523 * Makefile.in: Lower autofdo sampling rate by 10x.
33524 * Makefile.tpl: Dito.
33525
33526 2019-01-14 Tom Honermann <tom@honermann.net>
33527
33528 * defaults.h: Define CHAR8_TYPE.
33529
33530 2019-01-14 Martin Sebor <msebor@redhat.com>
33531
33532 PR target/88638
33533 * doc/extend.texi (Darwin Format Checks): Clarify.
33534
33535 2019-01-14 Richard Biener <rguenther@suse.de>
33536
33537 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33538 whether we are in (simplify ...) or (match ...) context.
33539
33540 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33541
33542 PR rtl-optimization/88796
33543 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33544 * cfgexpand.c (stack_protect_prologue): Initialize
33545 crtl->stack_protect_guard_decl.
33546 * function.c (stack_protect_epilogue): Use it instead of calling
33547 targetm.stack_protect_guard again.
33548 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33549 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33550 crtl->stack_protect_guard_decl.
33551 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33552 on the returned MEM_EXPR.
33553
33554 2019-01-12 Tom de Vries <tdevries@suse.de>
33555
33556 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33557 vector length using -fopenacc-dim.
33558
33559 2019-01-12 Tom de Vries <tdevries@suse.de>
33560
33561 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33562 lengths into account.
33563
33564 2019-01-12 Svante Signell <svante.signell@gmail.com>
33565
33566 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33567 (TARGET_CAN_SPLIT_STACK): Define.
33568 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33569
33570 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33571
33572 * params.def (inline-unit-growth): Set to 40.
33573
33574 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33575
33576 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33577
33578 2019-01-12 Tom de Vries <tdevries@suse.de>
33579
33580 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33581 region calling vector-partitionable routine, set default_vector_length
33582 to WARP_SIZE.
33583
33584 2019-01-12 Tom de Vries <tdevries@suse.de>
33585
33586 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33587 variable default_vector_length.
33588
33589 2019-01-12 Tom de Vries <tdevries@suse.de>
33590
33591 PR middle-end/88703
33592 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33593 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33594 dimensions limits.
33595
33596 2019-01-12 Tom de Vries <tdevries@suse.de>
33597
33598 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33599 (nvptx_goacc_validate_dims): Add used parameter.
33600 * doc/tm.texi: Regenerate.
33601 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33602 argument to call to targetm.goacc.validate_dims.
33603 (default_goacc_validate_dims): Add used
33604 parameter.
33605 * target.def (validate_dims): Add used parameter in DEFHOOK.
33606 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33607
33608 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33609
33610 PR middle-end/85956
33611 PR lto/88733
33612 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33613 field.
33614 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33615 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33616 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33617 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33618
33619 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33620
33621 PR rtl-optimization/87305
33622 * lra-assigns.c
33623 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33624 for little endian pseudos used as paradoxical subreg.
33625
33626 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33627
33628 PR tree-optimization/88693
33629 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33630 for STRING_CSTs that don't contain any NUL characters in the first
33631 TREE_STRING_LENGTH bytes.
33632
33633 2019-01-11 Alan Modra <amodra@gmail.com>
33634
33635 PR 88777
33636 PR 88614
33637 * genattrtab.c (min_fn): Don't translate values.
33638 (min_attr_value): Return INT_MAX when the value can't be calculated.
33639 Return minimum among any values that can be calculated.
33640 (max_attr_value): Adjust.
33641
33642 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33643
33644 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33645
33646 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33647
33648 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33649 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33650 (aarch64_return_call_with_max_clobbers): New function.
33651 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33652 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33653 argument.
33654 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33655 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33656 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33657 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33658 * cselib.c (cselib_process_insn): Add argument to
33659 targetm.hard_regno_call_part_clobbered call.
33660 * ira-conflicts.c (ira_build_conflicts): Ditto.
33661 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33662 * lra-constraints.c (inherit_reload_reg): Ditto.
33663 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33664 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33665 argument. Call targetm.return_call_with_max_clobbers.
33666 Add argument to targetm.hard_regno_call_part_clobbered call.
33667 (calls_have_same_clobbers_p): New function.
33668 (process_bb_lives): Add call_insn and last_call_insn variables.
33669 Pass call_insn to check_pseudos_live_through_calls.
33670 Modify if stmt to check targetm.return_call_with_max_clobbers.
33671 Update setting of flush variable.
33672 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33673 to false.
33674 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33675 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33676 targetm.hard_regno_call_part_clobbered call.
33677 * reginfo.c (choose_hard_reg_mode): Ditto.
33678 * regrename.c (check_new_reg_p): Ditto.
33679 * reload.c (find_equiv_reg): Ditto.
33680 * reload1.c (emit_reload_insns): Ditto.
33681 * sched-deps.c (deps_analyze_insn): Ditto.
33682 * sel-sched.c (init_regs_for_mode): Ditto.
33683 (mark_unavailable_hard_regs): Ditto.
33684 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33685 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33686 (return_call_with_max_clobbers): New target function.
33687 * doc/tm.texi: Regenerate.
33688 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33689 * hooks.c (hook_bool_uint_mode_false): Change to
33690 hook_bool_insn_uint_mode_false.
33691 * hooks.h (hook_bool_uint_mode_false): Ditto.
33692
33693 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33694
33695 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33696 (aarch64_remove_extra_call_preserved_regs): New function.
33697 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33698 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33699 * doc/tm.texi: Regenerate.
33700 * final.c (get_call_reg_set_usage): Call new hook.
33701 * target.def (remove_extra_call_preserved_regs): New hook.
33702 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33703 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33704
33705 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33706
33707 PR bootstrap/88714
33708 * passes.c (finish_optimization_passes): Call print_combine_total_stats
33709 inside of pass_combine_1 dump rather than pass_profile_1.
33710
33711 2019-01-11 Tom de Vries <tdevries@suse.de>
33712
33713 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33714 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33715 (PTX_NUM_PER_WORKER_BARRIERS): Define.
33716 (nvptx_apply_dim_limits): Prevent vector_length 64 and
33717 num_workers 16.
33718
33719 2019-01-11 Tom de Vries <tdevries@suse.de>
33720
33721 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33722
33723 2019-01-11 Jan Beulich <jbeulich@suse.com>
33724
33725 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33726 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33727 sse2_cvtsi2sd): Add {l}.
33728 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33729 syntax.
33730
33731 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33732
33733 PR target/88785
33734 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33735 define_expand.
33736 (*float<floatunssuffix>v2div2sf2): New define_insn.
33737 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33738 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33739 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33740 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33741 match_operands with "const0_operand" "C".
33742
33743 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33744
33745 * config/aarch64/aarch64-builtins.c
33746 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33747 (aarch64_init_simd_builtins): ...Here
33748
33749 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
33750
33751 PR rtl-optimization/87305
33752 * lra-assigns.c
33753 (setup_live_pseudos_and_spill_after_risky_transforms): Check
33754 allocation for big endian pseudos used as paradoxical subregs and
33755 spill them if it is wrong.
33756 * lra-constraints.c (lra_constraints): Add a comment.
33757
33758 2019-01-10 Richard Biener <rguenther@suse.de>
33759
33760 PR tree-optimization/88792
33761 * tree-ssa-pre.c (get_representative_for): Do not return a
33762 value-number here.
33763
33764 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33765
33766 PR middle-end/84877
33767 PR bootstrap/88450
33768 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
33769 (assign_parm_setup_block): Do the argument slot realignment here
33770 instead.
33771
33772 2019-01-10 Stefan Agner <stefan@agner.ch>
33773
33774 PR target/88648
33775 * config/arm/arm.c (arm_option_override_internal): Force
33776 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
33777
33778 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33779
33780 PR c/88568
33781 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
33782 DECL_EXTERNAL.
33783
33784 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33785
33786 * config/arm/arm-builtins.c
33787 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
33788 (MAC_LANE_PAIR_QUALIFIERS): New.
33789 (arm_expand_builtin_args): Use it.
33790 (arm_expand_builtin_1): Likewise.
33791 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
33792 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
33793 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
33794 * config/arm/arm_neon.h:
33795 (vcadd_rot90_f16): New.
33796 (vcaddq_rot90_f16): New.
33797 (vcadd_rot270_f16): New.
33798 (vcaddq_rot270_f16): New.
33799 (vcmla_f16): New.
33800 (vcmlaq_f16): New.
33801 (vcmla_lane_f16): New.
33802 (vcmla_laneq_f16): New.
33803 (vcmlaq_lane_f16): New.
33804 (vcmlaq_laneq_f16): New.
33805 (vcmla_rot90_f16): New.
33806 (vcmlaq_rot90_f16): New.
33807 (vcmla_rot90_lane_f16): New.
33808 (vcmla_rot90_laneq_f16): New.
33809 (vcmlaq_rot90_lane_f16): New.
33810 (vcmlaq_rot90_laneq_f16): New.
33811 (vcmla_rot180_f16): New.
33812 (vcmlaq_rot180_f16): New.
33813 (vcmla_rot180_lane_f16): New.
33814 (vcmla_rot180_laneq_f16): New.
33815 (vcmlaq_rot180_lane_f16): New.
33816 (vcmlaq_rot180_laneq_f16): New.
33817 (vcmla_rot270_f16): New.
33818 (vcmlaq_rot270_f16): New.
33819 (vcmla_rot270_lane_f16): New.
33820 (vcmla_rot270_laneq_f16): New.
33821 (vcmlaq_rot270_lane_f16): New.
33822 (vcmlaq_rot270_laneq_f16): New.
33823 (vcadd_rot90_f32): New.
33824 (vcaddq_rot90_f32): New.
33825 (vcadd_rot270_f32): New.
33826 (vcaddq_rot270_f32): New.
33827 (vcmla_f32): New.
33828 (vcmlaq_f32): New.
33829 (vcmla_lane_f32): New.
33830 (vcmla_laneq_f32): New.
33831 (vcmlaq_lane_f32): New.
33832 (vcmlaq_laneq_f32): New.
33833 (vcmla_rot90_f32): New.
33834 (vcmlaq_rot90_f32): New.
33835 (vcmla_rot90_lane_f32): New.
33836 (vcmla_rot90_laneq_f32): New.
33837 (vcmlaq_rot90_lane_f32): New.
33838 (vcmlaq_rot90_laneq_f32): New.
33839 (vcmla_rot180_f32): New.
33840 (vcmlaq_rot180_f32): New.
33841 (vcmla_rot180_lane_f32): New.
33842 (vcmla_rot180_laneq_f32): New.
33843 (vcmlaq_rot180_lane_f32): New.
33844 (vcmlaq_rot180_laneq_f32): New.
33845 (vcmla_rot270_f32): New.
33846 (vcmlaq_rot270_f32): New.
33847 (vcmla_rot270_lane_f32): New.
33848 (vcmla_rot270_laneq_f32): New.
33849 (vcmlaq_rot270_lane_f32): New.
33850 (vcmlaq_rot270_laneq_f32): New.
33851 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
33852 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
33853 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
33854 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
33855 vcmlaq_lane270): New.
33856 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33857 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
33858 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
33859 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
33860 (arm_option_reconfigure_globals): Use them.
33861 * config/arm/iterators.md (VDF, VQ_HSF): New.
33862 (VCADD, VCMLA): New.
33863 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
33864 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
33865 New.
33866 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
33867 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
33868
33869 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33870
33871 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
33872 Add qualifier_lane_pair_index.
33873 (emit-rtl.h): Include.
33874 (TYPES_QUADOP_LANE_PAIR): New.
33875 (aarch64_simd_expand_args): Use it.
33876 (aarch64_simd_expand_builtin): Likewise.
33877 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
33878 New.
33879 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
33880 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
33881 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
33882 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
33883 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
33884 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
33885 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
33886 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
33887 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
33888 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
33889 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
33890 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
33891 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
33892 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
33893 Add __ARM_FEATURE_COMPLEX.
33894 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
33895 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
33896 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
33897 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
33898 fcmlaq_lane270): New.
33899 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33900 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
33901 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
33902 * config/aarch64/arm_neon.h:
33903 (vcadd_rot90_f16): New.
33904 (vcaddq_rot90_f16): New.
33905 (vcadd_rot270_f16): New.
33906 (vcaddq_rot270_f16): New.
33907 (vcmla_f16): New.
33908 (vcmlaq_f16): New.
33909 (vcmla_lane_f16): New.
33910 (vcmla_laneq_f16): New.
33911 (vcmlaq_lane_f16): New.
33912 (vcmlaq_rot90_lane_f16): New.
33913 (vcmla_rot90_laneq_f16): New.
33914 (vcmla_rot90_lane_f16): New.
33915 (vcmlaq_rot90_f16): New.
33916 (vcmla_rot90_f16): New.
33917 (vcmlaq_laneq_f16): New.
33918 (vcmla_rot180_laneq_f16): New.
33919 (vcmla_rot180_lane_f16): New.
33920 (vcmlaq_rot180_f16): New.
33921 (vcmla_rot180_f16): New.
33922 (vcmlaq_rot90_laneq_f16): New.
33923 (vcmlaq_rot270_laneq_f16): New.
33924 (vcmlaq_rot270_lane_f16): New.
33925 (vcmla_rot270_laneq_f16): New.
33926 (vcmlaq_rot270_f16): New.
33927 (vcmla_rot270_f16): New.
33928 (vcmlaq_rot180_laneq_f16): New.
33929 (vcmlaq_rot180_lane_f16): New.
33930 (vcmla_rot270_lane_f16): New.
33931 (vcadd_rot90_f32): New.
33932 (vcaddq_rot90_f32): New.
33933 (vcaddq_rot90_f64): New.
33934 (vcadd_rot270_f32): New.
33935 (vcaddq_rot270_f32): New.
33936 (vcaddq_rot270_f64): New.
33937 (vcmla_f32): New.
33938 (vcmlaq_f32): New.
33939 (vcmlaq_f64): New.
33940 (vcmla_lane_f32): New.
33941 (vcmla_laneq_f32): New.
33942 (vcmlaq_lane_f32): New.
33943 (vcmlaq_laneq_f32): New.
33944 (vcmla_rot90_f32): New.
33945 (vcmlaq_rot90_f32): New.
33946 (vcmlaq_rot90_f64): New.
33947 (vcmla_rot90_lane_f32): New.
33948 (vcmla_rot90_laneq_f32): New.
33949 (vcmlaq_rot90_lane_f32): New.
33950 (vcmlaq_rot90_laneq_f32): New.
33951 (vcmla_rot180_f32): New.
33952 (vcmlaq_rot180_f32): New.
33953 (vcmlaq_rot180_f64): New.
33954 (vcmla_rot180_lane_f32): New.
33955 (vcmla_rot180_laneq_f32): New.
33956 (vcmlaq_rot180_lane_f32): New.
33957 (vcmlaq_rot180_laneq_f32): New.
33958 (vcmla_rot270_f32): New.
33959 (vcmlaq_rot270_f32): New.
33960 (vcmlaq_rot270_f64): New.
33961 (vcmla_rot270_lane_f32): New.
33962 (vcmla_rot270_laneq_f32): New.
33963 (vcmlaq_rot270_lane_f32): New.
33964 (vcmlaq_rot270_laneq_f32): New.
33965 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
33966 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
33967 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
33968 (FCADD, FCMLA): New.
33969 (rot): New.
33970 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
33971
33972 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33973
33974 PR other/16615
33975
33976 * config/pa/pa.c: Change "can not" to "cannot".
33977 * gimple-ssa-evrp-analyze.c: Likewise.
33978 * ipa-icf.c: Likewise.
33979 * ipa-polymorphic-call.c: Likewise.
33980 * ipa-pure-const.c: Likewise.
33981 * lra-constraints.c: Likewise.
33982 * lra-remat.c: Likewise.
33983 * reload1.c: Likewise.
33984 * reorg.c: Likewise.
33985 * tree-ssa-uninit.c: Likewise.
33986
33987 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33988
33989 PR other/16615
33990
33991 * Makefile.in: Mechanically replace "can not" with "cannot".
33992 * alias.c: Likewise.
33993 * builtins.c: Likewise.
33994 * calls.c: Likewise.
33995 * cgraph.c: Likewise.
33996 * cgraph.h: Likewise.
33997 * cgraphclones.c: Likewise.
33998 * cgraphunit.c: Likewise.
33999 * combine-stack-adj.c: Likewise.
34000 * combine.c: Likewise.
34001 * common/config/i386/i386-common.c: Likewise.
34002 * config/aarch64/aarch64.c: Likewise.
34003 * config/alpha/sync.md: Likewise.
34004 * config/arc/arc.c: Likewise.
34005 * config/arc/predicates.md: Likewise.
34006 * config/arm/arm-c.c: Likewise.
34007 * config/arm/arm.c: Likewise.
34008 * config/arm/arm.h: Likewise.
34009 * config/arm/arm.md: Likewise.
34010 * config/arm/cortex-r4f.md: Likewise.
34011 * config/csky/csky.c: Likewise.
34012 * config/csky/csky.h: Likewise.
34013 * config/darwin-f.c: Likewise.
34014 * config/epiphany/epiphany.md: Likewise.
34015 * config/i386/i386.c: Likewise.
34016 * config/i386/sol2.h: Likewise.
34017 * config/m68k/m68k.c: Likewise.
34018 * config/mcore/mcore.h: Likewise.
34019 * config/microblaze/microblaze.md: Likewise.
34020 * config/mips/20kc.md: Likewise.
34021 * config/mips/sb1.md: Likewise.
34022 * config/nds32/nds32.c: Likewise.
34023 * config/nds32/predicates.md: Likewise.
34024 * config/pa/pa.c: Likewise.
34025 * config/rs6000/e300c2c3.md: Likewise.
34026 * config/rs6000/rs6000.c: Likewise.
34027 * config/s390/s390.h: Likewise.
34028 * config/sh/sh.c: Likewise.
34029 * config/sh/sh.md: Likewise.
34030 * config/spu/vmx2spu.h: Likewise.
34031 * cprop.c: Likewise.
34032 * dbxout.c: Likewise.
34033 * df-scan.c: Likewise.
34034 * doc/cfg.texi: Likewise.
34035 * doc/extend.texi: Likewise.
34036 * doc/fragments.texi: Likewise.
34037 * doc/gty.texi: Likewise.
34038 * doc/invoke.texi: Likewise.
34039 * doc/lto.texi: Likewise.
34040 * doc/md.texi: Likewise.
34041 * doc/objc.texi: Likewise.
34042 * doc/rtl.texi: Likewise.
34043 * doc/tm.texi: Likewise.
34044 * dse.c: Likewise.
34045 * emit-rtl.c: Likewise.
34046 * emit-rtl.h: Likewise.
34047 * except.c: Likewise.
34048 * expmed.c: Likewise.
34049 * expr.c: Likewise.
34050 * fold-const.c: Likewise.
34051 * genautomata.c: Likewise.
34052 * gimple-fold.c: Likewise.
34053 * hard-reg-set.h: Likewise.
34054 * ifcvt.c: Likewise.
34055 * ipa-comdats.c: Likewise.
34056 * ipa-cp.c: Likewise.
34057 * ipa-devirt.c: Likewise.
34058 * ipa-fnsummary.c: Likewise.
34059 * ipa-icf.c: Likewise.
34060 * ipa-inline-transform.c: Likewise.
34061 * ipa-inline.c: Likewise.
34062 * ipa-polymorphic-call.c: Likewise.
34063 * ipa-profile.c: Likewise.
34064 * ipa-prop.c: Likewise.
34065 * ipa-pure-const.c: Likewise.
34066 * ipa-reference.c: Likewise.
34067 * ipa-split.c: Likewise.
34068 * ipa-visibility.c: Likewise.
34069 * ipa.c: Likewise.
34070 * ira-build.c: Likewise.
34071 * ira-color.c: Likewise.
34072 * ira-conflicts.c: Likewise.
34073 * ira-costs.c: Likewise.
34074 * ira-int.h: Likewise.
34075 * ira-lives.c: Likewise.
34076 * ira.c: Likewise.
34077 * ira.h: Likewise.
34078 * loop-invariant.c: Likewise.
34079 * loop-unroll.c: Likewise.
34080 * lower-subreg.c: Likewise.
34081 * lra-assigns.c: Likewise.
34082 * lra-constraints.c: Likewise.
34083 * lra-eliminations.c: Likewise.
34084 * lra-lives.c: Likewise.
34085 * lra-remat.c: Likewise.
34086 * lra-spills.c: Likewise.
34087 * lra.c: Likewise.
34088 * lto-cgraph.c: Likewise.
34089 * lto-streamer-out.c: Likewise.
34090 * postreload-gcse.c: Likewise.
34091 * predict.c: Likewise.
34092 * profile-count.h: Likewise.
34093 * profile.c: Likewise.
34094 * recog.c: Likewise.
34095 * ree.c: Likewise.
34096 * reload.c: Likewise.
34097 * reload1.c: Likewise.
34098 * reorg.c: Likewise.
34099 * resource.c: Likewise.
34100 * rtl.def: Likewise.
34101 * rtl.h: Likewise.
34102 * rtlanal.c: Likewise.
34103 * sched-deps.c: Likewise.
34104 * sched-ebb.c: Likewise.
34105 * sched-rgn.c: Likewise.
34106 * sel-sched-ir.c: Likewise.
34107 * sel-sched.c: Likewise.
34108 * shrink-wrap.c: Likewise.
34109 * simplify-rtx.c: Likewise.
34110 * symtab.c: Likewise.
34111 * target.def: Likewise.
34112 * toplev.c: Likewise.
34113 * tree-call-cdce.c: Likewise.
34114 * tree-cfg.c: Likewise.
34115 * tree-complex.c: Likewise.
34116 * tree-core.h: Likewise.
34117 * tree-eh.c: Likewise.
34118 * tree-inline.c: Likewise.
34119 * tree-loop-distribution.c: Likewise.
34120 * tree-nrv.c: Likewise.
34121 * tree-profile.c: Likewise.
34122 * tree-sra.c: Likewise.
34123 * tree-ssa-alias.c: Likewise.
34124 * tree-ssa-dce.c: Likewise.
34125 * tree-ssa-dom.c: Likewise.
34126 * tree-ssa-forwprop.c: Likewise.
34127 * tree-ssa-loop-im.c: Likewise.
34128 * tree-ssa-loop-ivcanon.c: Likewise.
34129 * tree-ssa-loop-ivopts.c: Likewise.
34130 * tree-ssa-loop-niter.c: Likewise.
34131 * tree-ssa-phionlycprop.c: Likewise.
34132 * tree-ssa-phiopt.c: Likewise.
34133 * tree-ssa-propagate.c: Likewise.
34134 * tree-ssa-threadedge.c: Likewise.
34135 * tree-ssa-threadupdate.c: Likewise.
34136 * tree-ssa-uninit.c: Likewise.
34137 * tree-ssanames.c: Likewise.
34138 * tree-streamer-out.c: Likewise.
34139 * tree.c: Likewise.
34140 * tree.h: Likewise.
34141 * vr-values.c: Likewise.
34142
34143 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34144
34145 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34146 (ix86_split_xorsign): Ditto.
34147 * config/i386/i386.c (ix86_expand_xorsign): New function.
34148 (ix86_split_xorsign): Ditto.
34149 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34150 (xorsign<mode>3): New expander.
34151 (xorsign<mode>3_1): New insn_and_split pattern.
34152 * config/i386/sse.md (xorsign<mode>3): New expander.
34153
34154 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34155
34156 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34157 (*tablejump_sp64): Likewise.
34158 (*tablejump<P:mode>): ...this.
34159 (*call_address_sp32): Merge into...
34160 (*call_address_sp64): Likewise.
34161 (*call_address<P:mode>): ...this.
34162 (*call_symbolic_sp32): Merge into...
34163 (*call_symbolic_sp64): Likewise.
34164 (*call_symbolic<P:mode>): ...this.
34165 (call_value): Remove constraint and add predicate.
34166 (*call_value_address_sp32): Merge into...
34167 (*call_value_address_sp64): Likewise.
34168 (*call_value_address<P:mode>): ...this.
34169 (*call_value_symbolic_sp32): Merge into...
34170 (*call_value_symbolic_sp64): Likewise.
34171 (*call_value_symbolic<P:mode>): ...this.
34172 (*sibcall_symbolic_sp32): Merge into...
34173 (*sibcall_symbolic_sp64): Likewise.
34174 (*sibcall_symbolic<P:mode>): ...this.
34175 (sibcall_value): Remove constraint and add predicate.
34176 (*sibcall_value_symbolic_sp32): Merge into...
34177 (*sibcall_value_symbolic_sp64): Likewise.
34178 (*sibcall_value_symbolic<P:mode>): ...this.
34179 (window_save): Minor tweak.
34180 (*branch_sp32): Merge into...
34181 (*branch_sp64): Likewise.
34182 (*branch<P:mode>): ...this.
34183
34184 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34185 James Clarke <jrtc27@jrtc27.com>
34186
34187 PR target/84010
34188 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34189 consistently in TLS address generation and adjust code to the renaming
34190 of patterns. Mark calls to __tls_get_addr as const.
34191 * config/sparc/sparc.md (tgd_hi22): Turn into...
34192 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34193 (tgd_lo10): Turn into...
34194 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34195 (tgd_add32): Merge into...
34196 (tgd_add64): Likewise.
34197 (tgd_add<P:mode>): ...this and use Pmode throughout.
34198 (tldm_hi22): Turn into...
34199 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34200 (tldm_lo10): Turn into...
34201 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34202 (tldm_add32): Merge into...
34203 (tldm_add64): Likewise.
34204 (tldm_add<P:mode>): ...this and use Pmode throughout.
34205 (tldm_call32): Merge into...
34206 (tldm_call64): Likewise.
34207 (tldm_call<P:mode>): ...this and use Pmode throughout.
34208 (tldo_hix22): Turn into...
34209 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34210 (tldo_lox10): Turn into...
34211 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34212 (tldo_add32): Merge into...
34213 (tldo_add64): Likewise.
34214 (tldo_add<P:mode>): ...this and use Pmode throughout.
34215 (tie_hi22): Turn into...
34216 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34217 (tie_lo10): Turn into...
34218 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34219 (tie_ld64): Use DImode throughout.
34220 (tie_add32): Merge into...
34221 (tie_add64): Likewise.
34222 (tie_add<P:mode>): ...this and use Pmode throughout.
34223 (tle_hix22_sp32): Merge into...
34224 (tle_hix22_sp64): Likewise.
34225 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34226 (tle_lox22_sp32): Merge into...
34227 (tle_lox22_sp64): Likewise.
34228 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34229 (*tldo_ldub_sp32): Merge into...
34230 (*tldo_ldub_sp64): Likewise.
34231 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34232 (*tldo_ldub1_sp32): Merge into...
34233 (*tldo_ldub1_sp64): Likewise.
34234 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34235 (*tldo_ldub2_sp32): Merge into...
34236 (*tldo_ldub2_sp64): Likewise.
34237 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34238 (*tldo_ldsb1_sp32): Merge into...
34239 (*tldo_ldsb1_sp64): Likewise.
34240 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34241 (*tldo_ldsb2_sp32): Merge into...
34242 (*tldo_ldsb2_sp64): Likewise.
34243 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34244 (*tldo_ldub3_sp64): Use DImode throughout.
34245 (*tldo_ldsb3_sp64): Likewise.
34246 (*tldo_lduh_sp32): Merge into...
34247 (*tldo_lduh_sp64): Likewise.
34248 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34249 (*tldo_lduh1_sp32): Merge into...
34250 (*tldo_lduh1_sp64): Likewise.
34251 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34252 (*tldo_ldsh1_sp32): Merge into...
34253 (*tldo_ldsh1_sp64): Likewise.
34254 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34255 (*tldo_lduh2_sp64): Use DImode throughout.
34256 (*tldo_ldsh2_sp64): Likewise.
34257 (*tldo_lduw_sp32): Merge into...
34258 (*tldo_lduw_sp64): Likewise.
34259 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34260 (*tldo_lduw1_sp64): Use DImode throughout.
34261 (*tldo_ldsw1_sp64): Likewise.
34262 (*tldo_ldx_sp64): Likewise.
34263 (*tldo_stb_sp32): Merge into...
34264 (*tldo_stb_sp64): Likewise.
34265 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34266 (*tldo_sth_sp32): Merge into...
34267 (*tldo_sth_sp64): Likewise.
34268 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34269 (*tldo_stw_sp32): Merge into...
34270 (*tldo_stw_sp64): Likewise.
34271 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34272 (*tldo_stx_sp64): Use DImode throughout.
34273
34274 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34275
34276 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34277 check configure option to set BTI and Return Address Signing.
34278 * configure.ac: Add --enable-standard-branch-protection and
34279 --disable-standard-branch-protection.
34280 * configure: Regenerated.
34281 * doc/install.texi: Document the same.
34282
34283 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34284 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34285
34286 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34287 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34288 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34289 if bti is enabled.
34290 * config/aarch64/aarch64-bti-insert.c: New file.
34291 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34292 pass.
34293 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34294 new bti pass.
34295 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34296 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34297 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34298 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34299
34300 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34301
34302 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34303 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34304 Disable bti for -mbranch-protection=none.
34305 (aarch64_handle_standard_branch_protection): Enable bti for
34306 -mbranch-protection=standard.
34307 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34308 -mbranch-protection.
34309 (aarch64_bti_enabled): Check if bti is enabled.
34310 * config/aarch64/aarch64.opt: Declare target variable.
34311 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34312
34313 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34314
34315 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34316 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34317 (aarch64_expand_epilogue): Likewise.
34318 (aarch64_output_mi_thunk): Likewise.
34319 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34320 TAILCALL_ADDR_REGS to x16 and x17.
34321 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34322
34323 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34324
34325 * config/aarch64/aarch64-option-extensions.def: Define
34326 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34327 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34328 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34329 (AARCH64_FL_PREDRES): New.
34330 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34331 AARCH64_FL_PREDRES by default.
34332 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34333
34334 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34335
34336 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34337 ARMv8.5-A.
34338 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34339 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34340 * doc/invoke.texi: Document ARMv8.5-A.
34341
34342 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34343
34344 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34345 (xorsign<mode>3): Likewise.
34346
34347 2019-01-09 Jelinek <jakub@redhat.com>
34348
34349 PR middle-end/88758
34350 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34351 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34352
34353 PR rtl-optimization/88331
34354 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34355 not currently_expanding_to_rtl.
34356
34357 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34358
34359 * doc/invoke.texi (-Os): Remove trailing spaces.
34360 (-finline-functions): Remove reference to -O2.
34361
34362 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34363
34364 PR rtl-optimization/79593
34365 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34366
34367 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34368 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34369
34370 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34371
34372 PR bootstrap/88721
34373 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34374 to -1 on entry.
34375
34376 PR debug/88723
34377 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34378 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34379
34380 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34381
34382 PR target/88717
34383 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34384 ix86_avx_u128_mode_entry.
34385
34386 2019-01-08 Martin Liska <mliska@suse.cz>
34387
34388 PR tree-optimization/88753
34389 * tree-switch-conversion.c (switch_conversion::build_one_array):
34390 Come up with local variable constructor. Convert first to
34391 type of constructor values.
34392
34393 2019-01-08 Richard Biener <rguenther@suse.de>
34394
34395 PR tree-optimization/86554
34396 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34397 rpo_avail): Move earlier.
34398 (visit_nary_op): When value-numbering to expressions
34399 with different overflow behavior make sure there's an
34400 available expression on the path.
34401
34402 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34403
34404 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34405 aarch64_parse_branch_protection,
34406 struct aarch64_branch_protect_type,
34407 aarch64_handle_no_branch_protection,
34408 aarch64_handle_standard_branch_protection,
34409 aarch64_validate_mbranch_protection,
34410 aarch64_handle_pac_ret_protection,
34411 aarch64_handle_attr_branch_protection,
34412 accepted_branch_protection_string,
34413 aarch64_pac_ret_subtypes,
34414 aarch64_branch_protect_types,
34415 aarch64_handle_pac_ret_leaf): Define.
34416 (aarch64_override_options_after_change_1, aarch64_override_options):
34417 Add check for accepted_branch_protection_string.
34418 (aarch64_option_save): Save accepted_branch_protection_string.
34419 (aarch64_option_restore): Save accepted_branch_protection_string.
34420 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34421 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34422 msign-return-address.
34423 * doc/invoke.texi: Add mbranch-protection.
34424
34425 2019-01-08 Alan Modra <amodra@gmail.com>
34426
34427 PR target/88614
34428 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34429 Delete "unknownp" parameter. Adjust callers. Handle
34430 CONST_INT, PLUS, MINUS, and MULT.
34431 (attr_value_aligned): Renamed from or_attr_value.
34432 (min_attr_value): Return INT_MIN for unhandled rtl case..
34433 (min_fn): ..and translate to INT_MAX here.
34434 (write_length_unit_log): Modify to cope without "unknown".
34435 (write_attr_value): Handle IF_THEN_ELSE.
34436
34437 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34438
34439 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34440 optimization for masked stores.
34441
34442 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34443
34444 PR middle-end/88567
34445 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34446 output vector directly to duplicate_and_interleave instead of
34447 going through a temporary. Postpone insertion of ctor_seq to
34448 the end of the loop.
34449
34450 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34451
34452 PR target/86891
34453 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34454 unsigned_p. Handle signed and unsigned overflow correction as
34455 required.
34456 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34457 prototype.
34458 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34459 for operand 2.
34460 (add<mode>3_compareV_imm): Make this callable for expanding.
34461 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34462 aarch64_plus_operand for operand 2.
34463 (subv<GPI:mode>_insn): New insn pattern.
34464 (subv<GPI:mode>_imm): Likewise.
34465 (negv<GPI:mode>3): New expand pattern.
34466 (negv<GPI:mode>_insn): New insn pattern.
34467 (negv<GPI:mode>_cmp_only): Likewise.
34468 (cmpv<GPI:mode>_insn): Likewise.
34469 (subvti4): Use register_operand for operand 1. Update call to
34470 aarch64_expand_subvti.
34471 (usubvti4): Likewise.
34472 (negvti3): New expand pattern.
34473 (negdi_carryout): New insn pattern.
34474 (negvdi_carryinV): New insn pattern.
34475 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34476 version the named version.
34477 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34478 operands.
34479 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34480 patterns.
34481 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34482 patterns.
34483 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34484 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34485 (sub<mode>3_carryinCV): Delete.
34486 (sub<GPI:mode>3_carryinV): New expand pattern.
34487 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34488
34489 2019-01-07 Richard Biener <rguenther@suse.de>
34490
34491 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34492 of tree_operand_hash.
34493
34494 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34495
34496 PR tree-optimization/88598
34497 * tree.h (single_nonzero_element): Declare.
34498 * tree.c (single_nonzero_element): New function.
34499 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34500 if I is the only nonzero element of CST.
34501
34502 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34503
34504 PR tree-optimization/88598
34505 * tree.h (initializer_each_zero_or_onep): Declare.
34506 * tree.c (initializer_each_zero_or_onep): New function.
34507 (signed_or_unsigned_type_for): Handle float types too.
34508 (unsigned_type_for, signed_type_for): Update comments accordingly.
34509 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34510 x & { 0 or -1, 0 or -1, ... }.
34511
34512 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34513
34514 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34515 with x86_64-pc-linux-gnu.
34516
34517 2019-01-07 Tom de Vries <tdevries@suse.de>
34518
34519 PR target/85486
34520 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34521 function.
34522 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34523 routines.
34524
34525 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34526
34527 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34528 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34529 TARGET_AVX512F as condition.
34530
34531 PR debug/88723
34532 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34533 const_not_ok_for_debug_p target hook.
34534 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34535 on UNSPEC and subexpressions thereof if all subexpressions of the
34536 UNSPEC are CONSTANT_P.
34537
34538 PR tree-optimization/88676
34539 * tree-ssa-phiopt.c (two_value_replacement): New function.
34540 (tree_ssa_phiopt_worker): Call it.
34541
34542 PR sanitizer/88619
34543 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34544 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34545
34546 PR c++/85052
34547 * tree-vect-generic.c: Include insn-config.h and recog.h.
34548 (expand_vector_piecewise): Add defaulted ret_type argument,
34549 if non-NULL, use that in preference to type for the result type.
34550 (expand_vector_parallel): Formatting fix.
34551 (do_vec_conversion, do_vec_narrowing_conversion,
34552 expand_vector_conversion): New functions.
34553 (expand_vector_operations_1): Call expand_vector_conversion
34554 for VEC_CONVERT ifn calls.
34555 * internal-fn.def (VEC_CONVERT): New internal function.
34556 * internal-fn.c (expand_VEC_CONVERT): New function.
34557 * fold-const-call.c (fold_const_vec_convert): New function.
34558 (fold_const_call): Use it for CFN_VEC_CONVERT.
34559 * doc/extend.texi (__builtin_convertvector): Document.
34560
34561 2019-01-07 Tom de Vries <tdevries@suse.de>
34562
34563 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34564 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34565 vector_red_partition, vector_red_sym): New global variables.
34566 (nvptx_option_override): Initialize vector_red_sym.
34567 (nvptx_declare_function_name): Restore red_partition register.
34568 (nvptx_file_end): Emit code to declare the vector reduction variables.
34569 (nvptx_output_red_partition): New function.
34570 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34571 large vector reductions.
34572 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34573 (nvptx_init_builtins): Add VECTOR_ADDR.
34574 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34575 Handle nvptx_expand_shared_addr.
34576 (nvptx_get_shared_red_addr): Add vector argument and handle large
34577 vectors.
34578 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34579 large vectors.
34580 (nvptx_goacc_reduction_init): Likewise.
34581 (nvptx_goacc_reduction_fini): Likewise.
34582 (nvptx_goacc_reduction_teardown): Likewise.
34583 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34584 init,fini,teardown}.
34585 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34586 (nvptx_set_current_function): Init vector_red_partition.
34587 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34588 (nvptx_red_partition): New insn.
34589 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34590
34591 2019-01-07 Tom de Vries <tdevries@suse.de>
34592
34593 PR target/85381
34594 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34595 empty loops.
34596
34597 2019-01-07 Tom de Vries <tdevries@suse.de>
34598
34599 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34600 (nvptx_option_override): Init oacc_bcast_partition.
34601 (nvptx_init_oacc_workers): New function.
34602 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34603 (nvptx_needs_shared_bcast): New function.
34604 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34605 to propagate state.
34606 (nvptx_shared_propagate): Initialize vector bcast partition and
34607 synchronization state.
34608 (nvptx_single): Generalize to enable vectors to use shared-memory
34609 to propagate state.
34610 (nvptx_process_pars): Likewise.
34611 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34612 * config/nvptx/nvptx.h (struct machine_function): Add
34613 bcast_partition and sync_bar members.
34614
34615 2019-01-07 Tom de Vries <tdevries@suse.de>
34616
34617 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34618 (nvptx_apply_dim_limits): New function.
34619 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34620 PTX_WARP_SIZE.
34621
34622 2019-01-07 Tom de Vries <tdevries@suse.de>
34623
34624 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34625 as late as possible.
34626
34627 2019-01-07 Tom de Vries <tdevries@suse.de>
34628
34629 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34630 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34631 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34632 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34633 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34634
34635 2019-01-07 Tom de Vries <tdevries@suse.de>
34636
34637 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34638
34639 2019-01-07 Tom de Vries <tdevries@suse.de>
34640
34641 * omp-offload.c (oacc_get_min_dim): New function.
34642 * omp-offload.h (oacc_get_min_dim): Declare.
34643
34644 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34645
34646 PR target/88521
34647 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34648 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34649
34650 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34651
34652 PR tree-opt/86020
34653 Revert:
34654 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34655
34656 * ipa-inline.c (edge_badness): Use inlined_time instead of
34657 inline_summaries->get.
34658
34659 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34660
34661 * opts.c (enable_fdo_optimizations): Enable
34662 version-loops-for-strides, loop-interchange, unrol-and-jam
34663 and tree-loop-distribution.
34664 * invoke.texi: Document newly enabled options.
34665
34666 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34667
34668 * doc/invoke.texi (max-inline-insns-small): New parameters.
34669 * ipa-inline.c (want_early_inline_function_p): simplify.
34670 (want_inline_small_function_p): Fix pasto from previous patch;
34671 use max-inline-insns-small bound.
34672 * params.def (max-inline-insns-small): New param.
34673 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34674 variables correctly.
34675
34676 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34677
34678 * doc/invoke.texi: Document max-inline-insns-size,
34679 uninlined-function-insns, uninlined-function-time,
34680 uninlined-thunk-insns and uninlined-thunk-time.
34681 * params.def: Add max-inline-insns-size,
34682 uninlined-function-insns, uninlined-function-time,
34683 uninlined-thunk-insns and uninlined-thunk-time.
34684 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34685 new parameters.
34686 * ipa-inline.c (can_inline_edge_by_limits_p,
34687 want_inline_small_function_p): Use new parameters.
34688
34689 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34690
34691 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34692
34693 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34694
34695 PR middle-end/82564
34696 PR target/88620
34697 * expr.c (expand_assignment): For calls returning VLA structures
34698 if to_rtx is not a MEM, force it into a stack temporary.
34699
34700 PR debug/88635
34701 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34702 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34703 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34704 subexpressions of both operands.
34705 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34706 subrtxes are CONSTANT_P.
34707 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34708 2018-11-09 changes.
34709
34710 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
34711
34712 * params.def (hot-bb-count-ws-permille): Set to 990.
34713
34714 2019-01-04 Martin Sebor <msebor@redhat.com>
34715
34716 PR c/88546
34717 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34718 leaf.
34719
34720 2019-01-04 Martin Sebor <msebor@redhat.com>
34721
34722 PR c/88363
34723 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34724
34725 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34726
34727 * gdbinit.in: Turn off pagination for the skip commands, restore
34728 it to previous state afterwards.
34729
34730 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34731
34732 PR target/88594
34733 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34734 of GET_MODE (opN) as modes of the libcall arguments.
34735
34736 2019-01-04 Jan Beulich <jbeulich@suse.com>
34737
34738 * config/i386/sse.md
34739 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34740 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34741 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34742 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34743 avx512f_vmcmp<mode>3<round_saeonly_name>,
34744 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34745 avx512f_maskcmp<mode>3,
34746 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34747 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34748 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34749 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34750 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34751 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34752 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34753 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34754 <avx512>_testm<mode>3<mask_scalar_merge_name>,
34755 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
34756 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
34757 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
34758 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
34759 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
34760 avx512cd_maskb_vec_dup<mode>,
34761 avx512cd_maskw_vec_dup<mode>,
34762 avx512dq_fpclass<mode><mask_scalar_merge_name>,
34763 avx512dq_vmfpclass<mode>,
34764 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
34765 instead of =Yk.
34766
34767 2019-01-03 Martin Sebor <msebor@redhat.com>
34768
34769 PR tree-optimization/88659
34770 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
34771
34772 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
34773
34774 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
34775 unaligned vsx and avoid lxvd2x/stxvd2x.
34776 (gen_lvx_v4si_move): New function.
34777
34778 2019-01-03 Tom de Vries <tdevries@suse.de>
34779
34780 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
34781 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
34782 function.
34783 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
34784
34785 2019-01-03 Tom de Vries <tdevries@suse.de>
34786
34787 * config/nvptx/nvptx.c (struct offload_attrs): New.
34788 (populate_offload_attrs): New function. Factor mask extraction out of
34789 nvptx_reorg. Add extraction of dimensions.
34790 (nvptx_reorg): Use populate_offload_attrs.
34791
34792 2019-01-03 Tom de Vries <tdevries@suse.de>
34793
34794 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
34795 cases for oacc_min_dims_p and routine_p. Add asserts for
34796 oacc_default_dims_p and offload_region_p.
34797
34798 2019-01-03 Tom de Vries <tdevries@suse.de>
34799
34800 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
34801 factored out of ...
34802 (nvptx_goacc_validate_dims): ... here.
34803
34804 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34805
34806 PR tree-optimization/85574
34807 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
34808 structure.
34809 (struct ssa_equip_hash_traits): Declare.
34810 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
34811
34812 2019-01-03 Jakub Jelinek <jakub@redhat.com>
34813
34814 PR debug/88644
34815 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
34816 change it to qualified_type.
34817
34818 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34819
34820 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
34821 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
34822
34823 2019-01-02 Martin Sebor <msebor@redhat.com>
34824 Jeff Law <law@redhat.com>
34825
34826 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
34827 (get_range_strlen_tree): Update appropriately.
34828 (get_range_strlen)
34829 * gimple-fold.h (get_range_strlen): Drop unused last argument.
34830
34831 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
34832 rather than set_range_info.
34833 * tree-ssa-strlen.c (set_strlen_range): Extracted from
34834 maybe_set_strlen_range. Handle potentially boundary crossing
34835 cases more conservatively.
34836 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
34837 Call set_strlen_range.
34838 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
34839
34840 PR middle-end/88663
34841 * gimple-fold.c (get_range_strlen): Update prototype to no longer
34842 need the flexp argument.
34843 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
34844 from calls to get_range_strlen. Update comments. Just update
34845 VAL for an unterminated const char array and let the reset of the
34846 code handle it normally. No longer try to set *flexp. Adjust
34847 return value.
34848 (get_range_strlen): Update for the new get_range_strlen API.
34849 (get_maxval_strlen): Similarly.
34850 (gimple_fold_builtin_strlen): Handle update meaning of return value
34851 from get_range_strlen.
34852 * gimple-ssa-sprintf.c (get_string_length): Update for the new
34853 get_range_strlen API.
34854
34855 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
34856
34857 PR lto/88130
34858 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
34859 false at WPA time when body was removed.
34860
34861 2019-01-02 Martin Liska <mliska@suse.cz>
34862
34863 PR tree-optimization/88650
34864 * predict.c (set_even_probabilities): Calculate probability
34865 remainer only when really used.
34866
34867 2019-01-02 Richard Biener <rguenther@suse.de>
34868
34869 PR middle-end/88651
34870 * tree-data-ref.c (analyze_subscript_affine_affine): Use
34871 widest_ints when mangling max_stmt_execution results.
34872
34873 2019-01-02 Richard Biener <rguenther@suse.de>
34874
34875 PR tree-optimization/88621
34876 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
34877 bitfields when canoncalizing.
34878
34879 2019-01-02 Richard Biener <rguenther@suse.de>
34880
34881 PR target/87545
34882 * config/i386/x86-tune-costs.h (intel_cost): Adjust
34883 cost of cheap SSE instruction.
34884
34885 2019-01-02 Richard Biener <rguenther@suse.de>
34886
34887 PR ipa/85574
34888 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
34889 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
34890 function.
34891 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
34892 set after UIDs before splitting them.
34893
34894 2019-01-01 Martin Sebor <msebor@redhat.com>
34895 Jeff Law <law@redhat.com>
34896
34897 * gimple-fold.c (get_range_strlen_tree): Record if the computed
34898 length is optimistic. If it is, then arrange to compute the
34899 conservative length as well.
34900
34901 * gimple-fold.h (get_range_strlen): Update prototype.
34902 * builtins.c (check_access): Update call to get_range_strlen to use
34903 c_strlen_data pointer. Change various variable accesses to instead
34904 pull data from the c_strlen_data structure.
34905 (check_strncat_sizes, expand_builtin_strncat): Likewise.
34906 * calls.c (maybe_warn_nonstring_arg): Likewise.
34907 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
34908 minimum length if maximum lengh is unknown.
34909 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
34910 that used c_strlen, it's no longer needed. Restructure slightly.
34911 (format_string): Set unlikely range appropriately.
34912 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
34913 formatting issues.
34914 (get_range_strlen): Accept c_strlen_data pointer for external
34915 call sites as well. Pass through to call to internal get_range_strlen.
34916 Adjust minlen, maxlen and maxbound as needed.
34917 (get_maxval_strlen): Update comments.
34918 (gimple_fold_builtin_strlen): Update call to get_range_strlen
34919 to use c_strlen_data pointer. Change variable accesses to instead
34920 use c_strlen_data data members.
34921
34922 * gimple-fold.c (get_range_strlen): Update prototype.
34923 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
34924 local variables. Use pdata to return information to caller.
34925 Update calls to get_range_strlen. Update pdata->maxbound.
34926 (get_range_strlen -- static version): Similarly.
34927 (get_range_strlen -- extern version): Update for internal
34928 get_range_strlen API change. Convert to external data format.
34929 (get_maxval_strlen): Similarly.
34930
34931 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
34932
34933 * coverage.c (get_coverage_counts): Use current_function_decl.
34934 * profile.c (read_thunk_profile): New function.
34935 (branch_prob): Add THUNK parameter.
34936 * tree-profile.c (tree_profiling): Handle thunks.
34937 * value-prof.c (init_node_map): Handle thunks.
34938 * value-prof.h (branch_prob): Upate prototype.
34939 (read_thunk_profile): Declare.
34940
34941 2019-01-01 Jakub Jelinek <jakub@redhat.com>
34942
34943 Update copyright years.
34944
34945 * gcc.c (process_command): Update copyright notice dates.
34946 * gcov-dump.c (print_version): Ditto.
34947 * gcov.c (print_version): Ditto.
34948 * gcov-tool.c (print_version): Ditto.
34949 * gengtype.c (create_file): Ditto.
34950 * doc/cpp.texi: Bump @copying's copyright year.
34951 * doc/cppinternals.texi: Ditto.
34952 * doc/gcc.texi: Ditto.
34953 * doc/gccint.texi: Ditto.
34954 * doc/gcov.texi: Ditto.
34955 * doc/install.texi: Ditto.
34956 * doc/invoke.texi: Ditto.
34957 \f
34958 Copyright (C) 2019 Free Software Foundation, Inc.
34959
34960 Copying and distribution of this file, with or without modification,
34961 are permitted in any medium without royalty provided the copyright
34962 notice and this notice are preserved.