Do not update SSA in lto-stremaer-in
[gcc.git] / gcc / ChangeLog
1 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
2
3 * cgraph.c: Include tree-into-ssa.h
4 (cgraph_node::get_body): Call update_ssa.
5 * cgraphunit.c (cgraph_node::expand): Likewise.
6 * lto-streamer-in.c (input_function): Do not call update_ssa.
7
8 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
9
10 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
11 an array element size if array_element_size is already an invariant.
12 Similarly don't gimplify and install a field offset if
13 component_ref_field_offset is already an invariant.
14
15 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
16
17 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
18 with POLY_INT_CST size is made to a fixed-size object, force the
19 object to live in memory.
20
21 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
22
23 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
24 for the data mode.
25
26 2019-12-03 Richard Biener <rguenther@suse.de>
27
28 PR tree-optimization/92758
29 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
30 operation on uniform vectors.
31
32 2019-12-03 Richard Biener <rguenther@suse.de>
33
34 PR tree-optimization/92645
35 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
36 from or to a properly aligned register variable.
37
38 2019-12-03 Matthias Klose <doko@ubuntu.com>
39
40 * Makefile.in (SOURCES): Add doc/lto-dump.1.
41 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
42 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
43
44 2019-12-03 Richard Biener <rguenther@suse.de>
45
46 PR tree-optimization/92751
47 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
48 when a clobber ends up in the partial-def vector.
49 (vn_reference_lookup_3): Let clobbers be handled by the
50 assignment from CTOR handling.
51
52 2019-12-03 Jakub Jelinek <jakub@redhat.com>
53
54 PR tree-optimization/92734
55 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
56 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
57 inner subtraction.
58
59 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
60 Jakub Jelinek <jakub@redhat.com>
61
62 PR target/92744
63 * config/i386/i386.md (peephole2 for *swap<mode>): Use
64 general_reg_operand predicates instead of register_operand.
65
66 2019-12-03 Richard Biener <rguenther@suse.de>
67
68 PR tree-optimization/92645
69 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
70 a full def of a vector via a BIT_INSERT_EXPR.
71
72 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
73
74 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
75 static.
76 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
77 decl.
78
79 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
80
81 PR middle-end/92741
82 * fold-const.c (fold_convertible_p): Check vector types more
83 thoroughly.
84
85 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
86
87 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
88 (aarch64_expand_mov_immediate): Use it when attempting to measure
89 the length of an SVE vector.
90 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
91 SVE is enabled.
92
93 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
94
95 * config/aarch64/aarch64-sve-builtins.h
96 (gimple_folder::force_vector): Declare.
97 * config/aarch64/aarch64-sve-builtins.cc
98 (gimple_folder::force_vector): New function.
99 * config/aarch64/aarch64-sve-builtins-base.cc
100 (svcmp_impl::fold): Likewise.
101 (svdup_impl::fold): Handle svdup_z too.
102
103 2019-12-02 Martin Liska <mliska@suse.cz>
104
105 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
106 function.
107 (debug_tree_odr_name): New.
108 * ipa-utils.h (get_odr_name_for_type): New.
109
110 2019-12-02 Richard Biener <rguenther@suse.de>
111
112 PR tree-optimization/92742
113 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
114 touch the def-type but verify it is consistent with the
115 original stmts.
116
117 2019-12-02 Jakub Jelinek <jakub@redhat.com>
118
119 PR tree-optimization/92712
120 * match.pd ((A * B) +- A -> (B +- 1) * A,
121 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
122 even when we don't know anything about range of A, but do know
123 something about range of B and the simplification won't introduce
124 new UB.
125
126 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
127
128 PR ipa/92133
129 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
130 (ipa-cp-min-recursive-probability): Likewise.
131 * params.opt (ipa-cp-max-recursive-depth): New.
132 (ipa-cp-min-recursive-probability): Likewise.
133 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
134 val_p and unlimited.
135 (self_recursively_generated_p): New function.
136 (get_val_across_arith_op): Likewise.
137 (propagate_vals_across_arith_jfunc): Add constant propagation for
138 self-recursive function.
139 (incorporate_penalties): Do not penalize pure self-recursive function.
140 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
141 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
142 (get_info_about_necessary_edges): Relax hotness check for edge to
143 self-recursive function.
144 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
145
146 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
147
148 PR target/92499
149
150 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
151 objects of flexible types to be small if they have internal linkage
152 or are declared extern.
153 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
154 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
155 instead of the size of the object initializer.
156 * tree.c (flexible_array_type_p): Move from C front end, and
157 generalize to handle fields in non-C structures.
158 * tree.h (flexible_array_type_p): Declare.
159
160 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
161
162 * profile-count.h (profile_count::operator<): Use IPA value for
163 comparsion.
164 (profile_count::operator>): Likewise.
165 (profile_count::operator<=): Likewise.
166 (profile_count::operator>=): Likewise.
167 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
168
169 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
170
171 * ipa-inline.c (compute_max_insns): Return int64_t.
172 (inline_small_functions): Simplify.
173
174 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
175
176 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
177 scaling happen.
178
179 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
180
181 * cgraph.h (symtab_node): Add symver flag.
182 * cgraphunit.c (process_symver_attribute): New.
183 (process_common_attributes): Use process_symver_attribute.
184 * lto-cgraph.c (lto_output_node): Stream symver.
185 (lto_output_varpool_node): Stream symver.
186 (input_overwrite_node): Stream symver.
187 (input_varpool_node): Stream symver.
188 * output.h (do_assemble_symver): Decalre.
189 * symtab.c (symtab_node::dump_base): Dump symver.
190 (symtab_node::verify_base): Verify symver.
191 (symtab_node::resolve_alias): Handle symver.
192 * varasm.c (do_assemble_symver): New function.
193 * varpool.c (varpool_node::assemble_aliases): Use it.
194 * doc/extend.texi: (symver attribute): Document.
195 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
196
197 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
198
199 * target.h (type_context_kind): New enum.
200 (verify_type_context): Declare.
201 * target.def (verify_type_context): New target hook.
202 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
203 * doc/tm.texi: Regenerate.
204 * tree.c (verify_type_context): New function.
205 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
206 Declare.
207 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
208 New function.
209 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
210 (TARGET_VERIFY_TYPE_CONTEXT): Define.
211
212 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
213
214 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
215 * cgraph.h (cgraph_node): Add unit_id and
216 merged_extern_inline.
217 (symbol_table): Add max_unit.
218 (symbol_table::symbol_table): Initialize it.
219 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
220 merged_comdat, merged_extern_inline.
221 (cgraph_node::create_clone): Likewise.
222 (cgraph_node::create_version_clone): Likewise.
223 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
224 calls.
225 * ipa-fnsummary.h (cross_module_call_p): New inline function.
226 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
227 * ipa-inline.c (inline_small_functions): Likewise.
228 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
229 copy merged_comdat and merged_extern_inline.
230 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
231 merged_extern_inline and unit_id.
232 (input_overwrite_node): Stream in these.
233 (input_cgraph_1): Set unit_base.
234 * lto-streamer.h (lto_file_decl_data): Add unit_base.
235 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
236
237 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
238
239 * gcc.c (process_command): Only warn about an ineffective `-x'
240 option if any input files have actually been supplied.
241
242 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
243
244 * doc/install.texi (Options specification): Remove the list of
245 target library subdirectories supporting
246 `--enable-version-specific-runtime-libs'. Document defaults for
247 the option.
248
249 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
250
251 PR rtl-optimization/92283
252 * lra.c (lra): Update reg notes after inheritance sub-pass and
253 before constraint sub-pass.
254
255 2019-11-29 Richard Biener <rguenther@suse.de>
256
257 PR tree-optimization/91003
258 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
259 operand number, avoid handling the non-condition operands of
260 COND_EXPRs as comparisons.
261 (vect_get_constant_vectors): Pass down the operand number.
262 (vect_get_slp_defs): Likewise.
263
264 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
265
266 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
267 generic_expr_could_trap_p to check if the condition of COND_EXPR or
268 VEC_COND_EXPR can trap.
269
270 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
271
272 PR tree-optimization/92677
273 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
274 to zero when dissolving a group of strided accesses.
275
276 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
277
278 PR tree-optimization/92596
279 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
280 operations.
281 (vectorizable_operation): Likewise, instead of relying on
282 vect_get_mask_type_for_stmt to do this.
283 (vect_get_vector_types_for_stmt): Always return a vector type
284 immediately, rather than deferring the choice for boolean results.
285 Use a vector mask type instead of a normal vector if
286 vect_use_mask_type_p.
287 (vect_get_mask_type_for_stmt): Delete.
288 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
289 mask_producers argument and special boolean_type_node handling.
290 (vect_determine_vf_for_stmt): Remove mask_producers argument and
291 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
292 (vect_determine_vectorization_factor): Update call accordingly.
293 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
294 boolean_type_node handling.
295 (vect_slp_analyze_node_operations_1): Likewise.
296
297 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
298
299 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
300 (vect_use_mask_type_p): New function.
301 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
302 mask precision to the pattern statement.
303 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
304 and use it to initialize the new stmt's mask precision.
305 (search_type_for_mask_1): Delete.
306 (search_type_for_mask): Replace with...
307 (integer_type_for_mask): ...this new function. Use the information
308 cached in the stmt_vec_info.
309 (vect_recog_bool_pattern): Update accordingly.
310 (build_mask_conversion): Pass the scalar type associated with the
311 mask type to append_pattern_def_seq.
312 (vect_recog_mask_conversion_pattern): Likewise. Call
313 integer_type_for_mask instead of search_type_for_mask.
314 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
315 of search_type_for_mask.
316 (possible_vector_mask_operation_p): New function.
317 (vect_determine_mask_precision): Likewise.
318 (vect_determine_stmt_precisions): Call it.
319
320 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
321
322 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
323 the slp_tree parameter with a group size parameter.
324 (vect_get_mask_type_for_stmt): Likewise.
325 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
326 (vect_get_mask_type_for_stmt): Likewise.
327 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
328 call accordingly.
329
330 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
331
332 * tree-vect-stmts.c (vectorizable_operation): Punt early
333 on codes that are handled elsewhere.
334
335 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
336
337 * doc/sourcebuild.texi (vect_bool_cmp): Document.
338 * tree-vect-patterns.c (search_type_for_mask_1): If neither
339 operand to a boolean comparison is a natural vector mask,
340 handle both operands like normal integers instead.
341
342 2019-11-29 Richard Biener <rguenther@suse.de>
343
344 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
345 out early for too large objects.
346
347 2019-11-29 Martin Jambor <mjambor@suse.cz>
348
349 PR ipa/92476
350 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
351 the summary only if the summary exists.
352 (find_more_scalar_values_for_callers_subset): Check node_dead in
353 the summary only if the summary exists.
354 (ipcp_store_bits_results): Ignore nodes without lattices.
355 (ipcp_store_vr_results): Likewise.
356 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
357 header files required by them.
358 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
359
360 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
361
362 PR tree-optimization/92710
363 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
364 vector mask arguments.
365
366 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
367
368 * profile-count.c (profile_count::to_cgraph_frequency,
369 profile_count::to_sreal_scale): Check for compaibility of counts.
370 * profile-count.h (compatible_p): Make public; add checking for
371 global0 versus global types.
372 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
373
374 2019-11-29 Richard Biener <rguenther@suse.de>
375
376 PR tree-optimization/92715
377 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
378 out for uniform vectors and source vectors with less elements
379 than the destination.
380
381 2019-11-29 Martin Liska <mliska@suse.cz>
382
383 PR lto/91574
384 * ipa-devirt.c (types_same_for_odr): Check for existence
385 of TYPE_NAMEs first.
386
387 2019-11-29 Richard Biener <rguenther@suse.de>
388
389 PR tree-optimization/92704
390 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
391 in loops performing only loads.
392
393 2019-11-29 Julian Brown <julian@codesourcery.com>
394
395 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
396 BT_DFLOAT128_PTR) Remove.
397 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
398 TI_DFLOAT128_PTR_TYPE): Remove.
399 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
400 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
401 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
402 dfloat128_ptr_type_node): Remove macros.
403
404 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
405
406 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
407 formatting.
408 (*movdi_internal64): Ditto.
409
410 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
411
412 PR target/92602
413 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
414 indexed_or_indirect_operand to be memory_operand.
415 (bswap<mode>2_store for HSI): Ditto.
416 (bswapdi2_load): Ditto.
417 (bswapdi2_store): Ditto.
418
419 2019-11-28 Martin Liska <mliska@suse.cz>
420
421 PR debug/46558
422 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
423 headers for translation.
424
425 2019-11-28 Martin Liska <mliska@suse.cz>
426
427 PR lto/92609
428 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
429 consistently.
430
431 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
432
433 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
434 checks.
435
436 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
437
438 * profile-count.c (profile_count::combine_with_ipa_count): Return
439 uninitialized count if called on ininitialized count.
440
441 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
442
443 * ipa-inline-transform.c (inline_transform): Scale profile before
444 redirecting.
445
446 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
447
448 * profile-count.h (profile_count::max): Work on profiles of different
449 type.
450 (profile_count::apply_scale): Be sure that ret is not local or global0
451 type if num is global.
452
453 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
454
455 * profile-count.h (profile_count::max): Work on profiles of different
456 type.
457 (profile_count::apply_scale): Be sure that ret is not local or global0
458 type if num is global.
459
460 2019-11-28 Martin Jambor <mjambor@suse.cz>
461
462 PR ipa/92697
463 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
464 ifunc_resolvers.
465 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
466 Removed trailig whitespace.
467
468 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
469
470 * profile-count.h (profile_count::combine_with_ipa_count_within):
471 Declare.
472 * profile-count.c (profile_count::combine_with_ipa_count_within):
473 New.
474 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
475 it.
476
477 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
478
479 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
480 of counters are done same way.
481
482 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
483
484 * ipa-cp.c (update_profiling_info): Fix scaling.
485
486 2019-11-28 Richard Biener <rguenther@suse.de>
487
488 PR tree-optimization/92645
489 * tree-inline.c (remap_gimple_stmt): When the return value
490 is not wanted, elide GIMPLE_RETURN.
491
492 2019-11-28 Richard Biener <rguenther@suse.de>
493
494 PR tree-optimization/92645
495 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
496 conversions inside a mode class. Remove restriction on
497 preserving the element size.
498 (simplify_vector_constructor): Deal with the above and for
499 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
500 and VEC_PACK_TRUNC_EXPR.
501
502 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
503
504 Must use push insn to pass varargs arguments of DFmode because
505 otherwise the middle-end generates wrong code.
506
507 PR target/92055
508 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
509
510 2019-11-28 Jakub Jelinek <jakub@redhat.com>
511
512 PR tree-optimization/92691
513 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
514 in function comment.
515 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
516 calls, return !handle_printf_call rather than always returning true.
517 (check_and_optimize_stmt): Describe return value meaning in function
518 comment. Formatting fix.
519
520 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
521
522 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
523 combination of globa0 and global counters..
524
525 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
526
527 PR target/92566
528 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
529 by VECTOR_UNIT_NONE_P instead.
530
531 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
532
533 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
534 Refine VF to VF_AVX512VL.
535
536 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
537
538 * config/rs6000/rs6000.md (movsi_internal): Reformat.
539 (movdi_internal64): Reformat.
540
541 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
542
543 PR bootstrap/92661
544 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
545 builtin if we don't have an actual type.
546 (builtin_function_type): If the builtin function uses a DFP type
547 and decimal float has been disabled, then return NULL_TREE.
548
549 2019-11-27 Jakub Jelinek <jakub@redhat.com>
550
551 PR rtl-optimization/92510
552 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
553 of comparison into a comparison with different mode if both imode and
554 omode are scalar integral modes.
555
556 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
557
558 PR rtl-optimization/90007
559 * recog.c (constrain_operands): Permit hard registers too for
560 memory when LRA is used.
561
562 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
563
564 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
565 between Coldfire and regular m68k.
566 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
567
568 2019-11-27 Richard Biener <rguenther@suse.de>
569
570 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
571 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
572 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
573 * optabs-tree.c (supportable_convert_operation): Do not call
574 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
575 * optabs-tree.h (supportable_convert_operation): Adjust.
576 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
577 * doc/tm.texi: Regenerate.
578 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
579 * tree-vect-generic.c (expand_vector_conversion): Likewise.
580 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
581 unused decl parameter and adjust.
582 (vect_create_vectorized_promotion_stmts): Likewise.
583 (vectorizable_conversion): Adjust.
584
585 2019-11-27 Richard Biener <rguenther@suse.de>
586
587 PR tree-optimization/92690
588 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
589 converting elements not originally converted.
590
591 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
592
593 PR middle-end/92463
594 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
595 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
596 mpfr_rnd_t instead of mp_rnd_t.
597 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
598 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
599 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
600 Use mpfr_exp_t instead of mp_exp_t.
601 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
602 MPFR_RNDx instead of GMP_RNDx.
603 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
604 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
605 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
606 of mp_rnd_t and remove MPFR_RNDx poisoning.
607 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
608
609 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
610
611 PR tree-optimization/91790
612 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
613 DR for vect_setup_realignment when first_stmt_info is different
614 from first_stmt_info_for_drptr.
615
616 2019-11-27 Richard Biener <rguenther@suse.de>
617
618 PR tree-optimization/92645
619 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
620 CTORs with just a subset of the original vectors.
621
622 2019-11-27 Richard Biener <rguenther@suse.de>
623
624 PR middle-end/92674
625 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
626 edges and instead record blocks in bitmap.
627 (gimple_expand_calls_inline): Adjust.
628 (fold_marked_statements): Delay EH cleanup until all folding is
629 done.
630 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
631 inlining finished.
632
633 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
634
635 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
636 LRA is enabled.
637 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
638 disabled.
639
640 2019-11-27 Jakub Jelinek <jakub@redhat.com>
641
642 PR debug/92664
643 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
644
645 2019-11-26 Martin Sebor <msebor@redhat.com>
646
647 PR tree-optimization/92683
648 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
649 inadvertently removed in a previous change. Rename local variable
650 for clarity.
651
652 2019-11-26 Richard Biener <rguenther@suse.de>
653
654 PR middle-end/92669
655 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
656 NULL pre_order.
657
658 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
659
660 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
661
662 2019-11-26 Jakub Jelinek <jakub@redhat.com>
663
664 PR tree-optimization/92644
665 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
666 next to INTEGER_CST checks.
667
668 2019-11-26 Richard Biener <rguenther@suse.de>
669
670 PR tree-optimization/92645
671 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
672 do not build the operation from scalars if the operand is.
673
674 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
675
676 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
677 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
678 definitions.
679
680 2019-11-25 Martin Liska <mliska@suse.cz>
681
682 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
683 up used dump message.
684
685 2019-11-25 Martin Liska <mliska@suse.cz>
686
687 PR bootstrap/92653
688 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
689 too strict checking assert.
690
691 2019-11-25 Joseph Myers <joseph@codesourcery.com>
692
693 PR c/91985
694 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
695 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
696 error_mark_node if corresponding global tree node is NULL.
697 * tree.c (build_common_tree_nodes): Do not initialize
698 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
699 decimal floating-point not supported.
700
701 2019-11-25 Joseph Myers <joseph@codesourcery.com>
702
703 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
704 types.
705
706 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
707
708 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
709 Replace code for non-CONST_INT constants with gcc_unreachable.
710 * config/m68k/m68k.md (cbranchdi): Don't generate individual
711 compare and test.
712 (CMPMODE): New mode_iterator.
713 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
714 cbranch<mode>4.
715 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
716 cstore<mode>4.
717 (cmp<mode>_68881): Remove 'F' constraint from first comparison
718 operand.
719 (bit test insns patterns): Use nonimmediate_operand, not
720 register_operand, for source operands that allow memory in
721 their constraints.
722 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
723 Use register_operand, not nonimmediate_operand, for the
724 destinations.
725 (DBCC): New mode_iterator.
726 (dbcc peepholes): Use it to reduce duplication.
727 (trap): Use const_true_rtx, not const1_rtx.
728 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
729 from m68k_subword_comparison_operand and changed to handle
730 SImode.
731
732 PR target/91851
733 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
734 declaration.
735 (m68k_init_cc): New declaration.
736 (m68k_output_compare_di, m68k_output_compare_si)
737 (m68k_output_compare_hi, m68k_output_compare_qi)
738 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
739 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
740 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
741 m68k_output_branch_float, m68k_output_branch_float_rev):
742 Likewise.
743 (valid_dbcc_comparison_p_2, flags_in_68881)
744 (output_btst): Remove declaration.
745 * config/m68k/m68k.c (INCLDUE_STRING): Define.
746 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
747 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
748 (flags_compare_op0, flags_compare_op1, flags_operand1,
749 flags_operand2, flags_valid): New static variables.
750 (m68k_find_flags_value, m68k_init_cc): New functions.
751 (handle_flags_for_move, m68k_asm_final_postscan_insn,
752 remember_compare_flags): New static functions.
753 (output_dbcc_and_branch): New argument CODE. Use it, and add
754 PLUS and MINUS to the possible codes. All callers changed.
755 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
756 and INSN arguments, add CODE arg. Return the comparison code
757 to use. All callers changed. Use CODE instead of
758 next_insn_tests_no_inequality, and replace cc_status management
759 with changing the return code.
760 (m68k_rtx_costs): Instead of testing for COMPARE, test for
761 RTX_COMPARE or RTX_COMM_COMPARE.
762 (output_move_simode, output_move_qimode): Call
763 handle_flags_for_move.
764 (notice_update_cc): Delete function.
765 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
766 m68k_output_compare_hi, m68k_output_compare_qi,
767 m68k_output_compare_fp, m68k_output_branch_integer,
768 m68k_output_branch_integer_rev, m68k_output_scc,
769 m68k_output_branch_float, m68k_output_branch_float_rev,
770 m68k_output_scc_float): New functions.
771 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
772 once at the start, and set flags_valid and flags_operand1 if the
773 flags are usable.
774 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
775 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
776 definitions.
777 (CC_STATUS_INIT): Define.
778 * config/m68k/m68k.md (flags_valid): New define_attr.
779 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
780 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
781 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
782 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
783 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
784 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
785 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
786 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
787 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
788 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
789 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
790 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
791 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
792 ctrapqi4, conditional_trap): Delete patterns.
793 (cbranchdi4_insn): New pattern.
794 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
795 test high part only. When testing EQ or NE, generate beq0_di
796 and bne0_di patterns directly.
797 (cstoredi4): When testing LT or GE, test high part only.
798 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
799 patterns.
800 (scc0_constraints, cmp1_constraints, cmp2_constraints,
801 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
802 cmp2_cf_predicate): New define_mode_attrs.
803 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
804 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
805 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
806 New patterns.
807 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
808 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
809 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
810 New patterns.
811 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
812 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
813 Likewise.
814 (BTST): New define_mode_iterator.
815 (btst_predicate, btst_constraint, btst_range): New
816 define_mode_attrs.
817 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
818 patterns.
819 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
820 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
821 patterns): Set attr "flags_valid".
822 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
823 management. Set attr "flags_valid".
824 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
825 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
826 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
827 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
828 manual CC_STATUS management.
829 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
830 unnamed strict_lowpart subhi and subqi patterns): Set attr
831 "flags_valid".
832 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
833 Remove code to operate on address regs and assert the case
834 does not occur.
835 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
836 manual CC_STATUS_INIT.
837 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
838 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
839 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
840 one_cmplqi2, unnamed strict_lowpart patterns
841 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
842 one_cmplhi and one_cmplqi): Set attr "flags_valid".
843 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
844 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
845 CC_STATUS_INIT.
846 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
847 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
848 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
849 unnamed strict_low_part patterns for HI and
850 QI versions): Set attr "flags_valid".
851 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
852 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
853 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
854 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
855 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
856 (various unnamed peepholes): Adjust compare/branch sequences
857 for new cbranch patterns.
858 (dbcc peepholes): Likewise, and output the comparison here
859 as well.
860 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
861 (fp_src_operand): Allow constant zero.
862 (address_reg_operand): New predicate.
863
864 * rtl.h (inequality_comparisons_p): Remove declaration.
865 * recog.h (next_insn_tests_no_inequality): Likewise.
866 * rtlanal.c (inequality_comparisons_p): Delete function.
867 * recog.c (next_insn_tests_no_inequality): Likewise.
868
869 2019-11-25 Richard Biener <rguenther@suse.de>
870
871 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
872 (vect_detect_hybrid_slp): Swap lane and instance iteration,
873 properly re-building the visited hash-map for each lane.
874
875 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
876
877 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
878 gcn_md_reorg): Remove unused variables.
879 (gcn_emutls_var_init): Add missing (but unreachable) return
880 to silence warning.
881 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
882 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
883 an uninitialized variable.
884
885 2019-11-25 Martin Jambor <mjambor@suse.cz>
886
887 PR ipa/92109
888 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
889 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
890 (cgraph_materialize_clone): Move removel from clone tree to the
891 the new method and use it instead.
892 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
893 bodies of clones, also remove it from the clone tree.
894
895 2019-11-25 Martin Jambor <mjambor@suse.cz>
896
897 PR ipa/91956
898 * ipa-sra.c (process_isra_node_results): Put the new node to the
899 same comdat group as the original node.
900
901 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
902
903 Build double32 / long-double32 multilibs if needed.
904
905 PR target/92055
906 * config/avr/t-avr:
907 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
908 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
909 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
910 tm_defines and pass to genmultilib.awk.
911 * config/avr/genmultilib.awk: Use these variables to add double32
912 and / or long-double32 multilib(s) as needed.
913 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
914
915 2019-11-25 Richard Biener <rguenther@suse.de>
916
917 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
918 loop body, defaulted to NULL.
919 (single_likely_exit): Add exit vector argument
920 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
921 (number_of_iterations_exit): Likewise.
922 (number_of_iterations_exit_assumptions): Likewise.
923 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
924 if not NULL.
925 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
926 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
927 Compute exit vector around call to single_likely_exit.
928 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
929 loop body to loop_only_exit_p.
930 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
931 caller.
932 (number_of_iterations_exit_assumptions): Get loop body from caller
933 if not NULL.
934 (number_of_iterations_exit): Pass through new loop body arg.
935 (infer_loop_bounds_from_undefined): Get loop body from caller.
936 (estimate_numbers_of_iterations): Compute loop body once.
937
938 2019-11-25 Richard Biener <rguenther@suse.de>
939
940 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
941 auto_bb_flag instead of an sbitmap for visited handling.
942
943 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
944
945 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
946 iterator.
947 (vector_fp_comparison_complex): Likewise.
948 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
949 define_and_split.
950 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
951 Likewise.
952 (vector_lt<mode> for VEC_F): Refactor with
953 vector_fp_comparison_simple.
954 (vector_le<mode> for VEC_F): Likewise.
955 (vector_unge<mode> for VEC_F): Likewise.
956 (vector_unle<mode> for VEC_F): Likewise.
957 (vector_ne<mode> for VEC_F): Likewise.
958 (vector_ungt<mode> for VEC_F): Likewise.
959 (vector_unlt<mode> for VEC_F): Likewise.
960 (vector_ltgt<mode> for VEC_F): Refactor with
961 vector_fp_comparison_complex.
962 (vector_ordered<mode> for VEC_F): Likewise.
963 (vector_uneq<mode> for VEC_F): Likewise.
964 (vector_unordered<mode> for VEC_F): Likewise.
965
966 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
967
968 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
969 COMPARE, representing an overflow detection.
970
971 * combine.c (combine_instructions): Record costs for jumps.
972
973 * combine.c (can_combine_p): Allow autoinc in jumps.
974
975 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
976
977 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
978 * doc/invoke.texi (max-inline-insns-single-O2,
979 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
980 early-inlining-insns-O2): Remove documentation.
981 * ipa-fnsummary.c (analyze_function_body,
982 compute_fn_summary): Use opt_for_fn when accessing parameters.
983 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
984 inline_insns_auto, can_inline_edge_by_limits_p,
985 want_early_inline_function_p, big_speedup_p,
986 want_inline_small_function_p, want_inline_self_recursive_call_p,
987 recursive_inlining, compute_max_insns, inline_small_functions):
988 Likewise.
989 * opts.c (default_options): Add -O3 defaults for
990 OPT__param_early_inlining_insns_,
991 OPT__param_inline_heuristics_hint_percent_,
992 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
993 * params.opt (-param=early-inlining-insns-O2=,
994 -param=inline-heuristics-hint-percent-O2=,
995 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
996 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
997 -param=inline-min-speedup=, -param=inline-unit-growth=,
998 -param=large-function-growth=, -param=large-stack-frame=,
999 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1000 -param=max-inline-insns-recursive=,
1001 -param=max-inline-insns-recursive-auto=,
1002 -param=max-inline-insns-single=,
1003 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1004 -param=max-inline-recursive-depth=,
1005 -param=max-inline-recursive-depth-auto=,
1006 -param=min-inline-recursive-probability=,
1007 -param=partial-inlining-entry-probability=,
1008 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1009 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1010 Optimization.
1011
1012 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1013
1014 * ipa-fnsummary.c: Fix comment typos.
1015 * ipa-ref.h: Likewise.
1016 * ipa-predicate.h: Likewise.
1017 * ipa-split.c: Likewise.
1018 * ipa-inline-analysis.c: Likewise.
1019 * ipa-predicate.c: Likewise.
1020 * ipa-devirt.c: Likewise.
1021 * ipa-icf.h: Likewise.
1022 * profile-count.c: Likewise.
1023 * ipa-icf.c: Likewise.
1024 (sem_function::equals_wpa): Fix typos in dump messages.
1025 * ipa-icf-gimple.h: Fix comment typos.
1026 * ipa-inline-transform.c: Likewise.
1027 * ipa-polymorphic-call.c: Likewise.
1028 * ipa-fnsummary.h: Likewise.
1029 * ipa-inline.c: Likewise.
1030 (dump_inline_stats): Fix typo in debug dump message.
1031 * profile-count.h: Fix comment typos.
1032
1033 PR target/92615
1034 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1035 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1036 register_operand, force x into register before storing it into dest.
1037 Formatting fix.
1038
1039 PR middle-end/83859
1040 * doc/extend.texi (attribute access): Fix a typo.
1041
1042 PR rtl-optimization/92610
1043 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1044 cse_cfg_altered is set, even when tem is 0.
1045 (rest_of_handle_cse_after_global_opts): Likewise.
1046
1047 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1048
1049 PR c++/92458
1050 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1051 tree_hash): Move to ...
1052 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1053 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1054 types.
1055 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1056
1057 PR tree-optimization/92618
1058 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1059 containing the auto_vec and a tree.
1060 (undistribute_bitref_for_vector): Handle the case when element type
1061 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1062 fixes.
1063
1064 2019-11-22 Martin Sebor <msebor@redhat.com>
1065
1066 PR middle-end/83859
1067 * attribs.h (struct attr_access): New.
1068 * attribs.c (decl_attributes): Add an informational note.
1069 * builtins.c (check_access): Make extern. Consistently set no-warning
1070 after issuing a warning. Handle calls through function pointers. Set
1071 no-warning.
1072 * builtins.h (check_access): Declare.
1073 * calls.c (rdwr_access_hash): New type.
1074 (rdwr_map): Same.
1075 (init_attr_rdwr_indices): New function.
1076 (maybe_warn_rdwr_sizes): Same.
1077 (initialize_argument_information): Call init_attr_rdwr_indices.
1078 Call maybe_warn_rdwr_sizes.
1079 (get_size_range): Avoid null argument.
1080 * doc/extend.texi (attribute access): Document new attribute.
1081
1082 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1083
1084 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1085 (ACC_LDS_SIZE): Define.
1086 (OTHER_LDS_SIZE): Define.
1087 (LDS_SIZE): Redefine using above.
1088 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1089
1090 2019-11-22 Martin Sebor <msebor@redhat.com>
1091
1092 PR middle-end/88226
1093 * builtins.c (check_nul_terminated_array): New function.
1094 (fold_builtin_0): Remove declaration.
1095 (fold_builtin_1): Same.
1096 (fold_builtin_2): Same.
1097 (fold_builtin_3): Same.
1098 (fold_builtin_strpbrk): Add argument.
1099 (fold_builtin_strspn): Same.
1100 (fold_builtin_strcspn): Same.
1101 (expand_builtin_strcat): Call it. Remove unused argument.
1102 (expand_builtin_stpncpy): Same.
1103 (expand_builtin_strncat): Same.
1104 (expand_builtin_strncpy): Same. Adjust indentation.
1105 (expand_builtin_strcmp): Same.
1106 (expand_builtin_strncmp): Same.
1107 (expand_builtin_fork_or_exec): Same.
1108 (expand_builtin): Handle more built-ins.
1109 (fold_builtin_2): Add argument.
1110 (fold_builtin_n): Make static. Add argument.
1111 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1112 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1113 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1114 (fold_call_stmt): Pass new argument to fold_builtin_n.
1115 * builtins.h: Correct a comment.
1116 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1117 check_nul_terminated_array.
1118 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1119 check_nul_terminated_array.
1120 (handle_builtin_strchr): Same.
1121 (handle_builtin_string_cmp): Same.
1122
1123 2019-11-22 Martin Sebor <msebor@redhat.com>
1124
1125 PR tree-optimization/92501
1126 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1127 handle unterminated arrays. Rename local variables for clarity.
1128
1129 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1130
1131 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1132 granulated_sgprs according to architecture.
1133
1134 2019-11-22 Jan Hubicka <jh@suse.cz>
1135
1136 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1137 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1138 (memory_block_pool::reduce_free_list): ... this one.
1139 (memory_block_pool::trim): New static function.
1140 * memory-block.h (memory_block_pool::freelist_size): New constant
1141 (memory_block_pool::clear_free_list): Rename to ...
1142 (memory_block_pool::reduce_free_list): ... this one.
1143 (memory_block_pool::trim): Declare.
1144
1145 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1146
1147 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1148 vect_cost_for_stmt.
1149 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1150 here rather than...
1151 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1152
1153 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1154
1155 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1156 (bic_cmp0_noout): New pattern.
1157 (bic_cmp0): Likewise.
1158 (neg_scc_insn): Remove pattern.
1159 (not_scc_insn): Likewise.
1160
1161 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1162
1163 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1164
1165 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1166
1167 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1168 pedwarn instead of warning_at for fallthrough not preceding a case
1169 or default label.
1170
1171 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1172
1173 PR tree-optimization/92608
1174 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1175 of dyn_cast.
1176
1177 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1178
1179 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1180 New predicate.
1181 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1182 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1183 special for FP comparisons that need a cror instruction eventually.
1184 (rs6000_emit_fp_cror): New function.
1185 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1186 instruction, for normal FP modes, with HONOR_NANS.
1187 (rs6000_emit_cbranch): Reformat.
1188 * config/rs6000/rs6000.md (fp_rev): New iterator.
1189 (fp_two): New iterator.
1190 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1191 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1192 *cbranch_2insn: New define_insn_and_split.
1193
1194 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1195
1196 PR tree-optimization/92526
1197 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1198 versioning for alignment if the accesses do not have a consistent
1199 mask, rather than asserting that the masks are consistent.
1200
1201 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1202
1203 PR tree-optimization/92595
1204 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1205 check.
1206 (vectorizable_store, vectorizable_load): Likewise.
1207
1208 2019-11-21 Jan Hubicka <jh@suse.cz>
1209
1210 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1211 (resolve_noninline_speculation, inline_small_functions): Avoid
1212 redundant updates.
1213
1214 2019-11-21 Richard Biener <rguenther@suse.de>
1215
1216 * lra.c (lra_insn_recog_data_pool): New.
1217 (free_insn_recog_data): Adjust.
1218 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1219 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1220
1221 2019-11-21 Richard Biener <rguenther@suse.de>
1222
1223 PR tree-optimization/92596
1224 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1225
1226 2019-11-21 Jan Hubicka <jh@suse.cz>
1227
1228 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1229 ready for some vectors to not be allocated.
1230 (evaluate_properties_for_edge): Document better; make
1231 known_vals and known_aggs caller allocated; avoid determining
1232 values of parameters which are not used.
1233 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1234 known_aggs.
1235 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1236 (do_estimate_edge_size): Likewise.
1237 (do_estimate_edge_hints): Likewise.
1238 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1239 values are not known.
1240 (ipa_release_agg_values): Add option to not release vector itself.
1241 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1242
1243 2019-11-21 Richard Biener <rguenther@suse.de>
1244
1245 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1246 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1247 (loop_iterator::loop_iterator): Adjust.
1248 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1249 (compute_dominance_frontiers): ... this. Hoist invariant
1250 get_immediate_dominator call.
1251 (compute_idf): Use a work-set instead of a work-list for more
1252 optimal iteration order and duplicate avoidance.
1253 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1254 the vector all the time, instead pre-allocate the vector only
1255 once.
1256 (delete_update_ssa): Simplify.
1257 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1258
1259 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1260
1261 PR tree-optimization/91355
1262 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1263 for early_bb scaled count with best_bb count comparison.
1264
1265 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1266 preffer -> prefer.
1267 * ipa-inline.c (edge_badness): Likewise.
1268 * lto-streamer.h (class lto_location_cache): Likewise.
1269 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1270 gratutious -> gratuitous.
1271
1272 2019-11-21 Richard Biener <rguenther@suse.de>
1273
1274 Revert
1275 2019-09-17 Richard Biener <rguenther@suse.de>
1276
1277 PR tree-optimization/91790
1278 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1279 use the correct DR for setting up realignment.
1280
1281 2019-11-21 Richard Biener <rguenther@suse.de>
1282
1283 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1284 (equiv_class_obstack): New.
1285 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1286 (perform_var_substitution): Initialize equiv_class_obstack.
1287 (free_var_substitution_info): Free equiv_class_obstack.
1288
1289 2019-11-20 Jan Hubicka <jh@suse.cz>
1290
1291 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1292 edge growth when callee function is very large.
1293 * ipa-inline.h (estimate_min_edge_growth): New.
1294
1295 2019-11-20 Jan Hubicka <jh@suse.cz>
1296
1297 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1298 negative time in calls summary; correct roundoff errors
1299 leading to negative times.
1300 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1301 if present.
1302 (ipa_update_overall_fn_summary): Add RESET parameter.
1303 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1304 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1305
1306 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1307
1308 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1309 def types for two-operation SLP.
1310
1311 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1312
1313 PR testsuite/92366
1314 * doc/sourcebuild.texi (vect_char_add): Document.
1315
1316 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1317
1318 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1319 * function.c (record_final_call): Record even calls that might
1320 have been in the cgraph.
1321 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1322 callees.
1323
1324 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1325
1326 * configure.ac: Use https for gcc.gnu.org
1327 * configure: Regenerated.
1328 * doc/install.texi: Use https for gcc.gnu.org.
1329 * doc/sourcebuild.texi: Likewise.
1330
1331 2019-11-20 Julian Brown <julian@codesourcery.com>
1332
1333 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1334
1335 2019-11-20 Jan Hubicka <jh@suse.cz>
1336
1337 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1338 parameter and update call_size_time_table.
1339 (ipa_fn_summary::max_size_time_table_size): New constant.
1340 (estimate_calls_size_and_time_1): Break out from ...
1341 (estimate_calls_size_and_time): ... here; implement summary production.
1342 (summarize_calls_size_and_time): New function.
1343 (ipa_call_context::estimate_size_and_time): Bypass
1344 estimate_calls_size_and_time for leaf functions.
1345 (ipa_update_overall_fn_summary): Likewise.
1346 * ipa-fnsummary.h (call_size_time_table): New.
1347 (ipa_fn_summary::account_size_time): Update prototype.
1348
1349 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1350
1351 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1352
1353 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1354
1355 PR85678
1356 * common.opt (fcommon): Change init to 1.
1357 * doc/invoke.texi (-fcommon): Update documentation.
1358
1359 2019-11-20 Jan Hubicka <jh@suse.cz>
1360
1361 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1362 to ordinary array.
1363
1364 2019-11-20 Jan Hubicka <jh@suse.cz>
1365
1366 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1367 Add allocator parameter.
1368 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1369 (fibonacci_heap<K,V>::m_allocator): New.
1370 (fibonacci_heap<K,V>::m_own_allocator): New.
1371 (fibonacci_heap<K,V>::insert): Use allocator.
1372 (fibonacci_heap<K,V>::extract_min): Likewise.
1373 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1374 allocator.
1375 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1376 on stack.
1377 * fibonacci_heap.c: Include alloc-pool
1378 (test_empty_heap): Initialize allocator.
1379 (test_union): Likewise.
1380 * bb-reorder.c: Include alloc-pool.h.
1381 * tracer.c: Inlclude alloc-pool.h.
1382
1383 2019-11-20 Jan Hubicka <jh@suse.cz>
1384
1385 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1386 Preallocate for 32 entries.
1387 (DFS::worklist): Likewise.
1388 (DFS::DFS): Do not initialize sccstack and worklist.
1389 (DFS::~DFS): Do not release sccstack.
1390
1391 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1392
1393 PR target/92573
1394 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1395 Handle UNORDERED if !HONOR_NANS.
1396
1397 2019-11-20 Jan Hubicka <jh@suse.cz>
1398
1399 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1400 (edge_badness): ... here.
1401 (inline_small_functions): Use monotonicity of badness calculation
1402 to avoid redundant updates.
1403
1404 2019-11-20 Richard Biener <rguenther@suse.de>
1405
1406 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1407 constructors we are actually analyzing.
1408 (vect_slp_check_for_constructors): Do not vectorize uniform
1409 constuctors, do not dump here.
1410
1411 2019-11-20 Richard Biener <rguenther@suse.de>
1412
1413 PR tree-optimization/92537
1414 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1415 vectorization validity check...
1416 (vect_slp_analyze_operations): ... here.
1417
1418 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1419
1420 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1421 (make_pass_arc_predicate_delay_insns): Likewise.
1422 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1423 method, remove clone.
1424 (class pass_arc_predicate_delay_insns): Likewise.
1425 (arc_init): Remove registering of ARC specific passes.
1426 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1427 * config/arc/arc-passes.def: New file.
1428
1429 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1430
1431 PR middle-end/90840
1432 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1433 and has a mode that doesn't have corresponding integral type.
1434
1435 PR target/90867
1436 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1437 clear opts->x_ix86_isa_flags{,2} here...
1438 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1439 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1440
1441 PR c/90898
1442 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1443 assertion.
1444 (insert_clobbers_for_var): Fix a typo in function comment.
1445
1446 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1447 Jakub Jelinek <jakub@redhat.com>
1448
1449 PR middle-end/91195
1450 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1451 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1452 load.
1453
1454 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1455
1456 Make 0-series device specs work with older versions of avr-gcc.
1457
1458 PR target/92545
1459 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1460 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1461 <*link_pm_base_address>: Don't write spec.
1462 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1463
1464 2019-11-20 Richard Biener <rguenther@suse.de>
1465
1466 PR c/92088
1467 * builtins.c (compute_objsize): Deal with VLAs.
1468
1469 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1470
1471 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1472 from common code.
1473 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1474 call new function.
1475 (power9_sched_reorder2): Call new function.
1476 (rs6000_sched_reorder2): Likewise.
1477
1478 2019-11-18 Jan Hubicka <jh@suse.cz>
1479
1480 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1481 (estimate_calls_size_and_time): Update.
1482
1483 2019-11-18 Jan Hubicka <jh@suse.cz>
1484
1485 * ipa-inline.c (inlining_speedup): New function.
1486 (edge_badness): Use it.
1487
1488 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1489 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1490
1491 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1492 Mark as not having "likely" version.
1493 * config/mips/mips.md (insn_count): The simd_div instruction with
1494 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1495 (can_delay): Exclude simd_branch.
1496 (defile_delay *): Add simd_branch instructions.
1497 They have one regular delay slot.
1498
1499 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1500
1501 Revert:
1502 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1503
1504 * cse.c (cse_insn): Delete no-op register moves too.
1505 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1506 Take a second comparison to control the value for NE.
1507 (mask_to_comparison): Handle unsigned comparisons.
1508 (simplify_logical_relational_operation): Likewise. Update call
1509 to comparison_to_mask. Handle AND if !HONOR_NANs.
1510 (simplify_binary_operation_1): Call the above for AND too.
1511
1512 2019-11-19 Martin Liska <mliska@suse.cz>
1513
1514 * toplev.c (general_init): Move the call...
1515 (toplev::main): ... here as we need init_options_struct
1516 being called.
1517
1518 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1519
1520 PR target/79262
1521 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1522 vec_to_scalar_cost.
1523
1524 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1525
1526 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1527 (armv7-a): Likewise.
1528 (armv7ve): Likewise.
1529
1530 2019-11-19 Richard Biener <rguenther@suse.de>
1531
1532 PR tree-optimization/92581
1533 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1534 condition reduction chains gather all conditions involved
1535 for computing the index reduction vector.
1536
1537 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1538
1539 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1540 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1541 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1542 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1543 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1544 (aarch64_init_memtag_builtins): New.
1545 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1546 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1547 (aarch64_expand_builtin_memtag): New.
1548 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1549 (AARCH64_BUILTIN_SUBCODE): New macro.
1550 (aarch64_resolve_overloaded_memtag): New.
1551 (aarch64_resolve_overloaded_builtin_general): New. Call
1552 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1553 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1554 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1555 (aarch64_resolve_overloaded_builtin): Call
1556 aarch64_resolve_overloaded_builtin_general.
1557 * config/aarch64/aarch64-protos.h
1558 (aarch64_resolve_overloaded_builtin_general): New declaration.
1559 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1560 (TARGET_MEMTAG): Likewise.
1561 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1562 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1563 (irg, gmi, subp, addg, ldg, stg): New instructions.
1564 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1565 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1566 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1567 (__arm_mte_get_tag): Likewise.
1568 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1569 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1570 * config/arm/types.md (memtag): New.
1571 * doc/invoke.texi (-memtag): Update description.
1572
1573 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1574
1575 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1576 to define __GCC_ASM_FLAG_OUTPUTS__.
1577 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1578 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1579 depending on TARGET_THUMB1.
1580 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1581
1582 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1583
1584 PR target/92549
1585 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1586
1587 PR middle-end/91450
1588 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1589 operand is negative and one non-negative, compare the non-negative
1590 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1591 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1592 and s2 == 0, unless one of them is known to be negative. Remove
1593 tem2 variable, use tem where tem2 has been used before.
1594
1595 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1596
1597 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1598
1599 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1600
1601 PR tree-optimization/92557
1602 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1603 vmode rather than asserting it always is.
1604
1605 2019-11-19 Richard Biener <rguenther@suse.de>
1606
1607 PR tree-optimization/92554
1608 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1609 for the actual condition stmt and deal with sign-changes.
1610
1611 2019-11-19 Richard Biener <rguenther@suse.de>
1612
1613 PR tree-optimization/92555
1614 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1615 for non-SLP stmts.
1616
1617 2019-11-19 Martin Liska <mliska@suse.cz>
1618
1619 PR bootstrap/92540
1620 * config/riscv/riscv.c (riscv_address_insns): Initialize
1621 addr in order to remove boostrap -Wmaybe-uninitialized
1622 error.
1623
1624 2019-11-18 Martin Sebor <msebor@redhat.com>
1625
1626 PR tree-optimization/92493
1627 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1628 assignment.
1629
1630 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1631
1632 * cfgloop.c (get_loop_body_in_custom_order): New.
1633 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1634 * tree-loop-distribution.c (class loop_distribution): New.
1635 (bb_top_order_cmp): Remove.
1636 (bb_top_order_cmp_r): New.
1637 (create_rdg_vertices): Move into class loop_distribution.
1638 (stmts_from_loop): Same as above.
1639 (update_for_merge): Same as above.
1640 (partition_merge_into): Same as above.
1641 (get_data_dependence): Same as above.
1642 (data_dep_in_cycle_p): Same as above.
1643 (update_type_for_merge): Same as above.
1644 (build_rdg_partition_for-vertex): Same as above.
1645 (classify_builtin_ldst): Same as above.
1646 (classify_partition): Same as above.
1647 (share_memory_accesses): Same as above.
1648 (rdg_build_partitions): Same as above.
1649 (pg_add_dependence_edges): Same as above.
1650 (build_partition_graph): Same as above.
1651 (merge_dep_scc_partitions): Same as above.
1652 (break_alias_scc_partitions): Same as above.
1653 (finalize_partitions): Same as above.
1654 (distribute_loop): Same as above.
1655 (bb_top_order_init): New method
1656 (bb_top_order_destroy): New method.
1657 (get_bb_top_order_index_size): New method.
1658 (get_bb_top_order_index_index): New method.
1659 (get_bb_top_order_index_index): New method.
1660 (loop_distribution::execute): New method.
1661 (pass_loop_distribution::execute): Instantiate loop_distribution.
1662
1663 2019-11-18 Jan Hubicka <jh@suse.cz>
1664
1665 PR ipa/92508
1666 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1667 caches.
1668 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1669
1670 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1671
1672 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1673 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1674 * doc/md.texi: Document them.
1675 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1676 internal functions.
1677 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1678 * internal-fn.c (check_ptrs_direct): New macro.
1679 (expand_check_ptrs_optab_fn): Likewise.
1680 (direct_check_ptrs_optab_supported_p): Likewise.
1681 (internal_check_ptrs_fn_supported_p): New fuction.
1682 * tree-data-ref.c: Include internal-fn.h.
1683 (create_ifn_alias_checks): New function.
1684 (create_intersect_range_checks): Use it.
1685 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1686 (optab, cmp_op): Handle it.
1687 (raw_war, unspec): New int attributes.
1688 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1689 constants.
1690 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1691 New predicate.
1692 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1693 expander.
1694 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1695 pattern.
1696
1697 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1698
1699 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1700 empty constructors.
1701
1702 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1703
1704 * cse.c (cse_insn): Delete no-op register moves too.
1705 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1706 Take a second comparison to control the value for NE.
1707 (mask_to_comparison): Handle unsigned comparisons.
1708 (simplify_logical_relational_operation): Likewise. Update call
1709 to comparison_to_mask. Handle AND if !HONOR_NANs.
1710 (simplify_binary_operation_1): Call the above for AND too.
1711
1712 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1713
1714 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1715 splitting the main code out into...
1716 (native_encode_vector_part): ...this new function.
1717 (native_decode_vector_tree): New function.
1718 (fold_view_convert_vector_encoding): Likewise.
1719 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1720 to VECTOR_TYPEs.
1721
1722 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1723
1724 * tree-data-ref.c (create_intersect_range_checks_index): If the
1725 alias pair describes simple WAW and WAR dependencies, just check
1726 whether the first B access overlaps later A accesses.
1727 (create_waw_or_war_checks): New function that performs the same
1728 optimization on addresses.
1729 (create_intersect_range_checks): Call it.
1730
1731 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1732
1733 * lra-constraints.c (valid_address_p): Take the operand and a
1734 constraint as argument. If the operand is a MEM and the constraint
1735 is a memory constraint, check whether the eliminated form of the
1736 MEM already satisfies the constraint.
1737 (process_address_1): Update calls accordingly.
1738
1739 2019-11-18 Tom Tromey <tromey@adacore.com>
1740
1741 * doc/tm.texi: Rebuild.
1742 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1743 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1744
1745 2019-11-18 Richard Biener <rguenther@suse.de>
1746
1747 PR tree-optimization/92516
1748 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1749 argument, hoist bst_map creation/destruction to ...
1750 (vect_analyze_slp): ... here, forming a true graph with
1751 SLP instances being the entries.
1752 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1753 (vect_detect_hybrid_slp): Use one visited set for all
1754 graph entries.
1755 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1756 to hash-sets of slp_tree.
1757 (vect_slp_analyze_operations): Likewise.
1758 (vect_bb_slp_scalar_cost): Remove wrapper.
1759 (vect_bb_vectorization_profitable_p): Use one visited set for
1760 all graph entries.
1761 (vect_schedule_slp_instance): Elide bst_map use.
1762 (vect_schedule_slp): Likewise.
1763
1764 2019-11-18 Richard Biener <rguenther@suse.de>
1765
1766 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1767 was vectorized with just external refs fail.
1768
1769 2019-11-18 Martin Liska <mliska@suse.cz>
1770
1771 PR ipa/92525
1772 * ipa-icf.c (sem_function::init): Unset m_checker
1773 at the end of the function.
1774
1775 2019-11-18 Richard Biener <rguenther@suse.de>
1776
1777 PR tree-optimization/92558
1778 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1779 reducting the width of a reduction vector def update new_phis.
1780
1781 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1782
1783 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1784 and s390*-*-linux-musl* targets.
1785 * configure: Regenerate.
1786
1787 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1788
1789 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1790 (MUSL_DYNAMIC_LINKER64): Define.
1791
1792 2019-11-18 Martin Liska <mliska@suse.cz>
1793
1794 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1795 message for an unknown counter.
1796 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1797 (dbg_cnt_process_opt): Remove unreachable code.
1798
1799 2019-11-18 Martin Liska <mliska@suse.cz>
1800
1801 PR ipa/92529
1802 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1803 Compare LHS types of NOP_EXPR.
1804
1805 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1806
1807 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1808 "initial_pass_name" argument -- by running "*clean_state" pass.
1809 Also free the "initial_pass_name" when done.
1810
1811 2019-11-18 Richard Biener <rguenther@suse.de>
1812
1813 PR rtl-optimization/92462
1814 * alias.c (find_base_term): Restrict the look through ANDs.
1815 (find_base_value): Likewise.
1816
1817 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1818
1819 Add support for AVR devices from the 0-series.
1820
1821 PR target/92545
1822 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1823 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1824 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1825 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1826 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1827 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1828 for spec definitions.
1829 * doc/avr-mmcu.texi: Regenerate.
1830
1831 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1832
1833 PR target/92448
1834 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1835 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1836 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1837 (ix86_reassociation_width): Ditto.
1838 * config/i386/i386-options.c (ix86_option_override_internal):
1839 Replace TARGET_AVX128_OPTIAML with
1840 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1841 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1842 (TARGET_AVX128_OPTIMAL): Deleted.
1843 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1844 DEF_TUNE.
1845
1846 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1847
1848 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1849 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1850 just SI.
1851 (cceq_rev_compare): Rename to...
1852 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1853 just SI.
1854 (define_split for <bd>tf_<mode>): Add SImode first argument to
1855 gen_cceq_ior_compare.
1856
1857 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1858
1859 * common/config/powerpcspe: Delete.
1860
1861 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1862
1863 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1864 output in UNSPEC_WRFFR.
1865
1866 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1867
1868 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1869 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1870
1871 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1872
1873 * tree-data-ref.c (create_intersect_range_checks_index)
1874 (create_intersect_range_checks): Print dump messages.
1875
1876 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1877
1878 * tree-data-ref.c (dump_alias_pair): New function.
1879 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1880
1881 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1882
1883 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1884 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1885 merging data references with different steps.
1886 (create_intersect_range_checks_index): Take a
1887 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1888 Bail out if DR_ALIAS_MIXED_STEPS is set.
1889 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1890 instead of two dr_with_seg_lens. Update call to
1891 create_intersect_range_checks_index.
1892 (create_runtime_alias_checks): Update call accordingly.
1893
1894 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1895
1896 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1897 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1898 (dr_with_seg_len_pair_t::sequencing): New enum.
1899 (dr_with_seg_len_pair_t::flags): New member variable.
1900 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1901 parameter and initialize the flags member variable.
1902 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1903 call accordingly.
1904 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1905 Ensure the two data references in an alias pair are in statement
1906 order, if there is a defined order.
1907 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1908 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1909 swapped the references in a dr_with_seg_len_pair_t. OR together
1910 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1911 try to restore the original dr_with_seg_len order, updating the
1912 flags if that fails.
1913
1914 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1915
1916 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1917 swapping the dr_as based on init values until we've decided
1918 whether to merge them.
1919
1920 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1921
1922 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1923 two accesses in each dr_with_seg_len_pair_t before trying to
1924 combine separate dr_with_seg_len_pair_ts.
1925 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1926 that here.
1927 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1928
1929 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1930
1931 * config/aarch64/aarch64-sve.md
1932 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1933 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1934 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1935 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1936 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1937 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1938 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1939 pattern.
1940 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1941 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1942 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1943 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1944
1945 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1946
1947 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1948 (SVE_4HSI): New mode iterators.
1949 (ANY_EXTEND2): New code iterator.
1950 * config/aarch64/aarch64-sve.md
1951 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1952 Extend to...
1953 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1954 ...this, handling extension to partial modes as well as full modes.
1955 Describe the extension as a predicated rather than unpredicated
1956 extension.
1957 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1958 Likewise extend to...
1959 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1960 ...this, making the same adjustments.
1961 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1962 Likewise extend to...
1963 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1964 ...this, making the same adjustments.
1965 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1966 Likewise extend to...
1967 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1968 ...this, making the same adjustments.
1969 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1970 New pattern.
1971 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1972 extension predicate.
1973 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1974 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1975 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1976 Describe the extension as a predicated rather than unpredicated
1977 extension.
1978 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1979 Likewise. Canonicalize to a constant extension predicate.
1980 * config/aarch64/aarch64-sve-builtins-base.cc
1981 (svld1_gather_extend_impl::expand): Add an extra predicate for
1982 the extension.
1983 (svldff1_gather_extend_impl::expand): Likewise.
1984
1985 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1986
1987 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1988 iterators.
1989 * config/aarch64/aarch64-sve.md
1990 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1991 (gather_load<SVE_24:mode><v_int_container>): ...this.
1992 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1993 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1994 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1995 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1996 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1997 New pattern.
1998 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1999 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2000 Allow the nominal extension predicate to be different from the
2001 load predicate.
2002 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2003 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2004
2005 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2006
2007 * config/aarch64/aarch64-sve.md
2008 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2009 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2010 function.
2011 (aarch64_sve_adjust_stmt_cost): Call it.
2012
2013 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2014
2015 * config/aarch64/aarch64-sve.md
2016 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2017 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2018 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2019 Combine into...
2020 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2021 ...this new pattern, handling extension to partial modes as well
2022 as full modes. Describe the extension as a predicated rather than
2023 unpredicated extension.
2024 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2025 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2026 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2027 Combine into...
2028 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2029 ...this new pattern, handling extension to partial modes as well
2030 as full modes. Describe the extension as a predicated rather than
2031 unpredicated extension.
2032 * config/aarch64/aarch64-sve-builtins.cc
2033 (function_expander::use_contiguous_load_insn): Add an extra
2034 predicate for extending loads.
2035 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2036 (aarch64_sve_adjust_stmt_cost): Likewise.
2037 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2038 the cost of SVE vector stmts.
2039
2040 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2041
2042 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2043 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2044 * config/aarch64/aarch64-sve.md
2045 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2046 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2047 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2048 comment. Avoid new narrower_mask ambiguity.
2049 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2050 (*cond_uxt<mode>_2): Update comment.
2051 (*cond_uxt<mode>_any): Likewise.
2052
2053 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2054
2055 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2056 float modes.
2057 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2058 function.
2059 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2060 new vector float modes.
2061 (aarch64_sve_container_bits): New function.
2062 (aarch64_sve_pred_mode): Likewise.
2063 (aarch64_get_mask_mode): Use it.
2064 (aarch64_sve_element_int_mode): Handle structure modes and partial
2065 modes.
2066 (aarch64_sve_container_int_mode): New function.
2067 (aarch64_vectorize_related_mode): Return SVE modes when given
2068 SVE modes. Handle partial modes, taking the preferred number
2069 of units from the size of the given mode.
2070 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2071 in registers.
2072 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2073 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2074 (aarch64_split_sve_subreg_move): Use the mode form of
2075 aarch64_sve_pred_mode.
2076 (aarch64_secondary_reload): Handle partial modes in the same way
2077 as full big-endian vectors.
2078 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2079 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2080 merging with the Advanced SIMD modes. If two modes have the
2081 same size, try the Advanced SIMD mode first.
2082 (aarch64_simd_valid_immediate): Use the container rather than
2083 the element mode for INDEX constants.
2084 (aarch64_simd_vector_alignment): Make the alignment of partial
2085 SVE vector modes the same as their minimum size.
2086 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2087 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2088 (mov<SVE_ALL:mode>): ...this.
2089 (movmisalign<SVE_FULL:mode>): Extend to...
2090 (movmisalign<SVE_ALL:mode>): ...this.
2091 (*aarch64_sve_mov<mode>_le): Rename to...
2092 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2093 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2094 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2095 partial modes regardless of endianness.
2096 (aarch64_sve_reload_be): Rename to...
2097 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2098 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2099 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2100 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2101 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2102 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2103 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2104 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2105 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2106 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2107 (maskload<SVE_FULL:mode><vpred>): Extend to...
2108 (maskload<SVE_ALL:mode><vpred>): ...this.
2109 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2110 (maskstore<SVE_ALL:mode><vpred>): ...this.
2111 (vec_duplicate<SVE_FULL:mode>): Extend to...
2112 (vec_duplicate<SVE_ALL:mode>): ...this.
2113 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2114 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2115 (sve_ld1r<SVE_FULL:mode>): Extend to...
2116 (sve_ld1r<SVE_ALL:mode>): ...this.
2117 (vec_series<SVE_FULL_I:mode>): Extend to...
2118 (vec_series<SVE_I:mode>): ...this.
2119 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2120 (*vec_series<SVE_I:mode>_plus): ...this.
2121 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2122 new VPRED ambiguity.
2123 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2124 (add<SVE_FULL_I:mode>3): Extend to...
2125 (add<SVE_I:mode>3): ...this.
2126 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2127 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2128 (VPRED, vpred): Likewise.
2129 (Vctype): New iterator.
2130 (vw): Remove SVE modes.
2131
2132 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2133
2134 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2135 (SVE_PARTIAL_I): ...this.
2136 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2137
2138 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2139
2140 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2141 (SVE_FULL): ...this.
2142 (SVE_I): Rename to...
2143 (SVE_FULL_I): ...this.
2144 (SVE_F): Rename to...
2145 (SVE_FULL_F): ...this.
2146 (SVE_BHSI): Rename to...
2147 (SVE_FULL_BHSI): ...this.
2148 (SVE_HSD): Rename to...
2149 (SVE_FULL_HSD): ...this.
2150 (SVE_HSDI): Rename to...
2151 (SVE_FULL_HSDI): ...this.
2152 (SVE_HSF): Rename to...
2153 (SVE_FULL_HSF): ...this.
2154 (SVE_SD): Rename to...
2155 (SVE_FULL_SD): ...this.
2156 (SVE_SDI): Rename to...
2157 (SVE_FULL_SDI): ...this.
2158 (SVE_SDF): Rename to...
2159 (SVE_FULL_SDF): ...this.
2160 (SVE_S): Rename to...
2161 (SVE_FULL_S): ...this.
2162 (SVE_D): Rename to...
2163 (SVE_FULL_D): ...this.
2164 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2165 * config/aarch64/aarch64-sve2.md: Likewise.
2166
2167 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2168
2169 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2170 New option.
2171 * doc/invoke.texi: Document it.
2172 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2173 By default, return VECT_COMPARE_COSTS for SVE.
2174
2175 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2176
2177 * target.h (VECT_COMPARE_COSTS): New constant.
2178 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2179 * doc/tm.texi: Regenerate.
2180 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2181 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2182 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2183 Likewise.
2184 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2185 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2186 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2187 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2188 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2189 (_loop_vec_info::vec_inside_cost): New member variables.
2190 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2191 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2192 (vect_analyze_loop): When autovectorize_vector_modes returns
2193 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2194 vector mode and picking the one with the lowest cost.
2195 (vect_estimate_min_profitable_iters): Record the computed costs
2196 in the loop_vec_info.
2197
2198 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2199
2200 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2201 element type rather than an element mode.
2202 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2203 Use get_vectype_for_scalar_type to query the natural types
2204 for a given element type rather than basing everything on
2205 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2206 query to MAX_FIXED_MODE_SIZE.
2207 (duplicate_and_interleave): Update call accordingly.
2208 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2209
2210 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2211
2212 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2213 optional maximum nunits.
2214 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2215 takes an slp_tree.
2216 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2217 (vect_get_mask_type_for_stmt): Likewise.
2218 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2219 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2220 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2221 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2222 to get an assumed vector type for data references.
2223 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2224 (vect_update_all_shared_vectypes): Likewise.
2225 (vect_build_slp_tree_1): Pass the group size to
2226 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2227 for BB vectorization.
2228 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2229 before building the vectof from scalars.
2230 (vect_analyze_slp_instance): Pass the group size to
2231 get_vectype_for_scalar_type.
2232 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2233 types for BB vectorization here; just handle the case in which
2234 we deferred the choice for booleans.
2235 (vect_get_constant_vectors): Pass the slp_tree to
2236 get_vectype_for_scalar_type.
2237 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2238 (vectorizable_call): Likewise.
2239 (vectorizable_simd_clone_call): Likewise.
2240 (vectorizable_conversion): Likewise.
2241 (vectorizable_shift): Likewise.
2242 (vectorizable_operation): Likewise.
2243 (vectorizable_comparison): Likewise.
2244 (vect_is_simple_cond): Take the slp_tree as argument and
2245 pass it to get_vectype_for_scalar_type.
2246 (vectorizable_condition): Update call accordingly.
2247 (get_vectype_for_scalar_type): Take a group_size argument.
2248 For BB vectorization, limit the the vector to that number
2249 of elements. Also define an overload that takes an slp_tree.
2250 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2251 pass it to get_vectype_for_scalar_type.
2252 (vect_get_vector_types_for_stmt): Add a group_size argument
2253 and pass it to get_vectype_for_scalar_type. Don't use the
2254 cached vector type for BB vectorization if a group size is given.
2255 Handle data references in that case.
2256 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2257 pass it to get_mask_type_for_scalar_type.
2258
2259 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2260
2261 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2262 parameter.
2263 (estimate_edge_time): Use it.
2264 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2265 ret_nonspec_time parameter.
2266
2267 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2268
2269 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2270
2271 2019-11-15 Nick Clifton <nickc@redhat.com>
2272 Szabolcs Nagy <szabolcs.nagy@arm.com>
2273
2274 PR target/65649
2275 * config/microblaze/microblaze.c (print_operand): Print value as long.
2276
2277 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2278
2279 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2280 accidental commit.
2281
2282 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2283
2284 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2285 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2286
2287 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2288
2289 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2290 (gcn_conditional_register_usage): Use constants in place of hard-coded
2291 values.
2292 (gcn_hsa_declare_function_name): Set lower bound for number of
2293 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2294 MAX_NORMAL_VGPR_COUNT.
2295
2296 2019-11-15 Martin Jambor <mjambor@suse.cz>
2297
2298 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2299 declaration.
2300
2301 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2302
2303 * config/gcn/gcn.c (default_requested_args): New.
2304 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2305 set with default_requested_args.
2306 (gcn_conditional_register_usage): Limit register usage of non-kernel
2307 functions. Reassign fixed registers if a non-standard set of args is
2308 requested.
2309 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2310
2311 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2312
2313 PR ipa/92528
2314 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2315 aggregate jump function when inlined-to caller has no edge summary.
2316
2317 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2318
2319 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2320
2321 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2322
2323 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2324 prologue use of v0.
2325 (print_operand_address): Use v1 for zero vector offset.
2326
2327 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2328
2329 PR tree-optimization/92515
2330 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2331 types when converting a vector/scalar shift into a vector/vector one,
2332 using tree_nop_conversion_p instead of useless_type_conversion_p.
2333 Move the conversion code to the transform block.
2334
2335 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2336
2337 * read-rtl-function.c
2338 (function_reader::add_fixup_source_location): Take additional
2339 parameter of a column.
2340 (function_reader::maybe_read_location): Optionally parse column
2341 information and pass to add_fixup_source_location.
2342
2343 2019-11-15 Richard Biener <rguenther@suse.de>
2344
2345 PR tree-optimization/92512
2346 * tree-vect-loop.c (check_reduction_path): Fix operand index
2347 computability check. Add check for second use in COND_EXPRs.
2348
2349 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2350
2351 PR target/92515
2352 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2353 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2354
2355 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2356
2357 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2358 register class for VCC_LO and VCC_HI.
2359 (gcn_spill_class): Use SGPR_REGS to spill registers in
2360 VCC_CONDITIONAL_REG.
2361
2362 2019-11-15 Richard Biener <rguenther@suse.de>
2363
2364 PR tree-optimization/92324
2365 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2366 singedness of SLP reduction epilouge operations. Also reduce
2367 the vector width for SLP reductions before doing elementwise
2368 operations if possible.
2369
2370 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2371
2372 * passes.c (skip_pass): Set epilogue_completed if skipping the
2373 pro_and_epilogue pass.
2374
2375 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2376
2377 * passes.c (should_skip_pass_p): Always run "dfinish".
2378
2379 2019-11-15 Richard Biener <rguenther@suse.de>
2380
2381 * ipa-inline.c (inline_small_functions): Move assignment
2382 to next before call destroying edge.
2383
2384 2019-11-15 Richard Biener <rguenther@suse.de>
2385
2386 PR tree-optimization/92039
2387 PR tree-optimization/91975
2388 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2389 previous change, treat invariants consistently as non-constant.
2390 (tree_estimate_loop_size): Ternary ops with just the first op
2391 constant are not optimized away.
2392
2393 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2394
2395 * gimplify.c (gimplify_call_expr): Don't call
2396 omp_resolve_declare_variant after gimplification.
2397 * omp-general.c (omp_context_selector_matches): For isa that might
2398 match in some other function, defer if in declare simd function.
2399 (omp_context_compute_score): Don't look for " score" in construct
2400 trait set. Set *score to -1 if it can't ever match.
2401 (omp_resolve_declare_variant): If any variants need to be deferred,
2402 don't punt immediately, but compute scores of all variants and if
2403 ther eis a score winner that doesn't need to be deferred, return that.
2404
2405 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2406
2407 * ipa-comdats.c: Fix comments typo.
2408 * ipa-profile.c: Fix comments typo.
2409 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2410 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2411 (gimple_gen_ic_func_profiler): Likewise.
2412 (pass_ipa_tree_profile::gate): Fix comments typo.
2413
2414 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2415
2416 * ipa-inline.c (inline_small_functions): Update iterator of next.
2417
2418 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2419
2420 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2421 register is suitable for the mode.
2422
2423 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2424
2425 * range-op.h (range_operator::fold_range): Return a bool.
2426 * range-op.cc (range_operator::wi_fold): Assert supported type.
2427 (range_operator::fold_range): Assert supported type and return true.
2428 (operator_equal::fold_range): Return true.
2429 (operator_not_equal::fold_range): Same.
2430 (operator_lt::fold_range): Same.
2431 (operator_le::fold_range): Same.
2432 (operator_gt::fold_range): Same.
2433 (operator_ge::fold_range): Same.
2434 (operator_plus::op1_range): Adjust call to fold_range.
2435 (operator_plus::op2_range): Same.
2436 (operator_minus::op1_range): Same.
2437 (operator_minus::op2_range): Same.
2438 (operator_exact_divide::op1_range): Same.
2439 (operator_lshift::fold_range): Return true and adjust fold_range call.
2440 (operator_rshift::fold_range): Same.
2441 (operator_cast::fold_range): Return true.
2442 (operator_logical_and::fold_range): Same.
2443 (operator_logical_or::fold_range): Same.
2444 (operator_logical_not::fold_range): Same.
2445 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2446 (operator_bitwise_not::op1_range): Same.
2447 (operator_cst::fold_range): Return true.
2448 (operator_identity::fold_range): Return true.
2449 (operator_negate::fold_range): Return true and adjust fold_range call.
2450 (operator_addr_expr::fold_range): Return true.
2451 (operator_addr_expr::op1_range): Adjust call to fold_range.
2452 (range_cast): Same.
2453 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2454 (range_fold_unary_symbolics_p): Same.
2455
2456 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2457
2458 PR tree-optimization/92506
2459 * range-op.cc (range_operator::fold_range): Start with range undefined.
2460 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2461 overflow is varying.
2462
2463 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2464
2465 * range-op.cc (*operator*::*range): Remove calls to
2466 range_intersect, range_invert, and range_union in favor of calling
2467 the in-place API methods.
2468 (range_tests): Same.
2469 * range.cc (range_intersect): Remove.
2470 (range_union): Remove.
2471 (range_invert): Remove.
2472 * range.h (range_intersect): Remove.
2473 (range_union): Remove.
2474 (range_intersect): Remove.
2475
2476 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2477
2478 PR rtl-optimization/92430
2479 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2480 (pass_jump_after_combine::execute): Perform jump threading
2481 unconditionally.
2482
2483 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2484 Doug Rupp <rupp@adacore.com>
2485 Olivier Hainque <hainque@adacore.com>
2486
2487 * config.gcc: Collapse the arm-vxworks entries into
2488 a single arm-wrs-vxworks7* one, bpabi based. Update
2489 the default cpu from arm8 to armv7-a
2490 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2491 we always use ARM_UNWIND_INFO.
2492 (DWARF2_UNWIND_INFO): Remove redefinition.
2493 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2494 (VXWORKS_PERSONALITY): Define, to "llvm".
2495 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2496
2497 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2498
2499 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2500 _VX_CPU instead of CPU and handle arm_arch8.
2501
2502 2019-11-14 Doug Rupp <rupp@adacore.com>
2503 Olivier Hainque <hainque@adacore.com>
2504 Jerome Lambourg <lambourg@adacore.com>
2505
2506 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2507 * config/aarch64/aarch64-vxworks.h: New file.
2508 * config/aarch64/t-aarch64-vxworks: New file.
2509
2510 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2511 Olivier Hainque <hainque@adacore.com>
2512
2513 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2514 definition, pointless with a VxWorks specific version
2515 of crtstuff.
2516 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2517 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2518 New local macros, controlling the addition of vxworks specific
2519 crtstuff objects depending on the EH mechanism and kind of
2520 module being linked.
2521 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2522
2523 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2524 Jerome Lambourg <lambourg@adacore.com>
2525 Olivier Hainque <hainque@adacore.com>
2526
2527 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2528 common macro definitions, conveying VXWORKS7 or 64bit general
2529 variations. Add a block to set gcc_cv_initfini_array
2530 unconditionally to "yes" for VxWorks7.
2531 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2532 by default. Update some comments.
2533 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2534 default, to be added the end of VXWORKS_LIBS_RTP.
2535 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2536 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2537 redefine.
2538 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2539 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2540 to account for the now available TLS abilities.
2541 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2542 (VXWORKS_HAVE_TLS): Likewise.
2543
2544 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2545
2546 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2547 (vect_slp_convert_to_external): Likewise.
2548 (vect_slp_analyze_node_operations): If analysis fails, try building
2549 the node from scalars instead.
2550
2551 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2552
2553 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2554 between vector types.
2555 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2556 non-widening and non-narrowing path to handle standard
2557 conversion codes, if the target supports them.
2558 * expr.c (convert_move): Try using the extend and truncate optabs
2559 for vectors.
2560 * optabs-tree.c (supportable_convert_operation): Likewise.
2561 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2562 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2563 (trunc<mode><Vnarrowq>2): New patterns.
2564
2565 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2566
2567 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2568 require vectype and nunits_vectype to have the same size;
2569 instead assert that nunits_vectype has at least as many
2570 elements as vectype. Don't compute a separate nunits_vectype
2571 if the scalar type is obviously the same as vectype's.
2572 Tweak dump messages.
2573
2574 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2575
2576 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2577 function.
2578 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2579 (TARGET_VECTORIZE_RELATED_MODE): Define.
2580
2581 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2582
2583 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2584 (vec_info::used_vector_mode): New member variable.
2585 (vect_chooses_same_modes_p): Declare.
2586 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2587 chosen vector mode in vec_info::used_vector_mode.
2588 (vect_chooses_same_modes_p): New function.
2589 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2590 the same vector statements multiple times.
2591 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2592
2593 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2594
2595 * machmode.h (opt_machine_mode::operator==): New function.
2596 (opt_machine_mode::operator!=): Likewise.
2597 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2598 (get_related_vectype_for_scalar_type): Delete.
2599 (get_vectype_for_scalar_type_and_size): Declare.
2600 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2601 whether analysis passed or failed, and with what vector modes.
2602 Use related_vector_mode to check whether trying a particular
2603 vector mode would be redundant with the autodetected mode,
2604 and print a dump message if we decide to skip it.
2605 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2606 (vect_create_epilog_for_reduction): Use
2607 get_related_vectype_for_scalar_type instead of
2608 get_vectype_for_scalar_type_and_size.
2609 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2610 with...
2611 (get_related_vectype_for_scalar_type): ...this new function.
2612 Take a starting/"prevailing" vector mode rather than a vector size.
2613 Take an optional nunits argument, with the same meaning as for
2614 related_vector_mode. Use related_vector_mode when not
2615 auto-detecting a mode, falling back to mode_for_vector if no
2616 target mode exists.
2617 (get_vectype_for_scalar_type): Update accordingly.
2618 (get_same_sized_vectype): Likewise.
2619 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2620
2621 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2622
2623 * tree-vect-stmts.c (vectorizable_call): Require the types
2624 to have the same size.
2625
2626 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2627
2628 * tree-vect-stmts.c (vectorizable_call): If an operand is
2629 constant or external, use get_vectype_for_scalar_type
2630 rather than get_same_sized_vectype to get its vector type.
2631 (vectorizable_conversion, vectorizable_shift): Likewise.
2632 (vectorizable_operation): Likewise.
2633
2634 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2635
2636 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2637 (vec_info::vector_mode): ...this new field.
2638 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2639 (vect_analyze_loop, vect_transform_loop): Likewise.
2640 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2641 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2642 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2643 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2644 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2645
2646 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2647
2648 * target.h (vector_sizes, auto_vector_sizes): Delete.
2649 (vector_modes, auto_vector_modes): New typedefs.
2650 * target.def (autovectorize_vector_sizes): Replace with...
2651 (autovectorize_vector_modes): ...this new hook.
2652 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2653 Replace with...
2654 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2655 * doc/tm.texi: Regenerate.
2656 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2657 (default_autovectorize_vector_modes): New function.
2658 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2659 (default_autovectorize_vector_modes): New function.
2660 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2661 of autovectorize_vector_sizes. Use the number of units in the mode
2662 to calculate the maximum VF.
2663 * omp-low.c (omp_clause_aligned_alignment): Use
2664 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2665 Use a loop based on related_mode to iterate through all supported
2666 vector modes for a given scalar mode.
2667 * optabs-query.c (can_vec_mask_load_store_p): Use
2668 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2669 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2670 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2671 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2672 Replace with...
2673 (aarch64_autovectorize_vector_modes): ...this new function.
2674 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2675 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2676 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2677 (arc_autovectorize_vector_modes): ...this new function.
2678 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2679 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2680 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2681 (arm_autovectorize_vector_modes): ...this new function.
2682 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2683 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2684 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2685 (ix86_autovectorize_vector_modes): ...this new function.
2686 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2687 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2688 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2689 (mips_autovectorize_vector_modes): ...this new function.
2690 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2691 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2692
2693 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2694
2695 * tree-vect-stmts.c (vectorizable_shift): Check the number
2696 of vector elements as well as the type mode when deciding
2697 whether an op1_vectype is compatible. Reuse the result of
2698 this check when generating vector statements.
2699
2700 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2701
2702 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2703 targetm.vectorize.preferred_simd_mode returns an integer mode,
2704 use mode_for_vector to decide what the vector type's mode
2705 should actually be. Use build_vector_type_for_mode instead
2706 of build_vector_type.
2707
2708 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2709
2710 * target.def (get_mask_mode): Take a vector mode itself as argument,
2711 instead of properties about the vector mode.
2712 * doc/tm.texi: Regenerate.
2713 * targhooks.h (default_get_mask_mode): Update to reflect new
2714 get_mode_mask interface.
2715 * targhooks.c (default_get_mask_mode): Likewise. Use
2716 related_int_vector_mode.
2717 * optabs-query.c (can_vec_mask_load_store_p): Update call
2718 to get_mask_mode.
2719 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2720 first that the original mode really is a vector.
2721 * tree.c (build_truth_vector_type_for): Likewise.
2722 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2723 get_mode_mask interface.
2724 (aarch64_expand_sve_vcond): Update call accordingly.
2725 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2726 get_mode_mask interface.
2727 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2728
2729 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2730
2731 * tree.h (build_truth_vector_type): Delete.
2732 (build_same_sized_truth_vector_type): Likewise.
2733 * tree.c (build_truth_vector_type): Rename to...
2734 (build_truth_vector_type_for): ...this. Make static and take
2735 a vector type as argument.
2736 (truth_type_for): Update accordingly.
2737 (build_same_sized_truth_vector_type): Delete.
2738 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2739 instead of build_same_sized_truth_vector_type.
2740 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2741 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2742 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2743 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2744 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2745 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2746 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2747 (vectorizable_store, vectorizable_condition): Likewise.
2748 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2749 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2750 build_truth_vector_type.
2751 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2752 Use truth_type_for instead of build_same_sized_truth_vector_type.
2753 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2754
2755 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2756
2757 * tree.h (build_truth_vector_type_for_mode): Declare.
2758 * tree.c (build_truth_vector_type_for_mode): New function,
2759 split out from...
2760 (build_truth_vector_type): ...here.
2761 (build_opaque_vector_type): Fix head comment.
2762 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2763 vec_info parameter.
2764 (vect_halve_mask_nunits): Replace vec_info parameter with the
2765 mode of the new vector.
2766 (vect_double_mask_nunits): Likewise.
2767 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2768 (vect_double_mask_nunits): Likewise.
2769 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2770 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2771 to vect_halve_mask_nunits, getting the required mode from the unpack
2772 patterns.
2773 (vect_set_loop_condition_masked): Update call accordingly.
2774 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2775 parameter and update call to vect_double_mask_nunits.
2776 (vectorizable_conversion): Update call accordingly.
2777 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2778 (vectorizable_call): Update call accordingly.
2779 (supportable_widening_operation): Update call to
2780 vect_halve_mask_nunits.
2781 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2782 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2783
2784 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2785
2786 * machmode.h (mode_for_int_vector): Delete.
2787 (related_int_vector_mode): Declare.
2788 * stor-layout.c (mode_for_int_vector): Delete.
2789 (related_int_vector_mode): New function.
2790 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2791 instead of mode_for_int_vector.
2792 (expand_vec_perm_const): Likewise.
2793 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2794 (aarch64_evpc_sve_tbl): Likewise.
2795 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2796 (s390_expand_vcond): Likewise.
2797
2798 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2799
2800 * target.def (related_mode): New hook.
2801 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2802 * doc/tm.texi: Regenerate.
2803 * targhooks.h (default_vectorize_related_mode): Declare.
2804 * targhooks.c (default_vectorize_related_mode): New function.
2805 * machmode.h (related_vector_mode): Declare.
2806 * stor-layout.c (related_vector_mode): New function.
2807 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2808 * optabs-query.c (qimode_for_vec_perm): Likewise.
2809 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2810 (vectorizable_store, vectorizable_load): Likewise
2811
2812 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2813
2814 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2815 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2816 * config/arm/arm-c.c (arm_cpu_builtins): Define
2817 __GCC_ASM_FLAG_OUTPUTS__.
2818 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2819 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2820 Define __GCC_ASM_FLAG_OUTPUTS__.
2821 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2822 * doc/extend.texi (FlagOutputOperands): Add documentation
2823 for ARM and AArch64.
2824
2825 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2826 * config/arm/predicates.md (nz_comparison_operator): Rename
2827 from noov_comparison_operator.
2828 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2829 (arm_gen_dicompare_reg): Likewise.
2830 (maybe_get_arm_condition_code): Likewise.
2831 (thumb1_final_prescan_insn): Likewise.
2832 (arm_emit_coreregs_64bit_shift): Likewise.
2833 * config/arm/arm.md (addsi3_compare0): Likewise.
2834 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2835 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2836 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2837 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2838 (*mulsi3addsi_compare0_scratch): Likewise.
2839 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2840 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2841 (*zeroextractsi_compare0_scratch): Likewise.
2842 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2843 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2844 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2845 (andsi_not_shiftsi_si_scc): Likewise.
2846 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2847 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2848 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2849 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2850 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2851 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2852 (return_addr_mask, *check_arch2): Likewise.
2853 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2854 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2855 (compare_scc splitters): Likewise.
2856 (movcond_addsi): Likewise.
2857 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2858 (*thumb2_addsi3_compare0_scratch): Likewise.
2859 (*thumb2_mulsi_short_compare0): Likewise.
2860 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2861 (compare peephole2s): Likewise.
2862 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2863 nz_comparison_operator names.
2864 (cbranchsi4_insn): Likewise.
2865
2866 * config/arm/constraints.md (c): Use cc_register predicate.
2867
2868 * config/aarch64/constraints.md (c): New constraint.
2869
2870 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2871
2872 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2873 ipa_merge_fn_summary_after_inlining): Micro optimize.
2874
2875 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2876
2877 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2878
2879 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2880
2881 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2882 (ipa_value_range_from_jfunc): New function.
2883 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2884 known_value_ranges parameter; use it to evalulate conditions.
2885 (evaluate_properties_for_edge): Compute known value ranges.
2886 (ipa_fn_summary_t::duplicate): Update use of
2887 evaluate_conditions_for_known_args.
2888 (estimate_ipcp_clone_size_and_time): Likewise.
2889 (ipa_merge_fn_summary_after_inlining): Likewise.
2890 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2891
2892 2019-11-14 Martin Liska <mliska@suse.cz>
2893
2894 * ipa-inline.c (want_inline_small_function_p): Use
2895 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2896 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2897
2898 2019-11-14 Martin Liska <mliska@suse.cz>
2899
2900 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2901 of a callee to get value of the param.
2902 * ipa-inline.c (inline_insns_auto): Use proper
2903 opt_for_fn.
2904 * opts.c (maybe_default_option): Do not overwrite param
2905 value if optimization level does not match. Note that
2906 params usually have default value set via Init() keyword.
2907 * params.opt: Remove -param=max-inline-insns-auto-O2.
2908 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2909 * doc/invoke.texi: Remove documentation of
2910 max-inline-insns-auto-O2.
2911
2912 2019-11-14 Martin Liska <mliska@suse.cz>
2913
2914 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2915 Do not initialize m_other_count.
2916 (switch_conversion::collect): Do not count m_default_count and
2917 m_other_count as we use frequencies for edges.
2918 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2919
2920 2019-11-14 Martin Liska <mliska@suse.cz>
2921
2922 PR other/92329
2923 * doc/invoke.texi: Document -fallocation-dce.
2924
2925 2019-11-14 Martin Liska <mliska@suse.cz>
2926
2927 PR target/92389
2928 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2929 PTA_ICELAKE_CLIENT which is later interited by
2930 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2931
2932 2019-11-14 Martin Liska <mliska@suse.cz>
2933
2934 * ipa-icf.c (sem_item_optimizer::execute): Save
2935 loaded_symbols.
2936 (sem_item_optimizer::parse_nonsingleton_classes):
2937 Return number of loaded symbols.
2938 (sem_item_optimizer::merge_classes): Print
2939 statistics about totally needed symbols.
2940 * ipa-icf.h (parse_nonsingleton_classes): Change return
2941 type.
2942 (merge_classes): Add one argument.
2943
2944 2019-11-14 Martin Liska <mliska@suse.cz>
2945
2946 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2947 func_checker::hash_operand by handling of FIELD_DECLs.
2948
2949 2019-11-14 Martin Liska <mliska@suse.cz>
2950
2951 * ipa-icf-gimple.h (func_checker::func_checker): Add
2952 default constructor.
2953 * ipa-icf.c (sem_function::init): Make operand_equal_p
2954 and hash_operand public.
2955 (sem_item::add_expr): Remove.
2956 (sem_item::add_type): Remove.
2957 (sem_function::hash_stmt): Use m_checker for hashing
2958 of GIMPLE statements.
2959 (sem_function::parse): Init with checker.
2960 (sem_variable::parse): Pass NULL as checker.
2961 (sem_item_optimizer::parse_funcs_and_vars):
2962 Pass checker to ::parse function.
2963 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2964 (sem_variable::parse): New function.
2965 (sem_variable::get_hash): Only return computed hash value.
2966 (sem_variable::init): Initialize hash of a variable.
2967 * ipa-icf.h: Remove add_expr, add_type and add func_checker
2968 to couple of functions as a new argument.
2969
2970 2019-11-14 Martin Liska <mliska@suse.cz>
2971
2972 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2973 bail out reason.
2974 (func_checker::compare_gimple_assign): Likewise.
2975
2976 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2977
2978 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2979 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2980 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2981
2982 * omp-general.c (omp_context_name_list_prop): New function.
2983 (omp_context_selector_matches): Use it. Return 0 if it returns
2984 NULL.
2985 (omp_context_selector_props_compare): Allow equivalency of an
2986 identifier and a string literal containing no embedded zeros.
2987
2988 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2989
2990 * range-op.cc (RANGE3): Remove.
2991 (range_tests): Remove all selftest that check for multi-ranges.
2992 Put tests in namespace selftest.
2993 * selftest.h: Move range_tests into namespace selftest.
2994 * value-range.h (class value_range): Unfriend range_tests.
2995
2996 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2997
2998 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2999 normalize_symbolics and normalize_addresses working in place.
3000 (range_fold_unary_symbolics_p): Same.
3001 (range_fold_unary_symbolics_p): Same.
3002 * value-range.cc (num_pairs): Same.
3003 (lower_bound): Same.
3004 (upper_bound): Same.
3005 (contains_p): Same.
3006 (normalize_addresses): Same.
3007 (normalize_symbolics): Same.
3008 * value-range.h (normalize_symbolics): Same.
3009 (normalize_addresses): Same.
3010
3011 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3012
3013 PR ipa/91682
3014 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3015 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3016 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3017 (ipa_agg_jump_function): Remove member function equal_to.
3018 (ipa_agg_jump_function_p): Remove typedef.
3019 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3020 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3021 information for aggregate jump function.
3022 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3023 record last definition statement.
3024 (load_from_unmodified_param_or_agg): New function.
3025 (ipa_known_agg_contents_list): Add new field type and value, remove
3026 field constant.
3027 (build_agg_jump_func_from_list): Rename parameter const_count to
3028 value_count, build aggregate jump function from ipa_load_agg_data.
3029 (analyze_agg_content_value): New function.
3030 (extract_mem_content): Analyze memory store assignment to prepare
3031 information for aggregate jump function generation.
3032 (determine_known_aggregate_parts): Add new parameter fbi, remove
3033 parameter aa_walk_budeget_p.
3034 (update_jump_functions_after_inlining): Update aggregate jump function.
3035 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3036 (try_make_edge_direct_simple_call): Add new parameter new_root.
3037 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3038 new_root_info.
3039 (update_indirect_edges_after_inlining): Pass new argument to
3040 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3041 (ipa_write_jump_function): Write aggregate jump function to file.
3042 (ipa_read_jump_function): Read aggregate jump function from file.
3043 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3044 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3045 (ipa_agg_value_from_node): Likewise.
3046 (ipa_agg_value_set_from_jfunc): Likewise.
3047 (propagate_vals_across_arith_jfunc): Likewise.
3048 (propagate_aggregate_lattice): Likewise.
3049 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3050 (propagate_vals_across_pass_through): Call
3051 propagate_vals_across_arith_jfunc.
3052 (get_clone_agg_value): Move forward.
3053 (propagate_aggs_across_jump_function): Handle value propagation for
3054 aggregate jump function.
3055 (agg_jmp_p_vec_for_t_vec): Remove.
3056 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3057 with vec<ipa_agg_value>.
3058 (copy_plats_to_inter, intersect_with_plats): Likewise.
3059 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3060 (intersect_aggregate_with_edge): Likewise.
3061 (find_aggregate_values_for_callers_subset): Likewise.
3062 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3063 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3064 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3065 (gather_context_independent_values): Likewise.
3066 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3067 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3068 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3069 (evaluate_properties_for_edge): Likewise.
3070 (estimate_edge_devirt_benefit): Likewise.
3071 (estimate_edge_size_and_time): Likewise.
3072 (estimate_calls_size_and_time): Likewise.
3073 (ipa_call_context::ipa_call_context): Likewise.
3074 (estimate_ipcp_clone_size_and_time): Likewise.
3075 * ipa-fnsummary.h (ipa_call_context): Replace
3076 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3077 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3078 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3079 (do_estimate_edge_size): Likewise.
3080 (do_estimate_edge_hints): Likewise.
3081
3082 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3083
3084 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3085 binary operations.
3086
3087 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3088
3089 * ipa-profile.c (check_argument_count): Check properly that e_info
3090 is non-NULL; do not check descriptors.
3091
3092 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3093
3094 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3095 check for ipa profiles.
3096
3097 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3098
3099 PR c++/92421
3100 * ipa-prop.c (update_indirect_edges_after_inlining):
3101 Mark parameter as used.
3102 * ipa-inline.c (recursive_inlining): Reset node cache
3103 after inlining.
3104 (inline_small_functions): Remove checking ifdef.
3105 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3106 cache consistency.
3107
3108 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3109
3110 PR ipa/92498
3111 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3112 is NULL.
3113 (ipa_profile): Fix reversed test.
3114
3115 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3116
3117 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3118 (propagate_constants_topo): Fix typo.
3119
3120 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3121
3122 * Makefile.in (OBJS): Add value-range.o.
3123 (GTFILES): Add value-range.h.
3124 * gengtype.c (open_base_files): Add value-range.h to list of
3125 header files.
3126 * tree-vrp.c: Move the following value_range related functions:
3127 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3128 constant_p, set_undefined, set_varying, may_contain_p,
3129 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3130 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3131 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3132 value_inside_range, ranges_from_anti_range, union_ranges,
3133 intersect_ranges, intersect_helper, union_helper, union_,
3134 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3135 upper_bound, contains_p, invert, intersect...
3136 * value-range.cc: ...to here.
3137 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3138 associated inline methods from here...
3139 * value-range.h: ...to here.
3140
3141 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3142
3143 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3144 instead of asserting its value.
3145
3146 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3147
3148 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3149 constructors and set methods so value_range_kind is the last
3150 argument and defaults to VR_RANGE.
3151 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3152 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3153 * ipa-prop.c (ipa_get_value_range): Same.
3154 (ipa_compute_jump_functions_for_edge): Same.
3155 * range-op.cc (value_range_from_overflowed_bounds): Same.
3156 (operator_cast::op1_range): Same.
3157 (range_tests): Same.
3158 * range.cc (range_nonzero): Same.
3159 * tree-ssanames.c (get_range_info): Same.
3160 * tree-vrp.c (value_range_equiv::set): Same.
3161 (value_range::value_range): Same.
3162 (value_range_equiv::value_range_equiv): Same.
3163 (value_range_equiv::update): Same.
3164 (value_range_equiv::deep_copy): Same.
3165 (value_range_equiv::move): Same.
3166 (value_range_equiv::set_undefined): Same.
3167 (value_range::set): Same.
3168 (value_range::set_nonzero): Same.
3169 (ranges_from_anti_range): Same.
3170 (extract_range_from_plus_minus_expr): Same.
3171 (value_range::intersect_helper): Same.
3172 (value_range_equiv::intersect): Same.
3173 (value_range::union_helper): Same.
3174 (value_range_equiv::union_): Same.
3175 (value_range::normalize_symbolics): Same.
3176 (value_range::invert): Same.
3177 (determine_value_range_1): Same.
3178 * tree-vrp.h (class value_range): Same.
3179 (class value_range_equiv): Same.
3180 * vr-values.c (set_value_range_to_nonnegative): Same.
3181 (set_value_range_to_truthvalue): Same.
3182 (vr_values::update_value_range): Same.
3183 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3184 (vr_values::extract_range_from_binary_expr): Same.
3185 (vr_values::extract_range_from_comparison): Same.
3186 (vr_values::extract_range_basic): Same.
3187 (vr_values::adjust_range_with_scev): Same.
3188 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3189 (vr_values::extract_range_from_phi_node): Same.
3190
3191 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3192
3193 * tree-dump.c (dequeue_and_dump): Print first tree operand
3194 for VIEW_CONVERT_EXPR.
3195
3196 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3197
3198 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3199 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3200 * real.c (get_max_float): Add norm_max argument.
3201 * real.h (get_max_float): Update prototype.
3202 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3203 get_max_float.
3204
3205 2019-11-13 Martin Liska <mliska@suse.cz>
3206
3207 * dbgcnt.c (test_sorted_dbg_counters): New.
3208 (dbgcnt_c_tests): Likewise.
3209 * selftest-run-tests.c (selftest::run_tests): Likewise.
3210 * selftest.h (dbgcnt_c_tests): Likewise.
3211
3212 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3213 Martin Jambor <mjambor@suse.cz>
3214
3215 PR ipa/92454
3216 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3217 (identify_dead_nodes): Likewise.
3218
3219 2019-11-13 Martin Liska <mliska@suse.cz>
3220
3221 * ipa-icf.c (sem_function::equals_private): Do not overuse
3222 push/pop_cfun functions.
3223
3224 2019-11-13 Martin Liska <mliska@suse.cz>
3225
3226 * common.opt: Document change of -fdbg-cnt option.
3227 * dbgcnt.c (DEBUG_COUNTER): Remove.
3228 (dbg_cnt_is_enabled): Remove.
3229 (dbg_cnt): Work with new intervals.
3230 (dbg_cnt_set_limit_by_index): Set to new
3231 list of intervals.
3232 (dbg_cnt_set_limit_by_name): Likewise.
3233 (dbg_cnt_process_single_pair): Process new format.
3234 (dbg_cnt_process_opt): Likewise.
3235 (dbg_cnt_list_all_counters): Likewise.
3236 * doc/invoke.texi: Document change of -fdbg-cnt option.
3237 (cmp_tuples): New.
3238
3239 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3240
3241 * ipa-inline.c (ipa_inline): Check that function is defined before
3242 flattening.
3243
3244 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3245 Julian Brown <julian@codesourcery.com>
3246
3247 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3248 flag_worker_partitioning is not set.
3249 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3250 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3251
3252 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3253
3254 * config/gcn/gcn-run.c (heap_region): New global variable.
3255 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3256 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3257 (get_kernarg_region): Move contents to ....
3258 (get_memory_region): .... here.
3259 (get_heap_region): New function.
3260 (init_device): Initialize the heap_region.
3261 (device_malloc): Add region parameter.
3262 (struct kernargs): Move heap ....
3263 (heap): ... to global scope.
3264 (main): Allocate heap separate to kernargs.
3265
3266 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3267
3268 * ipa-prop.c (ipa_print_node_jump_functions,
3269 ipa_print_node_params): Print info about missing summaries.
3270
3271 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3272
3273 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3274 the cost of generating loop masks.
3275
3276 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3277
3278 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3279 New function.
3280 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3281 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3282 (vect_transform_loop): Likewise.
3283 (vect_analyze_loop_costing): Don't take the cost of versioning
3284 into account for the static profitability threshold if it turns
3285 out that no versioning is needed.
3286
3287 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3288
3289 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3290 and target_option_default_node to get -fprofile-generate ctors working
3291 right with LTO.
3292
3293 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3294
3295 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3296 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3297 (vectorizable_assignment): Don't add a cost for nop conversions.
3298 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3299 Likewise.
3300 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3301
3302 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3303
3304 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3305 number of ncopies as an additional argument.
3306 (vectorizable_conversion): Update call accordingly. Use "modifier"
3307 to check whether a conversion is between vectors with the same
3308 numbers of units.
3309
3310 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3311
3312 * config/aarch64/aarch64-sve-builtins-functions.h
3313 (unary_count::expand): Use aarch64_sve_int_mode instead of
3314 mode_for_int_vector.
3315
3316 2019-11-13 Martin Liska <mliska@suse.cz>
3317
3318 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3319
3320 2019-11-13 Martin Liska <mliska@suse.cz>
3321
3322 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3323 Remove call to finalize_options_struct.
3324
3325 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3326
3327 PR target/92055
3328 * config/avr/t-avr (avr-mcus): Do not depend on
3329 $(srcdir)/config/avr/t-multilib.
3330
3331 2019-11-13 Richard Biener <rguenther@suse.de>
3332
3333 PR tree-optimization/92473
3334 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3335 direct optab reduction in the correct type.
3336
3337 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3338
3339 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3340 hexadecimal literal.
3341
3342 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3343
3344 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3345 UNORDERED if !HONOR_NANS (DFmode).
3346 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3347 if !HONOR_NANS (<MODE>mode).
3348
3349 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3350
3351 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3352 (ipcp_verify_propagated_values): Likewise.
3353 (propagate_constants_across_call): Likewise.
3354 (propagate_constants_topo): Likewise.
3355 (ipcp_propagate_stage): Likewise.
3356
3357 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3358
3359 PR ipa/92471
3360 * ipa-profile.c (check_argument_count): Break out from ...;
3361 watch for missing summaries.
3362 (ipa_profile): Here.
3363
3364 2019-11-12 Martin Sebor <msebor@redhat.com>
3365
3366 PR tree-optimization/92412
3367 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3368 extern variables.
3369
3370 2019-11-12 Martin Sebor <msebor@redhat.com>
3371
3372 PR middle-end/83688
3373 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3374 (directive::argno): New member.
3375 (format_result::aliases, format_result::alias_count): New data members.
3376 (format_result::append_alias): New member function.
3377 (fmtresult::dst_offset): New data member.
3378 (pass_sprintf_length::call_info::dst_origin): New data member.
3379 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3380 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3381 (get_origin_and_offset): Same.
3382 (format_string): Call it.
3383 (format_directive): Call append_alias and set directive argument
3384 number.
3385 (maybe_warn_overlap): New function.
3386 (pass_sprintf_length::compute_format_length): Call it.
3387 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3388 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3389
3390 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3391
3392 PR rtl-optimization/92430
3393 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3394 dominance info at the beginning.
3395
3396 2019-11-12 Richard Biener <rguenther@suse.de>
3397
3398 PR tree-optimization/92460
3399 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3400 expression before gimplifying.
3401
3402 2019-11-12 Richard Biener <rguenther@suse.de>
3403
3404 PR tree-optimization/92461
3405 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3406 stmt after propagation.
3407
3408 2019-11-12 Martin Liska <mliska@suse.cz>
3409
3410 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3411 Use SET_OPTION_IF_UNSET.
3412 (ix86_option_override_internal): Likewise.
3413 * opts.c (default_options_optimization): Likewise.
3414 (finish_options): Likewise.
3415 (enable_fdo_optimizations): Likewise.
3416 (common_handle_option): Likewise.
3417
3418 2019-11-12 Martin Liska <mliska@suse.cz>
3419
3420 * common/common-target.def: Remove option_validate_param and
3421 option_default_params.
3422 * common/common-targhooks.c (default_option_validate_param):
3423 Remove.
3424 * common/common-targhooks.h (default_option_validate_param):
3425 Remove.
3426 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3427 Remove usage of this.
3428 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3429 (aarch64_option_validate_param): Likewise.
3430 (aarch64_option_default_params): Likewise
3431 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3432 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3433 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3434 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3435 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3436 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3437 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3438 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3439 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3440 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3441 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3442 guard_size here.
3443 * doc/tm.texi: Remove option_default_params and option_validate_param.
3444 * doc/tm.texi.in: Likewise.
3445
3446 2019-11-12 Martin Liska <mliska@suse.cz>
3447
3448 * common/common-target.def:
3449 Do not mention set_default_param_value
3450 and set_param_value.
3451 * doc/tm.texi: Likewise.
3452
3453 2019-11-12 Martin Liska <mliska@suse.cz>
3454
3455 * common.opt: Remove param_values.
3456 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3457 Remove finalize_options_struct.
3458 * gcc.c (driver::decode_argv): Do not call global_init_params
3459 and finish_params.
3460 (driver::finalize): Do not call params_c_finalize
3461 and finalize_options_struct.
3462 * opt-suggestions.c (option_proposer::get_completions): Remove
3463 special casing of params.
3464 (option_proposer::find_param_completions): Remove.
3465 (test_completion_partial_match): Update expected output.
3466 * opt-suggestions.h: Remove find_param_completions.
3467 * opts-common.c (add_misspelling_candidates): Add
3468 --param with a space.
3469 * opts.c (handle_param): Remove.
3470 (init_options_struct):. Remove init_options_struct and
3471 similar calls.
3472 (finalize_options_struct): Remove.
3473 (common_handle_option): Use SET_OPTION_IF_UNSET.
3474 * opts.h (finalize_options_struct): Remove.
3475 * toplev.c (general_init): Do not call global_init_params.
3476 (toplev::finalize): Do not call params_c_finalize and
3477 finalize_options_struct.
3478
3479 2019-11-12 Martin Liska <mliska@suse.cz>
3480
3481 * Makefile.in: Remove PARAMS_H and params.list
3482 and params.options.
3483 * params-enum.h: Remove.
3484 * params-list.h: Remove.
3485 * params-options.h: Remove.
3486 * params.c: Remove.
3487 * params.def: Remove.
3488 * params.h: Remove.
3489 * asan.c: Do not include params.h.
3490 * auto-profile.c: Likewise.
3491 * bb-reorder.c: Likewise.
3492 * builtins.c: Likewise.
3493 * cfgcleanup.c: Likewise.
3494 * cfgexpand.c: Likewise.
3495 * cfgloopanal.c: Likewise.
3496 * cgraph.c: Likewise.
3497 * combine.c: Likewise.
3498 * common/config/aarch64/aarch64-common.c: Likewise.
3499 * common/config/gcn/gcn-common.c: Likewise.
3500 * common/config/ia64/ia64-common.c: Likewise.
3501 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3502 * common/config/rs6000/rs6000-common.c: Likewise.
3503 * common/config/sh/sh-common.c: Likewise.
3504 * config/aarch64/aarch64.c: Likewise.
3505 * config/alpha/alpha.c: Likewise.
3506 * config/arm/arm.c: Likewise.
3507 * config/avr/avr.c: Likewise.
3508 * config/csky/csky.c: Likewise.
3509 * config/i386/i386-builtins.c: Likewise.
3510 * config/i386/i386-expand.c: Likewise.
3511 * config/i386/i386-features.c: Likewise.
3512 * config/i386/i386-options.c: Likewise.
3513 * config/i386/i386.c: Likewise.
3514 * config/ia64/ia64.c: Likewise.
3515 * config/rs6000/rs6000-logue.c: Likewise.
3516 * config/rs6000/rs6000.c: Likewise.
3517 * config/s390/s390.c: Likewise.
3518 * config/sparc/sparc.c: Likewise.
3519 * config/visium/visium.c: Likewise.
3520 * coverage.c: Likewise.
3521 * cprop.c: Likewise.
3522 * cse.c: Likewise.
3523 * cselib.c: Likewise.
3524 * dse.c: Likewise.
3525 * emit-rtl.c: Likewise.
3526 * explow.c: Likewise.
3527 * final.c: Likewise.
3528 * fold-const.c: Likewise.
3529 * gcc.c: Likewise.
3530 * gcse.c: Likewise.
3531 * ggc-common.c: Likewise.
3532 * ggc-page.c: Likewise.
3533 * gimple-loop-interchange.cc: Likewise.
3534 * gimple-loop-jam.c: Likewise.
3535 * gimple-loop-versioning.cc: Likewise.
3536 * gimple-ssa-split-paths.c: Likewise.
3537 * gimple-ssa-sprintf.c: Likewise.
3538 * gimple-ssa-store-merging.c: Likewise.
3539 * gimple-ssa-strength-reduction.c: Likewise.
3540 * gimple-ssa-warn-alloca.c: Likewise.
3541 * gimple-ssa-warn-restrict.c: Likewise.
3542 * graphite-isl-ast-to-gimple.c: Likewise.
3543 * graphite-optimize-isl.c: Likewise.
3544 * graphite-scop-detection.c: Likewise.
3545 * graphite-sese-to-poly.c: Likewise.
3546 * graphite.c: Likewise.
3547 * haifa-sched.c: Likewise.
3548 * hsa-gen.c: Likewise.
3549 * ifcvt.c: Likewise.
3550 * ipa-cp.c: Likewise.
3551 * ipa-fnsummary.c: Likewise.
3552 * ipa-inline-analysis.c: Likewise.
3553 * ipa-inline.c: Likewise.
3554 * ipa-polymorphic-call.c: Likewise.
3555 * ipa-profile.c: Likewise.
3556 * ipa-prop.c: Likewise.
3557 * ipa-split.c: Likewise.
3558 * ipa-sra.c: Likewise.
3559 * ira-build.c: Likewise.
3560 * ira-conflicts.c: Likewise.
3561 * loop-doloop.c: Likewise.
3562 * loop-invariant.c: Likewise.
3563 * loop-unroll.c: Likewise.
3564 * lra-assigns.c: Likewise.
3565 * lra-constraints.c: Likewise.
3566 * modulo-sched.c: Likewise.
3567 * opt-suggestions.c: Likewise.
3568 * opts.c: Likewise.
3569 * postreload-gcse.c: Likewise.
3570 * predict.c: Likewise.
3571 * reload.c: Likewise.
3572 * reorg.c: Likewise.
3573 * resource.c: Likewise.
3574 * sanopt.c: Likewise.
3575 * sched-deps.c: Likewise.
3576 * sched-ebb.c: Likewise.
3577 * sched-rgn.c: Likewise.
3578 * sel-sched-ir.c: Likewise.
3579 * sel-sched.c: Likewise.
3580 * shrink-wrap.c: Likewise.
3581 * stmt.c: Likewise.
3582 * targhooks.c: Likewise.
3583 * toplev.c: Likewise.
3584 * tracer.c: Likewise.
3585 * trans-mem.c: Likewise.
3586 * tree-chrec.c: Likewise.
3587 * tree-data-ref.c: Likewise.
3588 * tree-if-conv.c: Likewise.
3589 * tree-inline.c: Likewise.
3590 * tree-loop-distribution.c: Likewise.
3591 * tree-parloops.c: Likewise.
3592 * tree-predcom.c: Likewise.
3593 * tree-profile.c: Likewise.
3594 * tree-scalar-evolution.c: Likewise.
3595 * tree-sra.c: Likewise.
3596 * tree-ssa-ccp.c: Likewise.
3597 * tree-ssa-dom.c: Likewise.
3598 * tree-ssa-dse.c: Likewise.
3599 * tree-ssa-ifcombine.c: Likewise.
3600 * tree-ssa-loop-ch.c: Likewise.
3601 * tree-ssa-loop-im.c: Likewise.
3602 * tree-ssa-loop-ivcanon.c: Likewise.
3603 * tree-ssa-loop-ivopts.c: Likewise.
3604 * tree-ssa-loop-manip.c: Likewise.
3605 * tree-ssa-loop-niter.c: Likewise.
3606 * tree-ssa-loop-prefetch.c: Likewise.
3607 * tree-ssa-loop-unswitch.c: Likewise.
3608 * tree-ssa-math-opts.c: Likewise.
3609 * tree-ssa-phiopt.c: Likewise.
3610 * tree-ssa-pre.c: Likewise.
3611 * tree-ssa-reassoc.c: Likewise.
3612 * tree-ssa-sccvn.c: Likewise.
3613 * tree-ssa-scopedtables.c: Likewise.
3614 * tree-ssa-sink.c: Likewise.
3615 * tree-ssa-strlen.c: Likewise.
3616 * tree-ssa-structalias.c: Likewise.
3617 * tree-ssa-tail-merge.c: Likewise.
3618 * tree-ssa-threadbackward.c: Likewise.
3619 * tree-ssa-threadedge.c: Likewise.
3620 * tree-ssa-uninit.c: Likewise.
3621 * tree-switch-conversion.c: Likewise.
3622 * tree-vect-data-refs.c: Likewise.
3623 * tree-vect-loop.c: Likewise.
3624 * tree-vect-slp.c: Likewise.
3625 * tree-vrp.c: Likewise.
3626 * tree.c: Likewise.
3627 * value-prof.c: Likewise.
3628 * var-tracking.c: Likewise.
3629
3630 2019-11-12 Martin Liska <mliska@suse.cz>
3631
3632 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3633 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3634 macro.
3635 (asan_sanitize_allocas_p): Likewise.
3636 (asan_emit_stack_protection): Likewise.
3637 (asan_protect_global): Likewise.
3638 (instrument_derefs): Likewise.
3639 (instrument_builtin_call): Likewise.
3640 (asan_expand_mark_ifn): Likewise.
3641 * auto-profile.c (auto_profile): Likewise.
3642 * bb-reorder.c (copy_bb_p): Likewise.
3643 (duplicate_computed_gotos): Likewise.
3644 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3645 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3646 (try_crossjump_bb): Likewise.
3647 * cfgexpand.c (defer_stack_allocation): Likewise.
3648 (stack_protect_classify_type): Likewise.
3649 (pass_expand::execute): Likewise.
3650 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3651 (estimate_reg_pressure_cost): Likewise.
3652 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3653 * combine.c (combine_instructions): Likewise.
3654 (record_value_for_reg): Likewise.
3655 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3656 (aarch64_option_default_params): Likewise.
3657 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3658 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3659 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3660 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3661 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3662 (aarch64_allocate_and_probe_stack_space): Likewise.
3663 (aarch64_expand_epilogue): Likewise.
3664 (aarch64_override_options_internal): Likewise.
3665 * config/alpha/alpha.c (alpha_option_override): Likewise.
3666 * config/arm/arm.c (arm_option_override): Likewise.
3667 (arm_valid_target_attribute_p): Likewise.
3668 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3669 * config/i386/i386.c (get_probe_interval): Likewise.
3670 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3671 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3672 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3673 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3674 (get_stack_clash_protection_guard_size): Likewise.
3675 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3676 * config/s390/s390.c (allocate_stack_space): Likewise.
3677 (s390_emit_prologue): Likewise.
3678 (s390_option_override_internal): Likewise.
3679 * config/sparc/sparc.c (sparc_option_override): Likewise.
3680 * config/visium/visium.c (visium_option_override): Likewise.
3681 * coverage.c (get_coverage_counts): Likewise.
3682 (coverage_compute_profile_id): Likewise.
3683 (coverage_begin_function): Likewise.
3684 (coverage_end_function): Likewise.
3685 * cse.c (cse_find_path): Likewise.
3686 (cse_extended_basic_block): Likewise.
3687 (cse_main): Likewise.
3688 * cselib.c (cselib_invalidate_mem): Likewise.
3689 * dse.c (dse_step1): Likewise.
3690 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3691 (get_max_insn_count): Likewise.
3692 (make_debug_insn_raw): Likewise.
3693 (init_emit): Likewise.
3694 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3695 * final.c (compute_alignments): Likewise.
3696 * fold-const.c (fold_range_test): Likewise.
3697 (fold_truth_andor): Likewise.
3698 (tree_single_nonnegative_warnv_p): Likewise.
3699 (integer_valued_real_single_p): Likewise.
3700 * gcse.c (want_to_gcse_p): Likewise.
3701 (prune_insertions_deletions): Likewise.
3702 (hoist_code): Likewise.
3703 (gcse_or_cprop_is_too_expensive): Likewise.
3704 * ggc-common.c: Likewise.
3705 * ggc-page.c (ggc_collect): Likewise.
3706 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3707 (MAX_DATAREFS): Likewise.
3708 (OUTER_STRIDE_RATIO): Likewise.
3709 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3710 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3711 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3712 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3713 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3714 (imm_store_chain_info::output_merged_store): Likewise.
3715 (pass_store_merging::process_store): Likewise.
3716 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3717 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3718 (scop_to_isl_ast): Likewise.
3719 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3720 (optimize_isl): Likewise.
3721 * graphite-scop-detection.c (build_scops): Likewise.
3722 * haifa-sched.c (set_modulo_params): Likewise.
3723 (rank_for_schedule): Likewise.
3724 (model_add_to_worklist): Likewise.
3725 (model_promote_insn): Likewise.
3726 (model_choose_insn): Likewise.
3727 (queue_to_ready): Likewise.
3728 (autopref_multipass_dfa_lookahead_guard): Likewise.
3729 (schedule_block): Likewise.
3730 (sched_init): Likewise.
3731 * hsa-gen.c (init_prologue): Likewise.
3732 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3733 (cond_move_process_if_block): Likewise.
3734 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3735 (merge_agg_lats_step): Likewise.
3736 (devirtualization_time_bonus): Likewise.
3737 (hint_time_bonus): Likewise.
3738 (incorporate_penalties): Likewise.
3739 (good_cloning_opportunity_p): Likewise.
3740 (ipcp_propagate_stage): Likewise.
3741 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3742 (set_switch_stmt_execution_predicate): Likewise.
3743 (analyze_function_body): Likewise.
3744 (compute_fn_summary): Likewise.
3745 * ipa-inline-analysis.c (estimate_growth): Likewise.
3746 * ipa-inline.c (caller_growth_limits): Likewise.
3747 (inline_insns_single): Likewise.
3748 (inline_insns_auto): Likewise.
3749 (can_inline_edge_by_limits_p): Likewise.
3750 (want_early_inline_function_p): Likewise.
3751 (big_speedup_p): Likewise.
3752 (want_inline_small_function_p): Likewise.
3753 (want_inline_self_recursive_call_p): Likewise.
3754 (edge_badness): Likewise.
3755 (recursive_inlining): Likewise.
3756 (compute_max_insns): Likewise.
3757 (early_inliner): Likewise.
3758 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3759 * ipa-profile.c (ipa_profile): Likewise.
3760 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3761 (ipa_analyze_node): Likewise.
3762 (ipcp_transform_function): Likewise.
3763 * ipa-split.c (consider_split): Likewise.
3764 * ipa-sra.c (allocate_access): Likewise.
3765 (process_scan_results): Likewise.
3766 (ipa_sra_summarize_function): Likewise.
3767 (pull_accesses_from_callee): Likewise.
3768 * ira-build.c (loop_compare_func): Likewise.
3769 (mark_loops_for_removal): Likewise.
3770 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3771 * loop-doloop.c (doloop_optimize): Likewise.
3772 * loop-invariant.c (gain_for_invariant): Likewise.
3773 (move_loop_invariants): Likewise.
3774 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3775 (decide_unroll_runtime_iterations): Likewise.
3776 (decide_unroll_stupid): Likewise.
3777 (expand_var_during_unrolling): Likewise.
3778 * lra-assigns.c (spill_for): Likewise.
3779 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3780 * modulo-sched.c (sms_schedule): Likewise.
3781 (DFA_HISTORY): Likewise.
3782 * opts.c (default_options_optimization): Likewise.
3783 (finish_options): Likewise.
3784 (common_handle_option): Likewise.
3785 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3786 (if): Likewise.
3787 * predict.c (get_hot_bb_threshold): Likewise.
3788 (maybe_hot_count_p): Likewise.
3789 (probably_never_executed): Likewise.
3790 (predictable_edge_p): Likewise.
3791 (predict_loops): Likewise.
3792 (expr_expected_value_1): Likewise.
3793 (tree_predict_by_opcode): Likewise.
3794 (handle_missing_profiles): Likewise.
3795 * reload.c (find_equiv_reg): Likewise.
3796 * reorg.c (redundant_insn): Likewise.
3797 * resource.c (mark_target_live_regs): Likewise.
3798 (incr_ticks_for_insn): Likewise.
3799 * sanopt.c (pass_sanopt::execute): Likewise.
3800 * sched-deps.c (sched_analyze_1): Likewise.
3801 (sched_analyze_2): Likewise.
3802 (sched_analyze_insn): Likewise.
3803 (deps_analyze_insn): Likewise.
3804 * sched-ebb.c (schedule_ebbs): Likewise.
3805 * sched-rgn.c (find_single_block_region): Likewise.
3806 (too_large): Likewise.
3807 (haifa_find_rgns): Likewise.
3808 (extend_rgns): Likewise.
3809 (new_ready): Likewise.
3810 (schedule_region): Likewise.
3811 (sched_rgn_init): Likewise.
3812 * sel-sched-ir.c (make_region_from_loop): Likewise.
3813 * sel-sched-ir.h (MAX_WS): Likewise.
3814 * sel-sched.c (process_pipelined_exprs): Likewise.
3815 (sel_setup_region_sched_flags): Likewise.
3816 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3817 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3818 * toplev.c (print_version): Likewise.
3819 (process_options): Likewise.
3820 * tracer.c (tail_duplicate): Likewise.
3821 * trans-mem.c (tm_log_add): Likewise.
3822 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3823 * tree-data-ref.c (split_constant_offset): Likewise.
3824 (compute_all_dependences): Likewise.
3825 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3826 * tree-inline.c (remap_gimple_stmt): Likewise.
3827 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3828 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3829 (create_parallel_loop): Likewise.
3830 * tree-predcom.c (determine_unroll_factor): Likewise.
3831 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3832 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3833 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3834 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3835 (dse_optimize_redundant_stores): Likewise.
3836 (dse_classify_store): Likewise.
3837 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3838 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3839 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3840 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3841 (try_peel_loop): Likewise.
3842 (tree_unroll_loops_completely): Likewise.
3843 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3844 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3845 (MAX_CONSIDERED_GROUPS): Likewise.
3846 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3847 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3848 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3849 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3850 (L1_CACHE_SIZE_BYTES): Likewise.
3851 (L2_CACHE_SIZE_BYTES): Likewise.
3852 (should_issue_prefetch_p): Likewise.
3853 (schedule_prefetches): Likewise.
3854 (determine_unroll_factor): Likewise.
3855 (volume_of_references): Likewise.
3856 (add_subscript_strides): Likewise.
3857 (self_reuse_distance): Likewise.
3858 (mem_ref_count_reasonable_p): Likewise.
3859 (insn_to_prefetch_ratio_too_small_p): Likewise.
3860 (loop_prefetch_arrays): Likewise.
3861 (tree_ssa_prefetch_arrays): Likewise.
3862 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3863 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3864 (convert_mult_to_fma): Likewise.
3865 (math_opts_dom_walker::after_dom_children): Likewise.
3866 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3867 (hoist_adjacent_loads): Likewise.
3868 (gate_hoist_loads): Likewise.
3869 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3870 (compute_partial_antic_aux): Likewise.
3871 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3872 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3873 (vn_reference_lookup): Likewise.
3874 (do_rpo_vn): Likewise.
3875 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3876 * tree-ssa-sink.c (select_best_block): Likewise.
3877 * tree-ssa-strlen.c (new_stridx): Likewise.
3878 (new_addr_stridx): Likewise.
3879 (get_range_strlen_dynamic): Likewise.
3880 (class ssa_name_limit_t): Likewise.
3881 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3882 (create_variable_info_for_1): Likewise.
3883 (init_alias_vars): Likewise.
3884 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3885 (tail_merge_optimize): Likewise.
3886 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3887 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3888 (thread_jumps::find_jump_threads_backwards): Likewise.
3889 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3890 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3891 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3892 (jump_table_cluster::can_be_handled): Likewise.
3893 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3894 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3895 (param_switch_conversion_branch_ratio): Likewise.
3896 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3897 (vect_enhance_data_refs_alignment): Likewise.
3898 (vect_prune_runtime_alias_test_list): Likewise.
3899 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3900 (vect_get_datarefs_in_loop): Likewise.
3901 (vect_analyze_loop): Likewise.
3902 * tree-vect-slp.c (vect_slp_bb): Likewise.
3903 * tree-vectorizer.h: Likewise.
3904 * tree-vrp.c (find_switch_asserts): Likewise.
3905 (vrp_prop::check_mem_ref): Likewise.
3906 * tree.c (wide_int_to_tree_1): Likewise.
3907 (cache_integer_cst): Likewise.
3908 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3909 (reverse_op): Likewise.
3910 (vt_find_locations): Likewise.
3911
3912 2019-11-12 Martin Liska <mliska@suse.cz>
3913
3914 * Makefile.in: Include params.opt.
3915 * flag-types.h (enum parloops_schedule_type): Add
3916 parloops_schedule_type used in params.opt.
3917 * params.opt: New file.
3918
3919 2019-11-12 Martin Liska <mliska@suse.cz>
3920
3921 * common.opt: Remove --param and --param= options.
3922 * opt-functions.awk: Mark CL_PARAMS for options
3923 that have Param keyword.
3924 * opts-common.c (decode_cmdline_options_to_array):
3925 Replace --param key=value with --param=key=value.
3926 * opts.c (print_filtered_help): Remove special
3927 printing of params.
3928 (print_specific_help): Update title for params.
3929 (common_handle_option): Do not handle OPT__param.
3930 opts.h (SET_OPTION_IF_UNSET): New macro.
3931 * doc/options.texi: Document Param keyword.
3932
3933 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3934 Frederik Harwath <frederik@codesourcery.com>
3935 Thomas Schwinge <thomas@codesourcery.com>
3936
3937 gcc/
3938 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3939 enumeration constant.
3940 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3941 (is_gimple_omp_offloaded): Likewise.
3942 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3943 constant. Adjust the value of ORT_NONE accordingly.
3944 (is_gimple_stmt): Handle OACC_SERIAL.
3945 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3946 (gomp_needs_data_present): Likewise.
3947 (gimplify_adjust_omp_clauses): Likewise.
3948 (gimplify_omp_workshare): Handle OACC_SERIAL.
3949 (gimplify_expr): Likewise.
3950 * omp-expand.c (expand_omp_target):
3951 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3952 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3953 * omp-low.c (is_oacc_parallel): Rename function to...
3954 (is_oacc_parallel_or_serial): ... this.
3955 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3956 (scan_sharing_clauses): Adjust accordingly.
3957 (scan_omp_for): Likewise.
3958 (lower_oacc_head_mark): Likewise.
3959 (convert_from_firstprivate_int): Likewise.
3960 (lower_omp_target): Likewise.
3961 (check_omp_nesting_restrictions): Handle
3962 GF_OMP_TARGET_KIND_OACC_SERIAL.
3963 (lower_oacc_reductions): Likewise.
3964 (lower_omp_target): Likewise.
3965 * tree.def (OACC_SERIAL): New tree code.
3966 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3967
3968 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3969
3970 2019-11-12 Jakub Jelinek <jakub@redhat.com>
3971
3972 PR target/92449
3973 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3974 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
3975
3976 PR tree-optimization/92452
3977 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3978 into NULL_TREE, set up_bound to NULL_TREE instead of computing
3979 MINUS_EXPR on it.
3980
3981 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
3982
3983 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3984 safelen with 0.
3985
3986 2019-11-12 Alan Modra <amodra@gmail.com>
3987
3988 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3989 element of unspec vec.
3990 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3991 PC-relative TLS.
3992 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3993 (tls_gd_pcrel, tls_ld_pcrel): New insns.
3994 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3995 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3996
3997 2019-11-12 Alan Modra <amodra@gmail.com>
3998
3999 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4000 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4001 (IS_NOMARK_TLSGETADDR): Likewise.
4002 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4003 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4004 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4005 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4006 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4007 (rs6000_indirect_call_template_1): Likewise.
4008 (rs6000_pltseq_template): Likewise.
4009 (rs6000_opt_vars): Remove "tls-markers" entry.
4010 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4011 with TARGET_ELF.
4012 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4013 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4014 (pltseq_plt_pcrel<mode>): Likewise.
4015 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4016 (call_value_local64): Likewise.
4017 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4018 output and length attribute sub-expression.
4019 (call_value_nonlocal_sysv<mode>),
4020 (call_value_nonlocal_sysv_secure<mode>),
4021 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4022 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4023 (call_value_indirect_pcrel<mode>): Likewise.
4024 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4025 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4026 * configure: Regenerate.
4027 * config.in: Regenerate.
4028
4029 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4030
4031 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4032 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4033 address being a prefixed load/store.
4034 (stack_protect_testdi): Deal with either address being a prefixed
4035 load.
4036
4037 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4038
4039 PR bootstrap/92433
4040 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4041 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4042 std::swap.
4043
4044 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4045
4046 PR tree-optimization/92420
4047 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4048 up file.
4049 (get_group_load_store_type): Use it for reversed SLP accesses.
4050
4051 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4052
4053 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4054 summary.
4055 (ipcp_transformation_t::duplicate): Break out from ...
4056 (ipa_node_params_t::duplicate): ... here; add copying of agg
4057 replacements.
4058 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4059 (ipcp_transformation_t): Add duplicate.
4060
4061 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4062
4063 PR fortran/91828
4064 * doc/install.texi: Document that the minimum MPFR version is
4065 3.1.0.
4066
4067 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4068
4069 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4070 use new register constraint letters.
4071
4072 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4073
4074 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4075 as well, if interesting recover the symbol and re-legitimize the
4076 pic address.
4077
4078 2019-11-11 Martin Liska <mliska@suse.cz>
4079
4080 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4081 alphabetically.
4082
4083 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4084
4085 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4086 account when checking if there are enough iterations to vectorize
4087 epilogue.
4088
4089 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4090 Kwok Cheung Yeung <kcy@codesourcery.com>
4091
4092 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4093 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4094 (LANG_HOOKS_DECLS): Rename also here.
4095 * langhooks.h (lang_hooks_for_decls): Rename
4096 omp_is_optional_argument to omp_check_optional_argument; take
4097 additional bool argument.
4098 * omp-general.h (omp_check_optional_argument): Likewise.
4099 * omp-general.h (omp_check_optional_argument): Likewise.
4100 * omp-low.c (lower_omp_target): Update calls; handle absent
4101 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4102
4103 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4104
4105 PR target/87833
4106 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4107 -fPIC and -shared the last to create offload image.
4108
4109 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4110
4111 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4112 of 'offset'.
4113
4114 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4115 (config.status): Use/depend on it.
4116 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4117 * configure: Regenerate.
4118
4119 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4120
4121 PR tree-optimization/88760
4122 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4123 * gcc/common/config/rs6000/rs6000-common.c
4124 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4125 Turn on -funroll-loops and -munroll-only-small-loops.
4126 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4127 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4128 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4129 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4130 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4131 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4132
4133 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4134
4135 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4136 Make scalar_load, vector_load, unaligned_load and
4137 vector_gather_load cost more to conform hardware latency and
4138 insn cost settings.
4139
4140 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4141
4142 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4143 (MACHO_SYMBOL_LINKER_VIS_P): New.
4144
4145 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4146
4147 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4148 registers in eliminable_regset.
4149
4150 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4151
4152 * ipa-inline.c (compute_uninlined_call_time,
4153 compute_inlined_call_time): Take edge frequency as
4154 parameter rather than computing it by itself.
4155 (big_speedup_p, edge_badness): Manually CSE sreal
4156 frequency calculations.
4157
4158 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4159
4160 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4161 case where profiles are same.
4162
4163 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4164
4165 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4166
4167 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4168
4169 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4170 args summaries of inlined edge unless it holds info about
4171 described reference.
4172
4173 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4174
4175 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4176 (*movcc_internal1): Rename to...
4177 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4178
4179 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4180
4181 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4182 (cgraph_node::create_virtual_clone): Copy it.
4183 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4184 summaries.
4185 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4186 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4187 is disabled.
4188 (propagate_constants_across_call): If callee is not analyzed, give up.
4189 (propagate_constants_topo): Lower to bottom latties of all callees of
4190 functions with ipa-cp disabled.
4191 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4192 (cgraph_edge_brings_value_p): Check for availability first.
4193 (create_specialized_node): Set ipcp_clone.
4194 (ipcp_store_bits_results): Check that info is present.
4195 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4196 thunks.
4197 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4198 conservative when callee summary is missing.
4199 (remap_edge_summaries): Lookup call summary only when needed.
4200 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4201 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4202 Use get_create.
4203 (ipa_analyze_node): Use get_create.
4204 (propagate_controlled_uses): Do not propagate when function is not
4205 analyzed.
4206 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4207 (ipa_read_node_info): Use get_create.
4208 * ipa-prop.h (IPA_NODE_REF): Use get.
4209 (IPA_NODE_REF_GET_CREATE): New.
4210
4211 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4212
4213 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4214 on function symbol.
4215
4216 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4217
4218 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4219 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4220 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4221 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4222
4223 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4224
4225 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4226 capping the growth cumulated.
4227 (offline_size): Break out from ...
4228 (estimate_growth): ... here.
4229 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4230 parameters.
4231 (growth_likely_positive): Turn to ...
4232 (growth_positive_p): Re-implement.
4233 * ipa-inline.h (growth_likely_positive): Remove.
4234 (growth_positive_p): Declare.
4235 * ipa-inline.c (want_inline_small_function_p): Use
4236 growth_positive_p.
4237 (want_inline_function_to_all_callers_p): Likewise.
4238
4239 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4240
4241 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4242 calculation of min_size.
4243 (ipa_update_overall_fn_summary): Likewise.
4244
4245 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4246
4247 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4248 estimate_edge_devirt_benefit when not computing hints;
4249 do not compute time when not asked for.
4250 (estimate_calls_size_and_time): Pass NULL hints and time when
4251 these are not computed; do not evaluate hint predicates when these are
4252 not computed.
4253 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4254 frequency.
4255
4256 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4257
4258 PR tree-optimization/92401
4259 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4260 if res_op->code is an expression with code length 1.
4261 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4262 if res_op->code is an expression with code length 2.
4263 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4264 if res_op->code is an expression with code length 3.
4265
4266 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4267
4268 * config/darwin.c (machopic_mcount_stub_name): Validate the
4269 symbol stub name when it is created.
4270 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4271 stub validation.
4272
4273 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4274
4275 * symtab.c: Fix comment typos.
4276 * cgraphunit.c: Likewise.
4277 * cgraph.h: Likewise.
4278 * cgraphclones.c: Likewise.
4279 * cgraph.c: Likewise.
4280 * varpool.c: Likewise.
4281 * tree-ssa-strlen.c: Likewise.
4282 * ipa-sra.c: Likewise.
4283 (scan_expr_access, check_all_callers_for_issues): Fix typo
4284 in a dump message.
4285
4286 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4287
4288 * config/darwin-protos.h: Add include quard.
4289
4290 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4291
4292 * range-op.h (range_operator::fold_range): Return result in a
4293 reference parameter instead of by value.
4294 (range_operator::wi_fold): Same.
4295 * range-op.cc (range_operator::wi_fold): Return result in a reference
4296 parameter instead of by value.
4297 (range_operator::fold_range): Same.
4298 (value_range_from_overflowed_bounds): Same.
4299 (value_range_with_overflow): Same
4300 (create_possibly_reversed_range): Same.
4301 (operator_equal::fold_range): Same.
4302 (operator_not_equal::fold_range): Same.
4303 (operator_lt::fold_range): Same.
4304 (operator_le::fold_range): Same.
4305 (operator_gt::fold_range): Same.
4306 (operator_ge::fold_range): Same.
4307 (operator_plus::wi_fold): Same.
4308 (operator_plus::op1_range): Change call to fold_range.
4309 (operator_plus::op2_range): Change call to fold_range.
4310 (operator_minus::wi_fold): Return result via reference parameter.
4311 (operator_minus::op1_range): Change call to fold_range.
4312 (operator_minus::op2_range): Change call to fold_range.
4313 (operator_min::wi_fold): Return result via reference parameter.
4314 (operator_max::wi_fold): Same.
4315 (cross_product_operator::wi_cross_product): Same.
4316 (operator_mult::wi_fold): Same.
4317 (operator_div::wi_fold): Same.
4318 (operator_div op_floor_div): Fix whitespace.
4319 (operator_exact_divide::op1_range): Change call to fold_range.
4320 (operator_lshift::fold_range): Return result via reference parameter.
4321 (operator_lshift::wi_fold): Same.
4322 (operator_rshift::fold_range): Same.
4323 (operator_rshift::wi_fold): Same.
4324 (operator_cast::fold_range): Same.
4325 (operator_cast::op1_range): Change calls to fold_range.
4326 (operator_logical_and::fold_range): Return result via reference.
4327 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4328 (operator_bitwise_and::wi_fold): Return result via reference.
4329 (operator_logical_or::fold_range): Same.
4330 (operator_bitwise_or::wi_fold): Same.
4331 (operator_bitwise_xor::wi_fold): Same.
4332 (operator_trunc_mod::wi_fold): Same.
4333 (operator_logical_not::fold_range): Same.
4334 (operator_bitwise_not::fold_range): Same.
4335 (operator_bitwise_not::op1_range): Change call to fold_range.
4336 (operator_cst::fold_range): Return result via reference.
4337 (operator_identity::fold_range): Same.
4338 (operator_abs::wi_fold): Same.
4339 (operator_absu::wi_fold): Same.
4340 (operator_negate::fold_range): Same.
4341 (operator_negate::op1_range): Change call to fold_range.
4342 (operator_addr_expr::fold_range): Return result via reference.
4343 (operator_addr_expr::op1_range): Change call to fold_range.
4344 (operator_pointer_plus::wi_fold): Return result via reference.
4345 (operator_pointer_min_max::wi_fold): Same.
4346 (operator_pointer_and::wi_fold): Same.
4347 (operator_pointer_or::wi_fold): Same.
4348 (range_op_handler): Change call to fold_range.
4349 (range_cast): Same.
4350 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4351 fold_range.
4352 (range_fold_unary_symbolics_p): Same.
4353 (range_fold_binary_expr): Same.
4354 (range_fold_unary_expr): Same.
4355
4356 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4357
4358 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4359 vector type as an argument rather than reading it from the
4360 stmt_vec_info.
4361 (vect_create_epilog_for_reduction): Update accordingly.
4362 (vectorizable_reduction): Likewise.
4363 (vect_transform_cycle_phi): Likewise.
4364
4365 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4366
4367 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4368 the comparison codes that make sense for the mode used, and only the
4369 codes that can be done with a single branch instruction.
4370
4371 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4372
4373 PR tree-optimization/92351
4374 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4375 peeling the main loop for alignment, make sure to set the misalignment
4376 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4377
4378 2019-11-08 Richard Biener <rguenther@suse.de>
4379
4380 * dbgcnt.def (ivopts_loop): Add.
4381 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4382 ivopts_loop before optimizing a loop.
4383
4384 2019-11-08 Richard Biener <rguenther@suse.de>
4385
4386 PR ipa/92409
4387 * tree-inline.c (declare_return_variable): Properly handle
4388 type mismatches for the return slot.
4389
4390 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4391
4392 PR target/92095
4393 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4394 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4395 change.
4396 (got_helper_needed): New static variable.
4397 (output_load_pcrel_sym): New function.
4398 (get_pc_thunk_name): Remove after inlining...
4399 (load_got_register): ...here. Rework the initialization of the GOT
4400 register and of the GOT helper.
4401 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4402 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4403 helper must be emitted. Use output_asm_insn instead of fprintf.
4404 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4405 if optimization is enabled.
4406 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4407 by calling output_load_pcrel_sym.
4408
4409 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4410
4411 * tree-sra.c (create_access): Delay disqualifying the base
4412 for poly_int values until we know we have a base.
4413
4414 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4415
4416 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4417 for loops with SIMDUID set. Enable epilogue vectorization for loops
4418 with SIMDLEN set after finding a main loop with a VF that matches it.
4419
4420 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4421
4422 PR target/92038
4423 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4424 value only, return non-NULL if there is a single non-clobber
4425 constituent store even if there are constituent clobbers and return
4426 one of clobber constituent stores if all constituent stores are
4427 clobbers.
4428 (split_group): Handle clobbers.
4429 (imm_store_chain_info::output_merged_store): When computing
4430 bzero_first, look after all clobbers at the start. Don't count
4431 clobber stmts in orig_num_stmts, except if the first orig store is
4432 a clobber covering the whole area and split_stores cover the whole
4433 area, consider equal number of stmts ok. Punt if split_stores
4434 contains only ->orig stores and their number plus number of original
4435 clobbers is equal to original number of stmts. For ->orig, look past
4436 clobbers in the constituent stores.
4437 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4438 stmts.
4439 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4440 rhs.
4441 (store_valid_for_store_merging_p): Allow clobber stmts.
4442 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4443
4444 PR c++/92384
4445 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4446 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4447 slot.
4448 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4449 force creation of a unique data.stack_parm slot.
4450
4451 2019-11-08 Richard Biener <rguenther@suse.de>
4452
4453 * genmatch.c (expr::gen_transform): Use the resimplify
4454 member function instead of hard-coding the gimple_resimplifyN variant.
4455 (dt_simplify::gen_1): Likewise.
4456
4457 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4458
4459 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4460 POLY_INT_CST.
4461
4462 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4463
4464 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4465 instead of INTEGER_CST.
4466
4467 2019-11-08 Richard Biener <rguenther@suse.de>
4468
4469 PR tree-optimization/92324
4470 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4471 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4472 sign-conversions as necessary.
4473 (vectorizable_reduction): Reject conversions in the chain
4474 that are not sign-conversions, base analysis on a non-converting
4475 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4476 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4477 for debug stmts.
4478 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4479 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4480
4481 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4482
4483 PR target/92055
4484 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4485 Fix a missing '-' when displaying these options in the
4486 help screen.
4487
4488 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4489
4490 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4491
4492 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4493
4494 * config/aarch64/aarch64-builtins.c
4495 (aarch64_builtin_vectorized_function): Remove bswap handling.
4496
4497 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4498
4499 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4500 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4501 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4502 Treat the vector types as indivisible.
4503
4504 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4505
4506 * optabs.def (gather_load_optab, mask_gather_load_optab)
4507 (scatter_store_optab, mask_scatter_store_optab): Turn into
4508 conversion optabs, with the offset mode given explicitly.
4509 * doc/md.texi: Update accordingly.
4510 * config/aarch64/aarch64-sve-builtins-base.cc
4511 (svld1_gather_impl::expand): Likewise.
4512 (svst1_scatter_impl::expand): Likewise.
4513 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4514 (expand_scatter_store_optab_fn): Likewise.
4515 (direct_gather_load_optab_supported_p): Likewise.
4516 (direct_scatter_store_optab_supported_p): Likewise.
4517 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4518 to be argument 4.
4519 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4520 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4521 argument with the offset vector type. Require the two vector
4522 types to have the same number of elements but allow their element
4523 sizes to be different. Treat the optabs as conversion optabs.
4524 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4525 prototype accordingly.
4526 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4527 (supports_vec_convert_optab_p): ...this new function.
4528 (supports_vec_gather_load_p): Update accordingly.
4529 (supports_vec_scatter_store_p): Likewise.
4530 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4531 Replace the offset sign and bits parameters with a scalar type tree.
4532 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4533 Pass back the offset vector type instead of the scalar element type.
4534 Allow the offset to be wider than the memory elements. Search for
4535 an offset type that the target supports, stopping once we've
4536 reached the maximum of the element size and pointer size.
4537 Update call to internal_gather_scatter_fn_supported_p.
4538 (vect_check_gather_scatter): Update calls accordingly.
4539 When testing a new scale before knowing the final offset type,
4540 check whether the scale is supported for any signed or unsigned
4541 offset type. Check whether the target supports the source and
4542 target types of a conversion before deciding whether to look
4543 through the conversion. Record the chosen offset_vectype.
4544 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4545 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4546 directly from the gs_info's offset_vectype instead. Pass a zero
4547 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4548 * tree-vect-stmts.c (check_load_store_masking): Update call to
4549 internal_gather_scatter_fn_supported_p, passing the offset vector
4550 type recorded in the gs_info.
4551 (vect_truncate_gather_scatter_offset): Update call to
4552 vect_check_gather_scatter, leaving it to search for a valid
4553 offset vector type.
4554 (vect_use_strided_gather_scatters_p): Convert the offset to the
4555 element type of the gs_info's offset_vectype.
4556 (vect_get_gather_scatter_ops): Get the offset vector type directly
4557 from the gs_info.
4558 (vect_get_strided_load_store_ops): Likewise.
4559 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4560 and IFN_MASK_GATHER_LOAD.
4561 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4562 (gather_load<mode><v_int_equiv>): ...this.
4563 (mask_gather_load<mode>): Rename to...
4564 (mask_gather_load<mode><v_int_equiv>): ...this.
4565 (scatter_store<mode>): Rename to...
4566 (scatter_store<mode><v_int_equiv>): ...this.
4567 (mask_scatter_store<mode>): Rename to...
4568 (mask_scatter_store<mode><v_int_equiv>): ...this.
4569
4570 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4571
4572 PR target/92132
4573 * config/rs6000/predicates.md
4574 (signed_or_equality_comparison_operator): New predicate.
4575 (unsigned_or_equality_comparison_operator): Likewise.
4576 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4577 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4578 * config/rs6000/vector.md
4579 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4580 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4581 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4582 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4583 vector modes and same-size integer vector modes.
4584 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4585 (vector_lt<mode> for VEC_F): New expand.
4586 (vector_le<mode> for VEC_F): Likewise.
4587 (vector_ne<mode> for VEC_F): Likewise.
4588 (vector_unge<mode> for VEC_F): Likewise.
4589 (vector_ungt<mode> for VEC_F): Likewise.
4590 (vector_unle<mode> for VEC_F): Likewise.
4591 (vector_unlt<mode> for VEC_F): Likewise.
4592 (vector_uneq<mode>): Expose name.
4593 (vector_ltgt<mode>): Likewise.
4594 (vector_unordered<mode>): Likewise.
4595 (vector_ordered<mode>): Likewise.
4596
4597 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4598
4599 PR target/92295
4600 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4601 Enhance ix86_expand_vector_init_concat.
4602
4603 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4604
4605 * doc/invoke.texi (-Wold-style-definition): Document () not being
4606 considered an old-style definition for C2x.
4607
4608 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4609
4610 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4611 Enhance comment.
4612 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4613 insn patterns using ldcw instruction.
4614 (memory_barrier): Remove insn pattern using sync instruction.
4615 * config/pa/pa.opt (coherent-ldcw): New option.
4616 (ordered): New option.
4617
4618 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4619
4620 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4621 valid conditions.
4622
4623 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4624
4625 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4626 typo - mistmatch -> mismatch.
4627 * ipa-profile.c (ipa_profile): Likewise.
4628 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4629 - mistmatch -> mismatch.
4630
4631 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4632
4633 * simplify-rtx.c (comparison_to_mask): New function.
4634 (mask_to_comparison): New function.
4635 (simplify_logical_relational_operation): New function.
4636 (simplify_binary_operation_1): Call
4637 simplify_logical_relational_operation.
4638
4639 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4640
4641 PR other/92090
4642 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4643 modes for integer constants.
4644
4645 2019-11-07 Jan Hubicka <jh@suse.cz>
4646
4647 PR ipa/92406
4648 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4649 summary.
4650
4651 2019-11-07 Jan Hubicka <jh@suse.cz>
4652
4653 * optc-save-gen.awk: Generate cl_target_option_free
4654 and cl_optimization_option_free.
4655 * opth-en.awk: Declare cl_target_option_free
4656 and cl_optimization_option_free.
4657 * tree.c (free_node): Use it.
4658
4659 2019-11-06 Jan Hubicka <jh@suse.cz>
4660
4661 * lto-streamer-in.c: Include alloc-pool.h.
4662 (freeing_string_slot_hasher): Remove.
4663 (string_slot_allocator): New object allocator.
4664 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4665 (file_name_obstack): New obstack.
4666 (canon_file_name): Allocate in obstack and allocator.
4667 (lto_reader_init): Initialize obstack and allocator.
4668 (lto_free_file_name_hash): New function.
4669 * lto-streamer.h (lto_free_file_name_hash): New.
4670
4671 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4672
4673 PR tree-optimization/89134
4674 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4675 * params.def: Add min-loop-cond-split-prob.
4676 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4677 outside checks on loop into the function.
4678 (split_info): New class.
4679 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4680 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4681 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4682 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4683 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4684 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4685 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4686 (split_loop_on_cond): Likewise.
4687 (tree_ssa_split_loops): Add loop split on conditional statement.
4688
4689 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4690
4691 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4692 pattern.
4693
4694 2019-11-07 Richard Biener <rguenther@suse.de>
4695
4696 PR tree-optimization/92405
4697 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4698 restrict lane-reducing ops to single stmt chains.
4699
4700 2019-11-07 Martin Jambor <mjambor@suse.cz>
4701
4702 PR lto/70929
4703 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4704 * cgraph.h (gimple_check_call_matching_types): Remove
4705 * cgraph.c (gimple_check_call_args): Likewise.
4706 (gimple_check_call_matching_types): Likewise.
4707 (symbol_table::create_edge): Do not call
4708 gimple_check_call_matching_types.
4709 (cgraph_edge::make_direct): Likewise.
4710 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4711 * value-prof.h (check_ic_target): Remove.
4712 * value-prof.c (check_ic_target): Remove.
4713 (gimple_ic_transform): Do nat call check_ic_target.
4714 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4715 (afdo_indirect_call): Likewise.
4716 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4717 gimple_check_call_matching_types.
4718 * ipa-inline.c (early_inliner): Likewise.
4719
4720 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4721
4722 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4723 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4724 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4725 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4726 * config/arm/iterators.md (USSAT16): New int_iterator.
4727 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4728 (sup): Likewise.
4729 * config/arm/predicates.md (ssat16_imm): New predicate.
4730 (usat16_imm): Likewise.
4731 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4732
4733 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4734
4735 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4736 New define_insns.
4737 (arm_<simd32_op>): New define_expands.
4738 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4739 __smuad, __smuadx): Define.
4740 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4741 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4742 (SIMD32_BINOP_Q): Likewise.
4743 (simd32_op): Handle the above.
4744 * config/arm/unspecs.md: Define unspecs for the above.
4745
4746 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4747
4748 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4749 * config/arm/arm.md (APSRGE_REGNUM): Define.
4750 (arm_<simd32_op>): New define_insn.
4751 (arm_sel): Likewise.
4752 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4753 (CALL_USED_REGISTERS): Likewise.
4754 (REG_ALLOC_ORDER): Likewise.
4755 (FIRST_PSEUDO_REGISTER): Update value.
4756 (ARM_GE_BITS_READ): Define.
4757 * config/arm/arm.c (arm_conditional_register_usage): Clear
4758 APSRGE_REGNUM from operand_reg_set.
4759 (arm_ge_bits_access): Define.
4760 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4761 ARM_BUIILTIN_sel.
4762 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4763 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4764 FAIL if ARM_GE_BITS_READ.
4765 (*arm_add<mode>3): New define_insn.
4766 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4767 (*arm_sub<mode>3): New define_insn.
4768 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4769 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4770 __usub16): Define.
4771 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4772 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4773 (simd32_op): Handle the above.
4774 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4775 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4776 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4777 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4778
4779 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4780
4781 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4782 (arm_smlabb): New define_expand.
4783 (*maddhisi4tb): Rename to...
4784 (maddhisi4tb): ... This.
4785 (*maddhisi4tt): Rename to...
4786 (maddhisi4tt): ... This.
4787 (arm_smlatb_setq): New define_insn.
4788 (arm_smlatb): New define_expand.
4789 (arm_smlatt_setq): New define_insn.
4790 (arm_smlatt): New define_expand.
4791 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4792 (arm_<smlaw_op>): New define_expand.
4793 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4794 __smlawb, __smlawt): Define.
4795 * config/arm_acle_builtins.def: Define builtins for the above.
4796 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4797 (slaw_op): New int_attribute.
4798 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4799
4800 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4801
4802 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4803 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4804 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4805 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4806 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4807 (ss_op): New code_attr.
4808
4809 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4810
4811 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4812 * config/arm/arm.md (APSRQ_REGNUM): Define.
4813 (add_setq): New define_subst.
4814 (add_clobber_q_name): New define_subst_attr.
4815 (add_clobber_q_pred): Likewise.
4816 (maddhisi4): Change to define_expand. Split into mult and add if
4817 ARM_Q_BIT_READ.
4818 (arm_maddhisi4): New define_insn.
4819 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4820 (*maddhisi4tt): Likewise.
4821 (arm_ssat): New define_expand.
4822 (arm_usat): Likewise.
4823 (arm_get_apsr): New define_insn.
4824 (arm_set_apsr): Likewise.
4825 (arm_saturation_occurred): New define_expand.
4826 (arm_set_saturation): Likewise.
4827 (*satsi_<SAT:code>): Rename to...
4828 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4829 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4830 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4831 (CALL_USED_REGISTERS): Mark apsrq.
4832 (FIRST_PSEUDO_REGISTER): Update value.
4833 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4834 (machine_function): Add q_bit_access.
4835 (ARM_Q_BIT_READ): Define.
4836 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4837 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4838 operand_reg_set.
4839 (arm_q_bit_access): Define.
4840 * config/arm/arm-builtins.c: Include stringpool.h.
4841 (arm_sat_binop_imm_qualifiers,
4842 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4843 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4844 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4845 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4846 SET_SAT_QUALIFIERS): Likewise.
4847 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4848 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4849 Handle 0 argument expander.
4850 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4851 (arm_check_builtin_call): Define.
4852 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4853 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4854 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4855 (arm_q_bit_access): Likewise.
4856 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4857 __saturation_occurred, __set_saturation_occurred): Define.
4858 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4859 saturation_occurred, set_saturation_occurred.
4860 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4861 (UNSPEC_APSR_READ): Likewise.
4862 (VUNSPEC_APSR_WRITE): Likewise.
4863 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4864 (*arm_ssadd<mode>3): New define_insn.
4865 (sssub<mode>3): Convert to define_expand.
4866 (*arm_sssub<mode>3): New define_insn.
4867 (ssmulsa3): Convert to define_expand.
4868 (*arm_ssmulsa3): New define_insn.
4869 (usmulusa3): Convert to define_expand.
4870 (*arm_usmulusa3): New define_insn.
4871 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4872 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4873 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4874
4875 2019-11-07 Martin Liska <mliska@suse.cz>
4876
4877 PR c++/92354
4878 * cgraph.c (delete_function_version): Clear global
4879 variable version_info_node if equal to deleted
4880 function.
4881
4882 2019-11-07 Martin Liska <mliska@suse.cz>
4883
4884 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4885 of CONSTRUCTOR_NO_CLEARING.
4886 (operand_compare::hash_operand): Likewise.
4887
4888 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4889
4890 Support 64-bit double and 64-bit long double configurations.
4891
4892 PR target/92055
4893 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4894 --with-long-double=.
4895 * config/avr/t-multilib: Remove.
4896 * config/avr/t-avr: Output of genmultilib.awk is now fully
4897 dynamically generated and no more part of the repo.
4898 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4899 Pass them down to...
4900 * config/avr/genmultilib.awk: ...here and handle them.
4901 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4902 (-mlong-double=, avr_long_double). New option and var.
4903 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4904 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4905 Set default as requested by --with-double=
4906 (TARGET_HANDLE_OPTION): Define to this...
4907 (avr_handle_option): ...new hook worker.
4908 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4909 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4910 (avr_double_lib): New proto for spec function.
4911 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4912 (DRIVER_SELF_SPECS): Call %:double-lib.
4913 * config/avr/avr.c (avr_option_override): Assert
4914 sizeof(long double) >= sizeof(double) for the target.
4915 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4916 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4917 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4918 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4919 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4920 New built-in define depending on --with-double=, --with-long-double=.
4921 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4922 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4923 * doc/install.texi (Cross-Compiler-Specific Options)
4924 <--with-double=, --with-long-double=>: Doc.
4925
4926 2019-11-07 Richard Biener <rguenther@suse.de>
4927
4928 * dbgcnt.def (gimple_unroll): New.
4929 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4930 gimple_unroll debug counter before applying transform.
4931 (try_peel_loop): Likewise.
4932
4933 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4934
4935 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4936 frame pointer in multiple registers.
4937 (ira_setup_eliminable_regset): Setup eliminable_regset,
4938 ira_no_alloc_regs and regs_ever_live for frame pointer in
4939 multiple registers.
4940
4941 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4942
4943 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4944 V2DI modes.
4945
4946 2019-11-06 Jan Hubicka <jh@suse.cz>
4947
4948 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4949 allocations.
4950 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4951 Do not silently ignore summary corruptions.
4952
4953 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4954
4955 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4956 the epilogue if there are peeled iterations for it to handle.
4957
4958 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4959
4960 * config/arc/arc.c (arc_split_ior): Add asserts.
4961 (arc_split_mov_const): Likewise.
4962 (arc_check_ior_const): Do not match known short immediate values.
4963 * config/arc/arc.md (movsi): Don't split predicated instructions
4964 (iorsi): Likewise.
4965
4966 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4967
4968 * config/arc/arc.opt (mea): Update help string.
4969 * doc/invoke.texi(ARC): Update mea option info.
4970
4971 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4972
4973 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4974 (zero_extendqisi2_ac): Likewise.
4975 (zero_extendhisi2_i): Likewise.
4976 (extendqihi2_i): Likewise.
4977 (extendqisi2_ac): Likewise.
4978 (extendhisi2_i): Likewise.
4979
4980 2019-11-06 Richard Biener <rguenther@suse.de>
4981
4982 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4983 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4984 Simplify single_defuse_cycle condition.
4985
4986 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4987
4988 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4989 epilogue loop, make sure that the VF is small enough or that
4990 the epilogue loop can be fully-masked.
4991
4992 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4993
4994 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4995 loop when we've finished, rather than returning directly from
4996 the loop. Use a local variable to track whether we're still
4997 searching for the preferred simdlen. Make vect_epilogues
4998 record whether the next iteration should try to treat the
4999 loop as an epilogue.
5000
5001 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5002
5003 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5004 __arc_hard_float__, __ARC_HARD_FLOAT__,
5005 __arc_soft_float__, __ARC_SOFT_FLOAT__
5006
5007 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5008
5009 PR tree-optimization/92317
5010 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5011 update phi's with constant phi arguments.
5012
5013 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5014 Alexandre Oliva <oliva@adacore.com>
5015
5016 * common.opt (-fcallgraph-info[=]): New option.
5017 * doc/invoke.texi (Developer options): Document it.
5018 * opts.c (common_handle_option): Handle it.
5019 * builtins.c (expand_builtin_alloca): Record allocation if
5020 -fcallgraph-info=da.
5021 * calls.c (expand_call): If -fcallgraph-info, record the call.
5022 (emit_library_call_value_1): Likewise.
5023 * flag-types.h (enum callgraph_info_type): New type.
5024 * explow.c: Include stringpool.h.
5025 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5026 * function.c (allocate_stack_usage_info): New.
5027 (allocate_struct_function): Call it for -fcallgraph-info.
5028 (prepare_function_start): Call it otherwise.
5029 (record_final_call, record_dynamic_alloc): New.
5030 * function.h (struct callinfo_callee): New.
5031 (CALLEE_FROM_CGRAPH_P): New.
5032 (struct callinfo_dalloc): New.
5033 (struct stack_usage): Add callees and dallocs.
5034 (record_final_call, record_dynamic_alloc): Declare.
5035 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5036 object if -fcallgraph-info=da.
5037 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5038 * print-tree.h (print_decl_identifier): Declare.
5039 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5040 * print-tree.c: Include print-tree.h.
5041 (print_decl_identifier): New function.
5042 * toplev.c: Include print-tree.h.
5043 (callgraph_info_file): New global variable.
5044 (callgraph_info_external_printed): Likewise.
5045 (output_stack_usage): Rename to...
5046 (output_stack_usage_1): ... this. Make it static, add cf
5047 parameter. If -fcallgraph-info=su, print stack usage to cf.
5048 If -fstack-usage, use print_decl_identifier for
5049 pretty-printing.
5050 (INDIRECT_CALL_NAME): New.
5051 (dump_final_node_vcg_start): New.
5052 (dump_final_callee_vcg, dump_final_node_vcg): New.
5053 (output_stack_usage): New.
5054 (lang_dependent_init): Open and start file if
5055 -fcallgraph-info. Allocated callgraph_info_external_printed.
5056 (finalize): If callgraph_info_file is not null, finish it,
5057 close it, and release callgraph_info_external_printed.
5058
5059 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5060 Frederik Harwath <frederik@codesourcery.com>
5061 Thomas Schwinge <thomas@codesourcery.com>
5062
5063 * omp-low.c (struct omp_context): New fields
5064 local_reduction_clauses, outer_reduction_clauses.
5065 (new_omp_context): Initialize these.
5066 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5067 (scan_omp_for): Check reduction clauses for incorrect nesting.
5068
5069 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5070
5071 PR inline-asm/92352
5072 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5073 operands with non-memory constraints.
5074
5075 2019-11-05 Martin Sebor <msebor@redhat.com>
5076
5077 PR tree-optimization/92373
5078 * tree.c (component_ref_size): Only consider initializers of objects
5079 of matching struct types.
5080 Return null for instances of interior zero-length arrays.
5081
5082 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5083
5084 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5085
5086 2019-11-05 Jason Merrill <jason@redhat.com>
5087
5088 PR tree-optimization/91825
5089 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5090
5091 2019-11-05 Jim Wilson <jimw@sifive.com>
5092
5093 PR middle-end/92263
5094 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5095 optimize_insn_for_speed_p is true.
5096
5097 2019-11-05 Martin Sebor <msebor@redhat.com>
5098
5099 PR middle-end/92333
5100 PR middle-end/82608
5101 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5102 size.
5103 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5104 name and location for a temporary variable.
5105
5106 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5107
5108 * tree-vrp.c (value_range::value_range): Fix whitespace.
5109 (defined_ranges_p): Same.
5110 (range_fold_binary_symbolics_p): Same.
5111 (value_range::intersect_helper): Same.
5112 (value_range::union_helper): Same.
5113 * tree-vrp.h (range_fold_binary_expr): Same.
5114
5115 2019-11-04 Martin Sebor <msebor@redhat.com>
5116
5117 PR middle-end/92341
5118 PR middle-end/82612
5119 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5120 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5121 of message printed in a warning for empty arrays.
5122 (vrp_prop::check_mem_ref): Also handle function parameters and
5123 empty arrays.
5124
5125 2019-11-05 Richard Biener <rguenther@suse.de>
5126
5127 PR tree-optimization/92371
5128 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5129 on the original stmt of live stmts in the chain.
5130 (vectorizable_live_operation): Look at the original stmt when
5131 checking STMT_VINFO_REDUC_DEF.
5132
5133 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5134
5135 * gimple-fold.c, gimple-loop-versioning.cc,
5136 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5137 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5138 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5139 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5140 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5141 value_range_equiv, and value_range_base to value_range.
5142
5143 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5144
5145 * expr.c (build_personality_function): Fix generated type to
5146 match actual personality functions.
5147
5148 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5149
5150 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5151 enough bytes for the NULL character.
5152
5153 2019-11-05 Richard Biener <rguenther@suse.de>
5154
5155 PR tree-optimization/92280
5156 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5157 had a single use do not create a new CTOR.
5158 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5159 BIT_FIELD_REF of a CTOR via GENERIC.
5160
5161 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5162
5163 * config/s390/s390.c (s390_vector_alignment): Check if the value
5164 fits into uhwi before using it.
5165
5166 2019-11-05 Martin Liska <mliska@suse.cz>
5167
5168 * symbol-summary.h: Use ggc_delete.
5169
5170 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5171
5172 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5173 Change vec_perm field to 10.
5174
5175 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5176
5177 * doc/install.texi: Further fix syntax for html generation.
5178
5179 2019-11-05 Martin Liska <mliska@suse.cz>
5180
5181 * symbol-summary.h: Rename allocator to m_allocator and
5182 add comment.
5183
5184 2019-11-05 Richard Biener <rguenther@suse.de>
5185
5186 PR tree-optimization/92324
5187 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5188 all signed or unsigned operations.
5189
5190 2019-11-05 Jan Hubicka <jh@suse.cz>
5191
5192 * hsa-brig.c: Include alloc-pool.h
5193 * hsa-dump.c: Likewise.
5194 * hsa-gen.c: Likewise.
5195 * hse-regalloc.c: Likewise.
5196 * ipa-hsa.c: Likewise.
5197 * ipa-predicate.c: Likewise.
5198 * ipa-reference.c: Likewise.
5199 * ipa-sra.c: Likewise.
5200 * omp-expand.c: Likewise.
5201 * omp-general.c: Likewise.
5202 * omp-low.c: Likewise.
5203 * sumbol-summary.h (function_summary_base): Add allocator.
5204 (function_summary<T *>::function_summary): Update construction.
5205 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5206 (call_summary_base): Add allcator.
5207 (call_summary<T *>::call_summary): Update construction.
5208 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5209
5210 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5211
5212 PR tree-optimization/91945
5213 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5214 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5215 Formatting fix.
5216
5217 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5218
5219 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5220 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5221 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5222 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5223 (vrp_set_zero_nonzero_bits): Move to...
5224 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5225 (vr_values::simplify_bit_ops_using_ranges): Rename
5226 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5227
5228 2019-11-05 Martin Liska <mliska@suse.cz>
5229
5230 PR c++/92339
5231 * fold-const.c (operand_compare::hash_operand): Remove
5232 FIELD_DECL handling.
5233
5234 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5235
5236 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5237 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5238 static.
5239
5240 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5241
5242 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5243 properly handle symbolics.
5244 (range_compatible_p): Remove.
5245
5246 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5247
5248 * common.opt (-fabi-version): Document =14.
5249 * doc/invoke.texi (C++ Dialect Options): Likewise.
5250
5251 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5252
5253 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5254
5255 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5256
5257 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5258 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5259 gcn_omp_device_kind_arch_isa.
5260 * config/gcn/t-omp-device: New file.
5261 * configure.ac: Support gcn for omp_device_property.
5262 * configure: Regenerate.
5263
5264 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5265
5266 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5267 (vrp_val_max): Same.
5268 (vrp_val_is_min): Same.
5269 (vrp_val_is_max): Same.
5270 (value_range_base::nonzero_p): Remove last argument to
5271 vrp_val_is_max.
5272 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5273 (vrp_val_max): Same.
5274 (vrp_val_is_min): Same.
5275 (vrp_val_is_max): Same.
5276 (value_range_base::set_varying): Remove last argument to vrp_val*.
5277 (value_range_base::dump): Same.
5278 (value_range_base::set): Same.
5279 (value_range_base::normalize_symbolics): Same.
5280 (value_range_base::num_pairs): Same.
5281 (value_range_base::lower_bound): Same.
5282 (value_range_base::upper_bound): Same.
5283 (ranges_from_anti_range): Remove handle_pointers argument.
5284 (value_range_base::singleton_p): Remove last argument to
5285 ranges_from_anti_range.
5286
5287 2019-11-04 Jan Hubicka <jh@suse.cz>
5288
5289 * ipa-reference.c (init_function_info): Initialize
5290 info->global.statics_read.
5291
5292 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5293
5294 * tree-vrp.c (value_range_base::invert): Use constructors to build
5295 range.
5296
5297 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5298
5299 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5300 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5301
5302 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5303
5304 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5305 VR_UNDEFINED.
5306
5307 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5308
5309 * tree-vrp.c (dump_assert_info): New.
5310 (dump_asserts_info): New.
5311
5312 2019-11-04 Jan Hubicka <jh@suse.cz>
5313
5314 * ipa-inline-transform.c: Include ipa-utils.h
5315 (inline_call): Set thunk_expansion flag.
5316 * ipa-utils.h (thunk_expansion): Declare.
5317 * ipa-devirt.c (thunk_expansion): New global var.
5318 (devirt_node_removal_hook): Do not invalidate cache while
5319 doing thunk expansion.
5320
5321 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5322
5323 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5324
5325 2019-11-04 Martin Sebor <msebor@redhat.com>
5326
5327 PR tree-optimization/92349
5328 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5329 memebers have constant sizes.
5330
5331 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5332
5333 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5334 parameter.
5335 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5336 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5337 vect_analyze_loop.
5338
5339 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5340
5341 * expr.c (store_constructor): Modify to handle single element vectors.
5342 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5343 constructors.
5344 (vect_slp_check_for_constructors): New function.
5345 (vect_slp_analyze_bb_1): Call new function to check for vector
5346 constructors.
5347 (vectorize_slp_instance_root_stmt): New function.
5348 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5349 constructors.
5350 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5351
5352 2019-11-04 Richard Biener <rguenther@suse.de>
5353
5354 PR tree-optimization/92345
5355 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5356 we produced a reduction chain.
5357 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5358 LOOP_VINFO_REDUCTIONS.
5359
5360 2019-11-04 Jan Hubicka <jh@suse.cz>
5361
5362 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5363 duplicate summaries.
5364 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5365 first.
5366 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5367 access call summaries.
5368 (dump_ipa_call_summary): Be ready for missing edge summaries.
5369 (analyze_function_body): Use get instead of get_create to access
5370 edge summary.
5371 (estimate_calls_size_and_time): Do not access summaries of
5372 inlined edges; sanity check they are missing.
5373 (ipa_call_context::estimate_size_and_time): Use get instead
5374 of get_create to access node summary.
5375 (inline_update_callee_summaries): Do not update depth of
5376 inlined edge.
5377 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5378 growth caches.
5379 (ipa_merge_fn_summary_after_inlining): Use get instead
5380 of get_create.
5381 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5382 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5383 fast summary.
5384 (initialize_growth_caches): Update.
5385 (do_estimate_edge_time): Remove redundant copy of context.
5386 (ipa_remove_from_growth_caches): New function.
5387 * ipa-inline.c (flatten_function): Update overall summary
5388 only when optimizing.
5389 (inline_to_all_callers): Update overall summary of function
5390 inlined to.
5391 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5392 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5393 to false.
5394
5395 2019-11-04 Richard Biener <rguenther@suse.de>
5396
5397 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5398 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5399
5400 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5401
5402 * ggc-common.c: Include system.h before malloc.h.
5403
5404 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5405
5406 * configure.ac: Pass --enable-obsolete=* and
5407 --enable-option-checking=* down to build configure, and fail
5408 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5409 * configure: Rebuild.
5410 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5411 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5412
5413 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5414
5415 * config.in: Regenerate.
5416 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5417 -mtiny-printf is used without GCC being configured with
5418 --enable-newlib-nano-formatted-io.
5419 * config/msp430/msp430.h (LINK_SPEC): Pass
5420 "--wrap puts --wrap printf" when -mtiny-printf is used.
5421 * config/msp430/msp430.opt: Document -mtiny-printf.
5422 * configure: Regenerate.
5423 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5424 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5425 --enable-newlib-nano-formatted-io is passed.
5426 * doc/invoke.texi: Document -mtiny-printf.
5427
5428 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5429
5430 * configure: Regenerate.
5431
5432 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5433
5434 * config/msp430/driver-msp430.c
5435 (msp430_get_linker_devices_include_path): New spec function.
5436 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5437 (extract_devices_dir_from_exec_prefix): New function.
5438 (extract_devices_dir_from_collect_gcc): New function.
5439 (msp430_check_env_var_for_devices): New function.
5440 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5441 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5442 devices.csv was not found using other methods.
5443 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5444 New prototype.
5445 (msp430_dirname): Likewise.
5446 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5447 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5448 msp430_get_linker_devices_include_path.
5449 (TARGET_EXTRA_PRE_INCLUDES): Define.
5450 * doc/invoke.texi: Document new ways of searching for support files.
5451
5452 2019-11-04 Richard Biener <rguenther@suse.de>
5453
5454 PR tree-optimization/92301
5455 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5456 as required by epilogue generation
5457
5458 2019-11-04 Martin Liska <mliska@suse.cz>
5459
5460 PR ipa/92304
5461 * fold-const.c (operand_compare::hash_operand): Fix field
5462 hashing of CONSTRUCTOR.
5463
5464 2019-11-04 Martin Liska <mliska@suse.cz>
5465
5466 * ggc.h (ggc_delete): New function.
5467 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5468 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5469 (ipa_free_all_node_params): Likewise.
5470 * ipa-sra.c (ipa_sra_analysis): Likewise.
5471
5472 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5473
5474 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5475 set_switch_stmt_execution_predicate, compute_bb_predicates,
5476 will_be_nonconstant_expr_predicate,
5477 phi_result_unknown_predicate,
5478 analyze_function_body): Pass arround params summary.
5479 (ipa_call_context::duplicate_from): New comment;
5480 only duplicate useful values.
5481 (ipa_call_context::equal_to): Only compare useful values.
5482 (remap_edge_summaries): Pass params_summary.
5483 (remap_hint_predicate): Likewise.
5484 (ipa_merge_fn_summary_after_inlining): Likewise.
5485 (inline_read_section): Initialize params summary used flags.
5486 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5487 around param_summary.
5488 (add_condition): Initialized used params summary flags.
5489 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5490 (inline_param_summary::useless_p): New predicate.
5491 (remap_after_inlining, add_condition): Update prototype
5492 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5493 move_cost.
5494 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5495 summaries.
5496 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5497 (ipa_analyze_virtual_call_uses): Likewise.
5498 (update_indirect_edges_after_inlining): Update param summaries.
5499 (ipa_print_node_params): Print used flags.
5500 (ipa_read_indirect_edge_info): Update param summareis.
5501 * ipa-prop.h (ipa_param_descriptor): Add
5502 used_by_ipa_predicates, used_by_indirect_call
5503 and used_by_polymorphic_call.
5504 (ipa_set_param_used_by_ipa_predicates,
5505 ipa_set_param_used_by_indirect_call,
5506 ipa_set_param_used_by_polymorphic_call,
5507 ipa_is_param_used_by_ipa_predicates,
5508 ipa_is_param_used_by_indirect_call,
5509 ipa_is_param_used_by_polymorphic_call): New inline functions.
5510
5511 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5512
5513 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5514 member function.
5515 (ipa_call_context::release): Add ALL parameter.
5516 (ipa_call_context::equal_to): New member function.
5517 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5518 duplicate_form, release, equal_to and exists_p member functoins.
5519 * ipa-inline-analysis.c (node_context_cache_entry): New
5520 class.
5521 (node_context_summary): Likewise.
5522 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5523 node_context_clear): New static vars.
5524 (initialize_growth_caches): New function.
5525 (free_growth_caches): Also delete node_context_cache; output stats.
5526 (do_estimate_edge_time): Cache contexts.
5527 (reset_node_cache): New function.
5528 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5529 (inline_small_functions): Initialize growth caches.
5530 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5531 Declare.
5532 * ipa-predicate.h (inline_param_summary::equal_to): New.
5533 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5534 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5535 (ipa_agg_jump_function): Implement equal_to member function.
5536
5537 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5538
5539 * ipa-fnsummary.c (inline_read_section): Set vector size
5540 ahead of time.
5541
5542 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5543
5544 * ipa-fnsummary.c (ipa_call_context): New constructor.
5545 (estimate_node_size_and_time): Turn to ...
5546 (ipa_call_context::estimate_size_and_time): ... this one.
5547 (ipa_call_context::release): New.
5548 * ipa-fnsummary.h (ipa_call_context): New class.
5549 (estimate_node_size_and_time): Remove.
5550 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5551 do_estimate_edge_hints): Update.
5552
5553 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5554
5555 * config.in: Regenerate.
5556 * configure: Regenerate.
5557 * configure.ac: Check for mallinfo.
5558 * ggc-common.c: Include malloc.h if available;
5559 include options.h
5560 (report_heap_memory_use): New functoin.
5561 * ggc-page.c (ggc_grow): Do not print "start".
5562 * ggc.h (report_heap_memory_use): Declare.
5563 * pases.c (execute_one_pass): Report memory after IPA passes.
5564 (ipa_read_summaries_1): Likewise.
5565 (ipa_read_optimization_summaries_1): Likewise.
5566
5567 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5568
5569 * gimplify.h (omp_construct_selector_matches): Change return
5570 type to int, add a new SCORES argument.
5571 * gimplify.c (omp_construct_selector_matches): Likewise. If
5572 SCORES is non-NULL, compute scores of each construct.
5573 * omp-general.h (omp_get_context_selector): Declare.
5574 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5575 Adjust omp_construct_selector_matches callers.
5576 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5577 (omp_context_compute_score): New function.
5578 (omp_resolve_declare_variant): Compute scores and decide based on
5579 that.
5580
5581 PR bootstrap/92314
5582 * configure.ac: Don't look for omp-device-properties files from
5583 installed offloading compilers. Instead add tmake_file snippets
5584 for configured offloading targets and use files they generate.
5585 * Makefile.in (install): Don't depend on
5586 install-omp-device-properties.
5587 (install-omp-device-properties): Remove goal.
5588 * config/i386/t-omp-device: New file.
5589 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5590 * config/nvptx/t-omp-device: New file.
5591 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5592 * configure: Regenerated.
5593
5594 * omp-general.h (omp_context_selector_set_compare): Declare.
5595 * omp-general.c (omp_construct_simd_compare,
5596 omp_context_selector_props_compare, omp_context_selector_set_compare,
5597 omp_context_selector_compare): New functions.
5598 (omp_resolve_declare_variant): Prune variants that are strict subset
5599 of another variant.
5600
5601 2019-11-01 Martin Sebor <msebor@redhat.com>
5602
5603 PR middle-end/91679
5604 PR middle-end/91647
5605 PR middle-end/91463
5606 PR middle-end/92312
5607 * doc/invoke.texi (-Wzero-length-bounds): Document.
5608 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5609 instead of a hand-rolled loop to avoid PR 92323.
5610 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5611 with initializers.
5612 (vrp_prop::check_mem_ref): Handle declared struct objects.
5613 * tree.c (last_field): New function.
5614 (array_at_struct_end_p): Handle MEM_REF.
5615 (get_initializer_for): New helper.
5616 (component_ref_size): Add argument. Rename locals. Call
5617 get_initializer_for instead of fold_ctor_reference. Correct handling
5618 of flexible array members.
5619 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5620
5621 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5622
5623 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5624 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5625 UNSPEC_VSX_CVSPUXDS): Remove.
5626 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5627 (vsx_xvcvspdp_be): ... this. New. And...
5628 (vsx_xvcvspdp_le): ... this. New.
5629 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5630 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5631 (vsx_xvcv<su>xwdp_le): ... this. New.
5632 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5633 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5634 (vsx_xvcvsp<su>xds_le): ... this. New.
5635
5636 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5637
5638 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5639 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5640 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5641 UNSPEC_VSX_XVCVSPSXWS): Remove.
5642 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5643 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5644
5645 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5646
5647 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5648 (UNSPEC_VSX_XVCDPSP): Remove.
5649 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5650 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5651
5652 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5653
5654 * hooks.c (hook_tree_tree_bool_null): New.
5655 * hooks.h (hook_tree_tree_bool_null): Declare.
5656 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5657 (LANG_HOOKS_DECLS): Add it.
5658 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5659 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5660 (lower_omp_target): Handle Fortran array with descriptor in
5661 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5662
5663 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5664
5665 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5666 Assert that the type we store in abi_vector_types is its own
5667 main variant.
5668 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5669
5670 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5671
5672 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5673 from a CONST_INT address when TARGET_THUMB2.
5674
5675 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5676
5677 * config/arm/arm.md (add_not_cin): New insn.
5678 (add_not_shift_cin): Likewise.
5679
5680 2019-10-31 Martin Liska <mliska@suse.cz>
5681
5682 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5683 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5684 and compare_memory_operand.
5685
5686 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5687
5688 * configure.ac: Compute and substitute omp_device_properties and
5689 omp_device_property_deps.
5690 * Makefile.in (generated_files): Add omp-device-properties.h.
5691 (omp-general.o): Depend on omp-device-properties.h.
5692 (omp_device_properties): New make variable.
5693 (omp-device-properties.h, s-omp-device-properties-h,
5694 install-omp-device-properties): New goals.
5695 (install): Depend on install-omp-device-properties for accelerators.
5696 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5697 * target.h (enum omp_device_kind_arch_isa): New enum.
5698 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5699 documentation.
5700 * omp-general.c: Include omp-device-properties.h.
5701 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5702 colon instead of comma.
5703 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5704 functions.
5705 (omp_context_selector_matches): Implement device set arch/isa
5706 selectors, improve device set kind selector handling.
5707 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5708 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5709 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5710 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5711 ix86_omp_device_kind_arch_isa.
5712 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5713 definition from ix86_target_string to file scope.
5714 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5715 to file scope.
5716 (ix86_omp_device_kind_arch_isa): New function.
5717 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5718 isa_opts definitions to file scope.
5719 * config/i386/t-intelmic (omp-device-properties): New goal.
5720 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5721 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5722 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5723 nvptx_omp_device_kind_arch_isa.
5724 * configure: Regenerate.
5725 * doc/tm.texi: Regenerate.
5726
5727 PR middle-end/92231
5728 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5729 DECL_BUILT_IN in comment. Remove redundant ()s around return
5730 argument.
5731 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5732 before calling fndecl_built_in_p.
5733 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5734 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5735 fndecl_built_in_p on it.
5736
5737 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5738
5739 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5740
5741 2019-10-31 Martin Liska <mliska@suse.cz>
5742
5743 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5744 of cgraph_local_info and use local_info_node instead.
5745 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5746 (bfin_function_ok_for_sibcall): Likewise.
5747 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5748 (must_reload_pic_reg_p): Likewise.
5749
5750 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5751
5752 PR c++/90947
5753 * tree.h (type_initializer_zero_p): Remove.
5754 * tree.c (type_initializer_zero_p): Remove.
5755
5756 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5757
5758 * doc/invoke.texi (-Wshadow, -Wshadow=global
5759 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5760
5761 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5762
5763 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5764 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5765 and 'target exit data'.
5766
5767 2019-10-30 Martin Jambor <mjambor@suse.cz>
5768
5769 ipa/92278
5770 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5771 availability comparison.
5772
5773 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5774
5775 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5776 calls to __mspabi_mpy* functions.
5777 * config/msp430/msp430.md (mulhisi3): New define_expand.
5778 (umulhisi3): New define_expand.
5779 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5780 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5781
5782 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5783
5784 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5785 (msp430_check_plus_not_high_mem): New.
5786 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5787 might be in low memory.
5788 Indicate that a 16-bit absolute address is in lower memory.
5789
5790 2019-10-30 Martin Jambor <mjambor@suse.cz>
5791
5792 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5793 ultimate_alias_target.
5794
5795 2019-10-30 Richard Biener <rguenther@suse.de>
5796
5797 PR tree-optimization/92275
5798 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5799 Copy all loop-closed PHIs.
5800
5801 2019-10-30 Martin Liska <mliska@suse.cz>
5802
5803 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5804 const_tree as function argument.
5805 (func_checker::compare_decl): Likewise.
5806 (func_checker::operand_equal_p): Likewise.
5807 (func_checker::compare_variable_decl): Likewise.
5808 (func_checker::parse_labels): Likewise.
5809 * ipa-icf-gimple.h: Likewise.
5810
5811 2019-10-30 Martin Liska <mliska@suse.cz>
5812
5813 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5814 Do not compare alias sets. It's handled by operand_equal_p.
5815
5816 2019-10-30 Martin Liska <mliska@suse.cz>
5817
5818 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5819 initialize m_compare_polymorphic.
5820 (func_checker::compare_decl): Do not compare polymorphic types.
5821 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5822 * ipa-icf.c (sem_function::equals_private): Do not call
5823 compare_polymorphic_p.
5824
5825 2019-10-30 Martin Liska <mliska@suse.cz>
5826
5827 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5828 compare_operand.
5829 (func_checker::compare_memory_operand): Remove.
5830 (func_checker::compare_cst_or_decl): Remove.
5831 (func_checker::operand_equal_valueize): Do not handle
5832 FIELD_DECL.
5833 (func_checker::compare_gimple_call): Call compare_operand.
5834 (func_checker::compare_gimple_assign): Likewise.
5835 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5836 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5837 * ipa-icf.h (icf_handled_component_p): Remove.
5838
5839 2019-10-30 Martin Liska <mliska@suse.cz>
5840
5841 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5842 (func_checker::compare_cst_or_decl): Remove handling
5843 of FIELD_DECL.
5844 (func_checker::compare_operand): Transform to ...
5845 (func_checker::operand_equal_p): ... this.
5846 * ipa-icf-gimple.h (class func_checker): Add
5847 operand_equal_p and hash_operand.
5848 * ipa-icf.c (sem_function::equals_private): Fix
5849 pushing and popping of cfun.
5850
5851 2019-10-30 Martin Liska <mliska@suse.cz>
5852
5853 * fold-const.c (operand_equal_p): Move to ...
5854 (operand_compare::operand_equal_p): ... here.
5855 (operand_compare::verify_hash_value): New.
5856 (add_expr): Move to ...
5857 (operand_compare::hash_operand): ... here.
5858 * fold-const.h (operand_equal_p): Move to the class.
5859 (class operand_compare): New.
5860 * tree.c (add_expr): Remove.
5861
5862 2019-10-30 Martin Liska <mliska@suse.cz>
5863
5864 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5865 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5866
5867 2019-10-30 Martin Liska <mliska@suse.cz>
5868
5869 PR lto/91393
5870 PR lto/88220
5871 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5872 from a first_clone in order to get proper LTO section
5873 in LTO stream.
5874 (cgraph_node::get_untransformed_body):
5875 Use lto_get_section_data where symtab_node::order
5876 must be provided.
5877 * cgraphclones.c (cgraph_node::find_replacement):
5878 Update also symbol order.
5879 * ipa-fnsummary.c (ipa_fn_summary_read):
5880 Use new function lto_get_summary_section_data.
5881 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5882 * ipa-icf.c (sem_item_optimizer::read_summary):
5883 Likewise.
5884 * ipa-prop.c (ipa_prop_read_jump_functions):
5885 Likewise.
5886 (ipcp_read_transformation_summaries): Likewise.
5887 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5888 * lto-cgraph.c (input_node): Add also order_base.
5889 (input_varpool_node): Likewise.
5890 (input_cgraph_1): Assign the order_base.
5891 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5892 * lto-opts.c (lto_write_options): Pass new argument.
5893 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5894 (lto_get_summary_section_data): New.
5895 (lto_get_raw_section_data): Add order argument.
5896 (lto_create_simple_input_block): Likewise.
5897 * lto-section-out.c (lto_destroy_simple_output_block):
5898 Likewise.
5899 * lto-streamer-in.c (lto_input_toplevel_asms):
5900 Use lto_get_summary_section_data.
5901 (lto_input_mode_table): Likewise.
5902 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5903 (lto_output_toplevel_asms): Pass new argument.
5904 (copy_function_or_variable): Likewise.
5905 (produce_lto_section):Likewise.
5906 (produce_symtab): Likewise.
5907 (lto_write_mode_table): Likewise.
5908 (produce_asm_for_decls): Likewise.
5909 * lto-streamer.c (lto_get_section_name): Concat symbol name
5910 and symbol order.
5911 * lto-streamer.h (lto_get_section_data): Add order argument.
5912 (lto_get_summary_section_data): New.
5913 (lto_get_raw_section_data): Add order argument.
5914 (lto_get_section_name): Likewise.
5915 * varpool.c (varpool_node::get_constructor): Pass order argument.
5916
5917 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5918
5919 PR tree-optimization/92262
5920 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5921 ubase or cbase here.
5922 (remove_unused_ivs): Unshare comp before using it.
5923
5924 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5925
5926 * ipa-prop.c (update_jump_functions_after_inlining):
5927 Watch for missing summaries.
5928
5929 2019-10-30 Richard Biener <rguenther@suse.de>
5930
5931 PR tree-optimization/65930
5932 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5933 chains also allow a leading and trailing conversion.
5934 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5935 intermediate reduction chains.
5936 (vect_analyze_slp_instance): Likewise. Build a SLP
5937 node for a trailing conversion manually.
5938
5939 2019-10-30 Martin Liska <mliska@suse.cz>
5940
5941 * cgraph.c (cgraph_node::local_info): Transform to ...
5942 (cgraph_node::local_info_node): ... this.
5943 (cgraph_node::dump): Remove cgraph_local_info and
5944 put its fields directly into cgraph_node.
5945 (cgraph_node::get_availability): Likewise.
5946 (cgraph_node::make_local): Likewise.
5947 (cgraph_node::verify_node): Likewise.
5948 * cgraph.h (struct GTY): Likewise.
5949 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5950 (duplicate_thunk_for_node): Likewise.
5951 (cgraph_node::create_clone): Likewise.
5952 (cgraph_node::create_virtual_clone): Likewise.
5953 (cgraph_node::create_version_clone): Likewise.
5954 * cgraphunit.c (cgraph_node::reset): Likewise.
5955 (cgraph_node::finalize_function): Likewise.
5956 (cgraph_node::add_new_function): Likewise.
5957 (analyze_functions): Likewise.
5958 * combine.c (setup_incoming_promotions): Likewise.
5959 * config/i386/i386.c (ix86_function_regparm): Likewise.
5960 (ix86_function_sseregparm): Likewise.
5961 (init_cumulative_args): Likewise.
5962 * ipa-cp.c (determine_versionability): Likewise.
5963 (count_callers): Likewise.
5964 (set_single_call_flag): Likewise.
5965 (initialize_node_lattices): Likewise.
5966 (estimate_local_effects): Likewise.
5967 (create_specialized_node): Likewise.
5968 (identify_dead_nodes): Likewise.
5969 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5970 (ipa_fn_summary_generate): Likewise.
5971 * ipa-hsa.c (check_warn_node_versionable): Likewise.
5972 (process_hsa_functions): Likewise.
5973 * ipa-icf.c (set_local): Likewise.
5974 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5975 * ipa-inline.c (speculation_useful_p): Likewise.
5976 * ipa-profile.c (ipa_propagate_frequency): Likewise.
5977 (ipa_profile): Likewise.
5978 * ipa-split.c (split_function): Likewise.
5979 (execute_split_functions): Likewise.
5980 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5981 (ipa_sra_ipa_function_checks): Likewise.
5982 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5983 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5984 * lto-cgraph.c (lto_output_node): Likewise.
5985 (input_overwrite_node): Likewise.
5986 * multiple_target.c (expand_target_clones): Likewise.
5987 * omp-simd-clone.c (simd_clone_create): Likewise.
5988 * trans-mem.c (expand_call_tm): Likewise.
5989 (ipa_tm_mayenterirr_function): Likewise.
5990 (ipa_tm_diagnose_tm_safe): Likewise.
5991 (ipa_tm_diagnose_transaction): Likewise.
5992 (ipa_tm_create_version): Likewise.
5993 (ipa_tm_transform_calls_redirect): Likewise.
5994 (ipa_tm_execute): Likewise.
5995 * tree-inline.c (expand_call_inline): Likewise.
5996
5997 2019-10-29 Martin Liska <mliska@suse.cz>
5998
5999 * symbol-summary.h (function_summary): Pass memory location
6000 to underlaying hash_map (or vec).
6001 (V>::fast_function_summary): Likewise.
6002
6003 2019-10-29 Martin Liska <mliska@suse.cz>
6004
6005 * ggc.h (ggc_alloc_no_dtor): New function.
6006 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6007 destructor and ggc_free.
6008 (ipa_free_size_summary): Call delete instead
6009 of release.
6010 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6011 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6012 (ipa_free_all_edge_args): Call destructor and ggc_free.
6013 (ipa_free_all_node_params): Likewise.
6014 (ipcp_free_transformation_sum): Likewise.
6015 * ipa-prop.h (ipa_check_create_node_params):
6016 Call new ggc_alloc_no_dtor.
6017 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6018 (ipa_sra_analysis): Call destructor and ggc_free.
6019 Replace release with delete operator.
6020 * symbol-summary.h (release): Remove ..
6021 (V>::~fast_function_summary): and move logic here.
6022 Likewise for other classes.
6023
6024 2019-10-29 Richard Biener <rguenther@suse.de>
6025
6026 PR tree-optimization/92260
6027 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6028 lane-reducing ops.
6029
6030 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6031
6032 PR tree-optimization/88915
6033 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6034 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6035 and make the valueize function pointer also take a void pointer.
6036 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6037 around vn_valueize, to call it without a context.
6038 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6039 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6040 (~_loop_vec_info): Release epilogue_vinfos.
6041 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6042 number of iterations of epilogue.
6043 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6044 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6045 versioning threshold needed for main loop.
6046 (vect_analyze_loop): Likewise.
6047 (find_in_mapping): New helper function.
6048 (update_epilogue_loop_vinfo): New function.
6049 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6050 on main loop and call update_epilogue_loop_vinfo to update it.
6051 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6052 stmts on loop preheader edge.
6053 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6054 we decided to vectorize epilogues. Update epilogues NITERS and
6055 construct ADVANCE to update epilogues data references where needed.
6056 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6057 (vect_do_peeling, vect_update_inits_of_drs,
6058 determine_peel_for_niter, vect_analyze_loop): Add or update
6059 declarations.
6060 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6061 created loop_vec_info's for epilogues when available. Otherwise analyse
6062 epilogue separately.
6063
6064 2019-10-29 Richard Biener <rguenther@suse.de>
6065
6066 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6067 example.
6068
6069 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6070
6071 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6072 index for the COND_EXPR from stmt_info rather than reduc_info.
6073
6074 2019-10-29 Richard Biener <rguenther@suse.de>
6075
6076 PR tree-optimization/65930
6077 * tree-vect-loop.c (check_reduction_path): Relax single-use
6078 check allowing out-of-loop uses.
6079 (vect_is_simple_reduction): SLP reduction chains cannot have
6080 intermediate stmts used outside of the loop.
6081 (vect_create_epilog_for_reduction): The adjustment might need
6082 to be converted.
6083 (vectorizable_reduction): Annotate live stmts of the reduction
6084 chain with STMT_VINFO_REDUC_DEF.
6085 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6086
6087 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6088
6089 * calls.c (pass_by_reference): Leave the target to decide whether
6090 POLY_INT_CST-sized arguments should be passed by value or reference,
6091 rather than forcing them to be passed by reference.
6092 (must_pass_in_stack_var_size): Likewise.
6093 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6094 V31_REGNUM to P15_REGNUM.
6095 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6096 Take an extra "silent_p" parameter, defaulting to false.
6097 (aarch64_sve::svbool_type_p): Declare.
6098 (aarch64_sve::nvectors_if_data_type): Likewise.
6099 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6100 (aarch64_frame::reg_offset): Turn into poly_int64s.
6101 (aarch64_frame::save_regs_size): Likewise.
6102 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6103 (aarch64_frame::sve_callee_adjust): Likewise.
6104 (aarch64_frame::spare_reg_reg): Likewise.
6105 (ARM_PCS_SVE): New arm_pcs value.
6106 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6107 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6108 (CUMULATIVE_ARGS::silent_p): Likewise.
6109 (BITS_PER_SVE_PRED): New macro.
6110 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6111 function. Reject aarch64_vector_pcs attributes on SVE functions.
6112 (aarch64_attribute_table): Use the above handler.
6113 (aarch64_sve_abi): New function.
6114 (aarch64_sve_argument_p): Likewise.
6115 (aarch64_returns_value_in_sve_regs_p): Likewise.
6116 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6117 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6118 descriptor for them.
6119 (aarch64_simd_decl_p): Delete.
6120 (aarch64_emit_cfi_for_reg_p): New function.
6121 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6122 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6123 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6124 as partly clobbered for the SVE PCS.
6125 (aarch64_function_ok_for_sibcall): Check whether the two functions
6126 use the same ABI, rather than checking specifically for whether
6127 they're aarch64_vector_pcs functions.
6128 (aarch64_pass_by_reference): Raise an error for attempts to pass
6129 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6130 if there are not enough free registers left, or if the argument is
6131 variadic.
6132 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6133 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6134 tuples in memory.
6135 (aarch64_layout_arg): Take a function_arg_info rather than
6136 individual properties. Handle SVE predicates, vectors and tuples.
6137 Raise an error if they are passed to unprototyped functions.
6138 (aarch64_function_arg): If the silent_p flag is set, suppress the
6139 usual error about using float registers without TARGET_FLOAT.
6140 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6141 it in the cumulative_args structure. Initialize aapcs_nprn and
6142 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6143 error about using float registers without TARGET_FLOAT.
6144 If the silent_p flag is not set, also raise an error about
6145 using SVE functions when SVE is disabled.
6146 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6147 and call it for SVE functions too. Update aapcs_nprn similarly
6148 to the other register counts.
6149 (aarch64_layout_frame): If a big-endian function needs to save
6150 and restore Z8-Z15, search for a spare predicate that it can use.
6151 Store SVE predicates at the bottom of the register save area,
6152 followed by SVE vectors, then followed by the normal slots.
6153 Keep pointing the hard frame pointer at the base of the normal slots,
6154 above the SVE vectors. Update the various frame creation and
6155 tear-down strategies for the new layout, initializing the new
6156 sve_callee_adjust field. Add an additional layout for frames
6157 whose saved registers are all SVE registers.
6158 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6159 (aarch64_return_address_signing_enabled): Likewise.
6160 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6161 aarch64_reg_save_mode.
6162 (aarch64_adjust_sve_callee_save_base): New function.
6163 (aarch64_add_cfa_expression): Move earlier in file. Take the
6164 saved register as an rtx rather than a register number and use
6165 its mode for the MEM slot.
6166 (aarch64_save_callee_saves): Remove the mode argument and instead
6167 use aarch64_reg_save_mode to get the mode of each save slot.
6168 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6169 offsets. Allow GP offsets to be saved at a VL-based offset from
6170 the stack, handling this case using the frame pointer if available
6171 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6172 big-endian SVE functions; use normal moves for other SVE saves.
6173 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6174 returns true. Add explicit CFA notes when not storing via the
6175 stack pointer. Do not try to pair SVE saves.
6176 (aarch64_restore_callee_saves): Cope with poly_int64 register
6177 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6178 use normal moves for other SVE restores. Only add CFA restore notes
6179 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6180 SVE restores.
6181 (aarch64_get_separate_components): Always keep the first SVE save
6182 in the prologue if we need to use it as a stack probe. Don't allow
6183 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6184 Likewise the spare predicate register that they need. Update the
6185 offset calculation to account for the SVE save area. Use the
6186 appropriate range check for SVE LDR and STR instructions.
6187 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6188 (aarch64_process_components): Likewise. Update the offset
6189 calculation to account for the SVE save area. Only mark the
6190 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6191 Do not try to pair SVE saves.
6192 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6193 reg_offsets. When handling the final allocation, expect the
6194 first SVE register save to be part of the initial allocation
6195 and for it to act as a probe at SP. Account for the SVE callee
6196 save area in the dump information.
6197 (aarch64_expand_prologue): Update the frame diagram. Fold the
6198 SVE callee allocation into the initial allocation if stack clash
6199 protection is enabled. Use new variables to track the offset
6200 of the frame chain (and hard frame pointer) from the current
6201 stack pointer, and likewise the offset of the bottom of the
6202 register save area. Update calls to aarch64_save_callee_saves
6203 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6204 saving the FP&SIMD registers. Save the predicate registers.
6205 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6206 into account when setting the stack pointer from the frame pointer,
6207 and when deciding whether we can inherit the initial adjustment
6208 amount from the prologue. Restore the predicate registers after
6209 the vector registers, then apply sve_callee_adjust, then restore
6210 the general registers.
6211 (aarch64_secondary_reload): Don't use secondary SVE reloads
6212 for VNx16BImode.
6213 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6214 (aarch64_short_vector_p): Return false for SVE types.
6215 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6216 at the start of the function. Return false for SVE types.
6217 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6218 functions too.
6219 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6220 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6221 to big-endian targets for bytewise moves.
6222 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6223
6224 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6225 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6226 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6227
6228 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6229 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6230 aarch64-sve-builtins-base.o to extra_objs. Add
6231 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6232 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6233 (aarch64-sve-builtins-shapes.o): Likewise.
6234 (aarch64-sve-builtins-base.o): New rules.
6235 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6236 (aarch64_resolve_overloaded_builtin): Likewise.
6237 (aarch64_check_builtin_call): Likewise.
6238 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6239 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6240 pragma.
6241 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6242 (aarch64_svprfop): New enum.
6243 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6244 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6245 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6246 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6247 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6248 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6249 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6250 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6251 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6252 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6253 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6254 (aarch64_sve::mangle_builtin_type): Likewise.
6255 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6256 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6257 (aarch64_sve::expand_builtin): Likewise.
6258 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6259 (aarch64_sve_int_mode): Likewise.
6260 (aarch64_ptrue_all_mode): New function.
6261 (aarch64_convert_sve_data_to_pred): Make public.
6262 (svprfop_token): New function.
6263 (aarch64_output_sve_prefetch): Likewise.
6264 (aarch64_fold_sve_cnt_pat): Likewise.
6265 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6266 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6267 instead of gen_while_ult.
6268 (aarch64_replace_reg_mode): Make public.
6269 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6270 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6271 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6272 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6273 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6274 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6275 (aarch64_sve_ptrue_svpattern_p): Likewise.
6276 (aarch64_sve_pred_valid_immediate): Check
6277 aarch64_sve_ptrue_svpattern_p.
6278 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6279 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6280 functions.
6281 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6282 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6283 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6284 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6285 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6286 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6287 New unspecs.
6288 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6289 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6290 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6291 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6292 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6293 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6294 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6295 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6296 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6297 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6298 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6299 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6300 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6301 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6302 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6303 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6304 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6305 (Vesize): Handle partial vector modes.
6306 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6307 mode attributes.
6308 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6309 iterators.
6310 (s, paired_extend, inc_dec): New code attributes.
6311 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6312 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6313 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6314 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6315 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6316 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6317 UNSPEC_COND_FMULX.
6318 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6319 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6320 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6321 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6322 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6323 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6324 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6325 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6326 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6327 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6328 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6329 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6330 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6331 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6332 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6333 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6334 UNSPEC_COND_FSCALE.
6335 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6336 (binqops_op, binqops_op_rev, last_op): New int attributes.
6337 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6338 (fn, ab): New int attributes.
6339 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6340 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6341 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6342 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6343 UNSPEC_RBIT.
6344 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6345 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6346 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6347 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6348 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6349 UNSPEC_COND_FMULX.
6350 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6351 (brk_reg_con, brk_reg_opno): New int attributes.
6352 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6353 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6354 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6355 UNSPEC_COND_FMIN.
6356 (max_elem_bits): New int attribute.
6357 (min_elem_bits): Handle UNSPEC_RBIT.
6358 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6359 TRUNCATE as well as SUBREG.
6360 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6361 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6362 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6363 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6364 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6365 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6366 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6367 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6368 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6369 (aarch64_gather_scale_operand_h): New predicates.
6370 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6371 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6372 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6373 (*aarch64_sve_reinterpret<mode>): Allow any source register
6374 instead of requiring an exact match.
6375 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6376 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6377 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6378 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6379 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6380 (aarch64_update_ffrt): New patterns.
6381 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6382 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6383 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6384 (@aarch64_ld<fn>f1<mode>): New patterns.
6385 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6386 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6387 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6388 (@aarch64_ldnt1<mode>): New patterns.
6389 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6390 the scalar part of the address.
6391 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6392 scalar part of the addresse and add an alternative for handling
6393 nonzero offsets.
6394 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6395 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6396 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6397 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6398 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6399 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6400 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6401 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6402 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6403 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6404 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6405 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6406 (@aarch64_sve_prefetch<mode>): New patterns.
6407 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6408 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6409 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6410 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6411 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6412 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6413 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6414 (@aarch64_stnt1<mode>): New patterns.
6415 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6416 the scalar part of the address.
6417 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6418 the scalar part of the addresse and add an alternative for handling
6419 nonzero offsets.
6420 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6421 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6422 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6423 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6424 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6425 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6426 New patterns.
6427 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6428 (extract_last_<mode>): Generalize to...
6429 (@extract_<LAST:last_op>_<mode>): ...this.
6430 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6431 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6432 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6433 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6434 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6435 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6436 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6437 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6438 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6439 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6440 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6441 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6442 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6443 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6444 (*aarch64_adr_uxtw_unspec): Likewise.
6445 (*aarch64_adr_uxtw): Rename to...
6446 (*aarch64_adr_uxtw_and): ...this.
6447 (@aarch64_adr<mode>_shift): New expander.
6448 (*aarch64_adr_shift_sxtw): New pattern.
6449 (aarch64_<su>abd<mode>_3): Rename to...
6450 (@aarch64_pred_<su>abd<mode>): ...this.
6451 (<su>abd<mode>_3): Update accordingly.
6452 (@aarch64_cond_<su>abd<mode>): New expander.
6453 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6454 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6455 (*<su>mul<mode>3_highpart): Rename to...
6456 (@aarch64_pred_<optab><mode>): ...this.
6457 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6458 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6459 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6460 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6461 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6462 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6463 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6464 (*v<ASHIFT:optab><mode>3): Rename to...
6465 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6466 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6467 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6468 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6469 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6470 (@cond_asrd<mode>): New expander.
6471 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6472 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6473 (*sdiv_pow2<mode>3): Delete.
6474 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6475 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6476 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6477 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6478 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6479 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6480 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6481 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6482 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6483 (*add<SVE_F:mode>3): Rename to...
6484 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6485 for SVE_STRICT_GP.
6486 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6487 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6488 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6489 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6490 (*sub<SVE_F:mode>3): Rename to...
6491 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6492 for SVE_STRICT_GP.
6493 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6494 (*fabd<SVE_F:mode>3): Rename to...
6495 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6496 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6497 (*mul<SVE_F:mode>3): Rename to...
6498 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6499 for SVE_STRICT_GP.
6500 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6501 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6502 to...
6503 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6504 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6505 (*<nlogical><PRED_ALL:mode>3): Rename to...
6506 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6507 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6508 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6509 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6510 (aarch64_pred_<logical_nn><mode>_z): ...this.
6511 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6512 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6513 (*fma<SVE_I:mode>4): Rename to...
6514 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6515 (*fnma<SVE_I:mode>4): Rename to...
6516 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6517 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6518 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6519 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6520 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6521 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6522 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6523 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6524 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6525 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6526 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6527 (@aarch64_sve_tmad<mode>): Likewise.
6528 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6529 (*aarch64_sel_dup<mode>): Rename to...
6530 (@aarch64_sel_dup<mode>): ...this.
6531 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6532 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6533 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6534 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6535 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6536 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6537 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6538 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6539 (*fcm<cmp_op><mode>): Rename to...
6540 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6541 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6542 (*fcmuo<mode>): Rename to...
6543 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6544 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6545 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6546 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6547 (fold_extract_last_<mode>): Generalize to...
6548 (@fold_extract_<last_op>_<mode>): ...this.
6549 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6550 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6551 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6552 DImode result explicit.
6553 (reduc_plus_scal_<mode>): Update accordingly.
6554 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6555 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6556 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6557 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6558 (*aarch64_sve_tbl<mode>): Rename to...
6559 (@aarch64_sve_tbl<mode>): ...this.
6560 (@aarch64_sve_compact<mode>): New pattern.
6561 (*aarch64_sve_dup_lane<mode>): Rename to...
6562 (@aarch64_sve_dup_lane<mode>): ...this.
6563 (@aarch64_sve_dupq_lane<mode>): New pattern.
6564 (@aarch64_sve_splice<mode>): Likewise.
6565 (aarch64_sve_<perm_insn><mode>): Rename to...
6566 (@aarch64_sve_<perm_insn><mode>): ...this.
6567 (*aarch64_sve_ext<mode>): Rename to...
6568 (@aarch64_sve_ext<mode>): ...this.
6569 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6570 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6571 to...
6572 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6573 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6574 Rename to...
6575 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6576 ...this.
6577 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6578 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6579 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6580 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6581 to...
6582 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6583 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6584 a "@" marker.
6585 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6586 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6587 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6588 pattern.
6589 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6590 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6591 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6592 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6593 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6594 "@" marker.
6595 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6596 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6597 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6598 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6599 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6600 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6601 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6602 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6603 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6604 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6605 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6606 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6607 (aarch64_sve_cnt_pat): Likewise.
6608 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6609 (*aarch64_sve_incsi_pat): Likewise.
6610 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6611 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6612 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6613 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6614 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6615 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6616 (*aarch64_sve_decsi_pat): Likewise.
6617 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6618 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6619 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6620 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6621 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6622 (@aarch64_pred_cntp<mode>): Likewise.
6623 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6624 New expander.
6625 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6626 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6627 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6628 New expander.
6629 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6630 New pattern.
6631 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6632 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6633 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6634 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6635 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6636 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6637 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6638 New expander.
6639 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6640 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6641 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6642 New expander.
6643 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6644 New pattern.
6645 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6646 expander.
6647 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6648 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6649 expander.
6650 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6651 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6652 expander.
6653 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6654 * config/aarch64/arm_sve.h: New file.
6655 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6656 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6657 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6658 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6659 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6660 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6661 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6662 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6663 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6664
6665 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6666
6667 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6668 New pattern.
6669 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6670 SVE modes.
6671
6672 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6673
6674 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6675 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6676 FFRT_REGNUM + 1.
6677 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6678 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6679 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6680 (aarch64_hard_regno_nregs): Handle the new register classes.
6681 (aarch64_hard_regno_mode_ok): Likewise.
6682 (aarch64_regno_regclass): Likewise.
6683 (aarch64_class_max_nregs): Likewise.
6684 (aarch64_register_move_cost): Likewise.
6685 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6686 as general register_operands.
6687
6688 2019-10-29 Martin Liska <mliska@suse.cz>
6689
6690 * ggc-common.c: One can't subtract unsigned types
6691 in compare function.
6692
6693 2019-10-29 Martin Liska <mliska@suse.cz>
6694
6695 * cgraphunit.c (symbol_table::compile): Pass
6696 title as dump_memory_report argument.
6697 * toplev.c (dump_memory_report): New argument.
6698 (finalize): Pass new argument.
6699 * toplev.h (dump_memory_report): Add argument.
6700
6701 2019-10-29 Martin Liska <mliska@suse.cz>
6702
6703 * ggc-common.c: Move Leak to the first column.
6704
6705 2019-10-29 Martin Liska <mliska@suse.cz>
6706
6707 * cgraphunit.c (symbol_table::compile): Remove argument
6708 for dump_memory_report.
6709 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6710 (compare_final): Remove in order to make report
6711 better readable.
6712 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6713 * mem-stats.h (mem_alloc_description::get_list):
6714 Do not pass cmp.
6715 (mem_alloc_description::dump): Likewise here.
6716 * toplev.c (dump_memory_report): Remove final
6717 argument.
6718 (finalize): Likewise.
6719 * toplev.h (dump_memory_report): Remove argument.
6720
6721 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6722
6723 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6724 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6725 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6726 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6727 accept "const".
6728
6729 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6730
6731 * coretypes.h (string_int_pair): New typedef.
6732 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6733 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6734 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6735
6736 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6737
6738 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6739 (simulate_builtin_function_decl): Declare.
6740 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6741 (LANG_HOOKS_INITIALIZER): Include it.
6742 * langhooks.c (add_builtin_function_common): Rename to...
6743 (build_builtin_function): ...this. Add a location parameter and use
6744 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6745 the decl instead.
6746 (add_builtin_function): Update accordingly, passing the returned
6747 decl to the lang hook.
6748 (add_builtin_function_ext_scope): Likewise
6749 (simulate_builtin_function_decl): New function.
6750
6751 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6752
6753 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6754 example, use actual names of supported offload targets.
6755
6756 PR target/92258
6757 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6758
6759 2019-10-28 Martin Sebor <msebor@redhat.com>
6760
6761 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6762 (handle_store): Pass argument to get_addr_stridx.
6763
6764 2019-10-28 Martin Sebor <msebor@redhat.com>
6765
6766 PR tree-optimization/92226
6767 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6768 the offset is in the open range outlined by SI's length.
6769
6770 2019-10-28 Martin Sebor <msebor@redhat.com>
6771
6772 PR c/66970
6773 * doc/cpp.texi (__has_builtin): Document.
6774 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6775
6776 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6777
6778 PR target/82981
6779 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6780 doubleword and low doubleword result of multiplication on
6781 MIPS64R6.
6782
6783 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6784 pure qualifier to the built-in.
6785 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6786 built-ins.
6787 (struct mips_builtin_description): Add is_pure flag.
6788 (mips_init_builtins): Mark built-in as pure if the flag in the
6789 corresponding mips_builtin_description struct is set.
6790
6791 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6792 alternative which covers the floating-point input value. Also
6793 forbid the split of insert.d pattern for floating-point values.
6794
6795 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6796
6797 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6798 * config/riscv/riscv-sr.c: New file.
6799 * config/riscv/riscv.c (riscv_reorg): New function.
6800 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6801 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6802 (riscv_remove_unneeded_save_restore_calls): Declare.
6803 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6804
6805 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6806
6807 PR tree-optimization/92163
6808 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6809 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6810 before calling bitmap_set_bit.
6811 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6812 delete_dead_or_redundant_assignment.
6813 (dse_dom_walker::dse_optimize_stmt): Likewise.
6814 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6815
6816 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6817
6818 PR middle-end/91272
6819 * tree-vect-stmts.c (vectorizable_condition): Support
6820 EXTRACT_LAST_REDUCTION with fully-masked loops.
6821
6822 2019-10-28 Richard Biener <rguenther@suse.de>
6823
6824 PR tree-optimization/92252
6825 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6826 STMT_VINFO_REDUC_IDX when swapping operands.
6827
6828 2019-10-28 Richard Biener <rguenther@suse.de>
6829
6830 PR tree-optimization/92241
6831 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6832 we failed to update the reduction index do not use the pattern
6833 stmts for the reduction chain.
6834 (vectorizable_reduction): When the reduction chain is corrupt,
6835 fail.
6836 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6837 fail to update the reduction chain.
6838
6839 2019-10-28 Richard Biener <rguenther@suse.de>
6840
6841 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6842 STMT_VINFO_REDUC_IDX from the actual stmt.
6843 (vect_transform_reduction): Likewise.
6844 (vectorizable_reduction): Compute the reduction chain length,
6845 do not recompute the reduction operand index. Remove no longer
6846 necessary restriction for condition reduction chains.
6847
6848 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6849
6850 PR target/92225
6851 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6852 condition for V2DImode.
6853
6854 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6855
6856 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6857 Remove %k operand modifier.
6858 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6859
6860 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6861
6862 PR rtl-optimization/92007
6863 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6864 call it after reload if hot/cold partitioning has been done.
6865 (class pass_postreload_jump): Rename to
6866 pass_jump_after_combine.
6867 (make_pass_postreload_jump): Rename to
6868 make_pass_jump_after_combine.
6869 * passes.def(pass_postreload_jump): Move before reload, rename
6870 to pass_jump_after_combine.
6871 * tree-pass.h (make_pass_postreload_jump): Rename to
6872 make_pass_jump_after_combine.
6873
6874 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6875
6876 PR ipa/92242
6877 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6878 for missing EDGE_REF
6879 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6880
6881 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6882
6883 PR tree-optimization/88760
6884 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6885 Enable -funroll-loops for -O2 and above.
6886 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6887 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6888 do not turn on web and rngreg implicitly, if the unroller is not
6889 explicitly enabled.
6890
6891 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6892
6893 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6894 jump functions.
6895
6896 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6897
6898 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6899 * cgraph.h (cgraph_node::rtl_info): Likewise.
6900
6901 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6902
6903 * ipa-cp.c (propagate_constants_across_call): If args are not available
6904 just drop everything to varying.
6905 (find_aggregate_values_for_callers_subset): Watch for missing
6906 edge summary.
6907 (find_more_scalar_values_for_callers_subs): Likewise.
6908 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6909 update_jump_functions_after_inlining, propagate_controlled_uses):
6910 Watch for missing summaries.
6911 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6912 is finished.
6913 (ipa_write_node_info): Watch for missing summaries.
6914 (ipa_read_edge_info): Create new ref.
6915 (ipa_edge_args_sum_t): Add remove.
6916 (IPA_EDGE_REF_GET_CREATE): New macro.
6917 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6918 edge summary.
6919 (remap_edge_change_prob): Likewise.
6920
6921 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6922
6923 * ipa-inline-transform.c (inline_call): update function summaries
6924 after expanidng thunk.
6925
6926 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6927
6928 * ipa-icf.c (sem_function::merge): Update function summaries.
6929 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6930
6931 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6932
6933 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6934 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6935 operand already has scalar mode.
6936 (iptr): Remove SF/DF.
6937
6938 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6939
6940 PR target/91289
6941 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6942 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6943 this.
6944
6945 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6946
6947 * config/i386/sse.md
6948 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6949 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6950 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6951 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6952 <sse>_vmmaskcmp<mode>3):
6953 Change predicates from vector_operand to nonimmediate_operand,
6954 constraints xBm to xm, since scalar operations don't need
6955 memory address alignment.
6956 (avx512f_vmcmp<mode>3<round_saeonly_name>,
6957 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6958 round_saeonly_nimm_predicate with
6959 round_saeonly_nimm_scalar_predicate.
6960 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6961 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6962 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6963 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6964 avx512f_vmfmadd_<mode>_mask3<round_name>,
6965 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6966 *avx512f_vmfmsub_<mode>_mask<round_name>,
6967 avx512f_vmfmsub_<mode>_mask3<round_name>,
6968 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6969 *avx512f_vmfnmadd_<mode>_mask<round_name>,
6970 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6971 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6972 *avx512f_vmfnmsub_<mode>_mask<round_name>,
6973 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6974 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6975 cvtusi2<ssescalarmodesuffix>32<round_name>,
6976 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6977 round_nimm_predicate with round_nimm_scalr_predicate.
6978 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6979 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6980 avx512er_vmrcp28<mode><round_saeonly_name>,
6981 avx512er_vmrsqrt28<mode><round_saeonly_name>,
6982 ): Replace round_saeonly_nimm_predicate with
6983 round_saeonly_nimm_scalar_predicate.
6984 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6985 vector_operand with nonimmediate_operand.
6986 * config/i386/subst.md (round_scalar_nimm_predicate,
6987 round_saeonly_scalar_nimm_predicate): Replace
6988 vector_operand with nonimmediate_operand.
6989
6990 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6991
6992 PR target/89071
6993 * config/i386/i386.md (*rcpsf2_sse): Add
6994 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6995 (*rsqrtsf2_sse): Ditto.
6996 (*sqrt<mode>2_sse): Ditto.
6997 (sse4_1_round<mode>2): separate constraint vm, add
6998 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6999 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7000 by pass rpad.
7001 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7002 Ditto.
7003 (*sse_vmrsqrtv4sf2): Ditto.
7004 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7005 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7006 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7007 <iptr> pointer size modifier since vround support memory operand.
7008
7009 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7010
7011 PR target/85969
7012 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7013 static function.
7014
7015 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7016 Tobias Burnus <tobias@codesourcery.com>
7017
7018 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7019 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7020 common block decls.
7021
7022 2019-10-25 Richard Biener <rguenther@suse.de>
7023
7024 PR tree-optimization/92222
7025 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7026 (_slp_oprnd_info::second_pattern): Likewise.
7027 (_slp_oprnd_info::any_pattern): New.
7028 (vect_create_oprnd_info): Adjust.
7029 (vect_get_and_check_slp_defs): Compute whether any stmt is
7030 in a pattern.
7031 (vect_build_slp_tree_2): Avoid building up a node from scalars
7032 if any of the operand defs, not just the first, is in a pattern.
7033
7034 2019-10-25 Richard Biener <rguenther@suse.de>
7035
7036 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7037 swapping if we actually have to modify the IL on a shared stmt.
7038 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7039 because we no longer modify the IL.
7040
7041 2019-10-25 Martin Liska <mliska@suse.cz>
7042
7043 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7044
7045 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7046
7047 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7048 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7049 handled by vect_transform_reduction. Allow fully-masked loops
7050 to be used with reduction chains.
7051 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7052 operations in fully-masked loops.
7053 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7054 operations in fully-masked loops.
7055
7056 2019-10-25 Richard Biener <rguenther@suse.de>
7057
7058 * tree-vect-loop.c (vectorizable_reduction): Verify
7059 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7060 correctly.
7061 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7062 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7063 stmts.
7064
7065 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7066
7067 * gimplify.h (omp_construct_selector_matches): Declare.
7068 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7069 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7070 called function if needed for flag_openmp.
7071 (gimplify_scan_omp_clauses): Set ctx->code.
7072 (omp_construct_selector_matches): New function.
7073 * omp-general.h (omp_constructor_traits_to_codes,
7074 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7075 * omp-general.c (omp_constructor_traits_to_codes,
7076 omp_context_selector_matches, omp_resolve_declare_variant): New
7077 functions.
7078
7079 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7080 literal.
7081 * config/rx/rx.c (rx_print_operand): Likewise.
7082 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7083 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7084 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7085 Likewise.
7086 * genemit.c (emit_c_code): Likewise.
7087 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7088
7089 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7090
7091 * symbols-summary.h (fast_function_summary<T *, V>::release,
7092 fast_call_summary<T *, V>::release): Free m_vector.
7093
7094 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7095
7096 * cgraphunit.c (symbol_table::process_new_functions): Call
7097 ipa_free_size_summary.
7098 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7099 (devirtualization_time_bonus): Update.
7100 (ipcp_propagate_stage): Update.
7101 * ipa-fnsummary.c (ipa_size_summaries): New.
7102 (ipa_fn_summary_alloc): Alloc size summary.
7103 (dump_ipa_call_summary): Update.
7104 (ipa_dump_fn_summary): Update.
7105 (analyze_function_body): Update.
7106 (compute_fn_summary): Likewise.
7107 (ipa_get_stack_frame_offset): New function.
7108 (inline_update_callee_summaries): Do not update frame offsets.
7109 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7110 remove call and function summary.
7111 (ipa_update_overall_fn_summary): Update.
7112 (inline_read_section): Update.
7113 (ipa_fn_summary_write): Update.
7114 (ipa_free_fn_summary): Do not remove summaries.
7115 (ipa_free_size_summary): New.
7116 (release summary pass): Also run at WPA.
7117 * ipa-fnsummary.h (ipa_size_summary): Declare.
7118 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7119 estimated_self_stack_size.
7120 (ipa_size_summary_t): New type.
7121 (ipa_size_summaries): Declare.
7122 (ipa_free_size_summary): Declare.
7123 (ipa_get_stack_frame_offset): Declare.
7124 * ipa-icf.c (sem_function::merge): Update.
7125 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7126 (estimate_growth): Update.
7127 (growth_likely_positive): Update.
7128 (clone_inlined_nodes): Update.
7129 (inline_call): Update.
7130 * ipa-inline.c (caller_growth_limits): Update.
7131 (edge_badness): Update.
7132 (recursive_inlining): Update.
7133 (inline_small_functions): Update.
7134 (inline_to_all_callers_1): Update.
7135 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7136
7137 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7138
7139 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7140 (uavg<mode>3_ceil): ... This.
7141 (altivec_vavgs<VI_char>): Rename to...
7142 (avg<mode>3_ceil): ... This.
7143 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7144 VAVGUW, VAVGSW): Adjust.
7145
7146 2019-10-24 Nathan Sidwell <nathan@acm.org>
7147
7148 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7149
7150 2019-10-24 Martin Liska <mliska@suse.cz>
7151
7152 * symbol-summary.h (gt_pch_nx): Mark all functions
7153 with gcc_unreachable as we do not expect to be called.
7154
7155 2019-10-24 Richard Biener <rguenther@suse.de>
7156
7157 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7158 chains try harder with operand swapping and instead of
7159 putting a shifted chain into the reduction operands put
7160 a repetition of the final reduction op there as if we'd
7161 reassociate the expression.
7162
7163 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7164
7165 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7166 statics_not_read and statics_not_written to statics_read and
7167 statics_written respectively.
7168 (no_module_statics): New static var.
7169 (ipa_reference_get_not_read_global): Rename to ...
7170 (ipa_reference_get_read_global): ... this.
7171 (ipa_reference_get_not_written_global): Rename to ...
7172 (ipa_reference_get_written_global): ... this.
7173 (dump_static_vars_set_to_file): Dump no_module_statics.
7174 (copy_static_var_set): Add for propagation parameter.
7175 (ipa_init): Initialize no_module_statics.
7176 (ipa_ref_opt_summary_t::duplicate): Update.
7177 (ipa_ref_opt_summary_t::remove): Update.
7178 (propagate): Update.
7179 (write_node_summary_p): Look correctly for bitmap differences.
7180 (ipa_reference_write_optimization_summary): Update.
7181 (ipa_reference_read_optimization_summary): Update.
7182 * ipa-reference.h
7183 (ipa_reference_get_not_read_global): Rename to ...
7184 (ipa_reference_get_read_global): ... this.
7185 (ipa_reference_get_not_written_global): Rename to ...
7186 (ipa_reference_get_written_global): ... this.
7187 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7188 (call_may_clobber_ref_p_1): Update.
7189
7190 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7191
7192 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7193 and add comment.
7194 (msp430_hard_regno_nregs_with_padding): Remove.
7195
7196 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7197
7198 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7199 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7200 shift amount is between 1 and 4.
7201 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7202 is between 1 and 4.
7203
7204 2019-10-24 Richard Biener <rguenther@suse.de>
7205
7206 PR tree-optimization/92205
7207 * tree-vect-loop.c (vectorizable_reduction): Restrict
7208 search for alternate vectype_in to lane-reducing patterns
7209 we support.
7210
7211 2019-10-24 Richard Biener <rguenther@suse.de>
7212
7213 PR tree-optimization/92203
7214 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7215 Skip eliminating conversion stmts inserted by insertion.
7216
7217 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7218
7219 * config/s390/s390.c (s390_get_thread_pointer): Use
7220 gen_get_thread_pointer.
7221 (s390_expand_split_stack_prologue): Likewise.
7222 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7223 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7224 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7225 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7226 parameterized name.
7227
7228 2019-10-24 Richard Biener <rguenther@suse.de>
7229
7230 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7231 SLP discovery fails try to handle the reduction as part
7232 of SLP reduction discovery.
7233
7234 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7235
7236 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7237 declaration.
7238 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7239 attribute if it exists, rather than the insn size. If we use the
7240 insn size, adjust the size to remove the extra size that prefixed
7241 instructions take.
7242 (rs6000_adjust_insn_length): New function.
7243 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7244 update the instruction sized if prefixed instructions are used.
7245 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7246 (non_prefixed_length attribute): Delete.
7247 (num_insns attribute): New insn attribute to return the number of
7248 instructions.
7249 (max_prefixed_insns attribute): New insn attribute to return the
7250 maximum number of prefixed instructions in an insn.
7251 (length attribute): Do not adjust for prefix instructions here,
7252 punt to ADJUST_INSN_LENGTH.
7253 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7254 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7255 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7256 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7257 max_prefixed_insns and num_insns.
7258
7259 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7260 (movtd_64bit_nodm): Reformat.
7261 (mov<mode>_32bit): Reformat.
7262 (mov<mode>_softfloat): Reformat.
7263 (FMOVE128_GPR splitter): Reformat.
7264 (DIFD splitter): Reformat.
7265 (TI2 splitter): Reformat.
7266 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7267 bits of the offset for the memory address are non-zero, use PLWA
7268 if prefixed instructions are available.
7269
7270 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7271
7272 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7273
7274 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7275
7276 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7277 previous patch.
7278
7279 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7280
7281 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7282 (cmp_symbol_files): New.
7283 (lto_output): Copy sections in file order.
7284 * lto-streamer.h (lto_file_decl_data): Add field order.
7285
7286 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7287
7288 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7289 * ipa-reference.c (reference_vars_map_t): new type.
7290 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7291 (ipa_reference_var_uid): Implement.
7292 (varpool_node_hooks): New static var.
7293 (varpool_removal_hook): New function.
7294 (is_improper): Do not check bitmap for id==-1
7295 (get_static_name): Update.
7296 (ipa_init): Initialize new datastructures.
7297 (analyze_function): Do not recompute ids.
7298 (propagate): Free reference_vars_to_consider.
7299 (stream_out_bitmap): Update.
7300 (ipa_reference_read_optimization_summary): Update.
7301
7302 2019-10-23 qing zhao <qing.zhao@oracle.com>
7303
7304 PR gcov-profile/91971
7305 * coverage.c (coverage_init): Mangle the full path of filename when
7306 filename is a absolute path.
7307
7308 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7309
7310 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7311 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7312 (msp430_has_hwmult): New.
7313 (msp430_output_labelref):
7314 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7315 * config/msp430/msp430.md (mulhisi3): Likewise.
7316 (umulhisi3): Likewise.
7317 (mulsidi3): Likewise.
7318 (umulsidi3): Likewise.
7319
7320 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7321
7322 PR ipa/92074
7323 * params.def (inline-heuristics-hint-percent): Set to 600.
7324
7325 2019-10-23 Richard Biener <rguenther@suse.de>
7326
7327 PR tree-optimization/65930
7328 * tree-vect-loop.c (check_reduction_path): Allow conversions
7329 that only change the sign.
7330 (vectorizable_reduction): Relax latch def stmts we handle further.
7331
7332 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7333
7334 PR debug/90231
7335 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7336 (remove_unused_ivs): Use it instead of get_computation_at. When
7337 choosing best candidate, only consider candidates where
7338 get_debug_computation_at actually returns non-NULL.
7339
7340 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7341
7342 PR tree-optimization/92131
7343 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7344 range would be symbolic, drop to varying for any explicit overflow
7345 in the constant part or if neither range is a singleton.
7346
7347 2019-10-23 Martin Liska <mliska@suse.cz>
7348
7349 PR middle-end/81669
7350 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7351 Initialize m_data.
7352
7353 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7354
7355 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7356 int_mode_for_mode rather than mode_for_int_vector for scalars.
7357
7358 2019-10-23 Richard Biener <rguenther@suse.de>
7359
7360 PR tree-optimization/92179
7361 * tree-vect-stmts.c (vectorizable_shift): For shift args
7362 that are all the same remove type restriction in the SLP case.
7363 Adjust SLP code to handle converting of the shift arg to
7364 only apply in case the modes are different.
7365
7366 2019-10-23 Martin Liska <mliska@suse.cz>
7367
7368 PR ipa/91969
7369 * ipa-inline.c (recursive_inlining): Do not print
7370 when curr->count is not initialized.
7371
7372 2019-10-23 Richard Biener <rguenther@suse.de>
7373
7374 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7375 op from scalars in case there's a constant operand in its
7376 definition.
7377
7378 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7379
7380 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7381 against out of range max skip or log values.
7382
7383 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7384
7385 * cgraph.c (dump_graphviz): Change name to dump_name
7386
7387 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7388
7389 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7390 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7391 subtraction from a carry operation.
7392
7393 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7394
7395 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7396
7397 2019-10-22 Richard Biener <rguenther@suse.de>
7398
7399 PR tree-optimization/92173
7400 * tree-vect-loop.c (vectorizable_reduction): If
7401 vect_transform_reduction cannot handle code-generation try without
7402 the single-def-use-cycle optimization. Pass optab_vector to
7403 optab_for_tree_code to get vector shifts as that's what we'd
7404 generate.
7405
7406 2019-10-22 Michael Matz <matz@suse.de>
7407
7408 PR middle-end/90796
7409 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7410 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7411 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7412
7413 2019-10-22 Richard Biener <rguenther@suse.de>
7414
7415 PR tree-optimization/92173
7416 * tree-vect-loop.c (vectorizable_reduction): If
7417 vect_transform_reduction cannot handle code-generation try without
7418 the single-def-use-cycle optimization. Pass optab_vector to
7419 optab_for_tree_code to get vector shifts as that's what we'd
7420 generate.
7421
7422 2019-10-22 Martin Liska <mliska@suse.cz>
7423
7424 * diagnostic-format-json.cc (json_from_expanded_location):
7425 Use json::integer_number.
7426 * gcov.c (output_intermediate_json_line): Use new
7427 json::integer_number.
7428 (output_json_intermediate_file): Likewise.
7429 * json.cc (number::print): Move to ...
7430 (float_number::print): ... this.
7431 (integer_number::print): New.
7432 (test_writing_numbers): Move to ...
7433 (test_writing_float_numbers): ... this.
7434 (test_writing_integer_numbers): New.
7435 (json_cc_tests): Register test_writing_integer_numbers.
7436 * json.h (class value): Add forward declaration
7437 for float_number and integer_number.
7438 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7439 (class number): Move to ...
7440 (class float_number): ... this.
7441 (class integer_number): New.
7442 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7443 Use json::integer_number.
7444 (optrecord_json_writer::location_to_json): Likewise.
7445 (optrecord_json_writer::profile_count_to_json): Likewise.
7446 (optrecord_json_writer::pass_to_json): Likewise.
7447
7448 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7449
7450 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7451 autodetected_vector_size rather than vector_size is zero.
7452 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7453 Set autodetected_vector_size immediately after calling
7454 vect_analyze_loop_2. Check for a fatal error before advancing
7455 next_size.
7456
7457 2019-10-21 Jason Merrill <jason@redhat.com>
7458
7459 * lock-and-run.sh: Check for process existence rather than timeout.
7460
7461 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7462
7463 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7464 widening multiplication.
7465
7466 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7467
7468 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7469 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7470 type attribute.
7471 (subsi3_carryin_shift): Separate into register and constant controlled
7472 alternatives. Use shift_amount_operand for operand 4. Set shift
7473 attribute and simplify type attribute.
7474 (subsi3_carryin_shift_alt): Likewise.
7475 (rsbsi3_carryin_shift): Likewise.
7476 (rsbsi3_carryin_shift_alt): Likewise.
7477 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7478 and register controlled shifts into distinct alternatives.
7479 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7480 (andsi_not_shiftsi_si_scc): Likewise.
7481 (arm_cmpsi_negshiftsi_si): Likewise.
7482 (not_shiftsi): Remove redundant M constraint from alternative 1.
7483 (not_shiftsi_compare0): Likewise.
7484 (arm_cmpsi_insn): Remove redundant alternative 2.
7485 (cmpsi_shift_swp): Likewise.
7486 (sub_shiftsi): Likewise.
7487 (sub_shiftsi_compare0_scratch): Likewise.
7488 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7489 (thumb2_cmpsi_neg_shiftsi): Likewise.
7490
7491 2019-10-21 Richard Biener <rguenther@suse.de>
7492
7493 PR tree-optimization/92162
7494 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7495 STMT_VINFO_REDUC_IDX in reduc_info.
7496 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7497
7498 2019-10-21 Richard Biener <rguenther@suse.de>
7499
7500 * tree-vectorizer.h (_slp_tree::ops): New member.
7501 (SLP_TREE_SCALAR_OPS): New.
7502 (vect_get_slp_defs): Adjust prototype.
7503 * tree-vect-slp.c (vect_free_slp_tree): Release
7504 SLP_TREE_SCALAR_OPS.
7505 (vect_create_new_slp_node): Initialize it. New overload for
7506 initializing by an operands array.
7507 (_slp_oprnd_info::ops): New member.
7508 (vect_create_oprnd_info): Initialize it.
7509 (vect_free_oprnd_info): Release it.
7510 (vect_get_and_check_slp_defs): Populate the operands array.
7511 Do not swap operands in the IL when not necessary.
7512 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7513 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7514 swap operands in the operands array. Do not swap operands in
7515 the IL.
7516 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7517 (vect_gather_slp_loads): Fix.
7518 (vect_detect_hybrid_slp_stmts): Likewise.
7519 (vect_slp_analyze_node_operations_1): Search for a internal
7520 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7521 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7522 the def-type push/pop dance.
7523 (vect_get_constant_vectors): Compute number_of_vectors here.
7524 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7525 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7526 (vect_get_slp_defs): Simplify greatly.
7527 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7528 (vect_transform_reduction): Likewise.
7529 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7530 (vectorizable_call): Likewise.
7531 (vectorizable_operation): Likewise.
7532 (vectorizable_load): Likewise.
7533 (vectorizable_condition): Likewise.
7534 (vectorizable_comparison): Likewise.
7535
7536 2019-10-21 Richard Biener <rguenther@suse.de>
7537
7538 PR tree-optimization/92161
7539 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7540 for reductions.
7541
7542 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7543
7544 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7545 (aarch64_rndr): New define_insn.
7546 (aarch64_rndrrs): Likewise.
7547 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7548 (TARGET_RNG): Likewise.
7549 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7550 argument.
7551 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7552 Add fourth argument in prototype.
7553 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7554 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7555 (aarch64_init_rng_builtins): Define.
7556 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7557 (aarch64_expand_rng_builtin): Define.
7558 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7559 RNG builtins.
7560 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7561 __ARM_FEATURE_RNG when TARGET_RNG.
7562 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7563
7564 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7565
7566 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7567 alignment is more restrictive.
7568
7569 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7570
7571 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7572 (vect_update_max_nunits): Update comment.
7573 (current_vector_size): Delete.
7574 * tree-vect-stmts.c (current_vector_size): Likewise.
7575 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7576 of current_vector_size.
7577 (get_mask_type_for_scalar_type): Likewise.
7578 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7579 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7580 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7581 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7582 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7583 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7584
7585 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7586
7587 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7588 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7589 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7590 accordingly.
7591
7592 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7593
7594 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7595 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7596 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7597 call accordingly.
7598 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7599
7600 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7601
7602 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7603 a loop_vec_info.
7604 (vect_set_loop_condition_masked): Update call accordingly.
7605
7606 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7607
7608 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7609 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7610 (simple_integer_narrowing): Update call accordingly.
7611 (vectorizable_conversion): Likewise.
7612
7613 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7614
7615 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7616 (vectorizable_call): Update call accordingly.
7617
7618 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7619
7620 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7621 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7622 (duplicate_and_interleave): Update call accordingly.
7623 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7624
7625 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7626
7627 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7628 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7629 (vect_get_constant_vectors): Update call accordingly.
7630 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7631
7632 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7633
7634 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7635 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7636 (vect_prologue_cost_for_slp_op): Update call accordingly.
7637 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7638 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7639 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7640 (get_mask_type_for_scalar_type): Likewise.
7641 (vect_get_vector_types_for_stmt): Likewise.
7642 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7643 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7644 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7645 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7646 (vect_split_statement, vect_convert_input): Likewise.
7647 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7648 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7649 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7650 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7651 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7652 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7653 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7654 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7655 (vect_recog_mask_conversion_pattern): Likewise.
7656 (vect_add_conversion_to_pattern): Likewise.
7657 (vect_recog_gather_scatter_pattern): Likewise.
7658 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7659 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7660
7661 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7662
7663 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7664 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7665 (vect_check_load_store_mask): Update call accordingly.
7666 (vect_get_mask_type_for_stmt): Likewise.
7667 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7668 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7669 (vect_convert_mask_for_vectype): Likewise.
7670
7671 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7672
7673 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7674 a vec_info.
7675 (vect_recog_dot_prod_pattern): Update call accordingly.
7676 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7677 (vect_recog_widen_sum_pattern): Likewise.
7678
7679 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7680
7681 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7682 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7683 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7684 accordingly.
7685
7686 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7687
7688 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7689 get_vectype_for_scalar_type_and_size instead of
7690 get_vectype_for_scalar_type.
7691
7692 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7693
7694 * common.opt (-fcommon): Fix description.
7695
7696 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7697
7698 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7699 * config/i386/i386.c (ix86_pre_reload_split): New function.
7700 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7701 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7702 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7703 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7704 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7705 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7706 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7707 *<shift_insn><dwi>3_doubleword_mask,
7708 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7709 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7710 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7711 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7712 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7713 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7714 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7715 *avx2_<code>v8qiv8si2<mask_name>_2,
7716 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7717 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7718 *avx512f_<code>v8qiv8di2<mask_name>_2,
7719 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7720 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7721 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7722 sse4_2_pcmpistr): Likewise.
7723
7724 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7725
7726 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7727 now defaults to https.
7728
7729 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7730
7731 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7732 skip non-zero array accesses.
7733
7734 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7735
7736 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7737 and return a boolean success value. Move the allocation and
7738 initialization of the bb_vec_info to...
7739 (vect_slp_bb_region): ...here. Update call accordingly.
7740 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7741 than in vect_slp_analyze_bb_1.
7742
7743 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7744
7745 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7746 when processing the given datarefs for the first time and
7747 check_datarefs subsequently.
7748 (vect_slp_bb_region): New function, split out of...
7749 (vect_slp_bb): ...here. Don't recompute the region bounds and
7750 dataref sets when retrying with a different vector size.
7751
7752 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7753 Uroš Bizjak <ubizjak@gmail.com>
7754
7755 PR target/92140
7756 * config/i386/predicates.md (int_nonimmediate_operand): New special
7757 predicate.
7758 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7759 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7760 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7761 define_insn_and_split patterns.
7762
7763 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7764
7765 * config/rs6000/rs6000.md: Delete out--of-date comment about
7766 special-casing integer loads.
7767
7768 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7769
7770 * escaped_string.h (escaped_string): New header.
7771 * tree.c (escaped_string): Remove escaped_string class.
7772
7773 2019-10-18 Martin Sebor <msebor@redhat.com>
7774
7775 PR tree-optimization/92157
7776 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7777 compute_string_length to return a negative result.
7778
7779 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7780
7781 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7782 (negvsi3, negvdi3): Delete.
7783 (negdi2_compare): Delete.
7784
7785 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7786
7787 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7788 operations.
7789 (subdi3_compare1): Delete pattern.
7790 (subvsi3_borrow): New insn pattern.
7791 (subvsi3_borrow_imm): Likewise.
7792
7793 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7794
7795 * config/arm/arm.md (subv<mode>4): Delete.
7796 (subvdi4): New expander pattern.
7797 (subvsi4): Likewise. Handle some immediate values.
7798 (subvsi3_intmin): New insn pattern.
7799 (subvsi3): Likewise.
7800 (subvsi3_imm1): Likewise.
7801 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7802 idioms.
7803
7804 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7805
7806 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7807 incoming operands. Early split the calculation into SImode
7808 operations.
7809 (usubvsi3_borrow): New insn pattern.
7810 (usubvsi3_borrow_imm): Likewise.
7811
7812 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7813
7814 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7815 (usubvsi4): New pattern. Allow some immediate values for inputs.
7816 (usubvdi4): New pattern.
7817
7818 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7819
7820 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7821 or second operand of the PLUS inside a DImode equality test to be
7822 sign-extend when selecting CC_Vmode.
7823 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7824 instructions.
7825 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7826 expand patterns.
7827 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7828 (addsi3_cin_vout_0): Likewise.
7829 (adddi3_compareV): Delete.
7830
7831 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7832
7833 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7834 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7835 to transform this back into the summation version when that leads
7836 to smaller code.
7837
7838 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7839
7840 * config/arm/arm.md (addv<mode>4): Delete.
7841 (addvsi4): New pattern. Handle immediate values that the architecture
7842 supports.
7843 (addvdi4): New pattern.
7844 (addsi3_compareV): Rename to ...
7845 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7846 and use COMPARE rather than NE.
7847 (addsi3_compareV_imm): New pattern.
7848 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7849 a signed-overflow check.
7850
7851 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7852
7853 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7854 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7855 CC_ADCmode.
7856 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7857 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7858 with overflow.
7859 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7860 expand patterns.
7861 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7862 (addsi3_cin_cout_imm_insn): Likewise.
7863 (adddi3_compareC): Delete insn.
7864 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7865
7866 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7867
7868 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7869 * (uaddv<mode>4): Delete expansion pattern.
7870 (uaddvsi4): New pattern.
7871 (uaddvdi4): Likewise.
7872 (addsi3_compareC): Delete pattern, change callers to use
7873 addsi3_compare_op1.
7874 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7875 reduce the number of alternatives and re-work type attribute handling.
7876 (addsi3_compare_op2): Clean up constraints to reduce the number of
7877 alternatives and re-work type attribute handling.
7878 (compare_addsi2_op0): Likewise.
7879 (compare_addsi2_op1): Likewise.
7880
7881 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7882
7883 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7884 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7885 for DImode operands.
7886 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7887 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7888 CC_NCVmode.
7889 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7890 (arm_cmpdi_unsigned): Delete.
7891
7892 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7893
7894 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7895 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7896 unchanged only if that will be cheaper.
7897 (arm_select_cc_mode): Recognize a swapped comparison that will
7898 be regenerated using RSBS or RSCS. Relax restriction on selecting
7899 CC_RSBmode.
7900 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7901 a constant.
7902 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7903 is CC_RSBmode.
7904 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7905 as CCmode.
7906 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7907 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7908
7909 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7910
7911 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7912 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7913 need these modes.
7914 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7915 of EQ, NE, LT, GE, LTU and GEU.
7916 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7917 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7918 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7919 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7920 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7921
7922 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7923
7924 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7925 operand 2.
7926 (cstoredi4): Similarly, but for operand 3.
7927 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7928 canonicalization of unsigned compares with a constant on Arm.
7929 Prefer using const+1 and adjusting the comparison over swapping the
7930 operands whenever the original constant was not valid.
7931 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7932 register here.
7933 (arm_validize_comparison): Do not force invalid DImode operands to
7934 registers here.
7935
7936 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7937
7938 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7939 return CC_Zmode if comparing against a constant where one word is
7940 zero.
7941 (arm_gen_compare_reg): Split DImode handling to ...
7942 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7943 against simple constants.
7944 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7945
7946 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7947
7948 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7949 (rsbsi3_carryin_shift_alt): Likewise.
7950
7951 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7952
7953 * config/arm/arm.md (negscc_borrow): New pattern.
7954 (mov_negscc): Don't split if the insn would match negscc_borrow.
7955 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7956 (thumb2_mov_negscc_strict_it): Likewise.
7957
7958 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7959
7960 * config/arm/arm.c (arm_insn_cost): New function.
7961 (TARGET_INSN_COST): Override default definition.
7962
7963 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7964
7965 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7966 borrow operations.
7967
7968 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7969
7970 * config/arm/arm.c (strip_carry_operation): New function.
7971 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7972 for SImode.
7973
7974 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7975
7976 * config/arm/predicates.md (arm_carry_operation): New special
7977 predicate.
7978 * config/arm/iterators.md (LTUGEU): Delete iterator.
7979 (cnb): Delete code attribute.
7980 (optab): Delete ltu and geu elements.
7981 * config/arm/arm.md (addsi3_carryin): Renamed from
7982 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
7983 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7984 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7985 (addsi3_carryin_clobercc): Similarly.
7986 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
7987 Thumb2 state.
7988
7989 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7990
7991 * config/arm/arm.md (arm_subdi3): Delete insn.
7992 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7993
7994 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7995
7996 * config/arm/arm-modes.def (CC_RSB): New CC mode.
7997 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7998 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7999 return CC_RSBmode.
8000 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8001 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8002 expand.
8003 (subdi3): Rewrite to early-expand the sub-operations.
8004 (rsb_im_compare): New pattern.
8005 (negdi2): Delete.
8006 (negdi2_insn): Delete.
8007 (arm_negsi2): Correct type attribute to alu_imm.
8008 (negsi2_0compare): New insn pattern.
8009 (negsi2_carryin): New insn pattern.
8010
8011 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8012
8013 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8014 operand 2.
8015
8016 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8017
8018 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8019 to match canonical form.
8020
8021 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8022
8023 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8024 (extend<mode>di2): Likewise.
8025
8026 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8027
8028 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8029 * config/arm/arm.c (arm_decompose_di_binop): New function.
8030 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8031 If not generating Thumb-1 code, decompose the operation into 32-bit
8032 pieces.
8033 * add0si_carryin_<optab>: New pattern.
8034
8035 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8036
8037 * arm.md (adddi3): Only accept register operands.
8038 (arm_adddi3): Convert to simple insn with no split. Do not accept
8039 constants.
8040 (adddi_sesidi_di): Delete patern.
8041 (adddi_zesidi_di): Likewise.
8042 (uaddv<mode>4): Use LTU as condition for branch.
8043 (adddi3_compareV): Convert to simple insn with no split.
8044 (addsi3_compareV_upper): Delete pattern.
8045 (adddi3_compareC): Convert to simple insn with no split. Correct
8046 flags setting expression.
8047 (addsi3_compareC_upper): Delete pattern.
8048 (addsi3_compareC): Correct flags setting expression.
8049 (subdi3_compare1): Convert to simple insn with no split.
8050 (subsi3_carryin_compare): Delete pattern.
8051 (arm_subdi3): Convert to simple insn with no split.
8052 (subdi_zesidi): Delete pattern.
8053 (subdi_di_sesidi): Delete pattern.
8054 (subdi_zesidi_di): Delete pattern.
8055 (subdi_sesidi_di): Delete pattern.
8056 (subdi_zesidi_zesidi): Delete pattern.
8057 (negvdi3): Use s_register_operand.
8058 (negdi2_compare): Convert to simple insn with no split.
8059 (negdi2_insn): Likewise.
8060 (negsi2_carryin_compare): Delete pattern.
8061 (negdi_zero_extendsidi): Delete pattern.
8062 (arm_cmpdi_insn): Convert to simple insn with no split.
8063 (negdi2): Don't call gen_negdi2_neon.
8064 * config/arm/neon.md (adddi3_neon): Delete pattern.
8065 (subdi3_neon): Delete pattern.
8066 (negdi2_neon): Delete pattern.
8067 (splits for negdi2_neon): Delete splits.
8068
8069 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8070
8071 PR middle-end/92153
8072 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8073 than after it.
8074
8075 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8076
8077 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8078 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8079 new multilib variants and new mappings.
8080
8081 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8082
8083 PR target/86040
8084 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8085
8086 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8087 Richard Sandiford <richard.sandiford@arm.com>
8088
8089 PR target/86753
8090 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8091 and define hashmap traits for it.
8092 (loop_vec_info::scalar_cond_masked_set): New member.
8093 (vect_record_loop_mask): Adjust prototype.
8094 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8095 Implement method.
8096 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8097 vect_record_loop_mask.
8098 (vectorizable_live_operation): Likewise.
8099 (vect_record_loop_mask): New param scalar_mask. Add entry
8100 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8101 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8102 Pass it as last arg to vect_record_loop_mask.
8103 (vectorizable_call): Pass scalar_mask as last arg to
8104 vect_record_loop_mask.
8105 (vectorizable_store): Likewise.
8106 (vectorizable_load): Likewise.
8107 (vectorizable_condition): Check if another part of vectorized code
8108 applies loop_mask to condition or to it's inverse, and if yes,
8109 apply loop_mask to result of vector comparison.
8110
8111 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8112
8113 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8114
8115 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8116
8117 PR tree-optimization/92056
8118 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8119 before calling compute_builtin_object_size.
8120
8121 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8122
8123 PR target/65342
8124 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8125 (movdi_low_st): Delete.
8126 * config/rs6000/rs6000.c
8127 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8128 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8129 * config/rs6000/rs6000.md (movsi_low): Delete.
8130
8131 2019-10-17 Jason Merrill <jason@redhat.com>
8132
8133 * gimplify.h (get_initialized_tmp_var): Add default argument to
8134 post_p.
8135 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8136 NULL post_p argument.
8137 * targhooks (std_gimplify_va_arg_expr): Likewise.
8138
8139 2019-10-17 Richard Biener <rguenther@suse.de>
8140
8141 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8142 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8143 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8144 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8145 * tree-vect-loop.c (vect_is_simple_reduction): Set
8146 STMT_VINFO_REDUC_CODE.
8147 (vectorizable_reduction): Remove dead and redundant code, use
8148 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8149
8150 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8151
8152 Fix breakage introduced by r276985.
8153
8154 * config/avr/avr.c (avr_option_override): Remove set of
8155 PARAM_ALLOW_STORE_DATA_RACES.
8156 * common/config/avr/avr-common.c (avr_option_optimization_table)
8157 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8158
8159 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8160
8161 * config/i386/i386.h (processor_costs): Add clear_ratio.
8162 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8163 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8164 of 6 and move_ratio in all cost models.
8165
8166 2019-10-17 Richard Biener <rguenther@suse.de>
8167
8168 * tree-vect-loop.c (check_reduction_path): Compute reduction
8169 operation here.
8170 (vect_is_simple_reduction): Remove special-case of single-stmt
8171 reduction path detection.
8172
8173 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8174
8175 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8176
8177 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8178
8179 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8180 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8181 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8182 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8183 New combine patterns.
8184 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8185 above.
8186 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8187
8188 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8189
8190 * tree-vrp.c (value_range_base::dump): Display +INF for both
8191 pointers and integers when appropriate.
8192
8193 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8194
8195 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8196 when to use versioning threshold.
8197
8198 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8199
8200 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8201 outlined code from ...
8202 (vect_analyze_loop_2): ... here.
8203
8204 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8205
8206 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8207 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8208 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8209
8210 2019-10-17 Richard Biener <rguenther@suse.de>
8211
8212 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8213 (vect_is_simple_reduction): Move all validity checks ...
8214 (vectorizable_reduction): ... here. Compute whether we
8215 need a fold-left reduction here.
8216 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8217 both overloads, check needs_fold_left_reduction_p directly.
8218 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8219
8220 2019-10-17 Richard Biener <rguenther@suse.de>
8221
8222 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8223 TARGET_MEM_REF creation.
8224
8225 2019-10-17 Richard Biener <rguenther@suse.de>
8226
8227 PR tree-optimization/92129
8228 * tree-vect-loop.c (vectorizable_reduction): Also fail
8229 on GIMPLE_SINGLE_RHS.
8230
8231 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8232
8233 PR tree-optimization/92056
8234 * tree-object-size.c (cond_expr_object_size): Return early if then_
8235 processing resulted in unknown size.
8236
8237 PR tree-optimization/92115
8238 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8239 temporary if it could trap.
8240
8241 2019-10-17 Richard Biener <rguenther@suse.de>
8242
8243 PR debug/91887
8244 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8245 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8246
8247 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8248
8249 * tree-ssa-strlen.c (maybe_invalidate): Use
8250 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8251
8252 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8253 Jim Wilson <jimw@sifive.com>
8254
8255 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8256 regs to SIBCALL_REGS.
8257 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8258 passing regs to SIBCALL_REGS.
8259
8260 2019-10-16 Martin Sebor <msebor@redhat.com>
8261
8262 PR tree-optimization/83821
8263 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8264 the length of a string when available.
8265 (handle_builtin_memset) Add argument.
8266 (handle_store, strlen_check_and_optimize_call): Same.
8267 (check_and_optimize_stmt): Same. Pass it to callees.
8268
8269 2019-10-16 Martin Sebor <msebor@redhat.com>
8270
8271 PR tree-optimization/91996
8272 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8273 information.
8274 (compare_nonzero_chars): Add an overload.
8275 (count_nonzero_bytes): Add an argument. Call overload above.
8276 Handle non-constant lengths in some range.
8277 (handle_store): Add an argument.
8278 (check_and_optimize_stmt): Pass an argument to handle_store.
8279
8280 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8281
8282 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8283
8284 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8285
8286 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8287 operands which correspond to the same input-output register to
8288 have the same pseudo assigned to them.
8289
8290 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8291
8292 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8293
8294 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8295
8296 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8297 Apply reasonable limit to symbol offsets.
8298
8299 2019-10-16 Richard Biener <rguenther@suse.de>
8300
8301 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8302 (vect_is_simple_reduction): Delay checking to
8303 vectorizable_reduction and relax the checking.
8304 (vectorizable_reduction): Check we have a simple use. Check
8305 for bogus condition reductions.
8306 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8307 are looking at the last stmt in a pattern sequence when
8308 filling in backedge PHI values.
8309
8310 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8311 Jiufu Guo <guojiufu@linux.ibm.com>
8312
8313 PR target/70010
8314 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8315 the callee explicitly disables some isa_flags the caller is using.
8316
8317 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8318
8319 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8320
8321 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8322
8323 * genmodes.c (mode_data::order): New field.
8324 (blank_mode): Update accordingly.
8325 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8326 (make_vector_modes): Likewise.
8327 (VECTOR_MODES): Update use accordingly.
8328 (cmp_modes): Sort by the new order field ahead of sorting by size.
8329 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8330 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8331 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8332 (aarch64_classify_vector_mode): Handle the new partial modes.
8333 (aarch64_vl_bytes): New function.
8334 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8335 when counting the number of registers in an SVE mode.
8336 (aarch64_class_max_nregs): Likewise.
8337 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8338 in registers yet.
8339 (aarch64_classify_address): Treat partial vectors analogously
8340 to full vectors.
8341 (aarch64_print_address_internal): Consolidate the printing of
8342 MUL VL addresses, using aarch64_vl_bytes as the number of
8343 bytes represented by "VL".
8344 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8345
8346 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8347
8348 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8349 rather than known_lt when choosing frame layouts.
8350
8351 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8352
8353 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8354 that all the adjustments add up to the full frame size.
8355 Use crtl->outgoing_args_size directly as the final adjustment
8356 where appropriate.
8357
8358 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8359
8360 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8361 "frame" reference instead of always referring directly to
8362 "cfun->machine->frame".
8363
8364 2019-10-16 Richard Biener <rguenther@suse.de>
8365
8366 PR tree-optimization/92119
8367 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8368 against missing bswap lhs.
8369
8370 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8371
8372 PR middle-end/92033
8373 * poly-int.h (constant_lower_bound_with_limit): New function.
8374 (constant_upper_bound_with_limit): Likewise.
8375 * doc/poly-int.texi: Document them.
8376 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8377 into the worst-case INTEGER_CST bounds.
8378
8379 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8380
8381 PR ipa/91088
8382 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8383 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8384 * ipa-predicat.h (struct expr_eval_op): New struct.
8385 (expr_eval_ops): New typedef.
8386 (struct condition): Add type and param_ops fields, remove size field.
8387 (add_condition): Replace size parameter with type parameter, add
8388 param_ops parameter.
8389 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8390 (predicate::add_clause): Add comparisons on type and param_ops.
8391 (dump_condition): Add debug dump for param_ops.
8392 (remap_after_inlining): Adjust call arguments to add_condition.
8393 (add_condition): Replace size parameter with type parameter, add
8394 param_ops parameter. Unshare constant value used in conditions.
8395 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8396 parameter expressions using param_ops.
8397 (decompose_param_expr): New function.
8398 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8399 to replace call to unmodified_parm_or_parm_agg_item.
8400 (set_switch_stmt_execution_predicate): Likewise.
8401 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8402 with type.
8403 (inline_read_section): Read param_ops from summary stream.
8404 (ipa_fn_summary_write): Write param_ops to summary stream.
8405
8406 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8407
8408 PR rtl-optimization/92107
8409 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8410 expression written.
8411
8412 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8413
8414 * config/darwin.c: Update description of fix and continue.
8415
8416 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8417
8418 * config/darwin.c (darwin_binds_local_p): Update to call
8419 default_binds_local_p_3 () directly. amend comments.
8420
8421 2019-10-15 Richard Biener <rguenther@suse.de>
8422
8423 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8424 (tree_is_indexable): Use it.
8425 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8426 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8427 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8428
8429 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8430
8431 * config/msp430/msp430.md (zero_extendqipsi2): New.
8432 (zero_extendqisi2): Optimize case where src register and base dst
8433 register are the same.
8434 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8435 (zero_extendpsisi2): Optimize r->m case.
8436 Add unnamed insn patterns to catch insns combine searches for when
8437 optimizing pointer manipulation.
8438
8439 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8440
8441 * config/msp430/msp430.md: Group zero_extend* insns together.
8442
8443 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8444
8445 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8446 constraint.
8447 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8448 POST_INC.
8449 (msp430_subreg): Likewise.
8450 (msp430_split_addsi): Likewise.
8451 (msp430_print_operand_addr): Likewise.
8452 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8453 (USE_STORE_POST_INCREMENT): Define.
8454 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8455 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8456 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8457 (msp430_general_dst_operand): New.
8458 (msp430_general_dst_nonv_operand): New.
8459 (msp430_nonsubreg_operand): Remove.
8460 (msp430_nonsubreg_dst_operand): New.
8461 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8462 of defunct msp430_nonsubreg_operand.
8463 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8464
8465 2019-10-15 Richard Biener <rguenther@suse.de>
8466
8467 PR tree-optimization/91929
8468 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8469 (get_or_alloc_expr_for_name): Initialize it.
8470 (get_or_alloc_expr_for_constant): Likewise.
8471 (phi_translate_1): Copy it.
8472 (create_expression_by_pieces): Use the original location
8473 of the expression for the inserted stmt.
8474 (compute_avail): Record the location of the stmt for the
8475 expressions created.
8476
8477 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8478
8479 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8480 before using tree_to_uhwi.
8481
8482 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8483
8484 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8485
8486 2019-10-15 Richard Biener <rguenther@suse.de>
8487
8488 PR tree-optimization/92094
8489 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8490 do not adjust the reduction definition def type.
8491 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8492 defines the latch argument of the PHI.
8493
8494 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8495
8496 PR target/92035
8497 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8498 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8499 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8500 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8501 _mm_maskz_roundscale_round_sd): New intrinsics.
8502 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8503 __builtin_ia32_rndscales?_mask_round builtins instead of
8504 __builtin_ia32_rndscales?_round.
8505 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8506 __builtin_ia32_rndscalesd_round): Remove.
8507 (__builtin_ia32_rndscaless_mask_round,
8508 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8509 * config/i386/sse.md
8510 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8511 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8512 ... this, adjust and add subst atrributes to make it maskable.
8513
8514 2019-10-15 Richard Biener <rguenther@suse.de>
8515
8516 PR middle-end/92046
8517 * common.opt (fallow-store-data-races): New.
8518 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8519 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8520 * doc/invoke.texi (fallow-store-data-races): Document.
8521 (--param allow-store-data-races): Remove docs.
8522 * opts.c (default_options_table): Enable -fallow-store-data-races
8523 at -Ofast.
8524 (default_options_optimization): Do not enable --param
8525 allow-store-data-races at -Ofast.
8526 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8527 instead of PARAM_ALLOW_STORE_DATA_RACES.
8528 * tree-ssa-loop-im.c (execute_sm): Likewise.
8529
8530 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8531
8532 PR tree-optimization/92085
8533 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8534 instead of calling it unconditionally after
8535 delete_dead_or_redundant_assignment and fix indentation.
8536
8537 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8538
8539 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8540 TARGET_VFP_DOUBLE.
8541 (*fmsub<SDF:mode>4): Likewise.
8542 *fnmsub<SDF:mode>4): Likewise.
8543 (*fnmadd<SDF:mode>4): Likewise.
8544
8545 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8546
8547 * doc/tree-ssa.texi: Update renamed macro name.
8548
8549 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8550
8551 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8552 vector constants.
8553
8554 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8555
8556 * config/darwin.c: Use unsigned ints for the picbase label
8557 counters, initialise the vars explicitly.
8558 (update_pic_label_number_if_needed): Move a variable declaration
8559 to where it's needed.
8560 (machopic_output_function_base_name): Use a more strict checking
8561 assert, and and unsigned int for the picbase label counter.
8562 (machopic_get_function_picbase): Likewise.
8563
8564 2019-10-14 Richard Biener <rguenther@suse.de>
8565
8566 PR middle-end/92046
8567 * dse.c (scan_insn): Use param max_active_local_stores.
8568 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8569 based on optimization level.
8570 * loop-invariant.c (move_loop_invariants): Adjust
8571 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8572 * opts.c (default_options_optimization): Do not adjust
8573 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8574 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8575
8576 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8577
8578 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8579
8580 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8581
8582 * config/arm/arm.c (arm_option_override): Don't override sched
8583 pressure algorithm.
8584
8585 2019-10-14 Richard Biener <rguenther@suse.de>
8586
8587 PR tree-optimization/92069
8588 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8589 cycles do not set vect_nested_cycle on the latch definition.
8590
8591 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8592
8593 * function-abi.h (expr_callee_abi): Declare.
8594 * function-abi.cc (expr_callee_abi): New function.
8595
8596 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8597
8598 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8599 into [1,MAX].
8600 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8601 non-zero being represented as [1,MAX].
8602
8603 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8604
8605 * tree-sra.c (dump_access): Add missing braces.
8606
8607 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8608
8609 * config/darwin.c (machopic_indirection_name): Rework the
8610 function to emit linker-visible symbols only for indirections
8611 in the data section. Clean up the code and update comments.
8612
8613 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8614
8615 * config/darwin.c (machopic_indirect_data_reference): Remove
8616 redundant code.
8617
8618 2019-10-13 Nathan Sidwell <nathan@acm.org>
8619
8620 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8621
8622 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8623
8624 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8625 c99_runtime.
8626
8627 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8628
8629 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8630 so non-virutal are before virutals.
8631 (output_function): Avoid body modifications.
8632
8633 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8634
8635 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8636 %r22. Load function address before global pointer.
8637 (pa_attr_length_indirect_call): Adjust length of inline versions of
8638 $$dyncall.
8639 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8640 before normal cases. Update inline $$dyncall sequences to preserve
8641 function descriptor address in register %r22.
8642 (TRAMPOLINE_CODE_SIZE): Adjust.
8643 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8644 register %r22 contains trampoline address.
8645 (pa_trampoline_init): Adjust offsets.
8646 (pa_trampoline_adjust_address): Likewise.
8647 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8648
8649 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8650
8651 PR target/67183
8652 * config/darwin.c (machopic_indirection): New field to flag
8653 non-lazy-symbol-pointers in the data section.
8654 (machopic_indirection_name): Compute if an indirection should
8655 appear in the data section.
8656 (machopic_output_data_section_indirection): New callback split
8657 from machopic_output_indirection.
8658 (machopic_output_stub_indirection): Likewise.
8659 (machopic_output_indirection): Retain the code for non-lazy
8660 symbol pointers in their regular section.
8661 (machopic_finish): Use the new callbacks to order the indirection
8662 output.
8663
8664 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8665
8666 * config/darwin-protos.h (machopic_finish): Delete.
8667 * config/darwin.c (machopic_finish): Make static.
8668
8669 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8670
8671 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8672 sections when building kernel extension code.
8673
8674 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8675
8676 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8677 later standard."
8678
8679 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8680
8681 * config/pa/pa.c (pa_option_override): Remove trailing comma
8682 from warning.
8683
8684 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8685
8686 PR middle-end/92063
8687 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8688 <case VEC_COND_EXPR>: Return false with *handled = false.
8689 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8690 recursing on the first operand.
8691 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8692 instead of tree_could_trap_p.
8693 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8694
8695 2019-10-11 Jim Wilson <jimw@sifive.com>
8696
8697 PR rtl-optimization/91860
8698 * combine.c (subst): If new_rtx is a constant, also check for
8699 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8700
8701 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8702
8703 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8704 INTVAL when calling store_bit_field.
8705
8706 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8707
8708 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8709 size.
8710
8711 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8712
8713 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8714 vectorizable_live_operation.
8715 (vectorizable_live_operation): Adjust parameters.
8716 * tree-vect-stmts.c (vect_init_vector,
8717 vect_gen_widened_results_half): Fix typo in function comment.
8718 (can_vectorize_live_stmts): Adjust function comment.
8719 Adjust parameters. Adjust call to vectorizable_live_operation.
8720 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8721 (vect_transform_stmt): Adjust function comment. Adjust call to
8722 can_vectorize_live_stmts.
8723 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8724
8725 2019-10-11 Richard Biener <rguenther@suse.de>
8726
8727 PR tree-optimization/90883
8728 PR tree-optimization/91091
8729 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8730 alias-sets both for recording VN table entries and continuing
8731 walking after translating through copies. Handle same-sized
8732 reads from SSA names by returning the plain SSA name.
8733 (eliminate_dom_walker::eliminate_stmt): Properly handle
8734 non-size precision stores in redundant store elimination.
8735
8736 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8737
8738 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8739 (ggc_collect): Dump later to not interfere with release_page dump.
8740 (ggc_trim): New function.
8741 * ggc-none.c (ggc_trim): New.
8742 * ggc.h (ggc_trim): Declare.
8743
8744 2019-10-11 Richard Biener <rguenther@suse.de>
8745
8746 PR tree-optimization/92066
8747 PR tree-optimization/92046
8748 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8749 Fix bogus cost model check.
8750
8751 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8752
8753 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8754 (LANG_HOOKS_DECLS): Add it.
8755 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8756 update comment for omp_is_optional_argument.
8757 * omp-general.c (omp_is_allocatable_or_ptr): New.
8758 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8759 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8760 Fortran's optional arguments and allocatable/pointer scalars
8761 with use_device_addr.
8762
8763 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8764
8765 PR target/77918
8766 * config/s390/2827.md: Add new opcodes.
8767 * config/s390/2964.md: Likewise.
8768 * config/s390/3906.md: Likewise.
8769 * config/s390/8561.md: Likewise.
8770 * config/s390/s390-builtins.def (s390_vfchesb): Use
8771 the new vec_cmpgev4sf_quiet_nocc.
8772 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8773 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8774 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8775 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8776 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8777 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8778 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8779 * config/s390/s390-modes.def (CCSFPS): New mode.
8780 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8781 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8782 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8783 (s390_expand_vec_compare): Use non-signaling patterns where
8784 necessary.
8785 (s390_reverse_condition): Support CCSFPS.
8786 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8787 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8788 (asm_fcmp_op): Likewise.
8789 (*smaxv2df3_vx): Use pattern for quiet comparison.
8790 (*sminv2df3_vx): Likewise.
8791 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8792 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8793 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8794 (vec_cmplt<mode>_quiet_nocc): New expander.
8795 (vec_cmpge<mode>_quiet_nocc): New pattern.
8796 (vec_cmple<mode>_quiet_nocc): New expander.
8797 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8798 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8799 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8800 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8801 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8802 (vec_cmpungt<mode>): New expander.
8803 (vec_cmpunge<mode>): Likewise.
8804 (vec_cmpuneq<mode>): Use quiet patterns.
8805 (vec_cmpltgt<mode>): Allow only on z14+.
8806 (vec_cmpordered<mode>): Use quiet patterns.
8807 (vec_cmpunordered<mode>): Likewise.
8808 (VEC_CMP_EXPAND): Add ungt and unge.
8809
8810 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8811
8812 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8813 parameter.
8814 * lto-streamer-out.c: Include tree-dfa.h.
8815 (output_cfg): Do not use cfun.
8816 (lto_prepare_function_for_streaming): New.
8817 (output_function): Do not push cfun; do not initialize loop optimizer.
8818 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8819 * passes.c (ipa_write_summaries): Use it.
8820 (ipa_write_optimization_summaries): Do not modify bodies.
8821 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8822 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8823 * tree-ssa-dse.c (pass_dse::execute): Update use of
8824 renumber_gimple_stmt_uids.
8825 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8826
8827 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8828
8829 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8830 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8831
8832 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8833
8834 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8835 macros.
8836 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8837 Also define DFP macros for these conditions.
8838 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8839 DEC128_SUBNORMAL_MIN): Do not define.
8840 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8841 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8842
8843 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8844 Sandra Loosemore <sandra@codesourcery.com>
8845
8846 PR middle-end/26241
8847 * doc/lto.texi (IPA): Reference to the IPA passes.
8848 * doc/passes.texi (Pass manager): Add node IPA passes and
8849 description for each IPA pass.
8850
8851 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8852
8853 * ipa-reference.c: Do not include splay-tree.h
8854 (reference_vars_to_consider): Turn to hash map.
8855 (get_static_name, ipa_init, analyze_function, propagate,
8856 stream_out_bitmap, ipa_reference_write_optimization_summary,
8857 ipa_reference_write_optimization_summary): Update.
8858
8859 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8860
8861 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8862
8863 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8864
8865 * config/darwin.c: Lookup Objective C metadata and force indirection
8866 for IVAR refs.
8867
8868 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8869
8870 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8871 addresses.
8872 (mem_operand_gpr): Add check for prefixed addresses.
8873 (mem_operand_ds_form): Add check for prefixed addresses.
8874 (rs6000_legitimate_offset_address_p): If we support prefixed
8875 addresses, check for a 34-bit offset instead of 16-bit.
8876 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8877 Do not allow load/store with update if the address is prefixed.
8878 (rs6000_mode_dependent_address): If we support prefixed
8879 addresses, check for a 34-bit offset instead of 16-bit.
8880
8881 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8882
8883 PR target/77918
8884 * config/s390/vector.md (vcond_comparison_operator): New
8885 predicate.
8886 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8887
8888 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8889
8890 PR 87488
8891 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8892 -D.
8893 * configure.ac (--with-documentation-root-url): New option.
8894 * configure: Regenerate.
8895 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8896 option URL, add it as a new string field of the diagnostic option.
8897 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8898 (print_option_information): If get_option_url is non-NULL, call
8899 it, and if the result is non-NULL, potentially emit an escape
8900 sequence to markup the option text with the resulting URL.
8901 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8902 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8903 example of JSON output.
8904 * opts-diagnostic.h (get_option_url): New decl.
8905 * opts.c (get_option_url): New function.
8906 * toplev.c (general_init): Initialize the get_option_url callback.
8907
8908 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8909
8910 PR 87488
8911 * common.opt (fdiagnostics-urls=): New option.
8912 (diagnostic-url.h): Add SourceInclude.
8913 (diagnostic_url_rule): New enum.
8914 * diagnostic-color.c: Include "diagnostic-url.h".
8915 (diagnostic_urls_enabled_p): New function.
8916 * diagnostic-url.h: New file.
8917 * diagnostic.c: Include "diagnostic-url.h".
8918 (diagnostic_urls_init): New function.
8919 * diagnostic.h (diagnostic_urls_init): New decl.
8920 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8921 -fdiagnostics-urls to the list.
8922 (-fdiagnostics-urls): New option.
8923 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8924 (driver::global_initializations): Call diagnostic_urls_init.
8925 * opts-global.c (init_options_once): Likewise.
8926 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8927 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8928 show_urls.
8929 (pp_begin_url): New function.
8930 (pp_end_url): New function.
8931 (selftest::test_urls): New selftest.
8932 (selftest::pretty_print_c_tests): Call it.
8933 * pretty-print.h (pretty_printer::show_urls): New field.
8934 (pp_begin_url): New decl.
8935 (pp_end_url): New decl.
8936
8937 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8938
8939 PR target/92022
8940 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8941
8942 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8943
8944 PR target/88630
8945 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8946 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8947 also for TARGET_FPU_SH4_300.
8948 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8949 TARGET_SH4_300.
8950 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8951 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8952 (*negsf2_i): Split into ...
8953 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8954 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8955 (**abssf2_i): Split into ...
8956 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8957 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8958 (*negdf2_i): Split into ...
8959 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8960 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8961 (**abssf2_i): Split into ...
8962 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8963
8964 2019-10-10 Richard Biener <rguenther@suse.de>
8965
8966 PR middle-end/92046
8967 * opts.c (finish_options): Do not influence global --params
8968 from options that are adjustable per function.
8969 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8970 Apply --param adjustment based on active cost-model.
8971 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8972 further store-sinking when vectorization or if-conversion
8973 are not enabled.
8974
8975 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8976
8977 PR middle-end/92037
8978 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8979 rather than ggc_alloc_cleared to alloc symbol table.
8980 * toplev.c (general_init): Likewise.
8981 * cgraph.h (symbol_table): Explicitly construct every field.
8982
8983 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8984
8985 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8986 (PF_Z15): ... this.
8987 * config.gcc: Add z15 as option for --with-arch and --with-tune
8988 configure switches.
8989 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8990 error reporting for unsupported builtins.
8991 * config/s390/s390-opts.h (enum processor_type): Rename
8992 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8993 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8994 * config/s390/driver-native.c (s390_host_detect_local_cpu):
8995 Likewise.
8996 * config/s390/s390-builtins.def: Likewise.
8997 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8998 (s390_expand_builtin): Add missing check for unsupported builtins.
8999 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9000 (s390_rtx_costs): Likewise.
9001 (s390_get_sched_attrmask): Rename arch13 to z15.
9002 (s390_get_unit_mask): Likewise.
9003 (s390_is_fpd): Likewise.
9004 (s390_is_fxd): Likewise.
9005 * config/s390/s390.h (enum processor_flags): Likewise.
9006 * config/s390/s390.md: Likewise.
9007 * config/s390/vector.md: Likewise.
9008 * config/s390/vx-builtins.md: Likewise.
9009 * config/s390/s390.opt: Add z15 to processor_type value.
9010
9011 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9012
9013 PR target/91035
9014 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9015 prototype.
9016 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9017 ("split_stack_data", "split_stack_call")
9018 ("split_stack_call_<mode>", "split_stack_cond_call")
9019 ("split_stack_cond_call_<mode>"): Remove.
9020 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9021 insn definition.
9022 * config/s390/s390.c (s390_output_split_stack_data): New function.
9023 (s390_expand_split_stack_prologue): Use the merged expander.
9024
9025 2019-10-09 Martin Sebor <msebor@redhat.com>
9026
9027 PR tree-optimization/90879
9028 * builtins.c (check_access): Avoid using maxbound when null.
9029 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9030 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9031 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9032 conditional.
9033 (get_range_strlen): Overwrite initial maxbound when non-null.
9034 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9035 changes.
9036 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9037 (used_only_for_zero_equality): New function.
9038 (handle_builtin_memcmp): Call it.
9039 (determine_min_objsize): Return an integer instead of tree.
9040 (get_len_or_size, strxcmp_eqz_result): New functions.
9041 (maybe_warn_pointless_strcmp): New function.
9042 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9043 between a longer string and a smaller array.
9044 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9045
9046 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9047
9048 * config/darwin.c (darwin_override_options): Make the check for
9049 Objective-C ABI version more specific for 64bit code.
9050
9051 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9052
9053 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9054 indicate that the new symbol is an indirection.
9055 (machopic_indirect_call_target): Likewise.
9056 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9057 (MACHO_SYMBOL_INDIRECTION_P): New.
9058 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9059
9060 2019-10-08 Jason Merrill <jason@redhat.com>
9061
9062 * doc/invoke.texi: Document -fconcepts-ts.
9063
9064 2019-10-09 Richard Biener <rguenther@suse.de>
9065
9066 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9067 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9068
9069 2019-10-08 Richard Biener <rguenther@suse.de>
9070
9071 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9072 (_stmt_vec_info::force_single_cycle): Likewise.
9073 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9074 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9075 * tree-vect-loop.c (vectorizable_reduction): Set
9076 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9077 (vect_transform_reduction): Use them to remove redundant code.
9078 (vect_transform_cycle_phi): Likewise.
9079
9080 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9081
9082 PR tree-optimization/90836
9083 * match.pd (popcount): New pattern.
9084
9085 2019-10-08 Martin Sebor <msebor@redhat.com>
9086
9087 PR middle-end/92026
9088 PR middle-end/92014
9089 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9090 again once nbytes has been set. Set the access size when not yet set.
9091
9092 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9093
9094 * config/darwin.c (machopic_select_section): Remove dead code for
9095 old Objective-C section selection method, replace with unreachable.
9096
9097 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9098
9099 * config/darwin.c (machopic_indirect_data_reference): Check for
9100 required indirections before making direct access to defined
9101 values.
9102 (machopic_output_indirection): Place the indirected pointes for
9103 required indirections into the non-lazy symbol pointers section.
9104 (darwin_encode_section_info):
9105 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9106 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9107
9108 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9109
9110 PR target/91994
9111 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9112 instead of ALL_SSE_REG to check if function call preserves some
9113 256-bit SSE registers.
9114
9115 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9116
9117 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9118 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9119 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9120
9121 2019-10-08 Richard Biener <rguenther@suse.de>
9122
9123 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9124 (_stmt_vec_info::is_reduc_info): Add.
9125 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9126 (vectorizable_condition): Remove.
9127 (vectorizable_shift): Likewise.
9128 (vectorizable_reduction): Adjust.
9129 (info_for_reduction): New.
9130 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9131 (vect_analyze_scalar_cycles_1): ... here.
9132 (vect_analyze_loop_operations): Adjust.
9133 (needs_fold_left_reduction_p): Simplify for single caller.
9134 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9135 for nested cycles not part of double reductions.
9136 (vect_model_reduction_cost): Pass in the reduction type.
9137 (info_for_reduction): New function.
9138 (vect_create_epilog_for_reduction): Use it, access reduction
9139 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9140 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9141 (vectorize_fold_left_reduction): Remove pointless assert.
9142 (vectorizable_reduction): Analyze the full reduction when
9143 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9144 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9145 stmt code-generation to vectorizable_* in most cases. Verify
9146 code-generation only for cases handled by
9147 vect_transform_reductuon.
9148 (vect_transform_reduction): Use info_for_reduction to get at
9149 reduction meta. Simplify.
9150 (vect_transform_cycle_phi): Likewise.
9151 (vectorizable_live_operation): Likewise.
9152 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9153 at the PHI node for STMT_VINFO_REDUC_TYPE.
9154 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9155 longer necessary code.
9156 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9157 (vectorizable_condition): Likewise. Get at reduction related
9158 info via info_for_reduction.
9159 (vect_analyze_stmt): Adjust.
9160 (vect_transform_stmt): Likewise.
9161 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9162 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9163
9164 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9165
9166 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9167 -fno-fp-int-builtin-inexact default for C2X.
9168
9169 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9170 Richard Biener <rguenther@suse.de>
9171
9172 PR tree-optimization/91532
9173 * tree-if-conv.c: Include tree-ssa-dse.h.
9174 (ifcvt_local_dce): Change param from bb to loop,
9175 and call dse_classify_store.
9176 (tree_if_conversion): Pass loop instead of loop->header as arg
9177 to ifcvt_local_dce.
9178 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9179 (delete_dead_or_redundant_assignment): Remove static qualifier from
9180 declaration, and add prototype in tree-ssa-dse.h.
9181 (dse_store_status): Move to tree-ssa-dse.h.
9182 (dse_classify_store): Remove static qualifier and add new tree param
9183 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9184 * tree-ssa-dse.h: New header.
9185
9186 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9187
9188 * config/darwin.c (machopic_output_indirection): Don't put
9189 hidden symbol indirections into the .data section, use the
9190 non-lazy symbol pointers section as normal.
9191 (darwin_encode_section_info): Record if a symbol is hidden.
9192 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9193 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9194
9195 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9196
9197 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9198 predicates instead of accessing bits directly.
9199 (machopic_indirect_call_target): Likewise.
9200 (machopic_output_indirection): Likewise.
9201 (darwin_encode_section_info): Improve description. Use renamed
9202 symbol flags. Use predicate macros for variables and functions.
9203 * config/darwin.h:
9204 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9205 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9206 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9207 (MACHO_SYMBOL_VARIABLE_P): New.
9208 (MACHO_SYMBOL_DEFINED_P):New.
9209 (MACHO_SYMBOL_STATIC_P): New.
9210 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9211 (SYMBOL_FLAG_SUBT_DEP): New.
9212 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9213
9214 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9215
9216 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9217 (msp430_expand_epilogue): Likewise.
9218 * config/msp430/predicates.md: Likewise.
9219 * config/msp430/msp430.md: Likewise.
9220 Replace blocks of 8 spaces with tabs.
9221
9222 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9223
9224 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9225 * config/msp430/msp430.c (msp430_split_addsi): New.
9226 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9227 a block of C code for splitting addsi.
9228
9229 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9230
9231 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9232 ix86_expand_rounddf_32): Reorder functions.
9233 * config/i386/i386-protos.h: Update.
9234
9235 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9236
9237 * config.in: Regenerate.
9238 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9239 Add new "Yx" constraint.
9240 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9241 function.
9242 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9243 prototype.
9244 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9245 code/data region to be selected in the small memory model.
9246 (msp430_section_attr): Don't warn if the "section" and "lower"
9247 attributes are used together.
9248 (msp430_handle_generic_attribute): Likewise.
9249 (msp430_var_in_low_mem): New function.
9250 (TARGET_ENCODE_SECTION_INFO): Define.
9251 (msp430_encode_section_info): New function.
9252 (gen_prefix): Return early in the small memory model.
9253 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9254 ".lower" prefix if -m{code,data}-region=lower have been passed.
9255 (msp430_output_aligned_decl_common): Emit common symbols when
9256 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9257 set.
9258 (TARGET_ASM_FILE_END): Define.
9259 (msp430_file_end): New function.
9260 (msp430_do_not_relax_short_jumps): Allow relaxation when
9261 function will be in the lower region.
9262 (msp430_op_not_in_high_mem): New function.
9263 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9264 the 'X' operand selector.
9265 Clarify comment for 'x' operand selector.
9266 * config/msp430/msp430.h (LINK_SPEC): Propagate
9267 -m{code,data}-region to the linker via spec function
9268 msp430_propagate_region_opt.
9269 (msp430_propagate_region_opt): New prototype.
9270 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9271 (SYMBOL_FLAG_LOW_MEM): Define.
9272 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9273 selector.
9274 (zero_extendqihi2): Fix operand number used by "%X" selector.
9275 (zero_extendqisi2): Likewise.
9276 (zero_extendhisi2): Likewise.
9277 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9278 (movhi): Likewise.
9279 (addqi3): Likewise.
9280 (addhi3): Likewise.
9281 (addsi3): Likewise.
9282 (addhi3_cy): Likewise.
9283 (addchi4_cy): Likewise.
9284 (subqi3): Likewise.
9285 (subhi3): Likewise.
9286 (subsi3): Likewise.
9287 (bic<mode>3): Likewise.
9288 (and<mode>3): Likewise.
9289 (ior<mode>3): Likewise.
9290 (xor<mode>3): Likewise.
9291 (slli_1): Add missing "%X" operand selector.
9292 (slll_1): Likewise.
9293 (slll_2): Likewise.
9294 (srai_1): Likewise.
9295 (sral_1): Likewise.
9296 (sral_2): Likewise.
9297 (srli_1): Likewise.
9298 (srll_1): Likewise.
9299 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9300 selector.
9301 (cbranchhi4_real): Likewise.
9302 (cbranchqi4_reversed): Likewise.
9303 (cbranchhi4_reversed): Likewise.
9304 (*bitbranch<mode>4): Likewise.
9305 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9306 * config/msp430/msp430.opt (mcode-region=): Set default to
9307 MSP430_REGION_LOWER. Improve docstring.
9308 (mdata-region=): Likewise.
9309 (muse-lower-region-prefix): New option.
9310 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9311 mdata-region=none multilib.
9312 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9313 mdata-region=none multilib.
9314 MULTILIB_EXCEPTIONS: Remove.
9315 MULTILIB_REQUIRED: Define.
9316 * configure: Regenerate.
9317 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9318 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9319 * doc/extend.texi: Clarify comment for {upper,lower,either}
9320 function attributes.
9321 Add separate description for "lower" variable attribute.
9322
9323 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9324
9325 PR target/77918
9326 * optabs-tree.c (vcond_icode_p): New function.
9327 (vcond_eq_icode_p): Likewise.
9328 (expand_vec_cond_expr_p): Use vcond_icode_p and
9329 vcond_eq_icode_p.
9330 * optabs.c (can_vcond_compare_p): New function.
9331 * optabs.h (can_vcond_compare_p): Likewise.
9332
9333 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9334
9335 PR target/77918
9336 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9337 caller passes a non-trapping condition.
9338 (is_gimple_condexpr): Allow trapping conditions.
9339 (is_gimple_condexpr_1): New helper function.
9340 (is_gimple_condexpr_for_cond): New function, acts like old
9341 is_gimple_condexpr.
9342 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9343 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9344 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9345 * gimplify.c (gimplify_cond_expr): Use
9346 is_gimple_condexpr_for_cond.
9347 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9348 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9349 VEC_COND_EXPR.
9350 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9351 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9352 is_gimple_condexpr_for_cond, remove pointless tmp check
9353 (forward_propagate_into_cond): Remove pointless tmp check.
9354
9355 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9356
9357 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9358 match that of other gsi_next_* functions. Adjust the comment.
9359 (gsi_start_nonvirtual_phis): New function.
9360 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9361 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9362
9363 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9364
9365 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9366 setjmp situation here. Fix a verb's ending: "the exact variables or
9367 elements for which there are warnings depends" -> "... depend".
9368
9369 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9370
9371 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9372
9373 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9374
9375 * ipa-prop.c (ipa_vr::nonzero_p): New.
9376 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9377 non-zero range.
9378 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9379 * tree-vrp.c (range_has_numeric_bounds_p): New.
9380 (range_int_cst_p): Use range_has_numeric_bounds_p.
9381 (get_range_op_handler): New.
9382 (supported_types_p): New.
9383 (defined_ranges_p): New.
9384 (drop_undefines_to_varying): New.
9385 (range_fold_binary_symbolics_p): New.
9386 (range_fold_unary_symbolics_p): New.
9387 (range_fold_unary_expr): Extract out into above functions.
9388 (range_fold_binary_expr): Same.
9389 (value_range_base::normalize_addresses): New.
9390 (value_range_base::normalize_symbolics): Normalize addresses.
9391 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9392
9393 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9394
9395 * tree-vrp.c (value_range_base::singleton_p): Use
9396 value_range_base::num_pairs instead of vrp_val_is* to check
9397 if a range has one sub-range.
9398
9399 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9400
9401 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9402 DEF is not a true earlyclobber but is tied to a specific input
9403 operand, and so is effectively earlyclobber wrt inputs that have
9404 different values.
9405 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9406
9407 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9408
9409 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9410 (pod_mode): Mark operators likewise.
9411 (scalar_int_mode): Mark non-default constructors and
9412 operators with CONSTEXPR.
9413 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9414 (fixed_size_mode): Likewise.
9415
9416 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9417
9418 PR target/91994
9419 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9420 and wrap the unspec_volatile in a parallel.
9421 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9422 the unspec_volatile.
9423 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9424 unspec_volatile to be wrapped in a parallel.
9425 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9426 (ix86_add_reg_usage_to_vzerouppers): New functions.
9427 (rest_of_handle_insert_vzeroupper): Use them to add register
9428 usage information to the vzeroupper instructions.
9429
9430 2019-10-07 Richard Biener <rguenther@suse.de>
9431
9432 PR tree-optimization/91975
9433 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9434 handle invariants.
9435
9436 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9437
9438 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9439 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9440
9441 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9442
9443 * config/darwin.c (darwin_override_options): Adjust objective-c
9444 ABI version error messages to avoid punctuation and contracted
9445 negations.
9446
9447 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9448
9449 * ipa-inline.c: Fix type; compute size rather than self_size
9450 for size of caller function.
9451
9452 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9453
9454 PR target/59888
9455 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9456 choose const_data section for constants with relocations.
9457 (machopic_select_section): Pass relocation flag to
9458 darwin_rodata_section ().
9459
9460 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9461
9462 PR tree-optimization/91734
9463 * generic-match-head.c: Include fold-const-call.h.
9464 * match.pd (sqrt(x) cmp c): Check the boundary value and
9465 in case inexact computation of c*c affects comparison of the boundary,
9466 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9467 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9468 for -frounding-math. For c2, try the next smaller or larger floating
9469 point constant depending on comparison code and if it has the same
9470 sqrt as c2, use it instead of c2.
9471
9472 2019-10-04 Martin Sebor <msebor@redhat.com>
9473
9474 PR middle-end/91977
9475 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9476 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9477 uninitialized objects.
9478
9479 2019-10-04 Martin Sebor <msebor@redhat.com>
9480
9481 * builtins.c (compute_objsize): Add an argument.
9482 * tree-object-size.c (addr_object_size): Same.
9483 (compute_builtin_object_size): Same.
9484 * tree-object-size.h (compute_builtin_object): Same.
9485
9486 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9487
9488 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9489
9490 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9491
9492 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9493
9494 2019-10-04 Martin Jambor <mjambor@suse.cz>
9495
9496 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9497 fntype when switching to calling memcpy instead of memset.
9498
9499 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9500
9501 * hash-table.h (hash_table::empty_slow): Don't assign
9502 size_t values to int variables.
9503
9504 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9505
9506 * expr.c (convert_mode_scalar): Remove shadowing local var.
9507 (emit_block_move): Rename local vars.
9508 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9509 (emit_push_insn): Rename local vars.
9510 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9511 shadowing local vars.
9512 (store_constructor): Remove shadowing local vars. Rename local var.
9513 (store_field, expand_cond_expr_using_cmove,
9514 expand_expr_real_2): Remove shadowing local vars.
9515 (expand_expr_real_1,
9516 do_store_flag): Remove shadowing local vars. Rename local vars.
9517
9518 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9519
9520 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9521
9522 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9523
9524 * genmatch.c (commutate): Rename local var.
9525 (lower_cond): Reuse local var.
9526 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9527 dt_operand::gen, dt_operand::gen_gimple_expr,
9528 dt_simplify::gen): Add a param. Rename generated vars.
9529 (decision_tree::insert_operand,
9530 (capture_info::walk_match, capture_info::walk_result,
9531 capture_info::walk_c_expr): Rename local vars.
9532 (expr::gen_transform): Rename generated vars.
9533 Use snprintf. Rename local vars.
9534 (capture::gen_transform, dt_operand::get_name,
9535 dt_operand::gen_opname): Rename generated vars.
9536 (write_predicate): Adjust call to gen_kids.
9537 (parser::get_internal_capture_id): Rename generated vars.
9538 (parser::parse_expr): Rename local vars.
9539 (parser::parse_if): Remove local var.
9540 (parser::parse_pattern, add_operator): Rename local vars.
9541
9542 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9543
9544 * builtins.def (DEF_C2X_BUILTIN): New macro.
9545 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9546 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9547 (strndup): Use DEF_C2X_BUILTIN.
9548 * coretypes.h (enum function_class): Add function_c2x_misc.
9549
9550 2019-10-04 Maya Rashish <coypu@sdf.org>
9551
9552 * ira-color.c (update_costs_from_allocno): Call
9553 ira_init_register_move_cost_if_necessary.
9554
9555 2019-10-04 Jeff Law <law@redhat.com>
9556
9557 * config/h8300/h8300.md (cpymemsi): Disable.
9558 (movmd, movmd_internal_<mode>, movstr, movsd):
9559 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9560 (movmd splitter, movsd splitter): Likewise.
9561
9562 * range-op.cc (range_tests): Avoid two tests when ints and
9563 shorts are the same size.
9564
9565 2019-10-04 Richard Biener <rguenther@suse.de>
9566
9567 PR lto/91968
9568 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9569 BLOCK_VARS.
9570
9571 2019-10-04 Richard Biener <rguenther@suse.de>
9572
9573 PR tree-optimization/91982
9574 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9575 against EXTRACT_LAST_REDUCTION.
9576 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9577
9578 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9579
9580 * range-op.o (value_range_from_overflowed_bounds): Rename from
9581 adjust_overflow_bound.
9582 (value_range_with_overflow): Rename from
9583 create_range_with_overflow.
9584 (create_possibly_reversed_range): Adjusted for above renames.
9585 (operator_*::wi_fold): Same.
9586 (cross_product_operator::wi_cross_productor): Same.
9587
9588 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9589
9590 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9591 -Wshadow=compatible-local): Fix description.
9592 Add an example where -Wshadow=compatible-local does not
9593 warn.
9594
9595 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9596
9597 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9598
9599 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9600 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9601
9602 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9603
9604 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9605 can_move_by_pieces issue.
9606
9607 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9608
9609 PR target/87243
9610 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9611 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9612 is available and the user has not set one on the command line.
9613
9614 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9615
9616 PR target/91769
9617 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9618 instead of REGNO equality check on addr.reg.
9619
9620 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9621
9622 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9623 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9624 * doc/invoke.texi (inline-heuristics-hint-percent,
9625 inline-heuristics-hint-percent-O2): Document.
9626 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9627 hint attribute.
9628 (can_inline_edge_by_limits_p): Use it.
9629
9630 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9631
9632 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9633 to print CONST_DOUBLEs.
9634
9635 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9636
9637 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9638 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9639 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9640
9641 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9642
9643 * Makefile.in (OBJS): Add range.o and range-op.o.
9644 Remove wide-int-range.o.
9645 * function-tests.c (test_ranges): New.
9646 (function_tests_c_tests): Call test_ranges.
9647 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9648 range_fold_unary_expr instead of extract_range_from_unary_expr.
9649 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9650 * range-op.cc: New file.
9651 * range-op.h: New file.
9652 * range.cc: New file.
9653 * range.h: New file.
9654 * selftest.h (range_tests): New prototype.
9655 * ssa.h: Include range.h.
9656 * tree-vrp.c (value_range_base::value_range_base): New
9657 constructors.
9658 (value_range_base::singleton_p): Do not call
9659 ranges_from_anti_range until sure we will need to.
9660 (value_range_base::type): Rename gcc_assert to
9661 gcc_checking_assert.
9662 (vrp_val_is_max): New argument.
9663 (vrp_val_is_min): Same.
9664 (wide_int_range_set_zero_nonzero_bits): Move from
9665 wide-int-range.cc.
9666 (extract_range_into_wide_ints): Remove.
9667 (extract_range_from_multiplicative_op): Remove.
9668 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9669 from extract_range_from_binary_expr.
9670 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9671 from extract_range_from_binary_expr.
9672 (extract_range_from_binary_expr): Remove.
9673 (normalize_for_range_ops): New.
9674 (range_fold_binary_expr): New.
9675 (range_fold_unary_expr): New.
9676 (value_range_base::num_pairs): New.
9677 (value_range_base::lower_bound): New.
9678 (value_range_base::upper_bound): New.
9679 (value_range_base::upper_bound): New.
9680 (value_range_base::contains_p): New.
9681 (value_range_base::invert): New.
9682 (value_range_base::union_): New.
9683 (value_range_base::intersect): New.
9684 (range_compatible_p): New.
9685 (value_range_base::operator==): New.
9686 (determine_value_range_1): Call range_fold_*expr instead of
9687 extract_range_from_*expr.
9688 * tree-vrp.h (class value_range_base): Add new constructors.
9689 Add methods for union_, intersect, operator==, contains_p,
9690 num_pairs, lower_bound, upper_bound, invert.
9691 (vrp_val_is_min): Add handle_pointers argument.
9692 (vrp_val_is_max): Same.
9693 (extract_range_from_unary_expr): Remove.
9694 (extract_range_from_binary_expr): Remove.
9695 (range_fold_unary_expr): New.
9696 (range_fold_binary_expr): New.
9697 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9698 range_fold_binary_expr instead of extract_range_from_binary_expr.
9699 (vr_values::extract_range_basic): Same.
9700 (vr_values::extract_range_from_unary_expr): Call
9701 range_fold_unary_expr instead of extract_range_from_unary_expr.
9702 * wide-int-range.cc: Remove.
9703 * wide-int-range.h: Remove.
9704
9705 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9706
9707 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9708 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9709 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9710 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9711 macro.
9712
9713 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9714
9715 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9716 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9717 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9718 * glimits.h: Likewise.
9719
9720 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9721
9722 PR rtl-optimization/91976
9723 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9724 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9725 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9726
9727 2019-10-02 Martin Sebor <msebor@redhat.com>
9728
9729 PR tree-optimization/80936
9730 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9731
9732 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9733
9734 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9735 instead of reg_class_contents[ALL_REGS].
9736
9737 2019-09-30 Jason Merrill <jason@redhat.com>
9738
9739 Add some hash_map_safe_* functions like vec_safe_*.
9740 * hash-map.h (default_hash_map_size): New variable.
9741 (create_ggc): Use it as default argument.
9742 (hash_map_maybe_create, hash_map_safe_get)
9743 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9744
9745 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9746
9747 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9748 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9749 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9750 (can_inline_edge_by_limits_p): Use it.
9751 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9752 (want_inline_small_function_p): Use O2 bounds.
9753 (edge_badness): LIkewise.
9754 * opts.c (default_options): Add OPT_finline_functions.
9755 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9756 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9757 New parameters.
9758 * doc/invoke.texi (-finline-functions): Update documentation.
9759 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9760 inline-min-speedup-O2): Document.
9761 (early-inlining-insns-O2): Simplify docs.
9762
9763 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9764
9765 PR rtl-optimization/87047
9766 * ifcvt.c (average_cost): New static function. Use it...
9767 (noce_process_if_block): ... here.
9768
9769 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9770
9771 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9772 * config/rs6000/rs6000-string.c (expand_block_move): Add
9773 might_overlap parm.
9774 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9775 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9776
9777 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9778
9779 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9780 (expand_builtin_memcpy): Use might_overlap parm.
9781 (expand_builtin_mempcpy_args): Use might_overlap parm.
9782 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9783 (expand_builtin_memory_copy_args): Add might_overlap parm.
9784 * expr.c (emit_block_move_via_cpymem): Rename to
9785 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9786 or movmem optab as appropriate.
9787 (emit_block_move_hints): Add might_overlap parm, do the right
9788 thing for might_overlap==true.
9789 * expr.h (emit_block_move_hints): Update prototype.
9790
9791 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9792
9793 * tree-eh.h (unsplit_eh_edges): Declare.
9794 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9795 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9796 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9797 (struct store_immediate_info): Add lp_nr field.
9798 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9799 initialize lp_nr with it.
9800 (struct merged_store_group): Add lp_nr and only_constants fields.
9801 (merged_store_group::merged_store_group): Initialize them.
9802 (merged_store_group::can_be_merged_into): Deal with them.
9803 (pass_store_merging): Rename terminate_and_release_chain into
9804 terminate_and_process_chain.
9805 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9806 renaming and remove useless assertions.
9807 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9808 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9809 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9810 instead of always recomputing it and compare lp_nr.
9811 (imm_store_chain_info::output_merged_store): If the group is in an
9812 active EH region, register new stores if they can throw. Moreover,
9813 if the insertion has created new basic blocks, adjust the PHI nodes
9814 of the post landing pad.
9815 (imm_store_chain_info::output_merged_stores): If the original stores
9816 are in an active EH region, deregister them.
9817 (lhs_valid_for_store_merging_p): Prettify.
9818 (adjust_bit_pos): New function extracted from...
9819 (mem_valid_for_store_merging): ...here. Use it for the base address
9820 and also for the offset if it is the addition of a constant.
9821 (lp_nr_for_store): New function.
9822 (pass_store_merging::process_store): Change return type to bool.
9823 Call lp_nr_for_store to initialize the store info. Propagate the
9824 return status of various called functions to the return value.
9825 (store_valid_for_store_merging_p): New predicate.
9826 (enum basic_block_status): New enumeration.
9827 (get_status_for_store_merging): New function.
9828 (pass_store_merging::execute): If the function can throw and catch
9829 non-call exceptions, unsplit the EH edges on entry and clean up the
9830 CFG on exit if something changed. Call get_status_for_store_merging
9831 for every basic block and keep the chains open across basic blocks
9832 when possible. Terminate and process open chains at the end, if any.
9833
9834 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9835
9836 * reginfo.c (globalize_reg): Fix shadowed variable in
9837 function_abis walk.
9838
9839 2019-10-02 Martin Jambor <mjambor@suse.cz>
9840
9841 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9842 do not compute some stuff when set.
9843 (cgraph_node::create_edge): Likewise.
9844 (cgraph_node::create_indirect_edge): Renamed last parameter to
9845 coning_p and flipped its meaning, don't even calculate
9846 inline_failed when set.
9847 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9848 (symbol_table::::create_edge): Likewise.
9849 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9850 the default value.
9851 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9852 call graph edge creating functions.
9853
9854 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9855
9856 PR c++/91222
9857 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9858 namespace types.
9859
9860 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9861
9862 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9863
9864 2019-10-02 Richard Biener <rguenther@suse.de>
9865
9866 * tree-vectorizer.h (vect_transform_reduction): Declare.
9867 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9868 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9869 stmt transform to ...
9870 (vect_transform_reduction): ... this.
9871
9872 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9873
9874 * omp-low.c (lower_omp_target): Dereference optional argument
9875 to work with the right pointer.
9876
9877 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9878
9879 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9880 false.
9881 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9882 * langhooks.h (omp_is_optional_argument): New hook.
9883 * omp-general.c (omp_is_optional_argument): New.
9884 * omp-general.h (omp_is_optional_argument): New declaration.
9885 * omp-low.c (lower_omp_target): Create temporary for received value
9886 and take the address for new_var if the original variable was a
9887 DECL_BY_REFERENCE. Use size of referenced object when a
9888 pass-by-reference optional argument used as argument to firstprivate.
9889
9890 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9891
9892 PR tree-optimization/91940
9893 * tree-vect-patterns.c: Include tree-vector-builder.h and
9894 vec-perm-indices.h.
9895 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9896 unpromoting the argument back to uint16_t, or by converting into a
9897 rotate, or into shifts plus ior.
9898
9899 2019-10-02 Richard Biener <rguenther@suse.de>
9900
9901 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9902 New.
9903 (vect_transform_cycle_phi): Declare.
9904 * tree-vect-stmts.c (vect_transform_stmt): Call
9905 vect_transform_cycle_phi.
9906 * tree-vect-loop.c (vectorizable_reduction): Split out
9907 PHI transformation stage to ...
9908 (vect_transform_cycle_phi): ... here.
9909
9910 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9911
9912 PR middle-end/91957
9913 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9914 eliminable registers.
9915 (make_hard_regno_live): Likewise, and don't make them live.
9916
9917 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9918
9919 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9920 Call pp_emit_prefix.
9921 (layout::print_source_line): Likewise.
9922 (layout::start_annotation_line): Likewise.
9923 (diagnostic_show_locus): Remove call to temporarily clear the
9924 prefix.
9925 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9926 interaction of pp_set_prefix with rulers and fix-it hints.
9927 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9928 prefix when calling diagnostic_show_locus, rather than destroying
9929 it afterwards.
9930 (print_parseable_fixits): Temporarily clear prefix.
9931 * pretty-print.c (pp_format): Save and restore line_length, rather
9932 than assuming it is zero.
9933 (pp_output_formatted_text): Remove assertion that line_length is
9934 zero.
9935
9936 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9937
9938 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9939 Rename to ...
9940 (nonoverlapping_refs_since_match_p): ... this; handle also
9941 ARRAY_REFs.
9942 (alias_stats): Update stats.
9943 (dump_alias_stats): Likewise.
9944 (cheap_array_ref_low_bound): New function.
9945 (aliasing_matching_component_refs_p): Add partial_overlap
9946 argument;
9947 pass it to nonoverlapping_refs_since_match_p.
9948 (aliasing_component_refs_walk): Update call of
9949 aliasing_matching_component_refs_p
9950 (nonoverlapping_array_refs_p): New function.
9951 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9952 indirect_refs_may_alias_p): Update calls of
9953 nonoverlapping_refs_since_match_p.
9954
9955 2019-10-01 Maya Rashish <coypu@sdf.org>
9956
9957 PR target/85401
9958 * ira-color.c (allocno_copy_cost_saving): Call
9959 ira_init_register_move_cost_if_necessary.
9960
9961 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
9962
9963 * Makefile.in (gnat_install_lib): New variable.
9964 * configure.ac: Substitute it.
9965 * configure: Regenerate.
9966
9967 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9968
9969 PR lto/91222
9970 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9971 is matched with non-C++ type
9972
9973 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9974
9975 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9976 after local CSE.
9977
9978 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9979
9980 * doc/invoke.texi (early-inlining-insns-O2): Document.
9981 (early-inlining-insns): Update.
9982 * params.def (early-inlining-insns-O2): New bound.
9983 (early-inlining-insns): Update docs.
9984 * ipa-inline.c (want_early_inline_function_p): Use new bound.
9985
9986 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9987
9988 PR target/88562
9989 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9990 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9991 a memory access insn.
9992
9993 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
9994
9995 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9996 vpmsumd.
9997
9998 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9999
10000 PR target/77918
10001 * config/s390/s390.c (s390_expand_vec_compare): Use
10002 gen_vec_cmpordered and gen_vec_cmpunordered.
10003 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10004 vec_unordered): Delete.
10005 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10006 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10007 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10008 (vec_cmp<code>): Generic dispatcher.
10009
10010 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10011
10012 PR target/77918
10013 * config/s390/vector.md (V_HW): Add V1TI in order to make
10014 vcond$a$b generate vcondv1tiv1tf.
10015
10016 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10017
10018 PR rtl-optimization/91948
10019 * ira-build.c (ira_create_allocno): Initialize
10020 ALLOCNO_CROSSED_CALLS_ABIS.
10021 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10022 than regno to ira_need_caller_save_p.
10023
10024 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10025
10026 * config/i386/i386-options.c
10027 (ix86_recompute_optlev_based_flags): New, moved out of...
10028 (ix86_option_override_internal): ... this. Call it.
10029 (ix86_override_options_after_change): Call it here too.
10030
10031 PR debug/91507
10032 * dwarf2out.c (override_type_for_decl_p): New.
10033 (gen_variable_die): Use it.
10034
10035 2019-10-01 Richard Biener <rguenther@suse.de>
10036
10037 * tree-vect-loop.c (vectorizable_reduction): Move variables
10038 to where they are used.
10039
10040 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10041
10042 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10043 (build_def_use): Use PC instead of CC0 in a comment.
10044
10045 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10046
10047 * rtl.def (CLOBBER_HIGH): Delete.
10048 * doc/rtl.texi (clobber_high): Remove documentation.
10049 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10050 (reg_is_clobbered_by_clobber_high): Delete.
10051 (gen_hard_reg_clobber_high): Likewise.
10052 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10053 * cfgexpand.c (expand_gimple_stmt): Likewise.
10054 * combine-stack-adj.c (single_set_for_csa): Likewise.
10055 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10056 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10057 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10058 * cse.c (invalidate_reg): Remove clobber_high parameter.
10059 (invalidate): Update call accordingly.
10060 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10061 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10062 (count_reg_usage, insn_live_p): Likewise.
10063 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10064 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10065 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10066 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10067 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10068 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10069 (mark_nonreg_stores_2): Likewise.
10070 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10071 (df_get_call_refs): Likewise.
10072 * dwarf2out.c (mem_loc_descriptor): Likewise.
10073 * emit-rtl.c (verify_rtx_sharing): Likewise.
10074 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10075 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10076 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10077 * genemit.c (gen_exp, gen_insn): Likewise.
10078 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10079 * haifa-sched.c (haifa_classify_rtx): Likewise.
10080 * ira-build.c (create_insn_allocnos): Likewise.
10081 * ira-costs.c (scan_one_insn): Likewise.
10082 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10083 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10084 * jump.c (mark_jump_label_1): Likewise.
10085 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10086 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10087 handling.
10088 (mark_not_eliminable): Likewise.
10089 * lra-lives.c (process_bb_lives): Likewise.
10090 * lra.c (new_insn_reg): Remove clobber_high parameter.
10091 (collect_non_operand_hard_regs): Likewise. Update call to new
10092 insn_reg. Remove CLOBBER_HIGH handling.
10093 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10094 to collect_non_operand_hard_regs.
10095 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10096 Update call to new_insn_reg.
10097 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10098 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10099 (move2add_note_store): Likewise.
10100 * print-rtl.c (print_pattern): Likewise.
10101 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10102 (if_test_bypass_p): Likewise.
10103 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10104 * reginfo.c (reg_scan_mark_refs): Likewise.
10105 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10106 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10107 (forget_old_reloads_1): Likewise.
10108 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10109 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10110 (dbr_schedule): Likewise.
10111 * resource.c (update_live_status, mark_referenced_resources)
10112 (mark_set_resources): Likewise.
10113 * rtl.c (copy_rtx): Likewise.
10114 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10115 (note_pattern_stores): Likewise.
10116 (reg_is_clobbered_by_clobber_high): Delete.
10117 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10118 CLOBBER_HIGH handling.
10119
10120 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10121
10122 PR target/91452
10123 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10124 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10125 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10126 Handle ARM_PCS_TLSDESC.
10127 (aarch64_tlsdesc_abi_id): New function.
10128 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10129 rtx instead of a list of clobbers and clobber_highs.
10130 (tlsdesc_small_<mode>): Update accordingly.
10131
10132 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10133
10134 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10135 extra callee_abi argument.
10136 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10137 Insert a CALLEE_ABI unspec into the call pattern as the second
10138 element in the PARALLEL.
10139 (aarch64_simd_call_p): Delete.
10140 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10141 the new CALLEE_ABI element of the PARALLEL.
10142 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10143 from the function type, if given.
10144 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10145 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10146 when passed the function_arg_info end marker.
10147 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10148 final argument of gen_sibcall.
10149 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10150 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10151 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10152 pattern.
10153 (call_value): Likewise operand 3.
10154 (sibcall): Likewise operand 2. Place the unspec before rather than
10155 after the return.
10156 (sibcall_value): Likewise operand 3.
10157 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10158 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10159 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10160 constraint strings.
10161 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10162
10163 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10164
10165 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10166 choose_hard_reg_mode.
10167 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10168
10169 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10170
10171 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10172 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10173 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10174
10175 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10176
10177 * diagnostic-show-locus.c (line_label::line_label): Initialize
10178 m_has_vbar.
10179 (line_label::comparator): Reverse the sort order by m_state_idx,
10180 so that when the list is walked backwards the labels appear in
10181 order of insertion into the rich_location.
10182 (line_label::m_has_vbar): New field.
10183 (layout::print_any_labels): When dealing with multiple labels at
10184 the same line and column, only print vertical bars for the one
10185 with the highest label_line.
10186 (selftest::test_one_liner_labels): Update test for multiple labels
10187 to expect the labels to be in the order of insertion into the
10188 rich_location. Add a test for many such labels, where the column
10189 numbers are out-of-order relative to the insertion order.
10190
10191 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10192
10193 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10194 (ix86_frame::expensive_count): Likewise.
10195 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10196 of use_fast_prologue_epilogue robust against incidental changes
10197 in function size.
10198
10199 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10200
10201 PR target/77918
10202 * config/s390/vector.md (vec_unordered<mode>): Call
10203 gen_vec_ordered<mode>.
10204
10205 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10206
10207 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10208 New pattern for ASRD.
10209 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10210 * internal-fn.def (IFN_DIV_POW2): New internal function.
10211 * optabs.def (sdiv_pow2_optab): New optab.
10212 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10213 Modify pattern to support new operation.
10214 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10215 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10216 Document new target selector.
10217
10218 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10219
10220 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10221 to test whether we're compiling a vector PCS function and to test
10222 whether the function needs to save a particular register.
10223 Remove the vector PCS handling of df_set_regs_ever_live.
10224 (aarch64_components_for_bb): Use crtl->abi to test whether
10225 the function needs to save a particular register.
10226 (aarch64_process_components): Use crtl->abi to test whether
10227 we're compiling a vector PCS function.
10228 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10229 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10230
10231 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10232
10233 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10234 Delete.
10235 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10236 whether the block calls a function that clobbers more registers
10237 than the current function is allowed to.
10238 (aarch64_use_simple_return_insn_p): Delete.
10239 * config/aarch64/aarch64.md (simple_return): Remove condition.
10240
10241 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10242
10243 * function-abi.h (function_abi_aggregator): New class.
10244 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10245 function.
10246 * ira.c (update_equiv_regs_prescan): New function. Call
10247 set_paradoxical_subreg here rather than...
10248 (update_equiv_regs): ...here.
10249 (ira): Call update_equiv_regs_prescan.
10250
10251 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10252
10253 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10254 IN_TARGET_CODE.
10255 (call_used_or_fixed_regs): Likewise.
10256 (call_used_or_fixed_reg_p): Likewise.
10257 * reginfo.c (regs_invalidated_by_call): New macro.
10258
10259 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10260
10261 * shrink-wrap.c: Include function-abi.h.
10262 (requires_stack_frame_p): Use crtl->abi to test whether the
10263 current function can use a register without saving it first.
10264
10265 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10266
10267 * sel-sched-ir.h (_def::crosses_call): Replace with...
10268 (_def::crossed_call_abis): ..this new field.
10269 (def_list_add): Take a mask of ABIs instead of a crosses_call
10270 boolean.
10271 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10272 of _def accordingly.
10273 * sel-sched.c: Include function-abi.h.
10274 (hard_regs_data::regs_for_call_clobbered): Delete.
10275 (reg_rename::crosses_call): Replace with...
10276 (reg_rename::crossed_call_abis): ...this new field.
10277 (fur_static_params::crosses_call): Replace with...
10278 (fur_static_params::crossed_call_abis): ...this new field.
10279 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10280 (init_hard_regs_data): Use crtl->abi to test which registers the
10281 current function would need to save before it uses them.
10282 (mark_unavailable_hard_regs): Update handling of call-clobbered
10283 registers, using call_clobbers_in_region to find out which registers
10284 might be call-clobbered (but without taking -fipa-ra into account
10285 for now). Remove separate handling of partially call-clobbered
10286 registers.
10287 (verify_target_availability): Use crossed_call_abis instead of
10288 crosses_call.
10289 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10290 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10291
10292 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10293
10294 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10295 function to test whether a register is fully or partly clobbered.
10296
10297 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10298
10299 * rtlanal.c: Include function-abi.h.
10300 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10301 function and clobbers_reg_p to test whether the register
10302 is call-clobbered.
10303 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10304 to get the ABI of the called function and full_reg_clobbers to
10305 get the set of fully call-clobbered registers. Warn about the
10306 pitfalls of using this mode.
10307
10308 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10309
10310 * reload.c: Include function-abi.h.
10311 (find_equiv_reg): Use clobbers_reg_p to test whether either
10312 of the equivalent registers is clobbered by a call.
10313 * reload1.c: Include function-abi.h.
10314 (reg_reloaded_call_part_clobbered): Delete.
10315 (reload): Use crtl->abi to test which registers would need
10316 saving in the prologue before use.
10317 (find_reg): Likewise.
10318 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10319 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10320 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10321
10322 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10323
10324 * regrename.h (du_head::call_clobber_mask): New field.
10325 (du_head::need_caller_save_reg): Replace with...
10326 (du_head::call_abis): ...this new field.
10327 * regrename.c: Include function-abi.h.
10328 (call_clobbered_in_chain_p): New function.
10329 (check_new_reg_p): Use crtl->abi when deciding whether a register
10330 is free for use after RA. Use call_clobbered_in_chain_p to test
10331 whether a candidate register would be clobbered by a call.
10332 (find_rename_reg): Don't add call-clobber conflicts here.
10333 (rename_chains): Check call_abis instead of need_caller_save_reg.
10334 (merge_chains): Update for changes to du_head.
10335 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10336 target. Record the ABI identifier in call_abis and the set of
10337 fully or partially clobbered registers in call_clobber_mask.
10338 Add fully-clobbered registers to hard_conflicts here rather
10339 than in find_rename_reg.
10340 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10341 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10342 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10343 function-abi.h.
10344 * config/c6x/c6x.c: Likewise.
10345
10346 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10347
10348 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10349 mode of the register when deciding whether it is no longer
10350 available after a call.
10351
10352 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10353
10354 * recog.c: Include function-abi.h.
10355 (peep2_find_free_register): Use crtl->abi when deciding whether
10356 a register is free for use after RA.
10357
10358 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10359
10360 * postreload-gcse.c: Include regs.h and function-abi.h.
10361 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10362 call insn target. Conservatively assume that partially-clobbered
10363 registers are altered.
10364
10365 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10366
10367 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10368 when deciding whether a register is free for use after RA.
10369 (reload_combine): Remove unnecessary use of fixed_reg_set.
10370 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10371 call insn target. Use reg_mode when testing whether a register
10372 is no longer available.
10373
10374 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10375
10376 * target.def (return_call_with_max_clobbers): Delete.
10377 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10378 * doc/tm.texi: Regenerate.
10379 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10380 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10381 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10382 (lra_reg::call_insn): Delete.
10383 * lra.c: Include function-abi.h.
10384 (initialize_lra_reg_info_element): Don't initialize the fields above.
10385 (lra): Use crtl->abi to test whether the current function needs to
10386 save a register in the prologue. Remove special pre-inheritance
10387 lra_create_live_ranges pass for flag_ipa_ra.
10388 * lra-assigns.c: Include function-abi.h
10389 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10390 function needs to save a register in the prologue.
10391 (lra_assign): Assert that registers aren't allocated to a
10392 conflicting register, rather than checking only for overlaps
10393 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10394 and for registers that are not live across a call.
10395 * lra-constraints.c (last_call_for_abi): New variable.
10396 (full_and_partial_call_clobbers): Likewise.
10397 (setup_next_usage_insn): Remove the register from
10398 full_and_partial_call_clobbers.
10399 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10400 whether the register needs a caller save.
10401 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10402 of call_used_or_fixed_regs.
10403 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10404 full_and_partial_call_clobbers.
10405 * lra-lives.c (check_pseudos_live_through_calls): Replace
10406 last_call_used_reg_set and call_insn arguments with an abi argument.
10407 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10408 as the set of conflicting registers.
10409 (calls_have_same_clobbers_p): Delete.
10410 (process_bb_lives): Track the ABI of the last call instead of an
10411 insn/HARD_REG_SET pair. Update calls to
10412 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10413 the set of registers that could be clobbered by an EH edge.
10414 Include partially-clobbered as well as fully-clobbered registers.
10415 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10416 * lra-remat.c: Include function-abi.h.
10417 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10418 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10419 registers and bitmap_view to combine them into dead_regs.
10420 (call_used_input_regno_present_p): Take a function_abi argument
10421 and use it to test whether a register is call-clobbered.
10422 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10423 call insn target. Update tje call to call_used_input_regno_present_p.
10424 (do_remat): Likewise.
10425 (lra_remat): Remove the initialization of call_used_regs_arr_len
10426 and call_used_regs_arr.
10427
10428 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10429
10430 * loop-iv.c: Include regs.h and function-abi.h.
10431 (simplify_using_initial_values): Use insn_callee_abi to get the
10432 ABI of the call insn target. Conservatively assume that
10433 partially-clobbered registers are altered.
10434
10435 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10436
10437 * function-abi.h (call_clobbers_in_region): Declare.
10438 (call_clobbered_in_region_p): New function.
10439 * function-abi.cc (call_clobbers_in_region): Likewise.
10440 * ira-int.h: Include function-abi.h.
10441 (ira_allocno::crossed_calls_abis): New field.
10442 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10443 (ira_need_caller_save_regs): New function.
10444 (ira_need_caller_save_p): Likewise.
10445 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10446 of call_used_or_fixed_regs.
10447 (do_reload): Use crtl->abi to test whether the current function
10448 needs to save a register in the prologue. Count registers that
10449 need to be saved rather than registers that don't.
10450 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10451 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10452 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10453 (propagate_some_info_from_allocno): Likewise.
10454 (copy_info_to_removed_store_destinations): Likewise.
10455 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10456 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10457 (ira_build): Use ira_need_caller_save_regs instead of
10458 call_used_or_fixed_regs.
10459 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10460 whether the current function would need to save a register
10461 before using it.
10462 (calculate_spill_cost): Likewise.
10463 (allocno_reload_assign): Use ira_need_caller_save_regs and
10464 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10465 * ira-conflicts.c (ira_build_conflicts): Use
10466 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10467 as the set of call-clobbered registers. Remove the
10468 call_used_or_fixed_regs mask from the calculation of
10469 temp_hard_reg_set and mask its use instead. Remove special
10470 handling of partially-clobbered registers.
10471 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10472 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10473 calculate the set of conflicting registers for calls that
10474 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10475 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10476 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10477 Use eh_edge_abi to calculate the set of registers that could
10478 be clobbered by an EH edge. Include partially-clobbered as
10479 well as fully-clobbered registers.
10480
10481 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10482
10483 * haifa-sched.c: Include function-abi.h.
10484 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10485 the function would need to save a register before using it.
10486
10487 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10488
10489 * gcse.c: Include function-abi.h.
10490 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10491 the call insn target. Invalidate partially call-clobbered
10492 registers as well as fully call-clobbered ones.
10493
10494 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10495
10496 * function.c (aggregate_value_p): Work out which ABI the
10497 function is using before testing which registers are at least
10498 partly preserved by a call.
10499
10500 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10501
10502 * early-remat.c: Include regs.h and function-abi.h.
10503 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10504 registers here.
10505 (early_remat::restrict_remat_for_unavail_regs): New function.
10506 (early_remat::restrict_remat_for_call): Likewise.
10507 (early_remat::process_block): Before calling emit_remat_insns
10508 for a previous call in the block, invalidate any candidates
10509 that would clobber call-preserved registers.
10510 (early_remat::emit_remat_insns_for_block): Likewise for the
10511 final call in a block. Do the same thing for live-in registers
10512 when calling emit_remat_insns at the head of a block.
10513
10514 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10515
10516 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10517 whether the current function needs to save at least part of a
10518 register before using it.
10519 (df_get_exit_block_use_set): Likewise for epilogue restores.
10520
10521 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10522
10523 * df-problems.c: Include regs.h and function-abi.h.
10524 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10525 sparse_invalidated_by_eh and dense_invalidated_by_call to
10526 dense_invalidated_by_eh.
10527 (df_print_bb_index): Update accordingly.
10528 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10529 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10530 that are clobbered by an EH edge. Clobber partially-clobbered
10531 registers as well as fully-clobbered ones.
10532 (df_md_confluence_n): Likewise.
10533 (df_rd_local_compute): Likewise. Update for changes to
10534 df_rd_problem_data.
10535 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10536 of registers that are clobbered by an EH edge. Includde partially-
10537 clobbered registers as well as fully-clobbered ones.
10538
10539 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10540
10541 * cselib.c (cselib_process_insn): If we know what mode a
10542 register was set in, check whether it is clobbered in that
10543 mode by a call. Only fall back to reg_raw_mode if that fails.
10544
10545 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10546
10547 * cse.c: Include regs.h and function-abi.h.
10548 (invalidate_for_call): Take the call insn as an argument.
10549 Use insn_callee_abi to get the ABI of the call and invalidate
10550 partially clobbered registers as well as fully clobbered ones.
10551 (cse_insn): Update call accordingly.
10552
10553 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10554
10555 * combine.c: Include function-abi.h.
10556 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10557 of the target of call insns. Invalidate partially-clobbered
10558 registers as well as fully-clobbered ones.
10559
10560 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10561
10562 * cfgloopanal.c: Include regs.h and function-abi.h.
10563 (init_set_costs): Use default_function_abi to test whether
10564 a general register is call-clobbered.
10565
10566 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10567
10568 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10569 instead of the call-clobbered sets.
10570
10571 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10572
10573 * caller-save.c (setup_save_areas): Remove redundant |s of
10574 fixed_reg_set.
10575 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10576 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10577 value is useful.
10578
10579 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10580
10581 * rtl.h (predefined_function_abi): Declare.
10582 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10583 instead of a boolean call_save flag.
10584 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10585 accordingly.
10586 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10587 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10588 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10589 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10590 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10591 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10592 * reginfo.c (init_reg_modes_target): Likewise.
10593 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10594 instead of a boolean call_save flag.
10595 * targhooks.c: Include function-abi.h.
10596 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10597 using eh_edge_abi to choose the mode.
10598
10599 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10600
10601 * target.def (hard_regno_call_part_clobbered): Take an ABI
10602 identifier instead of an rtx_insn.
10603 * doc/tm.texi: Regenerate.
10604 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10605 (hook_bool_uint_uint_mode_false): New function.
10606 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10607 (hook_bool_uint_uint_mode_false): New function.
10608 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10609 Take an ABI identifier instead of an rtx_insn.
10610 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10611 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10612 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10613 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10614 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10615 Likewise.
10616 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10617 * cselib.c: Include function-abi.h.
10618 (cselib_process_insn): Update call to
10619 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10620 to get the appropriate ABI identifier.
10621 * function-abi.cc (predefined_function_abi::initialize): Update call
10622 to targetm.hard_regno_call_part_clobbered.
10623 * ira-conflicts.c (ira_build_conflicts): Likewise.
10624 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10625 * lra-constraints.c: Include function-abi.h.
10626 (need_for_call_save_p): Update call to
10627 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10628 to get the appropriate ABI identifier.
10629 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10630 * regcprop.c (copyprop_hardreg_forward_1): Update call
10631 to targetm.hard_regno_call_part_clobbered.
10632 * reginfo.c (choose_hard_reg_mode): Likewise.
10633 * regrename.c (check_new_reg_p): Likewise.
10634 * reload.c (find_equiv_reg): Likewise.
10635 * reload1.c (emit_reload_insns): Likewise.
10636 * sched-deps.c: Include function-abi.h.
10637 (deps_analyze_insn): Update call to
10638 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10639 to get the appropriate ABI identifier.
10640 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10641 call to targetm.hard_regno_call_part_clobbered.
10642 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10643
10644 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10645
10646 * config/i386/i386.c: Include function-abi.h.
10647 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10648 if they preserve some 256-bit or 512-bit SSE registers.
10649
10650 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10651
10652 * target.def (insn_callee_abi): New hook.
10653 (remove_extra_call_preserved_regs): Delete.
10654 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10655 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10656 * doc/tm.texi: Regenerate.
10657 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10658 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10659 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10660 insn argument.
10661 (aarch64_remove_extra_call_preserved_regs): Delete.
10662 (aarch64_insn_callee_abi): New function.
10663 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10664 (TARGET_INSN_CALLEE_ABI): New macro.
10665 * rtl.h (get_call_fndecl): Declare.
10666 (cgraph_rtl_info): Fix formatting. Tweak comment for
10667 function_used_regs. Remove function_used_regs_valid.
10668 * rtlanal.c (get_call_fndecl): Moved from final.c
10669 * function-abi.h (insn_callee_abi): Declare.
10670 (target_function_abi_info): Mention insn_callee_abi.
10671 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10672 way to get_call_reg_set_usage did.
10673 (insn_callee_abi): New function.
10674 * regs.h (get_call_reg_set_usage): Delete.
10675 * final.c: Include function-abi.h.
10676 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10677 function_used_regs before the main loop rather than afterwards.
10678 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10679 if function_used_regs ends up not being useful.
10680 (get_call_fndecl): Move to rtlanal.c
10681 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10682 * caller-save.c: Include function-abi.h.
10683 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10684 instead of get_call_reg_set_usage.
10685 * cfgcleanup.c: Include function-abi.h.
10686 (old_insns_match_p): Use insn_callee_abi instead of
10687 get_call_reg_set_usage.
10688 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10689 a tree.
10690 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10691 function_used_regs.
10692 * df-scan.c: Include function-abi.h.
10693 (df_get_call_refs): Use insn_callee_abi instead of
10694 get_call_reg_set_usage.
10695 * ira-lives.c: Include function-abi.h.
10696 (process_bb_node_lives): Use insn_callee_abi instead of
10697 get_call_reg_set_usage.
10698 * lra-lives.c: Include function-abi.h.
10699 (process_bb_lives): Use insn_callee_abi instead of
10700 get_call_reg_set_usage.
10701 * postreload.c: Include function-abi.h.
10702 (reload_combine): Use insn_callee_abi instead of
10703 get_call_reg_set_usage.
10704 * regcprop.c: Include function-abi.h.
10705 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10706 get_call_reg_set_usage.
10707 * resource.c: Include function-abi.h.
10708 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10709 instead of get_call_reg_set_usage.
10710 * var-tracking.c: Include function-abi.h.
10711 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10712 get_call_reg_set_usage.
10713
10714 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10715
10716 * target.def (fntype_abi): New target hook.
10717 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10718 * doc/tm.texi: Regenerate.
10719 * target.h (predefined_function_abi): Declare.
10720 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10721 if defined.
10722 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10723 * config/aarch64/aarch64.c: Include function-abi.h.
10724 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10725 (TARGET_FNTYPE_ABI): Define.
10726
10727 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10728
10729 * Makefile.in (OBJS): Add function-abi.o.
10730 (GTFILES): Add function-abi.h.
10731 * function-abi.cc: New file.
10732 * function-abi.h: Likewise.
10733 * emit-rtl.h (rtl_data::abi): New field.
10734 * function.c: Include function-abi.h.
10735 (prepare_function_start): Initialize crtl->abi.
10736 * read-rtl-function.c: Include regs.h and function-abi.h.
10737 (read_rtl_function_body): Initialize crtl->abi.
10738 (read_rtl_function_body_from_file_range): Likewise.
10739 * reginfo.c: Include function-abi.h.
10740 (init_reg_sets_1): Initialize default_function_abi.
10741 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10742 when making a register global.
10743 * target-globals.h (this_target_function_abi_info): Declare.
10744 (target_globals::function_abi_info): New field.
10745 (restore_target_globals): Copy it.
10746 * target-globals.c: Include function-abi.h.
10747 (default_target_globals): Initialize the function_abi_info field.
10748 (target_globals): Allocate it.
10749 (save_target_globals): Free it.
10750
10751 2019-09-30 Nick Clifton <nickc@redhat.com>
10752
10753 PR target/85978
10754 * config/frv/frv.c (frv_register_move_cost): Add break statements
10755 to avoid falling through to the wrong cases. Tidy code.
10756
10757 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10758
10759 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10760 For multi-registers modes, test how big each register part is.
10761
10762 2019-09-30 Nick Clifton <nickc@redhat.com>
10763
10764 PR target/59205
10765 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10766 (TARGET_ASM_SELECT_SECTION): Remove definition.
10767 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10768
10769 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10770
10771 * emit-rtl.c (init_raw_REG): New function.
10772 (gen_raw_REG): Use init_raw_REG.
10773 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10774 macros.
10775 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10776 * rtl.h (rtx_init): New function.
10777 (rtx_alloca): New function.
10778 (init_raw_REG): New function.
10779 (alloca_raw_REG): New macro.
10780
10781 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10782
10783 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10784 (pcrel_local_address): Replace pcrel_address predicate, use the
10785 new function address_to_insn_form.
10786 (pcrel_external_address): Replace with new implementation using
10787 address_to_insn_form..
10788 (prefixed_mem_operand): Delete predicate which is now unused.
10789 (pcrel_external_mem_operand): Delete predicate which is now
10790 unused.
10791 * config/rs6000/rs6000-protos.h (enum insn_form): New
10792 enumeration.
10793 (enum non_prefixed_form): New enumeration.
10794 (address_to_insn_form): New declaration.
10795 (prefixed_load_p): New declaration.
10796 (prefixed_store_p): New declaration.
10797 (prefixed_paddi_p): New declaration.
10798 (rs6000_asm_output_opcode): New declaration.
10799 (rs6000_final_prescan_insn): Move declaration and update calling
10800 signature.
10801 (address_is_prefixed): New helper inline function.
10802 * config/rs6000/rs6000.c(print_operand_address): Check for either
10803 PC-relative local symbols or PC-relative external symbols.
10804 (rs6000_emit_move): Support loading PC-relative addresses.
10805 (mode_supports_prefixed_address_p): Delete, no longer used.
10806 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10807 (address_to_insn_form): New function to decode an address format.
10808 (reg_to_non_prefixed): New function to identify what the
10809 non-prefixed memory instruction format is for a register.
10810 (prefixed_load_p): New function to identify prefixed loads.
10811 (prefixed_store_p): New function to identify prefixed stores.
10812 (prefixed_paddi_p): New function to identify prefixed load
10813 immediates.
10814 (next_insn_prefixed_p): New static state variable.
10815 (rs6000_final_prescan_insn): New function to determine if an insn
10816 uses a prefixed instruction.
10817 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10818 prefixed instruction.
10819 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10820 (ASM_OUTPUT_OPCODE): New target hook.
10821 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10822 prefixed instructions.
10823 (prefixed_length): New insn attribute for the size of prefixed
10824 instructions.
10825 (non_prefixed_length): New insn attribute for the size of
10826 non-prefixed instructions.
10827 (pcrel_local_addr): New insn to load up a local PC-relative
10828 address.
10829 (pcrel_extern_addr): New insn to load up an external PC-relative
10830 address.
10831 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10832 GPR and loading a 128-bit floating point type to a GPR.
10833
10834 2019-09-30 Richard Biener <rguenther@suse.de>
10835
10836 * gimple.c (gimple_get_lhs): For PHIs return the result.
10837 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10838 SLP instance as argument.
10839 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10840 double-reduction PHIs with vectorizable_lc_phi.
10841 (vect_analyze_loop_operations): Adjust.
10842 (vect_create_epilog_for_reduction): Remove all code not dealing
10843 with reduction LC PHI or epilogue generation.
10844 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10845 for live stmts of reductions.
10846 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10847 do not handle defs that are not vect_internal_def.
10848 (can_vectorize_live_stmts): Adjust.
10849 (vect_analyze_stmt): When the vectorized stmt defined a value
10850 used on backedges adjust the backedge uses of vectorized PHIs.
10851
10852 2019-09-30 Martin Jambor <mjambor@suse.cz>
10853
10854 PR ipa/91853
10855 * tree-inline.c (force_value_to_type): New function.
10856 (setup_one_parameter): Use force_value_to_type to convert type.
10857 * tree-inline.c (force_value_to_type): Declare.
10858 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10859 with register type mismatches.
10860
10861 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10862
10863 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10864 32-bit PowerPC.
10865 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10866 * config/rs6000/t-freebsd64: Make use of the above define and build
10867 the 32-bit libraries with secure-plt.
10868
10869 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10870
10871 PR target/91931
10872 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10873 gen_int_mode instead of GEN_INT.
10874
10875 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10876
10877 * config/darwin.c (gen_macho_low): Amend to include the mode
10878 argument.
10879 (machopic_indirect_data_reference): Amend gen_macho_low call
10880 to include mode argument
10881 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10882 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10883 the macho_high expander and two define_insn entries.
10884
10885 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10886
10887 PR bootstrap/90543
10888 * optc-save-gen.awk: Fix up printing string option differences.
10889
10890 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10891
10892 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10893 vec_perm cost to 1 for non-Power7 VSX architectures.
10894
10895 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10896
10897 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10898 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10899 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10900
10901 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10902
10903 * config/darwin.c (gen_macho_high): Amend to include the mode
10904 argument.
10905 (machopic_indirect_data_reference): Amend gen_macho_high call
10906 to include mode argument.
10907 (machopic_legitimize_pic_address): Likewise.
10908 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10909 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10910 the macho_high expander and two define_insn entries.
10911
10912 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10913
10914 PR target/86805
10915 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10916
10917 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10918
10919 PR target/80672
10920 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10921 std::string::compare instead of std::string::find.
10922
10923 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10924
10925 * configure: Regenerate.
10926
10927 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10928
10929 PR middle-end/91920
10930 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10931 variables as shared.
10932
10933 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10934
10935 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10936 replaces the expander and two define_insn entries.
10937 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10938 call.
10939 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10940
10941 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10942
10943 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10944 (fibonacci_heap::nodes): Likewise.
10945 (fibonacci_heap::min_key): Likewise.
10946 (fibonacci_heap::min): Likewise.
10947
10948 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10949
10950 * cgraph.c (cgraph_node::get_fun): Make const.
10951 * cgraph.h (cgraph_node::get_fun): Likewise.
10952
10953 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10954
10955 PR target/91919
10956 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10957 of SImode MULT.
10958
10959 2019-09-27 Richard Biener <rguenther@suse.de>
10960
10961 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10962 (STMT_VINFO_REDUC_FN): Likewise.
10963 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10964 STMT_VINFO_REDUC_FN.
10965 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10966 for condition reductions.
10967 (vect_create_epilog_for_reduction): Compute all required state
10968 from the stmt to be vectorized.
10969 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10970 invocation and remove then dead code. For single def-use chains
10971 record only a single vector stmt.
10972
10973 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10974
10975 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10976 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10977 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10978 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10979 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10980 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10981 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10982 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10983 (aarch64_general_builtin_rsqrt): Declare.
10984 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10985 New function.
10986 (aarch64_mangle_builtin_type): Rename to...
10987 (aarch64_general_mangle_builtin_type): ...this.
10988 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10989 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10990 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10991 aarch64_general_add_builtin instead of add_builtin_function.
10992 (aarch64_init_builtins): Rename to...
10993 (aarch64_general_init_builtins): ...this. Use
10994 aarch64_general_add_builtin instead of add_builtin_function.
10995 (aarch64_builtin_decl): Rename to...
10996 (aarch64_general_builtin_decl): ...this and remove the unused
10997 arguments.
10998 (aarch64_expand_builtin): Rename to...
10999 (aarch64_general_expand_builtin): ...this and remove the unused
11000 arguments.
11001 (aarch64_builtin_rsqrt): Rename to...
11002 (aarch64_general_builtin_rsqrt): ...this.
11003 (aarch64_fold_builtin): Rename to...
11004 (aarch64_general_fold_builtin): ...this. Take the function subcode
11005 and return type as arguments. Remove the "ignored" argument.
11006 (aarch64_gimple_fold_builtin): Rename to...
11007 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11008 subcode and gcall as arguments, and return the new function call.
11009 * config/aarch64/aarch64.c (aarch64_init_builtins)
11010 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11011 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11012 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11013 instead of aarch64_builtin_rsqrt.
11014 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11015 instead of aarch64_mangle_builtin_type.
11016
11017 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11018
11019 * target.def (check_builtin_call): New target hook.
11020 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11021 * doc/tm.texi: Regenerate.
11022
11023 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11024
11025 PR tree-optimization/91909
11026 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11027 reduc_index parameter. When handling COND_REDUCTION, make sure
11028 that the reduction phi operand is in the correct arm of the
11029 VEC_COND_EXPR.
11030 (vectorizable_reduction): Pass reduc_index to the above.
11031
11032 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11033
11034 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11035 New combine pattern.
11036
11037 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11038
11039 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11040 loop instruction into new basic block before the loop when basic
11041 block that precedes the loop is empty.
11042
11043 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11044
11045 * function.c (gimplify_parameters): Use build_clobber function.
11046 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11047 * tree-inline.c (expand_call_inline): Likewise.
11048 * tree-sra.c (clobber_subtree): Likewise.
11049 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11050 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11051 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11052 lower_omp_target): Likewise.
11053 * omp-expand.c (expand_omp_for_generic): Likewise.
11054 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11055
11056 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11057
11058 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11059 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11060 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11061 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11062 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11063 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11064 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11065 LD_ELEMREV_V16QI): Use the PURE attribute.
11066
11067 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11068
11069 * config/rs6000/darwin.md: Replace the expanders for
11070 load_macho_picbase and reload_macho_picbase with use of '@'
11071 and <mode> in their respective define_insns.
11072 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11073 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11074 Pmode to gen_load_macho_picbase.
11075 * config/rs6000/rs6000.md: Likewise.
11076
11077 2019-09-25 Richard Biener <rguenther@suse.de>
11078
11079 PR tree-optimization/91896
11080 * tree-vect-loop.c (vectorizable_reduction): The single
11081 def-use cycle optimization cannot apply when there's more
11082 than one pattern stmt involved.
11083
11084 2019-09-26 Richard Biener <rguenther@suse.de>
11085
11086 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11087 loop-closed PHIs that are vect_internal_def.
11088 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11089 Simplify.
11090 (vectorizable_lc_phi): New.
11091 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11092 (vect_transform_stmt): Likewise.
11093 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11094 (vectorizable_lc_phi): Declare.
11095
11096 2019-09-26 Richard Biener <rguenther@suse.de>
11097
11098 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11099 vectorizable_reduction for vect_double_reduction_def.
11100 (vect_transform_loop): Likewise.
11101 (vect_create_epilog_for_reduction): Move double-reduction
11102 PHI creation and preheader argument setting of PHIs ...
11103 (vectorizable_reduction): ... here. Also process
11104 vect_double_reduction_def PHIs, creating the vectorized
11105 PHI nodes, remembering the scalar adjustment computed for
11106 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11107 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11108 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11109 Initialize STMT_VINFO_REDUC_CODE.
11110 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11111 (_stmt_vec_info::reduc_code): Likewise.
11112 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11113 (STMT_VINFO_REDUC_CODE): Likewise.
11114
11115 2019-09-26 Matt Turner <mattst88@gmail.com>
11116
11117 PR driver/69471
11118 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11119 (mtune=): Add Negative(mtune=).
11120 (mcpu=): Add Negative(mcpu=).
11121 * config/arm/arm.opt: Likewise.
11122
11123 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11124
11125 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11126 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11127 Define.
11128 * config/arm/arm_acle.h: Define builtins for the above.
11129 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11130 (simd32_op): Handle the above.
11131 * config/arm/unspecs.md: Define unspecs for the above.
11132
11133 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11134
11135 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11136 (arm_<sup>xtb16): Likewise.
11137 (arm_usada8): Likewise.
11138 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11139 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11140 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11141 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11142 __sxtb16, __uxtab16, __uxtb16): Define.
11143 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11144 * config/arm/unspecs.md: Define unspecs for the above.
11145 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11146 (USXTB16): Likewise.
11147 (simd32_op): New int_attribute.
11148 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11149 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11150
11151 2019-09-26 Martin Jambor <mjambor@suse.cz>
11152
11153 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11154 internal_error.
11155
11156 2019-09-26 Martin Jambor <mjambor@suse.cz>
11157
11158 * ipa-sra.c (process_scan_results): Fix continue condition.
11159
11160 2019-09-26 Martin Liska <mliska@suse.cz>
11161
11162 PR tree-optimization/91885
11163 * tree-vectorizer.c (try_vectorize_loop_1): Add
11164 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11165
11166 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11167
11168 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11169 aarch64_plus_immediate rather than aarch64_uimm12_shift
11170 to test for valid PLUS immediates.
11171
11172 2019-09-25 Martin Jambor <mjambor@suse.cz>
11173
11174 * tree-sra.c (no_accesses_p): Remove.
11175 (no_accesses_representant): Likewise.
11176
11177 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11178
11179 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11180 consistenly.
11181 (vaba_s16): Likewise.
11182 (vaba_s32): Likewise.
11183 (vaba_u8): Likewise.
11184 (vaba_u16): Likewise.
11185 (vaba_u32): Likewise.
11186 (vabal_high_s8): Likewise.
11187 (vabal_high_s16): Likewise.
11188 (vabal_high_s32): Likewise.
11189 (vabal_high_u8): Likewise.
11190 (vabal_high_u16): Likewise.
11191 (vabal_high_u32): Likewise.
11192 (vabal_s8): Likewise.
11193 (vabal_s16): Likewise.
11194 (vabal_s32): Likewise.
11195 (vabal_u8): Likewise.
11196 (vabal_u16): Likewise.
11197 (vabal_u32): Likewise.
11198 (vabaq_s8): Likewise.
11199 (vabaq_s16): Likewise.
11200 (vabaq_s32): Likewise.
11201 (vabaq_u8): Likewise.
11202 (vabaq_u16): Likewise.
11203 (vabaq_u32): Likewise.
11204 (vabd_s8): Likewise.
11205 (vabd_s16): Likewise.
11206 (vabd_s32): Likewise.
11207 (vabd_u8): Likewise.
11208 (vabd_u16): Likewise.
11209 (vabd_u32): Likewise.
11210 (vabdl_high_s8): Likewise.
11211 (vabdl_high_s16): Likewise.
11212 (vabdl_high_s32): Likewise.
11213 (vabdl_high_u8): Likewise.
11214 (vabdl_high_u16): Likewise.
11215 (vabdl_high_u32): Likewise.
11216 (vabdl_s8): Likewise.
11217 (vabdl_s16): Likewise.
11218 (vabdl_s32): Likewise.
11219 (vabdl_u8): Likewise.
11220 (vabdl_u16): Likewise.
11221 (vabdl_u32): Likewise.
11222 (vabdq_s8): Likewise.
11223 (vabdq_s16): Likewise.
11224 (vabdq_s32): Likewise.
11225 (vabdq_u8): Likewise.
11226 (vabdq_u16): Likewise.
11227 (vabdq_u32): Likewise.
11228 (vaddlv_s8): Likewise.
11229 (vaddlv_s16): Likewise.
11230 (vaddlv_u8): Likewise.
11231 (vaddlv_u16): Likewise.
11232 (vaddlvq_s8): Likewise.
11233 (vaddlvq_s16): Likewise.
11234 (vaddlvq_s32): Likewise.
11235 (vaddlvq_u8): Likewise.
11236 (vaddlvq_u16): Likewise.
11237 (vaddlvq_u32): Likewise.
11238 (vcvtx_f32_f64): Likewise.
11239 (vcvtx_high_f32_f64): Likewise.
11240 (vcvtxd_f32_f64): Likewise.
11241 (vmla_n_f32): Likewise.
11242 (vmla_n_s16): Likewise.
11243 (vmla_n_s32): Likewise.
11244 (vmla_n_u16): Likewise.
11245 (vmla_n_u32): Likewise.
11246 (vmla_s8): Likewise.
11247 (vmla_s16): Likewise.
11248 (vmla_s32): Likewise.
11249 (vmla_u8): Likewise.
11250 (vmla_u16): Likewise.
11251 (vmla_u32): Likewise.
11252 (vmlal_high_n_s16): Likewise.
11253 (vmlal_high_n_s32): Likewise.
11254 (vmlal_high_n_u16): Likewise.
11255 (vmlal_high_n_u32): Likewise.
11256 (vmlal_high_s8): Likewise.
11257 (vmlal_high_s16): Likewise.
11258 (vmlal_high_s32): Likewise.
11259 (vmlal_high_u8): Likewise.
11260 (vmlal_high_u16): Likewise.
11261 (vmlal_high_u32): Likewise.
11262 (vmlal_n_s16): Likewise.
11263 (vmlal_n_s32): Likewise.
11264 (vmlal_n_u16): Likewise.
11265 (vmlal_n_u32): Likewise.
11266 (vmlal_s8): Likewise.
11267 (vmlal_s16): Likewise.
11268 (vmlal_s32): Likewise.
11269 (vmlal_u8): Likewise.
11270 (vmlal_u16): Likewise.
11271 (vmlal_u32): Likewise.
11272 (vmlaq_n_f32): Likewise.
11273 (vmlaq_n_s16): Likewise.
11274 (vmlaq_n_s32): Likewise.
11275 (vmlaq_n_u16): Likewise.
11276 (vmlaq_n_u32): Likewise.
11277 (vmlaq_s8): Likewise.
11278 (vmlaq_s16): Likewise.
11279 (vmlaq_s32): Likewise.
11280 (vmlaq_u8): Likewise.
11281 (vmlaq_u16): Likewise.
11282 (vmlaq_u32): Likewise.
11283 (vmls_n_f32): Likewise.
11284 (vmls_n_s16): Likewise.
11285 (vmls_n_s32): Likewise.
11286 (vmls_n_u16): Likewise.
11287 (vmls_n_u32): Likewise.
11288 (vmls_s8): Likewise.
11289 (vmls_s16): Likewise.
11290 (vmls_s32): Likewise.
11291 (vmls_u8): Likewise.
11292 (vmls_u16): Likewise.
11293 (vmls_u32): Likewise.
11294 (vmlsl_high_n_s16): Likewise.
11295 (vmlsl_high_n_s32): Likewise.
11296 (vmlsl_high_n_u16): Likewise.
11297 (vmlsl_high_n_u32): Likewise.
11298 (vmlsl_high_s8): Likewise.
11299 (vmlsl_high_s16): Likewise.
11300 (vmlsl_high_s32): Likewise.
11301 (vmlsl_high_u8): Likewise.
11302 (vmlsl_high_u16): Likewise.
11303 (vmlsl_high_u32): Likewise.
11304 (vmlsl_n_s16): Likewise.
11305 (vmlsl_n_s32): Likewise.
11306 (vmlsl_n_u16): Likewise.
11307 (vmlsl_n_u32): Likewise.
11308 (vmlsl_s8): Likewise.
11309 (vmlsl_s16): Likewise.
11310 (vmlsl_s32): Likewise.
11311 (vmlsl_u8): Likewise.
11312 (vmlsl_u16): Likewise.
11313 (vmlsl_u32): Likewise.
11314 (vmlsq_n_f32): Likewise.
11315 (vmlsq_n_s16): Likewise.
11316 (vmlsq_n_s32): Likewise.
11317 (vmlsq_n_u16): Likewise.
11318 (vmlsq_n_u32): Likewise.
11319 (vmlsq_s8): Likewise.
11320 (vmlsq_s16): Likewise.
11321 (vmlsq_s32): Likewise.
11322 (vmlsq_u8): Likewise.
11323 (vmlsq_u16): Likewise.
11324 (vmlsq_u32): Likewise.
11325 (vmovl_high_s8): Likewise.
11326 (vmovl_high_s16): Likewise.
11327 (vmovl_high_s32): Likewise.
11328 (vmovl_high_u8): Likewise.
11329 (vmovl_high_u16): Likewise.
11330 (vmovl_high_u32): Likewise.
11331 (vmovl_s8): Likewise.
11332 (vmovl_s16): Likewise.
11333 (vmovl_s32): Likewise.
11334 (vmovl_u8): Likewise.
11335 (vmovl_u16): Likewise.
11336 (vmovl_u32): Likewise.
11337 (vmovn_high_s16): Likewise.
11338 (vmovn_high_s32): Likewise.
11339 (vmovn_high_s64): Likewise.
11340 (vmovn_high_u16): Likewise.
11341 (vmovn_high_u32): Likewise.
11342 (vmovn_high_u64): Likewise.
11343 (vmovn_s16): Likewise.
11344 (vmovn_s32): Likewise.
11345 (vmovn_s64): Likewise.
11346 (vmovn_u16): Likewise.
11347 (vmovn_u32): Likewise.
11348 (vmovn_u64): Likewise.
11349 (vmull_high_n_s16): Likewise.
11350 (vmull_high_n_s32): Likewise.
11351 (vmull_high_n_u16): Likewise.
11352 (vmull_high_n_u32): Likewise.
11353 (vmull_high_p8): Likewise.
11354 (vmull_high_s8): Likewise.
11355 (vmull_high_s16): Likewise.
11356 (vmull_high_s32): Likewise.
11357 (vmull_high_u8): Likewise.
11358 (vmull_high_u16): Likewise.
11359 (vmull_high_u32): Likewise.
11360 (vmull_n_s16): Likewise.
11361 (vmull_n_s32): Likewise.
11362 (vmull_n_u16): Likewise.
11363 (vmull_n_u32): Likewise.
11364 (vmull_p8): Likewise.
11365 (vmull_s8): Likewise.
11366 (vmull_s16): Likewise.
11367 (vmull_s32): Likewise.
11368 (vmull_u8): Likewise.
11369 (vmull_u16): Likewise.
11370 (vmull_u32): Likewise.
11371 (vpadal_s8): Likewise.
11372 (vpadal_s16): Likewise.
11373 (vpadal_s32): Likewise.
11374 (vpadal_u8): Likewise.
11375 (vpadal_u16): Likewise.
11376 (vpadal_u32): Likewise.
11377 (vpadalq_s8): Likewise.
11378 (vpadalq_s16): Likewise.
11379 (vpadalq_s32): Likewise.
11380 (vpadalq_u8): Likewise.
11381 (vpadalq_u16): Likewise.
11382 (vpadalq_u32): Likewise.
11383 (vpaddl_s8): Likewise.
11384 (vpaddl_s16): Likewise.
11385 (vpaddl_s32): Likewise.
11386 (vpaddl_u8): Likewise.
11387 (vpaddl_u16): Likewise.
11388 (vpaddl_u32): Likewise.
11389 (vpaddlq_s8): Likewise.
11390 (vpaddlq_s16): Likewise.
11391 (vpaddlq_s32): Likewise.
11392 (vpaddlq_u8): Likewise.
11393 (vpaddlq_u16): Likewise.
11394 (vpaddlq_u32): Likewise.
11395 (vpaddq_s8): Likewise.
11396 (vpaddq_s16): Likewise.
11397 (vpaddq_s32): Likewise.
11398 (vpaddq_s64): Likewise.
11399 (vpaddq_u8): Likewise.
11400 (vpaddq_u16): Likewise.
11401 (vpaddq_u32): Likewise.
11402 (vpaddq_u64): Likewise.
11403 (vqdmulh_n_s16): Likewise.
11404 (vqdmulh_n_s32): Likewise.
11405 (vqdmulhq_n_s16): Likewise.
11406 (vqdmulhq_n_s32): Likewise.
11407 (vqmovn_high_s16): Likewise.
11408 (vqmovn_high_s32): Likewise.
11409 (vqmovn_high_s64): Likewise.
11410 (vqmovn_high_u16): Likewise.
11411 (vqmovn_high_u32): Likewise.
11412 (vqmovn_high_u64): Likewise.
11413 (vqmovun_high_s16): Likewise.
11414 (vqmovun_high_s32): Likewise.
11415 (vqmovun_high_s64): Likewise.
11416 (vqrdmulh_n_s16): Likewise.
11417 (vqrdmulh_n_s32): Likewise.
11418 (vqrdmulhq_n_s16): Likewise.
11419 (vqrdmulhq_n_s32): Likewise.
11420 (vrsqrte_u32): Likewise.
11421 (vrsqrteq_u32): Likewise.
11422 (vtst_p8): Likewise.
11423 (vtst_p16): Likewise.
11424 (vtst_p64): Likewise.
11425 (vtstq_p8): Likewise.
11426 (vtstq_p16): Likewise.
11427 (vtstq_p64): Likewise.
11428 (vaddlv_s32): Likewise.
11429 (vaddlv_u32): Likewise.
11430 (vqtbl1_p8): Likewise.
11431 (vqtbl1_s8): Likewise.
11432 (vqtbl1_u8): Likewise.
11433 (vqtbl1q_p8): Likewise.
11434 (vqtbl1q_s8): Likewise.
11435 (vqtbl1q_u8): Likewise.
11436 (vqtbx1_s8): Likewise.
11437 (vqtbx1_u8): Likewise.
11438 (vqtbx1_p8): Likewise.
11439 (vqtbx1q_s8): Likewise.
11440 (vqtbx1q_u8): Likewise.
11441 (vqtbx1q_p8): Likewise.
11442 (vtbl1_s8): Likewise.
11443 (vtbl1_u8): Likewise.
11444 (vtbl1_p8): Likewise.
11445 (vtbl2_s8): Likewise.
11446 (vtbl2_u8): Likewise.
11447 (vtbl2_p8): Likewise.
11448 (vtbl3_s8): Likewise.
11449 (vtbl3_u8): Likewise.
11450 (vtbl3_p8): Likewise.
11451 (vtbl4_s8): Likewise.
11452 (vtbl4_u8): Likewise.
11453 (vtbl4_p8): Likewise.
11454 (vtbx2_s8): Likewise.
11455 (vtbx2_u8): Likewise.
11456 (vtbx2_p8): Likewise.
11457 (vld1_f32): Likewise.
11458 (vld1_f64): Likewise.
11459 (vld1_p8): Likewise.
11460 (vld1_p16): Likewise.
11461 (vld1_p64): Likewise.
11462 (vld1_s8): Likewise.
11463 (vld1_s16): Likewise.
11464 (vld1_s32): Likewise.
11465 (vld1_s64): Likewise.
11466 (vld1_u8): Likewise.
11467 (vld1_u16): Likewise.
11468 (vld1_u32): Likewise.
11469 (vld1_u64): Likewise.
11470 (vld1q_f32): Likewise.
11471 (vld1q_f64): Likewise.
11472 (vld1q_p8): Likewise.
11473 (vld1q_p16): Likewise.
11474 (vld1q_p64): Likewise.
11475 (vld1q_s8): Likewise.
11476 (vld1q_s16): Likewise.
11477 (vld1q_s32): Likewise.
11478 (vld1q_s64): Likewise.
11479 (vld1q_u8): Likewise.
11480 (vld1q_u16): Likewise.
11481 (vld1q_u32): Likewise.
11482 (vld1q_u64): Likewise.
11483 (vpmax_s8): Likewise.
11484 (vpmax_s16): Likewise.
11485 (vpmax_s32): Likewise.
11486 (vpmax_u8): Likewise.
11487 (vpmax_u16): Likewise.
11488 (vpmax_u32): Likewise.
11489 (vpmaxq_s8): Likewise.
11490 (vpmaxq_s16): Likewise.
11491 (vpmaxq_s32): Likewise.
11492 (vpmaxq_u8): Likewise.
11493 (vpmaxq_u16): Likewise.
11494 (vpmaxq_u32): Likewise.
11495 (vpmax_f32): Likewise.
11496 (vpmaxq_f32): Likewise.
11497 (vpmaxq_f64): Likewise.
11498 (vpmaxqd_f64): Likewise.
11499 (vpmaxs_f32): Likewise.
11500 (vpmaxnm_f32): Likewise.
11501 (vpmaxnmq_f32): Likewise.
11502 (vpmaxnmq_f64): Likewise.
11503 (vpmaxnmqd_f64): Likewise.
11504 (vpmaxnms_f32): Likewise.
11505 (vpmin_s8): Likewise.
11506 (vpmin_s16): Likewise.
11507 (vpmin_s32): Likewise.
11508 (vpmin_u8): Likewise.
11509 (vpmin_u16): Likewise.
11510 (vpmin_u32): Likewise.
11511 (vpminq_s8): Likewise.
11512 (vpminq_s16): Likewise.
11513 (vpminq_s32): Likewise.
11514 (vpminq_u8): Likewise.
11515 (vpminq_u16): Likewise.
11516 (vpminq_u32): Likewise.
11517 (vpmin_f32): Likewise.
11518 (vpminq_f32): Likewise.
11519 (vpminq_f64): Likewise.
11520 (vpminqd_f64): Likewise.
11521 (vpmins_f32): Likewise.
11522 (vpminnm_f32): Likewise.
11523 (vpminnmq_f32): Likewise.
11524 (vpminnmq_f64): Likewise.
11525 (vpminnmqd_f64): Likewise.
11526 (vpminnms_f32): Likewise.
11527 (vmla_f32): Likewise.
11528 (vmlaq_f32): Likewise.
11529 (vmlaq_f64): Likewise.
11530 (vmls_f32): Likewise.
11531 (vmlsq_f32): Likewise.
11532 (vmlsq_f64): Likewise.
11533 (vqtbl2_s8): Likewise.
11534 (vqtbl2_u8): Likewise.
11535 (vqtbl2_p8): Likewise.
11536 (vqtbl2q_s8): Likewise.
11537 (vqtbl2q_u8): Likewise.
11538 (vqtbl2q_p8): Likewise.
11539 (vqtbl3_s8): Likewise.
11540 (vqtbl3_u8): Likewise.
11541 (vqtbl3_p8): Likewise.
11542 (vqtbl3q_s8): Likewise.
11543 (vqtbl3q_u8): Likewise.
11544 (vqtbl3q_p8): Likewise.
11545 (vqtbl4_s8): Likewise.
11546 (vqtbl4_u8): Likewise.
11547 (vqtbl4_p8): Likewise.
11548 (vqtbl4q_s8): Likewise.
11549 (vqtbl4q_u8): Likewise.
11550 (vqtbl4q_p8): Likewise.
11551 (vqtbx2_s8): Likewise.
11552 (vqtbx2_u8): Likewise.
11553 (vqtbx2_p8): Likewise.
11554 (vqtbx2q_s8): Likewise.
11555 (vqtbx2q_u8): Likewise.
11556 (vqtbx2q_p8): Likewise.
11557 (vqtbx3_s8): Likewise.
11558 (vqtbx3_u8): Likewise.
11559 (vqtbx3_p8): Likewise.
11560 (vqtbx3q_s8): Likewise.
11561 (vqtbx3q_u8): Likewise.
11562 (vqtbx3q_p8): Likewise.
11563 (vqtbx4_s8): Likewise.
11564 (vqtbx4_u8): Likewise.
11565 (vqtbx4_p8): Likewise.
11566 (vqtbx4q_s8): Likewise.
11567 (vqtbx4q_u8): Likewise.
11568 (vqtbx4q_p8): Likewise.
11569 (vrev16_p8): Likewise.
11570 (vrev16_s8): Likewise.
11571 (vrev16_u8): Likewise.
11572 (vrev16q_p8): Likewise.
11573 (vrev16q_s8): Likewise.
11574 (vrev16q_u8): Likewise.
11575 (vrev32_p8): Likewise.
11576 (vrev32_p16): Likewise.
11577 (vrev32_s8): Likewise.
11578 (vrev32_s16): Likewise.
11579 (vrev32_u8): Likewise.
11580 (vrev32_u16): Likewise.
11581 (vrev32q_p8): Likewise.
11582 (vrev32q_p16): Likewise.
11583 (vrev32q_s8): Likewise.
11584 (vrev32q_s16): Likewise.
11585 (vrev32q_u8): Likewise.
11586 (vrev32q_u16): Likewise.
11587 (vrev64_f32): Likewise.
11588 (vrev64_p8): Likewise.
11589 (vrev64_p16): Likewise.
11590 (vrev64_s8): Likewise.
11591 (vrev64_s16): Likewise.
11592 (vrev64_s32): Likewise.
11593 (vrev64_u8): Likewise.
11594 (vrev64_u16): Likewise.
11595 (vrev64_u32): Likewise.
11596 (vrev64q_f32): Likewise.
11597 (vrev64q_p8): Likewise.
11598 (vrev64q_p16): Likewise.
11599 (vrev64q_s8): Likewise.
11600 (vrev64q_s16): Likewise.
11601 (vrev64q_s32): Likewise.
11602 (vrev64q_u8): Likewise.
11603 (vrev64q_u16): Likewise.
11604 (vrev64q_u32): Likewise.
11605 (vsha1cq_u32): Likewise.
11606 (vsha1mq_u32): Likewise.
11607 (vsha1pq_u32): Likewise.
11608 (vsha1h_u32): Likewise.
11609 (vsha1su0q_u32): Likewise.
11610 (vsha1su1q_u32): Likewise.
11611 (vsha256hq_u32): Likewise.
11612 (vsha256h2q_u32): Likewise.
11613 (vsha256su0q_u32): Likewise.
11614 (vsha256su1q_u32): Likewise.
11615 (vmull_p64): Likewise.
11616 (vmull_high_p64): Likewise.
11617 (vsqrt_f32): Likewise.
11618 (vsqrtq_f32): Likewise.
11619 (vsqrt_f64): Likewise.
11620 (vsqrtq_f64): Likewise.
11621 (vst1_f32): Likewise.
11622 (vst1_f64): Likewise.
11623 (vst1_p8): Likewise.
11624 (vst1_p16): Likewise.
11625 (vst1_p64): Likewise.
11626 (vst1_s8): Likewise.
11627 (vst1_s16): Likewise.
11628 (vst1_s32): Likewise.
11629 (vst1_s64): Likewise.
11630 (vst1_u8): Likewise.
11631 (vst1_u16): Likewise.
11632 (vst1_u32): Likewise.
11633 (vst1_u64): Likewise.
11634 (vst1q_f32): Likewise.
11635 (vst1q_f64): Likewise.
11636 (vst1q_p8): Likewise.
11637 (vst1q_p16): Likewise.
11638 (vst1q_p64): Likewise.
11639 (vst1q_s8): Likewise.
11640 (vst1q_s16): Likewise.
11641 (vst1q_s32): Likewise.
11642 (vst1q_s64): Likewise.
11643 (vst1q_u8): Likewise.
11644 (vst1q_u16): Likewise.
11645 (vst1q_u32): Likewise.
11646 (vst1q_u64): Likewise.
11647 (vst1_s64_x2): Likewise.
11648 (vst1_u64_x2): Likewise.
11649 (vst1_f64_x2): Likewise.
11650 (vst1_s8_x2): Likewise.
11651 (vst1_p8_x2): Likewise.
11652 (vst1_s16_x2): Likewise.
11653 (vst1_p16_x2): Likewise.
11654 (vst1_s32_x2): Likewise.
11655 (vst1_u8_x2): Likewise.
11656 (vst1_u16_x2): Likewise.
11657 (vst1_u32_x2): Likewise.
11658 (vst1_f16_x2): Likewise.
11659 (vst1_f32_x2): Likewise.
11660 (vst1_p64_x2): Likewise.
11661 (vst1q_s8_x2): Likewise.
11662 (vst1q_p8_x2): Likewise.
11663 (vst1q_s16_x2): Likewise.
11664 (vst1q_p16_x2): Likewise.
11665 (vst1q_s32_x2): Likewise.
11666 (vst1q_s64_x2): Likewise.
11667 (vst1q_u8_x2): Likewise.
11668 (vst1q_u16_x2): Likewise.
11669 (vst1q_u32_x2): Likewise.
11670 (vst1q_u64_x2): Likewise.
11671 (vst1q_f16_x2): Likewise.
11672 (vst1q_f32_x2): Likewise.
11673 (vst1q_f64_x2): Likewise.
11674 (vst1q_p64_x2): Likewise.
11675 (vst1_s64_x3): Likewise.
11676 (vst1_u64_x3): Likewise.
11677 (vst1_f64_x3): Likewise.
11678 (vst1_s8_x3): Likewise.
11679 (vst1_p8_x3): Likewise.
11680 (vst1_s16_x3): Likewise.
11681 (vst1_p16_x3): Likewise.
11682 (vst1_s32_x3): Likewise.
11683 (vst1_u8_x3): Likewise.
11684 (vst1_u16_x3): Likewise.
11685 (vst1_u32_x3): Likewise.
11686 (vst1_f16_x3): Likewise.
11687 (vst1_f32_x3): Likewise.
11688 (vst1_p64_x3): Likewise.
11689 (vst1q_s8_x3): Likewise.
11690 (vst1q_p8_x3): Likewise.
11691 (vst1q_s16_x3): Likewise.
11692 (vst1q_p16_x3): Likewise.
11693 (vst1q_s32_x3): Likewise.
11694 (vst1q_s64_x3): Likewise.
11695 (vst1q_u8_x3): Likewise.
11696 (vst1q_u16_x3): Likewise.
11697 (vst1q_u32_x3): Likewise.
11698 (vst1q_u64_x3): Likewise.
11699 (vst1q_f16_x3): Likewise.
11700 (vst1q_f32_x3): Likewise.
11701 (vst1q_f64_x3): Likewise.
11702 (vst1q_p64_x3): Likewise.
11703 (vst2_s64): Likewise.
11704 (vst2_u64): Likewise.
11705 (vst2_f64): Likewise.
11706 (vst2_s8): Likewise.
11707 (vst2_p8): Likewise.
11708 (vst2_s16): Likewise.
11709 (vst2_p16): Likewise.
11710 (vst2_s32): Likewise.
11711 (vst2_u8): Likewise.
11712 (vst2_u16): Likewise.
11713 (vst2_u32): Likewise.
11714 (vst2_f16): Likewise.
11715 (vst2_f32): Likewise.
11716 (vst2_p64): Likewise.
11717 (vst2q_s8): Likewise.
11718 (vst2q_p8): Likewise.
11719 (vst2q_s16): Likewise.
11720 (vst2q_p16): Likewise.
11721 (vst2q_s32): Likewise.
11722 (vst2q_s64): Likewise.
11723 (vst2q_u8): Likewise.
11724 (vst2q_u16): Likewise.
11725 (vst2q_u32): Likewise.
11726 (vst2q_u64): Likewise.
11727 (vst2q_f16): Likewise.
11728 (vst2q_f32): Likewise.
11729 (vst2q_f64): Likewise.
11730 (vst2q_p64): Likewise.
11731 (vst3_s64): Likewise.
11732 (vst3_u64): Likewise.
11733 (vst3_f64): Likewise.
11734 (vst3_s8): Likewise.
11735 (vst3_p8): Likewise.
11736 (vst3_s16): Likewise.
11737 (vst3_p16): Likewise.
11738 (vst3_s32): Likewise.
11739 (vst3_u8): Likewise.
11740 (vst3_u16): Likewise.
11741 (vst3_u32): Likewise.
11742 (vst3_f16): Likewise.
11743 (vst3_f32): Likewise.
11744 (vst3_p64): Likewise.
11745 (vst3q_s8): Likewise.
11746 (vst3q_p8): Likewise.
11747 (vst3q_s16): Likewise.
11748 (vst3q_p16): Likewise.
11749 (vst3q_s32): Likewise.
11750 (vst3q_s64): Likewise.
11751 (vst3q_u8): Likewise.
11752 (vst3q_u16): Likewise.
11753 (vst3q_u32): Likewise.
11754 (vst3q_u64): Likewise.
11755 (vst3q_f16): Likewise.
11756 (vst3q_f32): Likewise.
11757 (vst3q_f64): Likewise.
11758 (vst3q_p64): Likewise.
11759 (vst4_s64): Likewise.
11760 (vst4_u64): Likewise.
11761 (vst4_f64): Likewise.
11762 (vst4_s8): Likewise.
11763 (vst4_p8): Likewise.
11764 (vst4_s16): Likewise.
11765 (vst4_p16): Likewise.
11766 (vst4_s32): Likewise.
11767 (vst4_u8): Likewise.
11768 (vst4_u16): Likewise.
11769 (vst4_u32): Likewise.
11770 (vst4_f16): Likewise.
11771 (vst4_f32): Likewise.
11772 (vst4_p64): Likewise.
11773 (vst4q_s8): Likewise.
11774 (vst4q_p8): Likewise.
11775 (vst4q_s16): Likewise.
11776 (vst4q_p16): Likewise.
11777 (vst4q_s32): Likewise.
11778 (vst4q_s64): Likewise.
11779 (vst4q_u8): Likewise.
11780 (vst4q_u16): Likewise.
11781 (vst4q_u32): Likewise.
11782 (vst4q_u64): Likewise.
11783 (vst4q_f16): Likewise.
11784 (vst4q_f32): Likewise.
11785 (vst4q_f64): Likewise.
11786 (vst4q_p64): Likewise.
11787 (vtbx4_s8): Likewise.
11788 (vtbx4_u8): Likewise.
11789 (vtbx4_p8): Likewise.
11790 (vtrn_f32): Likewise.
11791 (vtrn_p8): Likewise.
11792 (vtrn_p16): Likewise.
11793 (vtrn_s8): Likewise.
11794 (vtrn_s16): Likewise.
11795 (vtrn_s32): Likewise.
11796 (vtrn_u8): Likewise.
11797 (vtrn_u16): Likewise.
11798 (vtrn_u32): Likewise.
11799 (vtrnq_f32): Likewise.
11800 (vtrnq_p8): Likewise.
11801 (vtrnq_p16): Likewise.
11802 (vtrnq_s8): Likewise.
11803 (vtrnq_s16): Likewise.
11804 (vtrnq_s32): Likewise.
11805 (vtrnq_u8): Likewise.
11806 (vtrnq_u16): Likewise.
11807 (vtrnq_u32): Likewise.
11808 (vrsqrte_f16): Likewise.
11809 (vrsqrteq_f16): Likewise.
11810 (vsqrt_f16): Likewise.
11811 (vsqrtq_f16): Likewise.
11812 (vabd_f16): Likewise.
11813 (vabdq_f16): Likewise.
11814 (vpadd_f16): Likewise.
11815 (vpaddq_f16): Likewise.
11816 (vpmax_f16): Likewise.
11817 (vpmaxq_f16): Likewise.
11818 (vpmaxnm_f16): Likewise.
11819 (vpmaxnmq_f16): Likewise.
11820 (vpmin_f16): Likewise.
11821 (vpminq_f16): Likewise.
11822 (vpminnm_f16): Likewise.
11823 (vpminnmq_f16): Likewise.
11824 (vrsqrts_f16): Likewise.
11825 (vrsqrtsq_f16): Likewise.
11826
11827 2019-09-25 Richard Biener <rguenther@suse.de>
11828
11829 PR tree-optimization/91896
11830 * tree-vect-loop.c (vectorizable_reduction): The single
11831 def-use cycle optimization cannot apply when there's more
11832 than one pattern stmt involved.
11833
11834 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11835
11836 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11837 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11838 (reload_macho_picbase_<mode>): Likewise.
11839
11840 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11841
11842 * config/rs6000/rs6000.md: Move darwin.md include until
11843 after the definition of the mode iterators.
11844
11845 2019-09-23 Martin Sebor <msebor@redhat.com>
11846
11847 PR tree-optimization/91570
11848 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11849 non-constant minlen, maxlen and maxbound.
11850
11851 2019-09-24 Richard Biener <rguenther@suse.de>
11852
11853 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11854 Rename to...
11855 (_stmt_vec_info::cond_reduc_code): ... this.
11856 (_stmt_vec_info::induc_cond_initial_val): Add.
11857 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11858 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11859 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11860 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11861 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11862 the reduction code.
11863 (vect_create_epilog_for_reduction): Drop special
11864 induction condition reduction params, pass in reduction code
11865 and simplify.
11866 (vectorizable_reduction): Perform condition reduction kind
11867 selection only at analysis time. Adjust passing on state.
11868
11869 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11870
11871 * config/aarch64/aarch64.md (mov<mode>): Don't call
11872 aarch64_split_dimode_const_store on volatile MEM.
11873
11874 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11875
11876 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11877 Update hwcap string for fp16fml.
11878
11879 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11880
11881 PR middle-end/91866
11882 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11883 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11884
11885 2019-09-24 Martin Liska <mliska@suse.cz>
11886
11887 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11888 instead of if-elseif-elseif-...
11889 * gimple-expr.c (extract_ops_from_tree): Likewise.
11890 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11891 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11892
11893 2019-09-24 Martin Jambor <mjambor@suse.cz>
11894
11895 PR ipa/91831
11896 * ipa-param-manipulation.c (carry_over_param): Make a method of
11897 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11898 in case of a context mismatch.
11899 (ipa_param_body_adjustments::common_initialization): Adjust call to
11900 carry_over_param.
11901 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11902 private method carry_over_param.
11903
11904 2019-09-24 Martin Jambor <mjambor@suse.cz>
11905
11906 PR ipa/91832
11907 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11908
11909 2019-09-24 Richard Biener <rguenther@suse.de>
11910
11911 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11912 base.
11913
11914 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11915
11916 * config/arm/t-arm (arm-builtins.o): Add dependency on
11917 arm_acle_builtins.def.
11918
11919 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11920
11921 PR target/91823
11922 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11923 canonical CONST_INTs. Use gen_rtvec.
11924
11925 2019-09-23 Richard Biener <rguenther@suse.de>
11926
11927 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11928 avoid adjusting by + 0 or * 1.
11929 (vect_create_epilog_for_reduction): Get reduction code only
11930 when necessary. Deal with adjustment_def only when necessary.
11931
11932 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11933
11934 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11935 memmodel index.
11936
11937 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11938
11939 PR ipa/91835
11940 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11941 "ipa-sra".
11942
11943 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11944
11945 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11946 code. Merge code blocks with common conditionals. Use declared
11947 macro instead of a magic number for PIC level.
11948
11949 2019-09-21 Martin Sebor <msebor@redhat.com>
11950
11951 PR middle-end/91830
11952 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11953 Simplify computation of the offset of the referenced subobject.
11954
11955 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
11956
11957 * config/darwin.c (machopic_legitimize_pic_address): Check
11958 for lra not reload.
11959
11960 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11961
11962 * ira-conflicts.c (can_use_same_reg_p): New function.
11963 (process_reg_shuffles): Take an insn parameter. Ignore cases
11964 in which input operand op_num could seemingly never be allocated
11965 to the same register as the destination.
11966 (add_insn_allocno_copies): Update call to process_reg_shuffles.
11967
11968 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11969
11970 * simplify-rtx.c (neg_const_int): Replace with...
11971 (neg_poly_int_rtx): ...this new function.
11972 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11973 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11974 (simplify_plus_minus): Likewise for constant terms here.
11975
11976 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
11977
11978 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11979 HOST_WIDE_PRINT_UNSIGNED.
11980
11981 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
11982
11983 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11984 character.
11985
11986 2019-09-20 Maya Rashish <coypu@sdf.org>
11987
11988 PR target/86811
11989 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11990 Define to speculation_safe_value_not_needed.
11991
11992 2019-09-20 Richard Biener <rguenther@suse.de>
11993 Uros Bizjak <ubizjak@gmail.com>
11994
11995 PR target/91814
11996 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11997 previous change.
11998 (general_scalar_chain::convert_op): Force not suitable memory
11999 operands to a register.
12000
12001 2019-09-20 Richard Biener <rguenther@suse.de>
12002
12003 PR tree-optimization/91821
12004 * tree-vect-loop.c (check_reduction_path): Check we can compute
12005 reduc_idx.
12006 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12007 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12008 operands in canonical order.
12009 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12010 STMT_VINFO_REDUC_IDX.
12011 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12012 (STMT_VINFO_REDUC_IDX): Likewise.
12013
12014 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12015
12016 PR target/91269
12017 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12018
12019 2019-09-20 Richard Biener <rguenther@suse.de>
12020
12021 PR tree-optimization/91822
12022 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12023 parameter.
12024 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12025 for reduc_index in nested cycles, adjust vectorizable_condition
12026 calls.
12027 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12028 parameter.
12029 (vect_analyze_stmt): Adjust.
12030 (vect_transform_stmt): Likewise.
12031
12032 2019-09-20 Richard Biener <rguenther@suse.de>
12033
12034 PR target/91767
12035 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12036 Ensure there's a sequence point between allocating the new register
12037 and passing a reference to a reg via regno_reg_rtx.
12038
12039 2019-09-20 Martin Jambor <mjambor@suse.cz>
12040
12041 * coretypes.h (cgraph_edge): Declare.
12042 * ipa-param-manipulation.c: Rewrite.
12043 * ipa-param-manipulation.h: Likewise.
12044 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12045 (OBJS): Added ipa-sra.o.
12046 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12047 and ref_p, added fields param_adjustments and performed_splits.
12048 (struct cgraph_clone_info): Remove ags_to_skip and
12049 combined_args_to_skip, new field param_adjustments.
12050 (cgraph_node::create_clone): Changed parameters to use
12051 ipa_param_adjustments.
12052 (cgraph_node::create_virtual_clone): Likewise.
12053 (cgraph_node::create_virtual_clone_with_body): Likewise.
12054 (tree_function_versioning): Likewise.
12055 (cgraph_build_function_type_skip_args): Removed.
12056 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12057 using ipa_param_adjustments.
12058 (clone_of_p): Likewise.
12059 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12060 (build_function_decl_skip_args): Likewise.
12061 (duplicate_thunk_for_node): Adjust parameters using
12062 ipa_param_body_adjustments, copy param_adjustments instead of
12063 args_to_skip.
12064 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12065 (cgraph_node::create_virtual_clone): Likewise.
12066 (cgraph_node::create_version_clone_with_body): Likewise.
12067 (cgraph_materialize_clone): Likewise.
12068 (symbol_table::materialize_all_clones): Likewise.
12069 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12070 ipa_replace_map check.
12071 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12072 (initialize_node_lattices): Make aware that some parameters might have
12073 already been removed.
12074 (want_remove_some_param_p): New function.
12075 (create_specialized_node): Convert to using ipa_param_adjustments and
12076 deal with possibly pre-existing adjustments.
12077 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12078 (output_node_opt_summary): Do not stream removed fields. Stream
12079 parameter adjustments instead of argumetns to skip.
12080 (input_node_opt_summary): Likewise.
12081 (input_node_opt_summary): Likewise.
12082 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12083 * lto-streamer.h (lto_section_type): Likewise.
12084 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12085 param_body_adjs.
12086 (copy_decl_to_var): Declare.
12087 * tree-inline.c (update_clone_info): Do not remap old_tree.
12088 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12089 statements, walk all extra generated statements and remap their
12090 operands.
12091 (redirect_all_calls): Add killed SSA names to a hash set.
12092 (remap_ssa_name): Do not remap killed SSA names.
12093 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12094 half of functionality moved to ipa_param_body_adjustments.
12095 (copy_decl_to_var): Make exported.
12096 (copy_body): Destroy killed_new_ssa_names hash set.
12097 (expand_call_inline): Remap performed splits.
12098 (update_clone_info): Likewise.
12099 (tree_function_versioning): Simplify tree_map processing. Updated to
12100 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12101 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12102 for the new interface.
12103 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12104 (simd_clone_compute_base_data_type): Likewise.
12105 (simd_clone_init_simd_arrays): Adjust for the new interface.
12106 (simd_clone_adjust_argument_types): Likewise.
12107 (struct modify_stmt_info): Likewise.
12108 (ipa_simd_modify_stmt_ops): Likewise.
12109 (ipa_simd_modify_function_body): Likewise.
12110 (simd_clone_adjust): Likewise.
12111 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12112 (type_internals_preclude_sra_p): Make public.
12113 * tree-sra.h: New file.
12114 * ipa-inline-transform.c (save_inline_function_body): Update to
12115 refelct new tree_function_versioning signature.
12116 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12117 ipa_param_adjustments to get current parameter indices.
12118 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12119 (ipcp_update_bits): Likewise.
12120 (ipcp_update_vr): Likewise.
12121 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12122 * ipa-sra.c: New file.
12123 * multiple_target.c (create_target_clone): Update to reflet new type
12124 of create_version_clone_with_body.
12125 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12126 tree_function_versioning.
12127 (modify_function): Update to reflect new type of
12128 tree_function_versioning.
12129 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12130 * passes.def: Remove old IPA-SRA and add new one.
12131 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12132 (make_pass_ipa_sra): Declare.
12133 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12134 ipa_sra_retvalues.
12135 * doc/invoke.texi (ipa-sra-max-replacements): New.
12136
12137 2019-09-19 Martin Sebor <msebor@redhat.com>
12138
12139 PR middle-end/91631
12140 * builtins.c (component_size): Correct trailing array computation,
12141 rename to component_ref_size and move...
12142 (compute_objsize): Adjust.
12143 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12144 (builtin_access::strict): Do not consider memmove.
12145 (builtin_access::write_off): New function.
12146 (builtin_memref::builtin_memref): Initialize refsize.
12147 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12148 refsize.
12149 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12150 Handle refsize.
12151 (builtin_access::builtin_access): Initialize dstoff to destination
12152 refeence offset here instead of in maybe_diag_overlap. Adjust
12153 referencess even to unrelated objects. Adjust sizrange of bounded
12154 string functions to reflect bound. For strcat, adjust destination
12155 sizrange by that of source.
12156 (builtin_access::strcat_overlap): Adjust offsets and sizes
12157 to reflect the increase in destination sizrange above.
12158 (builtin_access::overlap): Do not set dstoff here but instead
12159 in builtin_access::builtin_access.
12160 (check_bounds_or_overlap): Use builtin_access::write_off.
12161 (maybe_diag_access_bounds): Add argument. Add informational notes.
12162 (dump_builtin_memref, dump_builtin_access): New functions.
12163 * tree.c (component_ref_size): ...to here.
12164 * tree.h (component_ref_size): Declare.
12165 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12166 nul in the size of the source string.
12167
12168 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12169
12170 PR c/67224
12171 * doc/cpp.texi: Document support for extended characters in
12172 identifiers.
12173 * doc/cppopts.texi: Likewise.
12174
12175 2019-09-19 Richard Biener <rguenther@suse.de>
12176
12177 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12178 (check_reduction_path): New overload having the path as result.
12179 (vect_is_simple_reduction): From the detected reduction
12180 path build a SLP reduction chain if possible.
12181
12182 2019-09-19 Richard Biener <rguenther@suse.de>
12183
12184 PR target/91814
12185 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12186 Force operand to a register if it isn't nonimmediate_operand.
12187
12188 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12189
12190 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12191 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12192 (logical_op): Remove code attribute.
12193 (logical_OP): Likewise.
12194
12195 2019-09-19 Martin Liska <mliska@suse.cz>
12196
12197 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12198 Use proper casting.
12199
12200 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12201
12202 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12203 registers with %R.
12204
12205 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12206 for NE comparison of TImode values.
12207 (aarch64_emit_load_exclusive): Add support for TImode.
12208 (aarch64_emit_store_exclusive): Likewise.
12209 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12210 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12211 Change iterator from ALLI to ALLI_TI.
12212 (@atomic_compare_and_swap<JUST_TI>): New.
12213 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12214 (aarch64_load_exclusive_pair): New.
12215 (aarch64_store_exclusive_pair): New.
12216 * config/aarch64/iterators.md (JUST_TI): New.
12217
12218 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12219 strong_zero_p for aarch64_track_speculation; unify some code paths;
12220 use aarch64_gen_compare_reg instead of open-coding.
12221
12222 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12223 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12224 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12225 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12226 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12227 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12228 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12229 (atomic_<atomic_op><ALLI>): Likewise.
12230 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12231 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12232 * doc/invoke.texi: Document -moutline-atomics.
12233
12234 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12235
12236 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12237 trivial predicate for condition branch.
12238 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12239 for switch case.
12240 (compute_bb_predicates): Update predicate based on post-dominating
12241 relationship.
12242 (analyze_function_body): Calculate post-dominating information.
12243
12244 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12245
12246 * tree-vectorizer.h (vectorizable_condition): Take an int
12247 reduction index instead of a boolean flag.
12248 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12249 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12250 reductions if the reduction accumulator is the "then" rather
12251 than the "else" value.
12252 (vect_analyze_stmt): Update call accordingly.
12253 (vect_transform_stmt): Likewise.
12254 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12255 asserting that the index is > 0.
12256
12257 2019-09-19 Martin Liska <mliska@suse.cz>
12258
12259 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12260 (sort_congruence_classes_by_decl_uid): Likewise.
12261 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12262 easier sorting.
12263 (sem_item_optimizer::merge_classes): Likewise.
12264
12265 2019-09-19 Richard Biener <rguenther@suse.de>
12266
12267 PR tree-optimization/91812
12268 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12269 volatile loads.
12270
12271 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12272
12273 * defaults.h (TARGET_UNIT): New macro.
12274 (target_unit): New type.
12275 * rtl.h (native_encode_rtx, native_decode_rtx)
12276 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12277 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12278 * rtlanal.c (subreg_lsb_1): Delete.
12279 (subreg_size_lsb): New function.
12280 * simplify-rtx.c: Include rtx-vector-builder.h
12281 (simplify_immed_subreg): Delete.
12282 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12283 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12284 functions.
12285 (simplify_subreg): Use them.
12286 (test_vector_subregs_modes, test_vector_subregs_repeating)
12287 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12288 (test_vector_subregs): New functions.
12289 (test_vector_ops): Call test_vector_subregs for integer vector
12290 modes with at least 2 elements.
12291
12292 2019-09-19 Richard Biener <rguenther@suse.de>
12293
12294 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12295 LOOP_VINFO_OPERANDS_SWAPPED.
12296 (parloops_is_simple_reduction): Likewise.
12297 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12298 initialize operands_swapped.
12299 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12300 (vect_is_slp_reduction): Do not swap operands.
12301 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12302 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12303
12304 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12305
12306 PR target/87007
12307 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12308 Add avx_partial_xmm_update.
12309
12310 2019-09-18 Jim Wilson <jimw@sifive.com>
12311
12312 PR target/91683
12313 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12314 (riscv_move_integer): Likewise.
12315 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12316 riscv_move_integer arg.
12317 (riscv_legitimize_move): Likewise.
12318 (riscv_force_temporary): New parameter in_splitter. Don't call
12319 force_reg if true.
12320 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12321 arg.
12322 (riscv_add_offset): Likewise.
12323 (riscv_split_symbol): New parameter in_splitter. Pass to
12324 riscv_force_temporary.
12325 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12326 arg.
12327 (riscv_move_integer): New parameter in_splitter. New local
12328 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12329 in_splitter TRUE.
12330 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12331 riscv_split_symbol, and riscv_force_temporary args.
12332 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12333 riscv_move_integer arg.
12334 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12335
12336 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12337
12338 PR target/90878
12339 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12340 hard register store cost to 6.
12341
12342 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12343
12344 PR target/91446
12345 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12346 pseudo register store cost from 3 to 6 to make it the same as
12347 QImode and HImode.
12348
12349 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12350
12351 PR target/91738
12352 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12353 (one_cmpldi2): Likewise.
12354 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12355 of the constant parts is simple.
12356 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12357 (logical_op): Add new code attribute.
12358 (logical_OP): Likewise.
12359 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12360 (arm_iordi_operand): Add predicate.
12361 (arm_xordi_operand): Add predicate.
12362
12363 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12364
12365 * config/arm/arm.md (maddsidi4): Remove expander.
12366 (mulsidi3adddi): Remove pattern.
12367 (mulsidi3adddi_v6): Likewise.
12368 (mulsidi3_nov6): Likewise.
12369 (mulsidi3_v6): Likewise.
12370 (umulsidi3): Remove expander.
12371 (umulsidi3_nov6): Remove pattern.
12372 (umulsidi3_v6): Likewise.
12373 (umulsidi3adddi): Likewise.
12374 (umulsidi3adddi_v6): Likewise.
12375 (<Us>mulsidi3): Add combined expander.
12376 (<Us>maddsidi4): Likewise.
12377 (<US>mull): Add combined umull and smull pattern.
12378 (<US>mlal): Likewise.
12379 * config/arm/iterators.md (Us): Add new iterator.
12380
12381 2019-09-18 Richard Biener <rguenther@suse.de>
12382
12383 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12384 swapping.
12385 (vectorize_fold_left_reduction): Remove assert.
12386 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12387 operand in position 2. Remove assert.
12388
12389 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12390
12391 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12392 (smulsi3_highpart_nov6): Remove pattern.
12393 (smulsi3_highpart_v6): Likewise.
12394 (umulsi3_highpart): Likewise.
12395 (umulsi3_highpart_nov6): Likewise.
12396 (umulsi3_highpart_v6): Likewise.
12397 (<US>mull_high): Add new combined multiply pattern.
12398
12399 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12400
12401 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12402 (arm_mulsi3_v6): Likewise.
12403 (mulsi3addsi_v6): Likewise.
12404 (mulsi3subsi): Likewise.
12405 (mul): Add new multiply pattern.
12406 (mla): Likewise.
12407 (mls): Likewise.
12408
12409 2019-09-18 Richard Biener <rguenther@suse.de>
12410
12411 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12412 (parloops_valid_reduction_input_p): Copy from
12413 valid_reduction_input_p.
12414 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12415 (parloops_needs_fold_left_reduction_p): Copy from
12416 needs_fold_left_reduction_p.
12417 (parloops_is_simple_reduction): Copy from
12418 vect_is_simple_reduction.
12419 (parloops_force_simple_reduction): Copy from
12420 vect_force_simple_reduction.
12421 (gather_scalar_reductions): Adjust.
12422 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12423 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12424
12425 2019-09-18 Richard Biener <rguenther@suse.de>
12426
12427 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12428 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12429 static.
12430 (vect_create_epilog_for_reduction): Remove dead code.
12431
12432 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12433
12434 * varasm.c (assemble_real): Generate canonical const_ints.
12435
12436 2019-09-18 Richard Biener <rguenther@suse.de>
12437
12438 PR lto/91763
12439 * lto-streamer-in.c (input_eh_regions): Move EH init to
12440 lto_materialize_function.
12441 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12442 Likewise.
12443
12444 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12445
12446 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12447 are INTEGER_CSTs.
12448
12449 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12450
12451 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12452 of checking specifically for INTEGER_CST.
12453
12454 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12455
12456 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12457 sizes instead of uhwi sizes.
12458
12459 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12460
12461 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12462 (add_const_value_attribute): Handle CONST_POLY_INT.
12463
12464 2019-09-18 Martin Liska <mliska@suse.cz>
12465
12466 * dbgcnt.def (store_merging): New counter.
12467 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12468 Use it in store merging.
12469
12470 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12471
12472 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12473 function.
12474 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12475 * config/arm/arm.c (arm_sched_variable_issue): New function.
12476 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12477
12478 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12479
12480 * config/arm/types.md (no_reservation): New reservation.
12481 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12482 no_insn here.
12483 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12484 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12485 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12486 * config/arm/arm1020e.md (1020alu_op): Likewise.
12487 * config/arm/arm1026ejs.md (alu_op): Likewise.
12488 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12489 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12490 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12491 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12492 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12493 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12494 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12495 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12496 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12497 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12498 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12499 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12500 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12501 * config/arm/fa526.md (526_alu_op): Likewise.
12502 * config/arm/fa606te.md (606te_alu_op): Likewise.
12503 * config/arm/fa626te.md (626te_alu_op): Likewise.
12504 * config/arm/fa726te.md (726te_alu_op): Likewise.
12505 * config/arm/xgene1.md (xgene1_nop): Likewise.
12506
12507 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12508
12509 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12510 "no_insn" to "branch".
12511
12512 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12513
12514 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12515
12516 2019-09-17 Richard Biener <rguenther@suse.de>
12517
12518 PR debug/91772
12519 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12520 was missing generate locations only once.
12521
12522 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12523
12524 PR ipa/91089
12525 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12526 option.
12527 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12528 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12529 for switch default case using range analysis information.
12530
12531 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12532
12533 PR target/91749
12534 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12535 mode attributed is supported by FDPIC.
12536
12537 2019-09-17 Richard Biener <rguenther@suse.de>
12538
12539 PR tree-optimization/91790
12540 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12541 use the correct DR for setting up realignment.
12542
12543 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12544
12545 PR target/91719
12546 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12547 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12548 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12549 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12550
12551 2019-09-16 Jason Merrill <jason@redhat.com>
12552
12553 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12554
12555 2019-09-16 Martin Liska <mliska@suse.cz>
12556
12557 * gimple-fold.c (or_comparisons_1): Remove rules moved
12558 to ...
12559 * match.pd: ... here.
12560
12561 2019-09-16 Martin Liska <mliska@suse.cz>
12562
12563 * gimple-fold.c (or_comparisons_1): Remove rules
12564 moved to ...
12565 * match.pd: ... here.
12566
12567 2019-09-16 Martin Liska <mliska@suse.cz>
12568
12569 * genmatch.c (dt_node::append_simplify): Do not print
12570 warning when we have duplicate patterns belonging
12571 to a same simplify rule.
12572 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12573 (maybe_fold_comparisons_from_match_pd): Handle
12574 tcc_comparison as a results.
12575 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12576
12577 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12578 Qi Feng <ffengqi@linux.ibm.com>
12579
12580 PR middle-end/88784
12581 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12582 (x > y && x == XXX_MIN): Optimize into 'false'.
12583 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12584 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12585 (x < y && x == XXX_MAX): Optimize into 'false'.
12586 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12587 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12588 (x <= y || x != XXX_MIN): Optimize into 'true'.
12589 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12590 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12591 (x >= y || x != XXX_MAX): Optimize into 'true'.
12592 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12593
12594 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12595 Martin Liska <mliska@suse.cz>
12596
12597 * gimple-fold.c (and_comparisons_1): Add type as first
12598 argument.
12599 (and_var_with_comparison): Likewise.
12600 (and_var_with_comparison_1): Likewise.
12601 (or_comparisons_1): Likewise.
12602 (or_var_with_comparison): Likewise.
12603 (or_var_with_comparison_1): Likewise.
12604 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12605 (maybe_fold_or_comparisons): Likewise.
12606 (maybe_fold_comparisons_from_match_pd): New.
12607 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12608 (maybe_fold_or_comparisons): Likewise.
12609 * gimple.c (gimple_size): Make it public and add num_ops argument.
12610 (gimple_init): New function.
12611 (gimple_alloc): Call gimple_init.
12612 * gimple.h (gimple_size): New.
12613 (gimple_init): Likewise.
12614 * tree-if-conv.c (fold_or_predicates): Pass type.
12615 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12616 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12617 (optimize_vec_cond_expr): Likewise.
12618 (ovce_extract_ops): Return type of conditional expression.
12619 * tree-ssanames.c (init_ssa_name_imm_use): New.
12620 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12621 * tree-ssanames.h (init_ssa_name_imm_use): New.
12622
12623 2019-09-16 Richard Biener <rguenther@suse.de>
12624
12625 PR tree-optimization/91756
12626 PR tree-optimization/87132
12627 * tree-ssa-alias.h (enum translate_flags): New.
12628 (get_continuation_for_phi): Use it instead of simple bool flag.
12629 (walk_non_aliased_vuses): Likewise.
12630 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12631 (get_continuation_for_phi): When looking across backedges only
12632 disallow valueization.
12633 (walk_non_aliased_vuses): Adjust.
12634 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12635 if requested.
12636
12637 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12638
12639 PR middle-end/80791
12640 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12641 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12642 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12643 * target.def (have_count_reg_decr_p): New hook.
12644 (doloop_cost_for_generic): Likewise.
12645 (doloop_cost_for_address): Likewise.
12646 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12647 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12648 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12649 * doc/tm.texi: Regenerate.
12650 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12651 addend.
12652 (record_group): Init doloop_p.
12653 (add_candidate_1): Add optional argument doloop, change the handlings
12654 accordingly.
12655 (add_candidate): Likewise.
12656 (generic_predict_doloop_p): Update attribute.
12657 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12658 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12659 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12660 MIN_EXPR.
12661 (get_computation_cost): Update for doloop IV cand extra cost.
12662 (determine_group_iv_cost_cond): Update for doloop IV cand.
12663 (determine_iv_cost): Likewise.
12664 (ivopts_estimate_reg_pressure): Likewise.
12665 (may_eliminate_iv): Update handlings for doloop IV cand.
12666 (add_iv_candidate_for_doloop): New function.
12667 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12668 (iv_ca_set_no_cp): Update for doloop IV cand.
12669 (iv_ca_set_cp): Likewise.
12670 (iv_ca_dump): Dump register cost.
12671 (find_doloop_use): New function.
12672 (analyze_and_mark_doloop_use): Likewise.
12673 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12674
12675 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12676
12677 PR middle-end/91708
12678 * cse.c (cse_insn): Do not replace anything with a
12679 MEM.
12680
12681 2019-09-13 Ian Lance Taylor <iant@golang.org>
12682
12683 * doc/invoke.texi (Optimize Options): Fix typo.
12684
12685 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12686
12687 PR tree-optimization/89386
12688 * config/i386/sse.md (smulhrs<mode>3): New expander.
12689 (smulhrsv4hi3): Ditto.
12690
12691 2019-09-12 Richard Biener <rguenther@suse.de>
12692
12693 PR tree-optimization/91750
12694 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12695 in the type of the evolution.
12696
12697 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12698
12699 PR tree-optimization/89386
12700 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12701 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12702 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12703 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12704 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12705 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12706 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12707 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12708 (su, r): Handle the unspecs above.
12709 (bt): New int attribute.
12710 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12711 * internal-fn.c (first_commutative_argument): Commutativity info for
12712 above.
12713 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12714 (umulhrs_optab): New optabs.
12715 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12716 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12717 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12718 function.
12719 (vect_vect_recog_func_ptrs): Add it.
12720
12721 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12722
12723 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12724 code.
12725
12726 2019-09-11 Nathan Sidwell <nathan@acm.org>
12727
12728 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12729 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12730
12731 2019-09-11 Richard Biener <rguenther@suse.de>
12732
12733 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12734 * lto-wrapper.c (merge_and_complain): Pick up -g.
12735 (append_compiler_options): Likewise.
12736 (run_gcc): Re-instantiate handling -g0 at link-time.
12737 * doc/invoke.texi (flto): Document debug info generation.
12738
12739 2019-09-11 Richard Biener <rguenther@suse.de>
12740
12741 PR tree-optimization/90387
12742 * vr-values.c (vr_values::extract_range_basic): After inlining
12743 simplify non-constant __builtin_constant_p to false.
12744
12745 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12746
12747 PR rtl-optimization/89795
12748 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12749 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12750
12751 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12752
12753 PR tree-optimization/91723
12754 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12755 instead of pointer equality when checking if argument vectypes are
12756 the same.
12757
12758 PR middle-end/91725
12759 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12760 of get_nonzero_bits, only call it for integral types.
12761
12762 2019-09-11 Richard Biener <rguenther@suse.de>
12763
12764 Revert
12765 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12766
12767 * match.pd: Add flag_unsafe_math_optimizations check
12768 before deciding on the widest type in a binary math operation.
12769
12770 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12771
12772 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12773 and CALL_REALLY_USED_REGISTERS must be defined, and that
12774 CALL_REALLY_USED_REGISTERS is preferred.
12775 * doc/tm.texi: Regenerate.
12776 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12777 (call_really_used_regs): Likewise.
12778 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12779 CALL_REALLY_USED_REGISTERS are defined.
12780 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12781 initial value if defined.
12782 (initial_call_really_used_regs): Delete.
12783 (saved_call_really_used_regs): Likewise.
12784 (CALL_REALLY_USED_REGNO_P): Likewise.
12785 (init_reg_sets): Remove handling of call_really_used_regs.
12786 (save_register_info, restore_register_info, globalize_reg): Likewise.
12787 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12788 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12789 outside operand_reg_set.
12790 (fix_register): Don't change call_used_regs if
12791 CALL_REALLY_USED_REGISTERS is defined.
12792 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12793 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12794 instead of call_really_used_regs.
12795 (csky_conditional_register_usage): Remove the old handling of
12796 call_used_regs and change the handling of call_really_used_regs
12797 to use call_used_regs instead.
12798 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12799 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12800 making a register fixed.
12801 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12802 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12803 instead of call_really_used_regs.
12804 (m32r_conditional_register_usage): Don't set call_used_regs when
12805 making a register fixed.
12806 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12807 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12808 instead of call_really_used_regs.
12809 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12810 (mips_cfun_call_saved_reg_p): Likewise.
12811 (mips_swap_registers): Remove the old handling of call_used_regs
12812 and change the handling of call_really_used_regs to use call_used_regs
12813 instead.
12814 (mips_conditional_register_usage): Likewise.
12815 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12816 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12817 instead of call_really_used_regs.
12818 (mn10300_get_live_callee_saved_regs): Likewise.
12819 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12820 (mn10300_conditional_register_usage): Don't set call_used_regs when
12821 making a register fixed.
12822 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12823 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12824 Remove the old handling of call_used_regs and change the handling
12825 of call_really_used_regs to use call_used_regs instead.
12826 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12827 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12828 instead of call_really_used_regs.
12829 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12830 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12831 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12832 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12833 (s390_conditional_register_usage): Remove the old handling of
12834 call_used_regs and change the handling of call_really_used_regs
12835 to use call_used_regs instead.
12836 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12837 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12838 (sh_fix_range, reg_unused_after): Likewise.
12839 (sh_conditional_register_usage): Remove the old handling of
12840 call_used_regs and change the handling of call_really_used_regs
12841 to use call_used_regs instead.
12842 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12843 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12844 call_used_regs when making a register fixed.
12845 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12846 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12847 call_used_regs when making a register fixed.
12848 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12849 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12850 set call_used_regs when making a register fixed.
12851 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12852 * config/visium/visium.c (visium_conditional_register_usage): Remove
12853 the old handling of call_used_regs and change the handling of
12854 call_really_used_regs to use call_used_regs instead.
12855
12856 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12857
12858 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12859 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12860 * reginfo.c (call_used_regs): New macro.
12861
12862 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12863
12864 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12865 fixed_regs test.
12866 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12867 (bpf_expand_epilogue): Likewise.
12868 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12869 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12870 (ft32_expand_epilogue): Likewise.
12871 * config/i386/i386.c (ix86_save_reg): Likewise.
12872 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12873 (moxie_expand_epilogue): Likewise.
12874 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12875 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12876 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12877
12878 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12879
12880 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12881 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12882 instead of testing call_used_regs directly.
12883 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12884 (aarch64_components_for_bb): Likewise.
12885 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12886 * config/arc/arc.c (arc_must_save_register): Likewise.
12887 (arc_epilogue_uses): Likewise.
12888 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12889 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12890 (arm_compute_save_reg0_reg12_mask): Likewise.
12891 (arm_compute_save_core_reg_mask): Likewise.
12892 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12893 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12894 (cmse_nonsecure_entry_clear_before_return): Likewise.
12895 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12896 (arm_expand_epilogue): Likewise.
12897 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12898 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12899 (_reg_unused_after): Likewise.
12900 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12901 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12902 (add_to_reg, hwloop_optimize): Likewise.
12903 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12904 (bpf_expand_epilogue): Likewise.
12905 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12906 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12907 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12908 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12909 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12910 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12911 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12912 * config/frv/frv.c (frv_stack_info): Likewise.
12913 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12914 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12915 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12916 (move_callee_saved_registers): Likewise.
12917 * config/h8300/h8300.c (byte_reg): Likewise.
12918 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12919 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12920 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12921 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12922 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12923 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12924 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12925 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12926 * config/m32c/m32c.c (need_to_save): Likewise.
12927 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12928 * config/mcore/mcore.c (calc_live_regs): Likewise.
12929 * config/microblaze/microblaze.c (microblaze_must_save_register):
12930 Likewise.
12931 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12932 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12933 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12934 (mmix_expand_epilogue): Likewise.
12935 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12936 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12937 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12938 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12939 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12940 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12941 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12942 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12943 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12944 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12945 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12946 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12947 * config/rl78/rl78.c (need_to_save): Likewise.
12948 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12949 (rs6000_stack_info, generate_set_vrsave): Likewise.
12950 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12951 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12952 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12953 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12954 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12955 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12956 (save_local_or_in_reg_p): Likewise.
12957 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12958 (xstormy16_epilogue_uses): Likewise.
12959 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12960 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12961 * config/v850/v850.c (compute_register_save_size): Likewise.
12962 * config/vax/vax.c (vax_expand_prologue): Likewise.
12963 * config/visium/visium.c (visium_save_reg_p): Likewise.
12964 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12965 * cselib.c (cselib_process_insn): Likewise.
12966 * df-scan.c (df_get_entry_block_def_set): Likewise.
12967 * function.c (aggregate_value_p): Likewise.
12968 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12969 * ira-lives.c (process_bb_node_lives): Likewise.
12970 * ira.c (do_reload): Likewise.
12971 * lra-lives.c (process_bb_lives): Likewise.
12972 * lra-remat.c (lra_remat): Likewise.
12973 * lra.c (lra): Likewise.
12974 * postreload.c (reload_combine_recognize_pattern): Likewise.
12975 (reload_cse_move2add): Likewise.
12976 * recog.c (peep2_find_free_register): Likewise.
12977 * regrename.c (check_new_reg_p): Likewise.
12978 * reload.c (find_equiv_reg): Likewise.
12979 * reload1.c (reload, find_reg): Likewise.
12980 * sel-sched.c (init_hard_regs_data): Likewise.
12981
12982 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12983
12984 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12985 regs_invalidated_by_call & ~fixed_reg_set instead of
12986 call_used_or_fixed_regs & ~fixed_reg_set.
12987 * config/sh/sh.c (output_stack_adjust): Likewise.
12988
12989 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12990
12991 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12992 (call_used_reg_set): Delete.
12993 (call_used_or_fixed_regs): New macro.
12994 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12995 of call_used_reg_set.
12996 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12997 instead of call_used_regs.
12998 (save_call_clobbered_regs): Likewise.
12999 * cfgcleanup.c (old_insns_match_p): Likewise.
13000 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13001 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13002 Likewise.
13003 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13004 * config/sh/sh.c (output_stack_adjust): Likewise.
13005 * final.c (collect_fn_hard_reg_usage): Likewise.
13006 * ira-build.c (ira_build): Likewise.
13007 * ira-color.c (calculate_saved_nregs): Likewise.
13008 (allocno_reload_assign, calculate_spill_cost): Likewise.
13009 * ira-conflicts.c (ira_build_conflicts): Likewise.
13010 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13011 * ira-lives.c (process_bb_node_lives): Likewise.
13012 * ira.c (setup_reg_renumber): Likewise.
13013 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13014 * lra-constraints.c (need_for_call_save_p): Likewise.
13015 (need_for_split_p, inherit_in_ebb): Likewise.
13016 * lra-lives.c (process_bb_lives): Likewise.
13017 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13018 * postreload.c (reload_combine): Likewise.
13019 * regrename.c (find_rename_reg): Likewise.
13020 * reload1.c (reload_as_needed): Likewise.
13021 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13022 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13023 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13024
13025 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13026
13027 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13028 (no_caller_save_reg_set): Delete.
13029 * caller-save.c (init_caller_save): Don't initialize it.
13030 * ira-conflicts.c (ira_build_conflicts): Calculate
13031 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13032
13033 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13034
13035 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13036 (target_hard_regs::x_savable_regs): New field.
13037 (call_fixed_reg_set): Delete.
13038 (savable_regs): New macro,
13039 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13040 (init_reg_sets_1): Likewise. Initialize savable_regs.
13041 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13042 for all registers. Set savable_regs instead of call_fixed_reg_set.
13043 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13044 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13045 * config/sh/sh.c (output_stack_adjust): Likewise.
13046
13047 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13048
13049 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13050 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13051 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13052
13053 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13054
13055 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13056 * rtlanal.c (get_call_rtx_from): Likewise.
13057 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13058 than the pattern to get_call_rtx_from.
13059 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13060 an rtx_insn * instead of an rtx.
13061 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13062
13063 2019-09-10 Martin Liska <mliska@suse.cz>
13064
13065 * common.opt: Use newly added WarnRemoved.
13066 * config/aarch64/aarch64.opt: Likewise.
13067 * config/arm/arm.opt: Likewise.
13068 * config/i386/i386.opt: Likewise.
13069 * config/ia64/ia64.opt: Likewise.
13070 * config/rs6000/rs6000.opt: Likewise.
13071 * doc/options.texi: Document WarnRemoved properly.
13072 * dwarf2out.c (gen_producer_string): Handle renamed
13073 OPT_SPECIAL_warn_removed.
13074 * lto-opts.c (lto_write_options): Likewise.
13075 * lto-wrapper.c (merge_and_complain): Likewise.
13076 * opts-common.c (decode_cmdline_option): Likewise.
13077 (prune_options): Likewise.
13078 (read_cmdline_option): Likewise.
13079 (control_warning_option): Likewise.
13080 * opts.c (print_filtered_help): Likewise.
13081 * optc-gen.awk: Parse for WarnRemoved and make usage
13082 of Deprecated an error.
13083 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13084
13085 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13086
13087 * doc/install.texi: Fix syntax for html generation.
13088
13089 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13090
13091 PR middle-end/91680
13092 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13093 the shift type to type.
13094
13095 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13096
13097 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13098 FDPIC mode.
13099 (stack_protect_combined_test_insn): Likewise.
13100
13101 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13102 Mickaël Guêné <mickael.guene@st.com>
13103
13104 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13105 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13106 (load_tp_soft_fdpic): New pattern.
13107 (load_tp_soft): Disable in FDPIC mode.
13108
13109 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13110 Mickaël Guêné <mickael.guene@st.com>
13111
13112 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13113 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13114 (arm_call_tls_get_addr): Add FDPIC support.
13115 (legitimize_tls_address): Likewise.
13116 (arm_emit_tls_decoration): Likewise.
13117
13118 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13119 Mickaël Guêné <mickael.guene@st.com>
13120
13121 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13122 support.
13123 (arm_trampoline_init): Likewise.
13124 (arm_trampoline_adjust_address): Likewise.
13125 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13126
13127 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13128 Mickaël Guêné <mickael.guene@st.com>
13129
13130 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13131 (legitimize_pic_address): Enforce binding rules on function
13132 pointers in FDPIC mode.
13133 (arm_assemble_integer): Likewise.
13134
13135 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13136 Mickaël Guêné <mickael.guene@st.com>
13137
13138 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13139 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13140 FDPIC.
13141
13142 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13143 Mickaël Guêné <mickael.guene@st.com>
13144
13145 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13146 field.
13147
13148 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13149 Mickaël Guêné <mickael.guene@st.com>
13150
13151 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13152 in FDPIC mode.
13153 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13154 new function.
13155 * config/arm/arm.c (arm_option_override): Define pic register to
13156 FDPIC_REGNUM.
13157 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13158 have no decl or go through PLT.
13159 (calculate_pic_address_constant): New function.
13160 (legitimize_pic_address): Call calculate_pic_address_constant.
13161 (arm_load_pic_register): Handle TARGET_FDPIC.
13162 (arm_is_segment_info_known): New function.
13163 (arm_pic_static_addr): Add support for FDPIC.
13164 (arm_load_function_descriptor): New function.
13165 (arm_emit_call_insn): Add support for FDPIC.
13166 (arm_assemble_integer): Add support for FDPIC.
13167 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13168 Define. (FDPIC_REGNUM): New define.
13169 * config/arm/arm.md (call): Add support for FDPIC.
13170 (call_value): Likewise.
13171 (restore_pic_register_after_call): New pattern.
13172 (untyped_call): Disable if FDPIC.
13173 (untyped_return): Likewise.
13174 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13175
13176 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13177 Mickaël Guêné <mickael.guene@st.com>
13178
13179 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13180 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13181 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13182 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13183 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13184 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13185 * config/arm/uclinuxfdpiceabi.h: New file.
13186
13187 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13188
13189 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13190
13191 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13192 Mickaël Guêné <mickael.guene@st.com>
13193
13194 * config/arm/arm.opt: Add -mfdpic option.
13195 * doc/invoke.texi: Add documentation for -mfdpic.
13196
13197 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13198
13199 * expmed.c (extract_bit_field): Update function comment
13200 regarding alt_rtl.
13201 * expr.c (expand_expr_real): Update function comment
13202 regarding alt_rtl.
13203 (expand_misaligned_mem_ref): New helper function.
13204 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13205 Remove duplicate assignment to "base" at case MEM_REF.
13206 Remove a shadowed variable "unsignedp" at case VCE.
13207
13208 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13209
13210 * regset.h (regs_invalidated_by_call_regset): Delete.
13211 (fixed_reg_set_regset): Likewise.
13212 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13213 (fixed_reg_set_regset, persistent_obstack): Likewise.
13214 (init_reg_sets_1, globalize_reg): Update accordingly.
13215 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13216 instead of a bitmap.
13217 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13218 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13219 instead of regs_invalidated_by_call_regset.
13220 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13221 * df-scan.c (df_scan_start_dump): Likewise.
13222 * dse.c (copy_fixed_regs): Likewise.
13223 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13224
13225 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13226
13227 * array-traits.h: New file.
13228 * coretypes.h (array_traits, bitmap_view): New types.
13229 * bitmap.h: Include "array-traits.h"
13230 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13231 (base_bitmap_view, bitmap_view): New classes.
13232 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13233 * hard-reg-set.h: Include array-traits.h.
13234 (array_traits<HARD_REG_SET>): New struct.
13235 * regset.h (IOR_REG_SET_HRS): New macro.
13236 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13237 rather than iterating over each hard register.
13238 * sched-deps.c (sched_analyze_insn): Likewise.
13239 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13240
13241 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13242
13243 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13244 instead of a HARD_REG_SET *.
13245 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13246 (ira_build): Update call accordingly.
13247 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13248
13249 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13250
13251 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13252 (HARD_REG_SET::operator!=): Likewise.
13253 (hard_reg_set_equal_p): Delete.
13254 * cfgcleanup.c (old_insns_match_p): Use == instead of
13255 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13256 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13257 (add_allocno_hard_regs_to_forest): Likewise.
13258 (setup_allocno_available_regs_num): Likewise.
13259 * ira.c (setup_pressure_classes): Likewise.
13260 (setup_allocno_and_important_classes): Likewise.
13261 (setup_reg_class_relations): Likewise.
13262 * lra-lives.c (process_bb_lives): Likewise.
13263 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13264
13265 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13266
13267 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13268 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13269 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13270 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13271 Likewise.
13272 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13273 * ira.c (setup_reg_renumber): Likewise.
13274 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13275 * regrename.c (regrename_find_superclass): Likewise.
13276 * reload1.c (find_reg): Likewise.
13277
13278 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13279
13280 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13281 * caller-save.c (setup_save_areas): Use "&~" instead of
13282 AND_COMPL_HARD_REG_SET.
13283 (save_call_clobbered_regs): Likewise.
13284 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13285 Likewise.
13286 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13287 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13288 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13289 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13290 (mips_conditional_register_usage): Likewise.
13291 * config/sh/sh.c (output_stack_adjust): Likewise.
13292 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13293 (setup_profitable_hard_regs): Likewise.
13294 (get_conflict_and_start_profitable_regs): Likewise.
13295 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13296 (ira_build_conflicts): Likewise.
13297 * ira-costs.c (restrict_cost_classes): Likewise.
13298 (setup_regno_cost_classes_by_aclass): Likewise.
13299 * ira-lives.c (process_bb_node_lives): Likewise.
13300 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13301 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13302 (setup_allocno_and_important_classes, setup_class_translate_array)
13303 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13304 Likewise.
13305 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13306 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13307 (process_alt_operands, inherit_in_ebb): Likewise.
13308 * lra-eliminations.c (update_reg_eliminate): Likewise.
13309 * lra-lives.c (process_bb_lives): Likewise.
13310 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13311 * resource.c (find_dead_or_set_registers): Likewise.
13312 (mark_target_live_regs): Likewise.
13313 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13314 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13315 (implicit_clobber_conflict_p): Likewise.
13316 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13317 (try_shrink_wrapping): Likewise.
13318
13319 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13320
13321 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13322 (HARD_REG_SET::operator|=): Likewise.
13323 (IOR_HARD_REG_SET): Delete.
13324 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13325 IOR_HARD_REG_SET.
13326 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13327 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13328 * final.c (collect_fn_hard_reg_usage): Likewise.
13329 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13330 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13331 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13332 (propagate_some_info_from_allocno): Likewise.
13333 (copy_info_to_removed_store_destinations): Likewise.
13334 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13335 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13336 (fast_allocation): Likewise.
13337 * ira-conflicts.c (ira_build_conflicts): Likewise.
13338 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13339 (process_bb_node_lives): Likewise.
13340 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13341 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13342 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13343 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13344 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13345 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13346 (process_bb_lives): Likewise.
13347 * lra-spills.c (assign_spill_hard_regs): Likewise.
13348 * postreload.c (reload_combine): Likewise.
13349 * reginfo.c (init_reg_sets_1): Likewise.
13350 * regrename.c (merge_overlapping_regs, find_rename_reg)
13351 (merge_chains): Likewise.
13352 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13353 (find_reload_regs, finish_spills, choose_reload_regs_init)
13354 (emit_reload_insns): Likewise.
13355 * reorg.c (redundant_insn): Likewise.
13356 * resource.c (find_dead_or_set_registers, mark_set_resources)
13357 (mark_target_live_regs): Likewise.
13358 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13359 * sched-deps.c (sched_analyze_insn): Likewise.
13360 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13361 (find_best_reg_for_expr): Likewise.
13362 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13363
13364 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13365
13366 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13367 (HARD_REG_SET::operator&): Likewise.
13368 (AND_HARD_REG_SET): Delete.
13369 * caller-save.c (setup_save_areas): Use "&" instead of
13370 AND_HARD_REG_SET.
13371 (save_call_clobbered_regs): Likewise.
13372 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13373 * config/m32c/m32c.c (reduce_class): Likewise.
13374 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13375 * final.c (get_call_reg_set_usage): Likewise.
13376 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13377 (setup_left_conflict_sizes_p): Likewise.
13378 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13379 (ira_build_conflicts): Likewise.
13380 * ira-costs.c (restrict_cost_classes): Likewise.
13381 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13382 (setup_reg_class_relations): Likewise.
13383 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13384 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13385 * resource.c (find_dead_or_set_registers): Likewise.
13386 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13387
13388 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13389
13390 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13391 (COMPL_HARD_REG_SET): Delete.
13392 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13393 of COMPL_HARD_REG_SET.
13394 (try_rename_operands): Likewise.
13395 * config/sh/sh.c (push_regs): Likewise.
13396 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13397 * lra-constraints.c (contains_reg_p): Likewise.
13398 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13399
13400 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13401
13402 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13403 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13404 of COPY_HARD_REG_SET.
13405 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13406 (epiphany_conditional_register_usage): Likewise.
13407 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13408 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13409 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13410 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13411 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13412 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13413 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13414 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13415 * config/sh/sh.c (output_stack_adjust): Likewise.
13416 * final.c (collect_fn_hard_reg_usage): Likewise.
13417 (get_call_reg_set_usage): Likewise.
13418 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13419 (ira_flattening): Likewise.
13420 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13421 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13422 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13423 (ira_reassign_pseudos): Likewise.
13424 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13425 (ira_build_conflicts): Likewise.
13426 * ira-costs.c (restrict_cost_classes): Likewise.
13427 (setup_regno_cost_classes_by_aclass): Likewise.
13428 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13429 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13430 (setup_stack_reg_pressure_class, setup_pressure_classes)
13431 (setup_allocno_and_important_classes, setup_class_translate_array)
13432 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13433 (ira_setup_eliminable_regset): Likewise.
13434 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13435 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13436 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13437 (process_alt_operands, inherit_in_ebb): Likewise.
13438 * lra-lives.c (process_bb_lives): Likewise.
13439 * lra-spills.c (assign_spill_hard_regs): Likewise.
13440 * lra.c (lra): Likewise.
13441 * mode-switching.c (new_seginfo): Likewise.
13442 * postreload.c (reload_combine): Likewise.
13443 * reg-stack.c (straighten_stack): Likewise.
13444 * reginfo.c (save_register_info, restore_register_info): Likewise.
13445 (init_reg_sets_1, record_subregs_of_mode): Likewise
13446 * regrename.c (create_new_chain, rename_chains): Likewise.
13447 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13448 (find_reload_regs): Likewise.
13449 * resource.c (find_dead_or_set_registers): Likewise.
13450 (mark_target_live_regs): Likewise.
13451 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13452
13453 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13454
13455 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13456 (note_pattern_stores): Declare.
13457 (note_stores): Take an rtx_insn *.
13458 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13459 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13460 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13461 (note_stores): Take an rtx_insn * as argument and process
13462 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13463 (note_pattern_stores): ...this.
13464 (find_first_parameter_load): Pass the insn rather than
13465 its pattern to note_stores.
13466 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13467 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13468 (insert_one_insn): Likewise.
13469 * combine.c (combine_instructions): Likewise.
13470 (likely_spilled_retval_p): Likewise.
13471 (try_combine): Use note_pattern_stores instead of note_stores.
13472 (record_dead_and_set_regs): Pass the insn rather than its pattern
13473 to note_stores.
13474 (reg_dead_at_p): Likewise.
13475 * config/bfin/bfin.c (workaround_speculation): Likewise.
13476 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13477 rather than an rtx.
13478 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13479 instead of note_stores.
13480 (frv_optimize_membar_local): Pass the insn rather than its pattern
13481 to note_stores.
13482 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13483 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13484 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13485 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13486 (mips_reorg_process_insns): Likewise.
13487 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13488 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13489 rather than rtxes.
13490 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13491 its pattern to note_stores.
13492 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13493 of note_stores.
13494 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13495 the insn to note_stores.
13496 (prescan_insns_for_dce): Update call accordingly.
13497 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13498 to note_stores.
13499 * df-problems.c (can_move_insns_across): Likewise.
13500 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13501 * function.c (assign_parm_setup_reg): Likewise.
13502 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13503 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13504 (single_set_gcse): Likewise.
13505 * ira.c (validate_equiv_mem): Likewise.
13506 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13507 for no_equiv.
13508 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13509 pattern to note_stores.
13510 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13511 * loop-iv.c (simplify_using_initial_values): Likewise.
13512 * mode-switching.c (optimize_mode_switching): Likewise.
13513 * optabs.c (emit_libcall_block_1): Likewise.
13514 (expand_atomic_compare_and_swap): Likewise.
13515 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13516 (record_opr_changes): Likewise. Remove explicit handling of
13517 CALL_INSN_FUNCTION_USAGE.
13518 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13519 * regcprop.c (kill_clobbered_values): Likewise.
13520 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13521 to note_stores.
13522 * regrename.c (build_def_use): Likewise.
13523 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13524 for mark_not_eliminable.
13525 (reload_as_needed): Pass the insn rather than its pattern
13526 to note_stores.
13527 (emit_output_reload_insns): Likewise.
13528 * resource.c (mark_target_live_regs): Likewise.
13529 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13530 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13531 instead of note_stores.
13532 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13533 its pattern to note_stores.
13534 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13535 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13536
13537 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13538
13539 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13540 than a #define. Use a structure rather than an array as the
13541 fallback definition. Remove special cases for low array sizes.
13542 (const_hard_reg_set): New typedef.
13543 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13544 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13545 (hard_reg_set_empty_p): Likewise.
13546 (SET_HARD_REG_BIT): Use a function rather than a macro to
13547 handle the case in which HARD_REG_SET is a structure.
13548 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13549 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13550 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13551 (IOR_COMPL_HARD_REG_SET): Likewise.
13552 (hard_reg_set_iterator::pset): Constify the pointer target.
13553 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13554 of a "const HARD_REG_SET". Update the handling of non-integer
13555 HARD_REG_SETs.
13556 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13557 * reload.h: Likewise.
13558 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13559 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13560 of a "const HARD_REG_SET".
13561 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13562 (range_in_hard_reg_set_p): Likewise.
13563 * ira-costs.c (restrict_cost_classes): Likewise.
13564 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13565 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13566 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13567 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13568 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13569 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13570 take an unsigned int and open-code the HARD_REG_SET operations.
13571
13572 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13573
13574 * Makefile.in (OBJS): Remove bt-load.o.
13575 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13576 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13577 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13578 document that the option no longer does anything.
13579 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13580 * target.def (branch_target_register_class): Delete.
13581 (branch_target_register_callee_saved): Likewise.
13582 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13583 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13584 * doc/tm.texi: Regenerate.
13585 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13586 (make_pass_branch_target_load_optimize2): Likewise.
13587 * passes.def (pass_branch_target_load_optimize1): Likewise.
13588 (pass_branch_target_load_optimize2): Likewise.
13589 * targhooks.h (default_branch_target_register_class): Likewise.
13590 * targhooks.c (default_branch_target_register_class): Likewise.
13591 * opt-suggestions.c (test_completion_valid_options): Remove
13592 -fbtr-bb-exclusive from the list of test options.
13593 * bt-load.c: Remove.
13594
13595 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13596
13597 * match.pd: Add flag_unsafe_math_optimizations check
13598 before deciding on the widest type in a binary math operation.
13599
13600 2019-09-09 Martin Liska <mliska@suse.cz>
13601
13602 * config/i386/i386.opt: Update comment of removed
13603 options that are preserved only for backward
13604 compatibility.
13605
13606 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13607
13608 PR target/87853
13609 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13610 instead of __v16qs.
13611
13612 PR target/91704
13613 * config/i386/avxintrin.h (__v32qs): New typedef.
13614 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13615 instead of __v32qi.
13616
13617 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13618
13619 * doc/invoke.texi (Option Summary): Cover eBPF.
13620 (eBPF Options): New section.
13621 * doc/extend.texi (BPF Built-in Functions): Likewise.
13622 (BPF Kernel Helpers): Likewise.
13623
13624 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13625
13626 * config.gcc: Support for bpf-*-* targets.
13627 * common/config/bpf/bpf-common.c: New file.
13628 * config/bpf/t-bpf: Likewise.
13629 * config/bpf/predicates.md: Likewise.
13630 * config/bpf/constraints.md: Likewise.
13631 * config/bpf/bpf.opt: Likewise.
13632 * config/bpf/bpf.md: Likewise.
13633 * config/bpf/bpf.h: Likewise.
13634 * config/bpf/bpf.c: Likewise.
13635 * config/bpf/bpf-protos.h: Likewise.
13636 * config/bpf/bpf-opts.h: Likewise.
13637 * config/bpf/bpf-helpers.h: Likewise.
13638 * config/bpf/bpf-helpers.def: Likewise.
13639
13640 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13641
13642 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13643 indirect_calls.
13644
13645 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13646
13647 * opt-functions.awk (integer_range_info): Make sure values are in
13648 numeric context before operating with them.
13649
13650 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13651
13652 * genemit.c (gen_split): Print the filename and line number where the
13653 splitter (or peephole2) was defined, to the dump file.
13654
13655 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13656
13657 PR tree-optimization/91665
13658 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13659 incompatible with the type of PHI result.
13660
13661 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13662
13663 PR target/91684
13664 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13665 gen_unaligned_storedi for 4-byte aligned addresses.
13666
13667 2019-09-06 Jim Wilson <jimw@sifive.com>
13668
13669 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13670 change.
13671
13672 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13673
13674 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13675
13676 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13677
13678 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13679 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13680
13681 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13682
13683 PR target/91654
13684 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13685 cost of SSE->integer and integer->SSE moves from 2 to 6.
13686 (core_cost): Ditto.
13687
13688 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13689
13690 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13691 before testing TYPE_TRANSPARENT_AGGR.
13692 * calls.c (initialize_argument_information, load_register_parameters):
13693 Likewise.
13694
13695 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13696
13697 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13698 high regs.
13699 (cmp_ior): Likewise.
13700
13701 2019-09-06 Martin Liska <mliska@suse.cz>
13702
13703 * doc/match-and-simplify.texi: Separate tuples with ;.
13704
13705 2019-09-06 Martin Liska <mliska@suse.cz>
13706
13707 PR c++/91125
13708 * Makefile.in: Remove tlink.o.
13709 * collect2.c (do_link): New function isolated
13710 from do_tlink.
13711 (main): Use.
13712 * collect2.h (do_tlink): Remove declaration of do_tlink.
13713 * doc/extend.texi: Remove documentation of -frepo.
13714 * doc/invoke.texi: Likewise.
13715 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13716 * tlink.c: Remove.
13717
13718 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13719 Jim Wilson <jimw@sifive.com>
13720
13721 PR target/91635
13722 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13723 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13724 paradoxical_subreg_p (operands[0]).
13725 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13726 use as intermediate value.
13727
13728 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13729
13730 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13731 (sync_compare_and_swap<mode>_insn): Likewise.
13732
13733 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13734
13735 PR middle-end/91615
13736 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13737 without movmisalign optab.
13738
13739 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13740
13741 PR middle-end/91001
13742 PR middle-end/91105
13743 PR middle-end/91106
13744 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13745 types, use type of their first field instead of type of
13746 args[i].tree_value.
13747
13748 2019-09-05 Richard Biener <rguenther@suse.de>
13749
13750 PR rtl-optimization/91656
13751 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13752 of early out.
13753
13754 2019-09-05 Richard Biener <rguenther@suse.de>
13755
13756 PR middle-end/90501
13757 * tree-inline.c (declare_return_variable): Mark the return
13758 slot as addressable after building an address of it.
13759
13760 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13761
13762 * doc/install.texi: Update and clarify requirements to build GNAT.
13763
13764 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13765
13766 PR middle-end/91577
13767 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13768 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13769 call to be in memory.
13770 (pass_expand::execute): Call discover_nonconstant_array_refs before
13771 setting currently_expanding_to_rtl.
13772
13773 2019-09-04 Caroline Tice <cmtice@google.com>
13774
13775 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13776 specified together.
13777
13778 2019-09-04 Marek Polacek <polacek@redhat.com>
13779
13780 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13781
13782 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13783
13784 PR target/32413
13785 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13786 for QI and HImode moves between SSE and general registers.
13787
13788 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13789
13790 PR c/78736
13791 * doc/invoke.texi: Document -Wenum-conversion.
13792
13793 2019-09-04 Richard Biener <rguenther@suse.de>
13794
13795 PR rtl-optimization/36262
13796 * postreload-gcse.c: Include intl.h and gcse.h.
13797 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13798 to avoid linear list walk.
13799 (record_last_mem_set_info): Gate off if not computing transparentness.
13800 (get_bb_avail_insn): If transparentness isn't computed give up
13801 early.
13802 (gcse_after_reload_main): Skip compute_transp and extended PRE
13803 if gcse_or_cprop_is_too_expensive says so.
13804
13805 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13806
13807 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13808 noinit section.
13809 (msp430_select_section): Handle decls with the "noinit" attribute with
13810 default_elf_select_section.
13811 Handle SECCAT_RODATA_MERGE_* section types with
13812 default_elf_select_section.
13813 Add comments about handling of unsupported section types.
13814 (msp430_section_type_flags): Remove handling of the noinit section.
13815
13816 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13817
13818 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13819 conflicting msp430-specific attributes.
13820 (msp430_section_attr): Likewise.
13821 Add warnings about conflicts with generic "noinit" and "section"
13822 attributes.
13823 Fix grammar in -mlarge error message.
13824 (msp430_data_attr): Rename to msp430_persist_attr.
13825 Add warnings about conflicts with generic "noinit" and "section"
13826 attributes.
13827 Add warning for when variable is not initialized.
13828 Chain conditionals which prevent the attribute being added.
13829 (ATTR_EXCL): New helper.
13830 (attr_reent_exclusions): New exclusion table.
13831 (attr_naked_exclusions): Likewise.
13832 (attr_crit_exclusions): Likewise.
13833 (attr_lower_exclusions): Likewise.
13834 (attr_upper_exclusions): Likewise.
13835 (attr_either_exclusions): Likewise.
13836 (attr_persist_exclusions): Likewise.
13837 (msp430_attribute_table): Update with exclusion rules.
13838 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13839 has a section.
13840
13841 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13842
13843 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13844 (msp430_handle_generic_attribute): New function.
13845 * doc/tm.texi: Regenerate.
13846 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13847 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13848 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13849 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13850
13851 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13852
13853 PR tree-optimization/91504
13854 * match.pd: Add ((~a & b) ^a) --> (a | b).
13855
13856 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13857
13858 PR target/91604
13859 * config/i386/i386-expand.c (split_double_mode): If there is more than
13860 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13861 already split matching MEM operand instead of calling adjust_address
13862 again.
13863
13864 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13865
13866 * config.gcc: Obsolete spu target. Remove references to spu.
13867 * configure.ac: Remove references to spu.
13868 * configure: Regenerate.
13869 * config/spu/: Remove directory.
13870 * common/config/spu/: Remove directory.
13871
13872 * doc/extend.texi: Remove references to spu.
13873 * doc/invoke.texi: Likewise.
13874 * doc/md.texi: Likewise.
13875 * doc/sourcebuild.texi: Likewise.
13876
13877 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13878
13879 PR middle-end/91603
13880 PR middle-end/91612
13881 PR middle-end/91613
13882 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13883 and SSA_NAME referring to CONSTANT_P correctly.
13884
13885 2019-09-03 Richard Biener <rguenther@suse.de>
13886
13887 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13888 (vn_nary_op_insert): Likewise.
13889 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13890 (vn_nary_op_lookup): Likewise.
13891 (vn_nary_op_insert): Likewise.
13892
13893 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13894
13895 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13896 (*op0, 1) instead of XEXP (*op1, 0).
13897
13898 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13899
13900 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13901 (aarch64_fjcvtzs): New define_insn.
13902 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13903 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13904 Add AARCH64_JSCVT.
13905 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13906 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13907 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13908 __ARM_FEATURE_JCVT where appropriate.
13909 * config/aarch64/arm_acle.h (__jcvt): Define.
13910
13911 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13912
13913 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13914 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13915 (aarch64_<frintnzs_op><mode>): New define_insn.
13916 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13917 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13918 __ARM_FEATURE_FRINT when appropriate.
13919 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13920 frint32x, frint64z, frint64x.
13921 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13922 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13923 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13924 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13925 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13926 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13927 * config/aarch64/iterators.md (VSFDF): Define.
13928 (FRINTNZX): Likewise.
13929 (frintnzs_op): Likewise.
13930
13931 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13932
13933 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13934 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13935 Cortex-A34.
13936 * config/aarch64/aarch64-tune.md: Regenerated.
13937 * doc/invoke.texi: Document the new processors.
13938
13939 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13940
13941 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13942 string.
13943 (ssbs): Likewise.
13944 (sve2): Likewise.
13945 (sve2-sm4): Likewise.
13946 (sveaes): Likewise.
13947 (svesha3): Likewise.
13948 (svebitperm): Likewise.
13949
13950 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13951 Richard Biener <rguenther@suse.de>
13952
13953 PR tree-optimization/91597
13954 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13955 BIT_AND_EXPR optimization for pointers, even if both operand
13956 ranges don't include NULL, the result can be NULL.
13957
13958 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13959
13960 PR middle-end/91605
13961 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13962 (non_mem_decl_p): ...this.
13963 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13964 (expand_assignment): Call mem_ref_referes_to_non_mem_p
13965 unconditionally as before.
13966
13967 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13968
13969 PR target/91323
13970 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13971 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
13972 * tree.def (LTGT_EXPR): Likewise.
13973 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13974
13975 2019-09-02 Jakub Jelinek <jakub@redhat.com>
13976
13977 PR go/91617
13978 * fold-const.c (range_check_type): For enumeral and boolean
13979 type, pass 1 to type_for_size langhook instead of
13980 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
13981 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13982 (build_range_check): Don't call unsigned_type_for for pointer types.
13983 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13984 range_check_type result.
13985
13986 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13987
13988 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13989 (replace_ref): Do not replace a chain of only two candidates which are
13990 valid memory references.
13991
13992 2019-09-02 Martin Liska <mliska@suse.cz>
13993
13994 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13995 Bail out when we'll end up with the same number of clusters as
13996 at the beginning.
13997 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13998 (jump_table_cluster::can_be_handled): Remove the guard
13999 as it's already handled in ::is_enabled. Allocate output
14000 after early bail out.
14001
14002 2019-09-02 Martin Liska <mliska@suse.cz>
14003
14004 PR gcov-profile/91601
14005 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14006 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14007 also negative edges.
14008 (circuit): Handle also negative edges as they can happen
14009 in some situations.
14010
14011 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14012
14013 PR target/91472
14014 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14015 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14016 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14017
14018 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14019
14020 PR middle-end/91623
14021 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14022 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14023 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14024 zero vector.
14025
14026 PR lto/91572
14027 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14028 GIMPLE_ASM TREE_LIST operands.
14029
14030 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14031
14032 * doc/generic.texi (Unary and Binary Expressions): Mark up
14033 an instance of TYPE_MIN.
14034
14035 2019-08-31 Stafford Horne <shorne@gmail.com>
14036
14037 * config/or1k/constraints.md (t): New constraint.
14038 * config/or1k/or1k.h (GOT_REGS): New register class.
14039 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14040
14041 2019-08-30 Jim Wilson <jimw@sifive.com>
14042
14043 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14044 and -fpic and -mplt then disable -msave-restore and warn.
14045
14046 2019-08-30 Martin Sebor <msebor@redhat.com>
14047
14048 PR middle-end/91599
14049 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14050 the statement doesn't have one.
14051 * gimple-pretty-print.c (percent_G_format): Same.
14052
14053 PR middle-end/91584
14054 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14055 before using them to validate MEM_REF offset.
14056
14057 2019-08-30 Marek Polacek <polacek@redhat.com>
14058
14059 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14060
14061 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14062
14063 * config/arm/arm.md (unaligned_loaddi,
14064 unaligned_storedi): New unspec insn patterns.
14065 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14066 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14067 and unaligned_storedi for 4-byte aligned memory.
14068 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14069 4-byte aligned memory.
14070
14071 2019-08-30 Martin Jambor <mjambor@suse.cz>
14072
14073 tree-optimization/91579
14074 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14075 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14076 appropriate.
14077 (arg_needs_copy_p): Removed.
14078 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14079 arg_needs_copy_p.
14080 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14081
14082 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14083
14084 * config/i386/i386-features.c
14085 (general_scalar_chain::compute_convert_gain):
14086 Correct cost for double-word shifts.
14087 (general_scalar_to_vector_candidate_p): Reject count operands
14088 greater or equal to mode bitsize.
14089
14090 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14091
14092 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14093 for moves between SSE and non-general registers and between
14094 mask and non-general registers.
14095 (ix86_register_move_cost): Remove stalled comment.
14096
14097 2019-08-29 Richard Biener <rguenther@suse.de>
14098
14099 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14100 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14101
14102 2019-08-29 Richard Biener <rguenther@suse.de>
14103
14104 PR bootstrap/91580
14105 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14106 Do not emit scalar copies for debug-insns, instead replace
14107 their uses with the reg copy used in the chain or reset them
14108 if there is a reaching definition outside of the chain as well.
14109
14110 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14111
14112 PR target/91560
14113 * config/i386/i386-expand.c (expand_vec_perm_movs,
14114 expand_vec_perm_blend, expand_vec_perm_vpermil,
14115 expand_vec_perm_pshufb, expand_vec_perm_1,
14116 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14117 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14118 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14119 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14120 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14121 comments - replace ix86_expand_vec_perm_builtin_1 with
14122 ix86_expand_vec_perm_const_1.
14123 (expand_vec_perm2_vperm2f128_vblend): New function.
14124 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14125 expand_vec_perm2_vperm2f128_vblend as last resort.
14126 (canonicalize_perm): Formatting fix.
14127
14128 PR tree-optimization/91351
14129 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14130 unsigned_type_for.
14131 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14132 range_check_type returns NULL.
14133 * tree-switch-conversion.c (switch_conversion::build_one_array):
14134 Use range_check_type instead of unsigned_type_for, don't perform
14135 linear opt if it returns NULL.
14136 (bit_test_cluster::find_bit_tests): Formatting fix.
14137 (bit_test_cluster::emit): Use range_check_type instead of
14138 unsigned_type_for.
14139 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14140 returns NULL.
14141
14142 2019-08-29 Richard Biener <rguenther@suse.de>
14143
14144 PR tree-optimization/91568
14145 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14146 (vect_update_max_nunits): Add overload for poly_uint64.
14147 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14148 (vect_build_slp_tree): Record max_nunits into the subtree
14149 and merge it upwards.
14150 (vect_print_slp_tree): Print max_nunits.
14151
14152 2019-08-28 Marek Polacek <polacek@redhat.com>
14153
14154 Implement P1152R4: Deprecating some uses of volatile.
14155 PR c++/91361
14156 * doc/invoke.texi: Document -Wvolatile.
14157
14158 2019-08-28 Marek Polacek <polacek@redhat.com>
14159
14160 PR c++/91360 - Implement C++20 P1143R2: constinit.
14161 * doc/invoke.texi: Document -Wc++20-compat.
14162
14163 2019-08-28 Martin Sebor <msebor@redhat.com>
14164
14165 PR tree-optimization/91457
14166 * builtins.c (component_size): New function.
14167 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14168 * builtins.h (compute_objsize): Add argument.
14169 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14170 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14171 (vrp_prop::check_mem_ref): Same.
14172 (vrp_prop::search_for_addr_array): Set no-warning bit.
14173 (check_array_bounds): Same.
14174
14175 2019-08-28 Martin Sebor <msebor@redhat.com>
14176
14177 PR driver/80545
14178 * opts-common.c (option_enabled): Correct checking for language
14179 options.
14180
14181 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14182
14183 * config/i386/i386.c (ix86_register_move_cost): Do not
14184 limit the cost of moves to/from XMM register to minimum 8.
14185
14186 2019-08-28 Martin Jambor <mjambor@suse.cz>
14187
14188 PR ipa/91468
14189 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14190 checking assert a normal assert to test it really is redundant.
14191 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14192 redundant test.
14193 (update_jump_functions_after_inlining): Removed combining unary
14194 arithmetic operations with an ancestor jump function.
14195 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14196 instead of t.
14197
14198 2019-08-28 Richard Biener <rguenther@suse.de>
14199
14200 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14201 add the MD problem.
14202
14203 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14204 Richard Biener <rguenther@suse.de>
14205
14206 * expr.c (expand_assignment): Handle misaligned DECLs.
14207 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14208 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14209 too.
14210 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14211 * varasm.c (build_constant_desc): Align constants of misaligned types.
14212 * config/arm/predicates.md (aligned_operand): New predicate.
14213 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14214 aligned_operand to check restrictions on memory addresses.
14215 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14216 * config/arm/vec-common.md (mov<VALL>): Likewise.
14217
14218 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14219
14220 PR libgomp/91530
14221 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14222 V_128 iterator instead of VI_128.
14223
14224 2019-08-28 Martin Liska <mliska@suse.cz>
14225
14226 PR tree-optimization/90970
14227 * builtins.c (check_access): Remove assignment to maxread
14228 as it hasn't been used since when it was introduced in r255755.
14229
14230 2019-08-27 Martin Sebor <msebor@redhat.com>
14231
14232 PR tree-optimization/91567
14233 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14234 of unknown strings.
14235 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14236 to PTRDIFF_MAX - 2.
14237
14238 2019-08-27 Jeff Law <law@redhat.com>
14239
14240 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14241 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14242
14243 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14244
14245 PR target/91528
14246 * config/i386/i386-features.c (convert_scalars_to_vector):
14247 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14248 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14249 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14250 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14251
14252 2019-08-27 Richard Biener <rguenther@suse.de>
14253
14254 * config/i386/i386-features.h
14255 (general_scalar_chain::~general_scalar_chain): Add.
14256 (general_scalar_chain::insns_conv): New bitmap.
14257 (general_scalar_chain::n_sse_to_integer): New.
14258 (general_scalar_chain::n_integer_to_sse): Likewise.
14259 (general_scalar_chain::make_vector_copies): Adjust signature.
14260 * config/i386/i386-features.c
14261 (general_scalar_chain::general_scalar_chain): Outline,
14262 initialize new members.
14263 (general_scalar_chain::~general_scalar_chain): New.
14264 (general_scalar_chain::mark_dual_mode_def): Record insns
14265 we need to insert conversions at and count them.
14266 (general_scalar_chain::compute_convert_gain): Account
14267 for conversion instructions at chain boundary.
14268 (general_scalar_chain::make_vector_copies): Generate a single
14269 copy for a def by a specific insn.
14270 (general_scalar_chain::convert_registers): First populate
14271 defs_map, then make copies at out-of chain insns.
14272
14273 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14274
14275 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14276 comment.
14277 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14278
14279 2019-08-27 Martin Liska <mliska@suse.cz>
14280
14281 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14282 loop.
14283 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14284 Enclose in anonymous namespace.
14285 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14286 hard_register initialization in braces.
14287 * tree-vrp.h (value_range_base::supports_type_p): Return false
14288 for function with boolean return type.
14289
14290 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14291
14292 * config/i386/i386.c (emit_i387_cw_initialization)
14293 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14294
14295 2019-08-26 Martin Sebor <msebor@redhat.com>
14296
14297 PR c++/83431
14298 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14299 (sprintf_dom_walker): Remove class.
14300 (get_int_range): Make argument const.
14301 (directive::fmtfunc, directive::set_precision): Same.
14302 (format_none): Same.
14303 (build_intmax_type_nodes): Same.
14304 (adjust_range_for_overflow): Same.
14305 (format_floating): Same.
14306 (format_character): Same.
14307 (format_string): Same.
14308 (format_plain): Same.
14309 (get_int_range): Cast away constness.
14310 (format_integer): Same.
14311 (get_string_length): Call get_range_strlen_dynamic. Handle
14312 null lendata.maxbound.
14313 (should_warn_p): Adjust argument scope qualifier.
14314 (maybe_warn): Same.
14315 (format_directive): Same.
14316 (parse_directive): Same.
14317 (is_call_safe): Same.
14318 (try_substitute_return_value): Same.
14319 (sprintf_dom_walker::handle_printf_call): Rename...
14320 (handle_printf_call): ...to this. Initialize target to host charmap
14321 here instead of in pass_sprintf_length::execute.
14322 (struct call_info): Make global.
14323 (sprintf_dom_walker::compute_format_length): Make global.
14324 (sprintf_dom_walker::handle_gimple_call): Same.
14325 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14326 * print-rtl.c (print_pattern): Reduce the number of spaces to
14327 avoid -Wformat-truncation.
14328 * tree-pass.h (make_pass_warn_printf): New function.
14329 * tree-ssa-strlen.c (strlen_optimize): New variable.
14330 (get_string_length): Add comments.
14331 (get_range_strlen_dynamic): New function.
14332 (check_and_optimize_call): New function.
14333 (handle_integral_assign): New function.
14334 (strlen_check_and_optimize_stmt): Factor code out into
14335 strlen_check_and_optimize_call and handle_integral_assign.
14336 (strlen_dom_walker::evrp): New member.
14337 (strlen_dom_walker::before_dom_children): Use evrp member.
14338 (strlen_dom_walker::after_dom_children): Use evrp member.
14339 (printf_strlen_execute): New function.
14340 (pass_strlen::gate): Update to handle printf calls.
14341 (dump_strlen_info): New function.
14342 (pass_data_warn_printf): New variable.
14343 (pass_warn_printf): New class.
14344 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14345 (handle_printf_call): Same.
14346 * tree-vrp.c (value_range_base::type): Adjust assertion.
14347 * vr-values.c (vr_values::update_value_range): Use type of the first
14348 argument rather than the second.
14349
14350 2019-08-26 Richard Biener <rguenther@suse.de>
14351
14352 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14353 Remove.
14354 (convert_scalars_to_vector): Do not call it.
14355
14356 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14357 Uros Bizjak <ubizjak@gmail.com>
14358
14359 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14360 CASE_MATHFN_FLOATN for roundeven.
14361 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14362 I387_ROUNDEVEN.
14363 (ix86_mode_needed): Likewise.
14364 (ix86_mode_after): Likewise.
14365 (ix86_mode_entry): Likewise.
14366 (ix86_mode_exit): Likewise.
14367 (ix86_emit_mode_set): Likewise.
14368 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14369 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14370 (ix86_entity): Add I387_ROUNDEVEN.
14371 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14372 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14373 (define_int_iterator): Likewise.
14374 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14375 (define_constant): Define ROUND_ROUNDEVEN mode.
14376 (define_attr): Add roundeven mode for i387_cw.
14377 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14378 * internal-fn.def (ROUNDEVEN): New builtin function.
14379 * optabs.def (roundeven_optab): New optab.
14380
14381 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14382
14383 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14384 for ROUNDEVEN.
14385 * builtins.def: Added function definitions for roundeven function
14386 variants.
14387 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14388 function call. Adjust condition for floor, ceil, trunc and round.
14389 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14390 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14391 (integer_valued_real_call_p): Added case for roundeven function.
14392 * real.c (is_even): New function. Returns true if real number is even,
14393 otherwise returns false.
14394 (is_halfway_below): New function. Returns true if real number is
14395 halfway between two integers, else return false.
14396 (real_roundeven): New function. Round real number to nearest integer,
14397 rounding halfway cases towards even.
14398 * real.h (real_value): Added descriptive comments. Added function
14399 declaration for roundeven function.
14400 * doc/extend.texi (Other Builtins): List roundeven variants among
14401 functions which can be handled as builtins.
14402
14403 2019-08-26 Richard Biener <rguenther@suse.de>
14404
14405 PR target/91522
14406 PR target/91527
14407 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14408 New member.
14409 (general_scalar_chain::replace_with_subreg): Remove.
14410 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14411 (general_scalar_chain::convert_reg): Adjust signature.
14412 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14413 iterate over all defs of a reg.
14414 (general_scalar_chain::replace_with_subreg): Remove.
14415 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14416 (general_scalar_chain::make_vector_copies): Populate defs_map,
14417 place copy only after defs that are used as vectors in the chain.
14418 (general_scalar_chain::convert_reg): Emit a copy for a specific
14419 def in a specific instruction.
14420 (general_scalar_chain::convert_op): All reg uses are converted here.
14421 (general_scalar_chain::convert_insn): Emit copies for scalar
14422 uses of defs here. Replace uses with the copies we created.
14423 Replace and convert the def. Adjust REG_DEAD notes, remove
14424 REG_EQUIV/EQUAL notes.
14425 (general_scalar_chain::convert_registers): Only handle copies
14426 into the chain here.
14427
14428 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14429
14430 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14431
14432 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14433
14434 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14435 Add nop_convert case.
14436 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14437 Fold all statements if requested.
14438 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14439 Allow to fold all statements.
14440 * tree-vrp.c (class vrp_folder):
14441 Let substitute_and_fold_engine fold all statements.
14442
14443 2019-08-26 Richard Biener <rguenther@suse.de>
14444
14445 PR tree-optimization/91526
14446 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14447 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14448 TODO_update_address_taken.
14449
14450 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14451
14452 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14453 __STDC_HOSTED__.
14454
14455 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14456
14457 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14458 machine mode for unspec_volatile operand.
14459
14460 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14461
14462 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14463 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14464 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14465 (prefer_neon_for_64bits): Remove.
14466 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14467 (tune_params): Remove PREF_NEON_64_FALSE uses.
14468 (arm_option_override): Remove prefer_neon selection code.
14469 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14470 * config/arm/arm-protos.h (tune_params): Remove
14471 prefer_neon_for_64bits.
14472 (prefer_neon_for_64bits): Remove.
14473
14474 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14475
14476 PR pch/61250
14477 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14478 and issue any diagnostics needed before collecting the pre-PCH
14479 state.
14480
14481 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14482
14483 PR middle-end/91283
14484 * common.opt (fexcess-precision=): Add Optimization flag. Use
14485 flag_excess_precision variable instead of
14486 flag_excess_precision_cmdline.
14487 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14488 member.
14489 (flag_excess_precision): Don't define.
14490 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14491 flag_excess_precision_cmdline. Remove comment.
14492 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14493 and x_flag_excess_precision instead of
14494 frontend_set_flag_excess_precision_cmdline and
14495 x_flag_excess_precision_cmdline.
14496 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14497 x_flag_excess_precision_cmdline.
14498 * toplev.c (init_excess_precision): Remove.
14499 (lang_dependent_init_target): Don't call it.
14500
14501 2019-08-23 Martin Liska <mliska@suse.cz>
14502
14503 * lto-wrapper.c (run_gcc): When setting jobserver
14504 set also parallel to 1. This was done so before r273908.
14505
14506 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14507
14508 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14509 (cortex-a76ae): Likewise.
14510 (cortex-a77): Likewise
14511 * config/arm/arm-tables.opt: Regenerate.
14512 * config/arm/arm-tune.md: Likewise.
14513 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14514 cortex-a77 CPU options.
14515
14516 2019-08-23 Martin Liska <mliska@suse.cz>
14517
14518 * profile.c (instrument_values): Do not set
14519 0 as last argument.
14520 * tree-profile.c (gimple_gen_interval_profiler): Remove
14521 last argument.
14522 (gimple_gen_pow2_profiler): Likewise.
14523 (gimple_gen_topn_values_profiler): Likewise.
14524 (gimple_gen_ic_profiler): Likewise.
14525 (gimple_gen_time_profiler): Likewise.
14526 (gimple_gen_average_profiler): Likewise.
14527 (gimple_gen_ior_profiler): Likewise.
14528 * value-prof.c (dump_histogram_value): Use default
14529 in switch statement instead of HIST_TYPE_MAX.
14530 (stream_in_histogram_value): Likewise.
14531 (gimple_duplicate_stmt_histograms): Do not
14532 use NULL for implicitly set arguments.
14533 (gimple_divmod_values_to_profile): Do not use
14534 reserve+quick_push.
14535 (gimple_indirect_call_to_profile): Likewise.
14536 (gimple_find_values_to_profile): Use implicit
14537 function call arguments.
14538 * value-prof.h (gimple_alloc_histogram_value):
14539 Set default values.
14540 (gimple_gen_interval_profiler): Remove last argument.
14541 (gimple_gen_pow2_profiler): Likewise.
14542 (gimple_gen_topn_values_profiler): Likewise.
14543 (gimple_gen_ic_profiler): Likewise.
14544 (gimple_gen_time_profiler): Likewise.
14545 (gimple_gen_average_profiler): Likewise.
14546 (gimple_gen_ior_profiler): Likewise.
14547
14548 2019-08-22 Martin Sebor <msebor@redhat.com>
14549
14550 PR middle-end/91490
14551 * builtins.c (c_strlen): Rename argument and introduce new local.
14552 Set no-warning bit on original argument.
14553 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14554 Fold empty and zero constructors into empty strings.
14555 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14556 for missing initializers.
14557 * tree.c (build_string_literal): Handle optional argument.
14558 * tree.h (build_string_literal): Add defaulted argument.
14559 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14560 no-warning bit on original expression.
14561
14562 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14563
14564 PR target/91481
14565 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14566 and UNSPEC_DARN_RAW.
14567 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14568 UNSPECV_DARN_RAW.
14569 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14570 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14571 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14572
14573 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14574
14575 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14576 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14577 * config/rs6000/rs6000.md (unspec): ... here.
14578 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14579 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14580 cmpeqb, *cmpeqb_internal): Delete, move to...
14581 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14582 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14583 cmpeqb, *cmpeqb_internal): ... here.
14584
14585 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14586
14587 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14588 intrinsics if __ARM_FP.
14589 Use __ARM_FEATURE_CRC32 ifdef guard.
14590
14591 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14592
14593 * config/arm/arm.md (neon_for_64bits): Remove.
14594 (avoid_neon_for_64bits): Remove.
14595 (arm_adddi3): Always split early.
14596 (arm_subdi3): Always split early.
14597 (negdi2): Remove Neon expansion.
14598 (split zero_extend): Split before reload.
14599 (split sign_extend): Split before reload.
14600
14601 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14602
14603 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14604 (qhs_extenddi_cstr): Likewise.
14605 * config/arm/arm.md (ashldi3): Always expand early.
14606 (ashlsi3): Likewise.
14607 (ashrsi3): Likewise.
14608 (zero_extend<mode>di2): Remove Neon variants.
14609 (extend<mode>di2): Likewise.
14610 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14611 (signed_shift_di3_neon): Likewise.
14612 (unsigned_shift_di3_neon): Likewise.
14613 (ashrdi3_neon_imm_noclobber): Likewise.
14614 (lshrdi3_neon_imm_noclobber): Likewise.
14615 (<shift>di3_neon): Likewise.
14616 (split extend): Remove DI extend split patterns.
14617
14618 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14619
14620 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14621 (split not): Add DImode not splitter.
14622 (anddi3): Remove pattern.
14623 (anddi3_insn): Likewise.
14624 (anddi_zesidi_di): Likewise.
14625 (anddi_sesdi_di): Likewise.
14626 (anddi_notdi_di): Likewise.
14627 (anddi_notzesidi_di): Likewise.
14628 (anddi_notsesidi_di): Likewise.
14629 (iordi3): Likewise.
14630 (iordi3_insn): Likewise.
14631 (iordi_zesidi_di): Likewise.
14632 (iordi_sesidi_di): Likewise.
14633 (xordi3): Likewise.
14634 (xordi3_insn): Likewise.
14635 (xordi_sesidi_di): Likewise.
14636 (xordi_zesidi_di): Likewise.
14637 (one_cmpldi2): Likewise.
14638 (one_cmpldi2_insn): Likewise.
14639 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14640 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14641 alternative.
14642 (iwmmxt_xordi3): Likewise.
14643 (iwmmxt_anddi3): Likewise.
14644 * config/arm/neon.md (orndi3_neon): Remove pattern.
14645 (anddi_notdi_di): Likewise.
14646 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14647 (arm_iordi_operand_neon): Likewise.
14648 (arm_xordi_operand_neon): Likewise.
14649 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14650 (iordi_notzesidi_di): Likewise.
14651 (iordi_notdi_zesidi): Likewise.
14652 (iordi_notsesidi_di): Likewise.
14653
14654 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14655
14656 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14657 insn.
14658 (iorsi3_compare0_scratch): Likewise.
14659
14660 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14661
14662 * config/aarch64/aarch64-simd-builtins.def:
14663 (ld1x4): New.
14664 (st1x4): Likewise.
14665 * config/aarch64/aarch64-simd.md:
14666 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14667 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14668 (aarch64_ld1_x4_<mode>): Likewise.
14669 (aarch64_st1_x4_<mode>): Likewise.
14670 * config/aarch64/arm_neon.h:
14671 (vld1_s8_x4): New function.
14672 (vld1q_s8_x4): Likewise.
14673 (vld1_s16_x4): Likewise.
14674 (vld1q_s16_x4): Likewise.
14675 (vld1_s32_x4): Likewise.
14676 (vld1q_s32_x4): Likewise.
14677 (vld1_u8_x4): Likewise.
14678 (vld1q_u8_x4): Likewise.
14679 (vld1_u16_x4): Likewise.
14680 (vld1q_u16_x4): Likewise.
14681 (vld1_u32_x4): Likewise.
14682 (vld1q_u32_x4): Likewise.
14683 (vld1_f16_x4): Likewise.
14684 (vld1q_f16_x4): Likewise.
14685 (vld1_f32_x4): Likewise.
14686 (vld1q_f32_x4): Likewise.
14687 (vld1_p8_x4): Likewise.
14688 (vld1q_p8_x4): Likewise.
14689 (vld1_p16_x4): Likewise.
14690 (vld1q_p16_x4): Likewise.
14691 (vld1_s64_x4): Likewise.
14692 (vld1_u64_x4): Likewise.
14693 (vld1_p64_x4): Likewise.
14694 (vld1q_s64_x4): Likewise.
14695 (vld1q_u64_x4): Likewise.
14696 (vld1q_p64_x4): Likewise.
14697 (vld1_f64_x4): Likewise.
14698 (vld1q_f64_x4): Likewise.
14699 (vst1_s8_x4): Likewise.
14700 (vst1q_s8_x4): Likewise.
14701 (vst1_s16_x4): Likewise.
14702 (vst1q_s16_x4): Likewise.
14703 (vst1_s32_x4): Likewise.
14704 (vst1q_s32_x4): Likewise.
14705 (vst1_u8_x4): Likewise.
14706 (vst1q_u8_x4): Likewise.
14707 (vst1_u16_x4): Likewise.
14708 (vst1q_u16_x4): Likewise.
14709 (vst1_u32_x4): Likewise.
14710 (vst1q_u32_x4): Likewise.
14711 (vst1_f16_x4): Likewise.
14712 (vst1q_f16_x4): Likewise.
14713 (vst1_f32_x4): Likewise.
14714 (vst1q_f32_x4): Likewise.
14715 (vst1_p8_x4): Likewise.
14716 (vst1q_p8_x4): Likewise.
14717 (vst1_p16_x4): Likewise.
14718 (vst1q_p16_x4): Likewise.
14719 (vst1_s64_x4): Likewise.
14720 (vst1_u64_x4): Likewise.
14721 (vst1_p64_x4): Likewise.
14722 (vst1q_s64_x4): Likewise.
14723 (vst1q_u64_x4): Likewise.
14724 (vst1q_p64_x4): Likewise.
14725 (vst1_f64_x4): Likewise.
14726 (vst1q_f64_x4): Likewise.
14727
14728 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14729
14730 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14731
14732 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14733 Richard Sandiford <richard.sandiford@arm.com>
14734
14735 PR target/88839
14736 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14737 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14738
14739 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14740
14741 PR target/90724
14742 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14743 in reg if it fails aarch64_plus_operand predicate.
14744
14745 2019-08-21 Richard Biener <rguenther@suse.de>
14746
14747 PR tree-optimization/91482
14748 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14749 BUILT_IN_ASSUME_ALIGNED calls.
14750
14751 2019-08-21 Richard Biener <rguenther@suse.de>
14752
14753 PR target/91498
14754 PR target/91503
14755 * config/i386/i386-features.c
14756 (general_scalar_chain::make_vector_copies): Copy stack temporary
14757 rtx when using it multiple times.
14758 (general_scalar_chain::convert_reg): Likewise.
14759
14760 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14761
14762 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14763
14764 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14765
14766 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14767 catch more redundant zero initialization cases.
14768 (dse_dom_walker::dse_optimize_stmt): Likewise.
14769
14770 2019-08-20 Richard Biener <rguenther@suse.de>
14771
14772 PR lto/91307
14773 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14774 by collect2 when targetm.have_ctors_dtors which avoids dragging
14775 in temporary filenames from LTO input objects.
14776
14777 2019-08-20 Richard Biener <rguenther@suse.de>
14778
14779 PR tree-optimization/37242
14780 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14781 to (T)a + (T)b if we know that a + b does not overflow.
14782
14783 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14784
14785 PR rtl-optimization/91347
14786 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14787 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14788
14789 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14790
14791 * calls.h (function_arg_info): Add a pass_by_reference field,
14792 defaulting to false.
14793 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14794 when applying pass-by-reference semantics.
14795 (initialize_argument_information): Likewise.
14796 (emit_library_call_value_1): Likewise.
14797 * function.c (assign_parm_data_one): Remove passed_pointer field.
14798 (assign_parm_find_data_types): Don't set it.
14799 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14800 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14801 arg.pass_by_reference instead of passed_pointer.
14802
14803 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14804
14805 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14806 into a single function_arg_info, updating its fields when we
14807 apply pass-by-reference and promotion semantics. Use the
14808 function_arg_info to track the mode rather than keeping it in
14809 a separate local variable.
14810 (initialize_argument_information): Likewise. Base the final
14811 arg_to_skip on this new function_arg_info rather than creating
14812 a new one from scratch.
14813
14814 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14815
14816 * function.c (assign_parm_data_one): Replace passed_type,
14817 promoted_mode and named_arg with a function_arg_info field.
14818 (assign_parm_find_data_types): Remove local variables and
14819 assign directly to "data". Make data->passed_mode shadow
14820 data->arg.mode until promotion, then assign the promoted
14821 mode to data->arg.mode.
14822 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14823 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14824 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14825 (assign_parm_setup_block, assign_parm_setup_reg)
14826 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14827 arg.mode instead of promoted_mode, arg.type instead of passed_type
14828 and arg.named instead of named_arg. Use data->arg for
14829 function_arg_info structures that had the field values passed_type,
14830 promoted_mode and named_arg. Base other function_arg_infos on
14831 data->arg, changing the necessary properties.
14832
14833 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14834
14835 * calls.h (apply_pass_by_reference_rules): Declare.
14836 * calls.c (apply_pass_by_reference_rules): New function.
14837 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14838 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14839 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14840 * function.c (assign_parm_find_data_types): Likewise.
14841 * var-tracking.c (prepare_call_arguments): Likewise.
14842
14843 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14844
14845 * target.def (must_pass_in_stack): Take a function_arg_info instead
14846 of a mode and a type.
14847 * doc/tm.texi: Regenerate.
14848 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14849 instead of a mode and a type.
14850 (must_pass_in_stack_var_size_or_pad): Likewise.
14851 * calls.c (must_pass_in_stack_var_size): Likewise.
14852 (must_pass_in_stack_var_size_or_pad): Likewise.
14853 (initialize_argument_information): Update call to
14854 targetm.calls.must_pass_in_stack.
14855 (must_pass_va_arg_on_stack): Likewise.
14856 * function.c (assign_parm_find_entry_rtl): Likewise.
14857 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14858 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14859 (alpha_function_arg_advance): Likewise.
14860 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14861 (cr16_function_arg_advance): Likewise.
14862 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14863 (cris_arg_partial_bytes): Likewise.
14864 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14865 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14866 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14867 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14868 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14869 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14870 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14871 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14872 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14873 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14874 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14875 instead of a mode and a type.
14876 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14877 (fr30_num_arg_regs): Likewise.
14878 (fr30_setup_incoming_varargs): Update calls accordingly.
14879 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14880 (fr30_function_arg_advance): Likewise.
14881 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14882 instead of a mode and a type.
14883 * config/gcn/gcn.c (num_arg_regs): Likewise.
14884 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14885 num_arg_regs and targetm.calls.must_pass_in_stack.
14886 (gcn_arg_partial_bytes): Likewise.
14887 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14888 function_arg_info instead of a mode and a type.
14889 (classify_argument): Update call accordingly.
14890 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14891 function_arg_info instead of a mode and a type.
14892 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14893 Likewise.
14894 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14895 (rs6000_parm_needs_stack): Update call accordingly.
14896 (setup_incoming_varargs): Likewise.
14897
14898 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14899
14900 * target.def (callee_copies): Take a function_arg_info instead
14901 of a mode, type and named flag.
14902 * doc/tm.texi: Regenerate.
14903 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14904 instead of a mode, type and named flag.
14905 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14906 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14907 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14908 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14909 instead of a mode, type and named flag.
14910 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14911 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14912 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14913 * calls.h (reference_callee_copied): Take a function_arg_info
14914 instead of a mode, type and named flag.
14915 * calls.c (reference_callee_copied): Likewise.
14916 (initialize_argument_information): Update call accordingly.
14917 (emit_library_call_value_1): Likewise.
14918 * function.c (gimplify_parameters): Likewise.
14919 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14920 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14921 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14922 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14923 (TARGET_CALLEE_COPIES): Define to
14924 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14925 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14926 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14927 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14928 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14929 instead of a mode, type and named flag.
14930 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14931 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14932 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14933 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14934 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14935 (TARGET_CALLEE_COPIES): Define to
14936 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14937 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14938 instead of a mode, type and named flag.
14939 * config/sh/sh.c (sh_callee_copies): Likewise.
14940 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14941 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14942 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14943
14944 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14945
14946 * target.def (function_arg_advance): Take a function_arg_info instead
14947 of a mode, type and named flag.
14948 * doc/tm.texi: Regenerate.
14949 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14950 instead of a mode, type and named flag.
14951 * targhooks.c (default_function_arg_advance): Likewise.
14952 * calls.c (initialize_argument_information): Update call to
14953 targetm.calls.function_arg_advance.
14954 (emit_library_call_value_1): Likewise.
14955 * dse.c (get_call_args): Likewise.
14956 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14957 * function.c (assign_parms, gimplify_parameters): Likewise.
14958 * var-tracking.c (prepare_call_arguments): Likewise.
14959 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14960 function_arg_info instead of a mode, type and named flag.
14961 (aarch64_setup_incoming_varargs): Update call accordingly.
14962 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14963 function_arg_info instead of a mode, type and named flag.
14964 (alpha_setup_incoming_varargs): Update call accordingly.
14965 * config/arc/arc.c (arc_function_arg_advance): Take a
14966 function_arg_info instead of a mode, type and named flag.
14967 (arc_setup_incoming_varargs): Update call accordingly.
14968 * config/arm/arm.c (arm_function_arg_advance): Take a
14969 function_arg_info instead of a mode, type and named flag.
14970 (cmse_func_args_or_return_in_stack): Update call accordingly.
14971 (arm_function_ok_for_sibcall): Likewise.
14972 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14973 * config/avr/avr.c (avr_function_arg_advance): Take a
14974 function_arg_info instead of a mode, type and named flag.
14975 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14976 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14977 (c6x_call_saved_register_used): Update call accordingly.
14978 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14979 function_arg_info instead of a mode, type and named flag.
14980 * config/cris/cris.c (cris_function_arg_advance): Likewise.
14981 * config/csky/csky.c (csky_function_arg_advance): Likewise.
14982 (csky_setup_incoming_varargs): Update call accordingly.
14983 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14984 function_arg_info instead of a mode, type and named flag.
14985 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14986 * config/frv/frv.c (frv_function_arg_advance): Likewise.
14987 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14988 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14989 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14990 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14991 (ix86_setup_incoming_varargs): Update call accordingly.
14992 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14993 function_arg_info instead of a mode, type and named flag.
14994 (ia64_setup_incoming_varargs): Update call accordingly.
14995 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14996 function_arg_info instead of a mode, type and named flag.
14997 (iq2000_expand_prologue): Update call accordingly.
14998 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14999 function_arg_info instead of a mode, type and named flag.
15000 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15001 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15002 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15003 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15004 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15005 Likewise.
15006 (microblaze_expand_prologue): Update call accordingly.
15007 * config/mips/mips.c (mips_function_arg_advance): Take a
15008 function_arg_info instead of a mode, type and named flag.
15009 (mips_setup_incoming_varargs): Update call accordingly.
15010 (mips_output_args_xfer): Likewise.
15011 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15012 function_arg_info instead of a mode, type and named flag.
15013 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15014 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15015 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15016 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15017 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15018 (nios2_setup_incoming_varargs): Update call accordingly.
15019 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15020 function_arg_info instead of a mode, type and named flag.
15021 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15022 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15023 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15024 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15025 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15026 (riscv_setup_incoming_varargs): Update call accordingly.
15027 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15028 function_arg_info instead of a mode, type and named flag.
15029 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15030 Likewise.
15031 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15032 (rs6000_parm_needs_stack): Update call accordingly.
15033 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15034 instead of a mode, type and named flag.
15035 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15036 (s390_call_saved_register_used): Update call accordingly.
15037 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15038 instead of a mode, type and named flag.
15039 (sh_output_mi_thunk): Update call accordingly.
15040 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15041 function_arg_info instead of a mode, type and named flag.
15042 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15043 (spu_setup_incoming_varargs): Update call accordingly.
15044 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15045 function_arg_info instead of a mode, type and named flag.
15046 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15047 (tilegx_setup_incoming_varargs): Update call accordingly.
15048 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15049 function_arg_info instead of a mode, type and named flag.
15050 (tilegx_setup_incoming_varargs): Update call accordingly.
15051 * config/v850/v850.c (v850_function_arg_advance): Take a
15052 function_arg_info instead of a mode, type and named flag.
15053 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15054 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15055 (visium_setup_incoming_varargs): Update call accordingly.
15056 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15057 function_arg_info instead of a mode, type and named flag.
15058
15059 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15060
15061 * target.def (function_arg, function_incoming_arg): Take a
15062 function_arg_info instead of a mode, tree and named flag.
15063 * doc/tm.texi: Regenerate.
15064 * targhooks.h (default_function_arg): Take a function_arg_info
15065 instead of a mode, tree and named flag.
15066 (default_function_incoming_arg): Likewise.
15067 * targhooks.c (default_function_arg): Likewise.
15068 (default_function_incoming_arg): Likewise.
15069 * calls.h (function_arg_info::end_marker_p): New function.
15070 (function_arg_info::end_marker): Likewise.
15071 * calls.c (prepare_call_address, initialize_argument_information)
15072 (expand_call, emit_library_call_value_1): Update calls to
15073 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15074 * dse.c: Include calls.h.
15075 (get_call_args): Update call to targetm.calls.function_arg.
15076 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15077 * var-tracking.c (prepare_call_arguments): Likewise.
15078 * function.c (assign_parm_find_entry_rtl): Update call to
15079 targetm.calls.function_incoming_arg.
15080 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15081 function_arg_info instead of a mode, tree and named flag.
15082 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15083 * config/arc/arc.c (arc_function_arg): Likewise.
15084 * config/arm/arm.c (arm_function_arg): Likewise.
15085 (cmse_func_args_or_return_in_stack): Update call accordingly.
15086 (arm_function_ok_for_sibcall): Likewise.
15087 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15088 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15089 instead of a mode, tree and named flag.
15090 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15091 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15092 (c6x_call_saved_register_used): Update call accordingly.
15093 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15094 instead of a mode, tree and named flag.
15095 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15096 (cris_function_arg_1): Likewise.
15097 * config/csky/csky.c (csky_function_arg): Likewise.
15098 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15099 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15100 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15101 (frv_function_arg_1): Likewise.
15102 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15103 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15104 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15105 * config/i386/i386.c (ix86_function_arg): Likewise.
15106 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15107 (ia64_function_arg_1): Likewise.
15108 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15109 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15110 accordingly.
15111 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15112 instead of a mode, tree and named flag.
15113 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15114 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15115 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15116 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15117 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15118 (microblaze_expand_prologue): Update call accordingly.
15119 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15120 instead of a mode, tree and named flag.
15121 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15122 (mmix_function_arg_1): Likewise.
15123 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15124 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15125 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15126 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15127 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15128 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15129 (nvptx_function_incoming_arg): Likewise.
15130 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15131 * config/pa/pa.c (pa_function_arg): Likewise.
15132 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15133 * config/pru/pru.c (pru_function_arg): Likewise.
15134 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15135 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15136 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15137 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15138 (rs6000_parm_needs_stack): Update call accordingly.
15139 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15140 instead of a mode, tree and named flag.
15141 * config/s390/s390.c (s390_function_arg): Likewise.
15142 (s390_call_saved_register_used): Update call accordingly.
15143 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15144 instead of a mode, tree and named flag.
15145 (sh_output_mi_thunk): Update call accordingly.
15146 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15147 (sparc_function_incoming_arg): Take a function_arg_info instead of
15148 a mode, tree and named flag.
15149 * config/spu/spu.c (spu_function_arg): Likewise.
15150 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15151 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15152 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15153 * config/v850/v850.c (v850_function_arg): Likewise.
15154 * config/vax/vax.c (vax_function_arg): Likewise.
15155 * config/visium/visium.c (visium_function_arg): Likewise.
15156 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15157 (xtensa_function_incoming_arg): Likewise.
15158
15159 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15160
15161 * target.def (setup_incoming_varargs): Take a function_arg_info
15162 instead of a mode and tree.
15163 * doc/tm.texi: Regenerate.
15164 * targhooks.h (default_setup_incoming_varargs): Take a
15165 function_arg_info instead of a mode and tree.
15166 * targhooks.c (default_setup_incoming_varargs): Likewise.
15167 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15168 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15169 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15170 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15171 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15172 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15173 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15174 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15175 Likewise.
15176 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15177 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15178 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15179 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15180 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15181 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15182 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15183 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15184 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15185 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15186 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15187 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15188 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15189 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15190 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15191 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15192 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15193 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15194 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15195 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15196 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15197 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15198 * function.c (assign_parms_setup_varargs): Update call to
15199 targetm.calls.setup_incoming_varargs.
15200
15201 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15202
15203 * target.def (pass_by_reference): Take a function_arg_info instead
15204 of a mode, type and named flag.
15205 * doc/tm.texi: Regenerate.
15206 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15207 accordingly.
15208 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15209 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15210 function_arg_info instead of a mode, type and named flag.
15211 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15212 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15213 mode, type and named flag.
15214 * calls.c (pass_by_reference): Likewise.
15215 (pass_va_arg_by_reference): Update call accordingly.
15216 (initialize_argument_information): Likewise.
15217 (emit_library_call_value_1): Likewise.
15218 * function.c (assign_parm_find_data_types): Likewise.
15219 * var-tracking.c (prepare_call_arguments): Likewise.
15220 * stor-layout.c: Include calls.h.
15221 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15222 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15223 function_arg_info instead of a mode, type and named flag.
15224 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15225 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15226 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15227 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15228 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15229 (c6x_call_saved_register_used): Update call to pass_by_reference.
15230 * config/cris/cris.c (cris_pass_by_reference): Take a
15231 function_arg_info instead of a mode, type and named flag.
15232 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15233 function_arg_info instead of a mode, type and named flag.
15234 (epiphany_arg_partial_bytes): Update call accordingly.
15235 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15236 function_arg_info instead of a mode, type and named flag.
15237 (ft32_arg_partial_bytes): Update call accordingly.
15238 * config/i386/i386.c (ix86_pass_by_reference): Take a
15239 function_arg_info instead of a mode, type and named flag.
15240 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15241 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15242 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15243 (m32r_return_in_memory): Update call accordingly.
15244 * config/mips/mips.c (mips_pass_by_reference): Take a
15245 function_arg_info instead of a mode, type and named flag.
15246 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15247 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15248 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15249 (moxie_arg_partial_bytes): Update call accordingly.
15250 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15251 function_arg_info instead of a mode, type and named flag.
15252 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15253 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15254 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15255 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15256 (riscv_return_in_memory): Update call accordingly.
15257 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15258 function_arg_info instead of a mode, type and named flag.
15259 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15260 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15261 * config/s390/s390.c (s390_pass_by_reference): Take a
15262 function_arg_info instead of a mode, type and named flag.
15263 (s390_call_saved_register_used): Update call accordingly.
15264 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15265 instead of a mode, type and named flag.
15266 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15267 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15268 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15269 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15270 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15271 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15272
15273 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15274
15275 * target.def (arg_partial_bytes): Take a function_arg_info instead
15276 of a mode, type and named flag.
15277 * doc/tm.texi: Regenerate.
15278 * target.h (function_arg_info): Declare.
15279 * calls.h (function_arg_info): New class.
15280 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15281 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15282 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15283 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15284 * calls.c (initialize_argument_information): Update call to
15285 targetm.calls.partial_bytes.
15286 (emit_library_call_value_1): Likewise.
15287 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15288 * function.c (assign_parm_find_entry_rtl): Likewise.
15289 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15290 function_arg_info instead of a mode, type and named flag.
15291 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15292 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15293 (cmse_func_args_or_return_in_stack): Update accordingly.
15294 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15295 function_arg_info instead of a mode, type and named flag.
15296 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15297 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15298 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15299 * config/fr30/fr30.c: Include calls.h.
15300 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15301 type and named flag.
15302 * config/frv/frv.c: Include calls.h.
15303 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15304 type and named flag.
15305 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15306 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15307 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15308 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15309 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15310 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15311 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15312 Likewise.
15313 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15314 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15315 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15316 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15317 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15318 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15319 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15320 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15321 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15322 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15323 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15324 (rs6000_parm_needs_stack): Update call accordingly.
15325 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15326 function_arg_info instead of a mode, type and named flag.
15327 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15328 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15329
15330 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15331
15332 * calls.h (must_pass_va_arg_in_stack): Declare.
15333 * calls.c (must_pass_va_arg_in_stack): New function.
15334 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15335 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15336 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15337 Likewise.
15338 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15339
15340 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15341
15342 * calls.h (pass_va_arg_by_reference): Declare.
15343 * calls.c (pass_va_arg_by_reference): New function.
15344 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15345 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15346 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15347 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15348 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15349 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15350 (mips_gimplify_va_arg_expr): Likewise.
15351 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15352 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15353 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15354 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15355 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15356 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15357 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15358 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15359 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15360 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15361 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15362
15363 2019-08-20 Richard Biener <rguenther@suse.de>
15364
15365 PR target/91498
15366 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15367 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15368 (convert_scalars_to_vector): Add timode_p parameter and use it
15369 to guard TImode-only operation.
15370 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15371 (pass_stv::execute): Pass down timode_p.
15372
15373 2019-08-20 Lili Cui <lili.cui@intel.com>
15374
15375 * common/config/i386/i386-common.c
15376 (processor_names): Add tigerlake and cooperlake.
15377 (processor_alias_table): Add tigerlake and cooperlake.
15378 * config.gcc: Add -march=tigerlake and cooperlake.
15379 * config/i386/driver-i386.c
15380 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15381 Add "has_avx" to classify processor.
15382 * config/i386/i386-builtins.c (processor_model) :
15383 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15384 (arch_names_table): Add tigerlake and cooperlake.
15385 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15386 and PROCESSOR_COOPERLAKE.
15387 * config/i386/i386-c.c
15388 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15389 * config/i386/i386-options.c
15390 (m_TIGERLAKE): Define.
15391 (m_COOPERLAKE): Ditto.
15392 (m_CORE_AVX512): Ditto.
15393 (processor_cost_table): Add cascadelake.
15394 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15395 * config/i386/i386.h
15396 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15397 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15398 (PTA_MOVDIRI): Ditto.
15399 (PTA_MOVDIR64B): Ditto.
15400 (PTA_COOPERLAKE): Ditto.
15401 (PTA_TIGERLAKE): Ditto.
15402 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15403 * doc/extend.texi: Add tigerlake and cooperlake.
15404 * doc/invoke.texi: Add tigerlake and cooperlake.
15405
15406 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15407
15408 * doc/install.texi (Specific, alpha): Remove note to use
15409 binutils 2.11.2 or later.
15410
15411 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15412
15413 PR middle-end/89544
15414 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15415 when possible.
15416
15417 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15418
15419 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15420 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15421 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15422 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15423 * config/aarch64/constraints.md (Dt): New constraint
15424 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15425
15426 2019-08-19 Richard Biener <rguenther@suse.de>
15427
15428 PR tree-optimization/91403
15429 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15430 cases we can handle with tail-recursion...
15431 (follow_ssa_edge_expr): ... here. Do so.
15432
15433 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15434
15435 PR target/91441
15436 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15437 implemented for -fsanitize=kernel-address, and merge check logic
15438 with -fsanitize=address.
15439
15440 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15441
15442 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15443 for cpu and machine. Factor 64/32b builtins.
15444
15445 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15446
15447 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15448 gone, point to sourceforge.net.
15449
15450 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15451
15452 * doc/ux.texi (User Experience Guidelines): Update reference.
15453
15454 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15455
15456 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15457 not LGPL".
15458
15459 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15460
15461 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15462 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15463
15464 2019-08-16 Martin Sebor <msebor@redhat.com>
15465
15466 * tree.def (TYPE_SIZE): Clarify.
15467 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15468
15469 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15470
15471 PR tree-optimization/91109
15472 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15473 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15474 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15475
15476 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15477
15478 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15479 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15480 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15481 (uavg<mode>3_ceil): New expander.
15482 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15483 mode iterator when creating CONST1_RTX.
15484 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15485 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15486 mode iterator for const1_operand predicate.
15487
15488 2019-08-16 Richard Biener <rguenther@suse.de>
15489
15490 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15491 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15492 follow_ssa_edge.
15493 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15494 (analyze_evolution_in_loop): Likewise.
15495 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15496 (follow_ssa_edge_expr): ... here. Refactor code.
15497
15498 2019-08-16 Richard Biener <rguenther@suse.de>
15499
15500 PR target/91469
15501 * config/i386/i386-features.c
15502 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15503
15504 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15505
15506 PR other/91255
15507 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15508 only if subst_name matches curr_attr string.
15509
15510 2019-08-16 Richard Biener <rguenther@suse.de>
15511
15512 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15513 stmt at gsi_p, instead replace it with a NOP removed later.
15514 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15515 that became dead because of that.
15516
15517 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15518
15519 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15520 for which we can't represent a range.
15521 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15522 set_varying.
15523 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15524 Set VR_UNDEFINED if type is not supported.
15525 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15526 * tree-vrp.c (value_range_base::check): Assert that a varying has
15527 min/max set.
15528 (value_range_base::equal_p): Early bail for undefines.
15529 (value_range_base::set_varying): Accept a type.
15530 (value_range::set_varying): Same.
15531 (value_range_base::type): VARYING can have a type, while UNDEFINE
15532 is typeless.
15533 (value_range_base::dump): Print type for VARYING nodes.
15534 (value_range_base::set): Add type to VARYING.
15535 (extract_range_from_multiplicative_op): Pass type to set_varying.
15536 (extract_range_from_binary_expr): Same.
15537 (value_range_base::intersect_helper): Same.
15538 (value_range_base::union_helper): Same.
15539 (value_range_base::normalize_symbolics): Same.
15540 (determine_value_range_1): Same.
15541 * tree-vrp.h (class value_range_base): Add type to set_varying.
15542 Add prototype for dump(void).
15543 Add prototype for supports_type_p.
15544 (class value_range): Add type to set_varying.
15545 Add prototype for dump(void).
15546 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15547 set_varying.
15548 (vr_values::get_lattice_entry): Set varying even if propagation
15549 finished.
15550 Pass type to set_varying.
15551 (vr_values::get_value_range): Remove vr_const_varying.
15552 Reallocate the lattice if needed.
15553 (vr_values::update_value_range): Pass type to set_varying.
15554 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15555 (vr_values::extract_range_from_binary_expr): Same.
15556 (vr_values::extract_range_from_unary_expr): Same.
15557 (vr_values::extract_range_from_cond_expr): Same.
15558 (vr_values::check_for_binary_op_overflow): Same.
15559 (vr_values::extract_range_basic): Same.
15560 (vr_values::extract_range_from_assignment): Same.
15561 (vr_values::vr_values): Increase size of num_vr_values.
15562 (vr_values::extract_range_from_phi_node): Pass type to
15563 set_varying.
15564
15565 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15566
15567 PR target/90878
15568 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15569 for costs of hard register moves.
15570 (ix86_register_move_cost): Likewise.
15571 * config/i386/i386.h (processor_costs): Move costs of hard
15572 register moves to hard_register. Add int_load, int_store,
15573 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15574 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15575 for costs of RTL expressions.
15576 * config/i386/x86-tune-costs.h: Move costs of hard register
15577 moves to hard_register. Duplicate int_load, int_store,
15578 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15579 sse_load, sse_store for costs of RTL expressions.
15580
15581 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15582
15583 * target.def (setup_incoming_vararg_bounds): Remove.
15584 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15585 * doc/tm.texi: Regenerate.
15586 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15587 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15588 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15589 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15590
15591 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15592
15593 MSP430: Fix lines over 80 characters long in
15594 config/msp430/*.{c,h} files
15595
15596 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15597 specifier in string.
15598 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15599 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15600 redundant old comment.
15601 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15602 Split line more than 80 characters long.
15603 * config/msp430/msp430.c (msp430_option_override): Likewise.
15604 (msp430_return_in_memory): Likewise.
15605 (msp430_gimplify_va_arg_expr): Likewise.
15606 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15607 (msp430_legitimate_constant): Likewise.
15608 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15609 (msp430_attr): Likewise.
15610 (msp430_data_attr): Likewise.
15611 (msp430_start_function): Likewise.
15612 (gen_prefix): Likewise.
15613 (msp430_init_sections): Likewise.
15614 (msp430_select_section): Likewise.
15615 (msp430_function_section): Likewise.
15616 (msp430_unique_section): Likewise.
15617 (msp430_output_aligned_decl_common): Likewise.
15618 (msp430_do_not_relax_short_jumps): Likewise.
15619 (msp430_init_builtins): Likewise.
15620 (msp430_expand_delay_cycles): Likewise.
15621 (msp430_expand_prologue): Likewise.
15622 (msp430_expand_epilogue): Likewise.
15623 (msp430_expand_helper): Likewise.
15624 (msp430_split_movsi): Likewise.
15625 (msp430_print_operand): Likewise.
15626 (msp430_return_addr_rtx): Likewise.
15627 (msp430x_extendhisi): Likewise.
15628 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15629 (ASM_SPEC): Likewise.
15630 Remove very obvious comments.
15631 (LIB_SPEC): Split line more than 80 characters long.
15632 (EH_RETURN_HANDLER_RTX): Likewise.
15633 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15634
15635 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15636
15637 MSP430: Fix whitespace errors and incorrect indentation in
15638 config/msp430/*.{c,h} files
15639
15640 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15641 (msp430_select_hwmult_lib): Likewise.
15642 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15643 (msp430_extract_mcu_data): Likewise.
15644 (struct t_msp430_mcu_data): Likewise.
15645 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15646 before left square bracket.
15647 (msp430_option_override): Fix indentation.
15648 (msp430_hard_regno_nregs_with_padding): Likewise.
15649 (msp430_initial_elimination_offset): Likewise.
15650 (msp430_special_register_convention_p): Remove whitespace before left
15651 square bracket and after exclamation mark.
15652 (msp430_evaluate_arg): Likewise.
15653 (msp430_callee_copies): Fix indentation.
15654 (msp430_gimplify_va_arg_expr): Likewise.
15655 (msp430_function_arg_advance): Remove whitespace before left square
15656 bracket.
15657 (reg_ok_for_addr): Likewise.
15658 (msp430_preserve_reg_p): Likewise.
15659 (msp430_compute_frame_info): Likewise.
15660 (msp430_asm_output_addr_const_extra): Add space between function name
15661 and open parenthesis.
15662 (has_section_name): Fix indentation.
15663 (msp430_attr): Remove trailing whitespace.
15664 (msp430_section_attr): Likewise.
15665 (msp430_data_attr): Likewise.
15666 (struct msp430_attribute_table): Fix comment and whitespace.
15667 (msp430_start_function): Remove whitespace before left square bracket.
15668 Add space between function name and open parenthesis.
15669 (msp430_select_section): Remove trailing whitespace.
15670 (msp430_section_type_flags): Remove trailing whitespace.
15671 (msp430_unique_section): Remove space before closing parenthesis.
15672 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15673 (msp430_builtins): Remove whitespace before left square bracket.
15674 (msp430_init_builtins): Fix indentation.
15675 (msp430_expand_prologue): Remove whitespace before left square bracket.
15676 Remove space before closing parenthesis.
15677 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15678 (msp430_split_movsi): Remove space before closing parenthesis.
15679 (helper_function_name_mappings): Fix indentation.
15680 (msp430_use_f5_series_hwmult): Fix whitespace.
15681 (use_32bit_hwmult): Likewise.
15682 (msp430_no_hwmult): Likewise.
15683 (msp430_output_labelref): Remove whitespace before left square bracket.
15684 (msp430_print_operand_raw): Likewise.
15685 (msp430_print_operand_addr): Likewise.
15686 (msp430_print_operand): Add two spaces after '.' in comment.
15687 Fix trailing whitespace.
15688 (msp430x_extendhisi): Fix indentation.
15689 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15690 tab.
15691 (PC_REGNUM): Likewise.
15692 (STACK_POINTER_REGNUM): Likewise.
15693 (CC_REGNUM): Likewise.
15694
15695 2019-08-15 Richard Biener <rguenther@suse.de>
15696
15697 PR target/91454
15698 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15699 helper.
15700 (general_scalar_chain::make_vector_copies): Use it.
15701
15702 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15703
15704 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15705
15706 2019-08-15 Martin Liska <mliska@suse.cz>
15707
15708 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15709 operators with no arguments.
15710 (eliminate_unnecessary_stmts): Likewise here.
15711
15712 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15713
15714 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15715 <case COMPARE>: Revert 2019-08-14 change.
15716 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15717 for (TARGET_64BIT || mode != DImode).
15718
15719 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15720
15721 * tree-vrp.c (value_range_base::set): Merge in code from
15722 value_range_base::set_and_canonicalize.
15723 Enforce canonicalization at set time.
15724 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15725 (value_range_base::set_undefined): Inline call to set().
15726 (value_range_base::set_varying): Same.
15727 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15728 (vrp_val_max): New argument handle_pointers.
15729 (vrp_val_min): Same.
15730 (ranges_from_anti_range): Same.
15731 (extract_range_into_wide_ints): Use tree argument instead of sign
15732 and precision.
15733 (extract_range_from_multiplicative_op): Take in tree type instead
15734 of precision and sign. Adapt function for canonicalized ranges.
15735 (extract_range_from_binary_expr): Pass type to
15736 extract_range_from_multiplicative_op.
15737 Adapt for canonicalized ranges.
15738 (extract_range_from_unary_expr): Same.
15739 (value_range_base::intersect_helper): Adjust for canonicalized
15740 ranges.
15741 (value_range_base::union_helper): Same.
15742 (value_range_base::normalize_symbolics): New.
15743 * tree-vrp.h (class value_range_base): Remove
15744 set_and_canonicalize.
15745 New prototype for normalize_symbolics.
15746 (class value_range): Remove set_and_canonicalize.
15747 (vrp_val_min): Adjust prototype.
15748 (vrp_val_max): Same.
15749 * vr-values.c
15750 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15751 instead of set_and_canonicalize.
15752
15753 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15754
15755 PR middle-end/91444
15756 * tree-vect-stmts.c (vectorizable_call): Check that the function
15757 is a BUILT_IN_MD function before passing it to
15758 targetm.vectorize.builtin_md_vectorized_function.
15759
15760 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15761
15762 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15763 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15764 (aarch64_select_early_remat_modes): Use it.
15765
15766 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15767
15768 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15769 16 for SVE predicates even if they are fixed-length.
15770
15771 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15772
15773 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15774 operand order match the MOV /Z alias.
15775
15776 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15777
15778 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15779 the vector pattern as an aarch64_svpattern argument. Update the
15780 overloaded caller accordingly.
15781 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15782 (aarch64_output_sve_vector_inc_dec): Likewise.
15783
15784 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15785
15786 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15787 multiplication case, try to compute VG * (lowest set bit) directly
15788 rather than always basing the multiplication on VG. Use
15789 expand_mult for the multiplication if we can.
15790
15791 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15792
15793 * config/aarch64/aarch64-protos.h
15794 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15795 (aarch64_sve_inc_dec_immediate_p): Rename to...
15796 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15797 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15798 (aarch64_output_sve_scalar_inc_dec): Declare.
15799 (aarch64_output_sve_inc_dec_immediate): Rename to...
15800 (aarch64_output_sve_vector_inc_dec): ...this.
15801 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15802 (aarch64_output_sve_scalar_inc_dec): New functions.
15803 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15804 arguments. Only handle true ADDVL and ADDPL instructions;
15805 don't emit an INC or DEC.
15806 (aarch64_sve_inc_dec_immediate_p): Rename to...
15807 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15808 (aarch64_output_sve_inc_dec_immediate): Rename to...
15809 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15810 aarch64_sve_vector_inc_dec_immediate_p.
15811 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15812 (aarch64_sve_plus_immediate): New predicates.
15813 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15814 rather than aarch64_sve_addvl_addpl_immediate.
15815 (aarch64_sve_inc_dec_immediate): Rename to...
15816 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15817 aarch64_sve_vector_inc_dec_immediate_p.
15818 (aarch64_sve_add_operand): Update accordingly.
15819 * config/aarch64/constraints.md (Uai): New constraint.
15820 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15821 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15822 operand into a register if it satisfies aarch64_sve_plus_immediate.
15823 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15824 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15825 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15826 aarch64_output_sve_vector_inc_dec instead of
15827 aarch64_output_sve_inc_dec_immediate.
15828
15829 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15830
15831 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15832 (UNSPEC_REVW): New constants.
15833 (elem_bits): New mode attribute.
15834 (SVE_INT_UNARY): New int iterator.
15835 (optab): Handle UNSPEC_REV[BHW].
15836 (sve_int_op): New int attribute.
15837 (min_elem_bits): Handle VNx16QI and the predicate modes.
15838 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15839 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15840 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15841 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15842 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15843 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15844 unspecs based on the total width of the reversed data.
15845 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15846 reinterpret followed by a subreg on big-endian targets.
15847
15848 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15849 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15850
15851 * config/aarch64/aarch64-sve.md
15852 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15853 alternatives in which one of the inputs is in the same register
15854 as the output.
15855
15856 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15857
15858 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15859 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15860
15861 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15862
15863 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15864 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15865
15866 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15867 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15868
15869 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15870 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15871 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15872
15873 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15874 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15875
15876 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15877 Add an alternative that uses reversed shifts.
15878
15879 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15880
15881 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15882 struct.
15883
15884 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15885
15886 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15887 a commutativity marker.
15888
15889 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15890 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15891
15892 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15893 (aarch64_prepare_sve_cond_int_fma): Declare.
15894 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15895 (aarch64_prepare_sve_int_fma): New functions.
15896 (aarch64_prepare_sve_cond_int_fma): Likewise.
15897 * config/aarch64/aarch64-sve.md
15898 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15899 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15900 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15901 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15902 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15903 (*madd<mode>): Rename to...
15904 (*fma<mode>4): ...this.
15905 (*msub<mode>): Rename to...
15906 (*fnma<mode>4): ...this.
15907
15908 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15909 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15910
15911 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15912 Print 2.0 naturally.
15913 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15914 * config/aarch64/predicates.md
15915 (aarch64_sve_float_negated_arith_immediate): New predicate,
15916 renamed from aarch64_sve_float_arith_with_sub_immediate.
15917 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15918 positive and negative constants.
15919 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15920 or an aarch64_sve_float_arith_with_sub_immediate.
15921 * config/aarch64/constraints.md (vsN): Use
15922 aarch64_sve_float_negated_arith_immediate.
15923 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15924 iterator.
15925 (sve_pred_fp_rhs2_immediate): New int attribute.
15926 * config/aarch64/aarch64-sve.md
15927 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15928 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15929 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15930 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15931 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15932 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15933
15934 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15935 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15936
15937 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15938 (*aarch64_cond_abd<SVE_F:mode>_3)
15939 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15940
15941 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15942 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15943
15944 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15945 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15946
15947 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15948 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15949
15950 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15951 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15952 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15953 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15954 optabs.
15955 * optabs.h (create_convert_operand_from): Expand comment.
15956 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15957 when mapping scalar rtxes to vector operands.
15958 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15959 ashiftrt and lshiftrt.
15960 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15961 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15962 (*cond_<optab><mode>_any_const): New patterns.
15963
15964 2019-08-15 Martin Liska <mliska@suse.cz>
15965
15966 PR ipa/91438
15967 * cgraph.c (cgraph_node::remove): When setting
15968 n->origin = NULL for all nested functions, reset
15969 also next_nested.
15970
15971 2019-08-15 Martin Liska <mliska@suse.cz>
15972
15973 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15974 and next_nested.
15975
15976 2019-08-15 Martin Liska <mliska@suse.cz>
15977
15978 PR ipa/91404
15979 * passes.c (order): Remove.
15980 (uid_hash_t): Likewise).
15981 (remove_cgraph_node_from_order): Remove from set
15982 of pointers (cgraph_node *).
15983 (insert_cgraph_node_to_order): New.
15984 (duplicate_cgraph_node_to_order): New.
15985 (do_per_function_toporder): Register all 3 cgraph hooks.
15986 Skip removed_nodes now as we know about all of them.
15987
15988 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
15989
15990 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15991 <case E_V8QImode>: Use vector_set path for
15992 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15993 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15994 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15995
15996 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15997
15998 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15999
16000 2019-08-14 Martin Sebor <msebor@redhat.com>
16001
16002 PR tree-optimization/91294
16003 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16004 source length as exact.
16005
16006 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16007
16008 * doc/extend.texi: Add "noinit" attribute documentation.
16009 * doc/sourcebuild.texi: Add noinit effective target documentation.
16010 * varasm.c (default_section_type_flags): Add support for "noinit"
16011 section.
16012 (default_elf_select_section): Add support for "noinit" attribute.
16013 * config/msp430/msp430.c (msp430_attribute_table): Remove
16014 "noinit" entry.
16015
16016 2019-08-14 Richard Biener <rguenther@suse.de>
16017 Uroš Bizjak <ubizjak@gmail.com>
16018
16019 PR target/91154
16020 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16021 mode arguments.
16022 (scalar_chain::smode): New member.
16023 (scalar_chain::vmode): Likewise.
16024 (dimode_scalar_chain): Rename to...
16025 (general_scalar_chain): ... this.
16026 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16027 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16028 base with TImode and V1TImode.
16029 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16030 (general_scalar_chain::vector_const_cost): Adjust for SImode
16031 chains.
16032 (general_scalar_chain::compute_convert_gain): Likewise. Add
16033 {S,U}{MIN,MAX} support.
16034 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16035 (general_scalar_chain::make_vector_copies): Likewise. Handle
16036 non-DImode chains appropriately.
16037 (general_scalar_chain::convert_reg): Likewise.
16038 (general_scalar_chain::convert_op): Likewise.
16039 (general_scalar_chain::convert_insn): Likewise. Add
16040 fatal_insn_not_found if the result is not recognized.
16041 (convertible_comparison_p): Pass in the scalar mode and use that.
16042 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16043 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16044 (scalar_to_vector_candidate_p): Remove by inlining into single
16045 caller.
16046 (general_remove_non_convertible_regs): Rename from
16047 dimode_remove_non_convertible_regs.
16048 (remove_non_convertible_regs): Remove by inlining into single caller.
16049 (convert_scalars_to_vector): Handle SImode and DImode chains
16050 in addition to TImode chains.
16051 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16052 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16053 (*<maxmin>di3_doubleword): Likewise.
16054
16055 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16056 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16057
16058 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16059 (*cond_bic<mode>_any): New patterns.
16060
16061 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16062
16063 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16064 take the equivalent mask, as well as a bit count.
16065 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16066 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16067 (aarch64_sve_pred_and_operand): New predicates.
16068 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16069 code attribute.
16070 * config/aarch64/aarch64-sve.md
16071 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16072 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16073
16074 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16075
16076 * config/aarch64/aarch64-sve.md
16077 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16078 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16079 New patterns.
16080
16081 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16082 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16083
16084 * config/aarch64/aarch64-sve.md
16085 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16086 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16087
16088 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16089 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16090
16091 * config/aarch64/aarch64-sve.md
16092 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16093 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16094
16095 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16096
16097 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16098 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16099 New pattern.
16100
16101 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16102 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16103
16104 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16105
16106 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16107 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16108
16109 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16110 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16111 (aarch64_print_operand): Add support for %I.
16112 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16113 Bitcast floating-point constants to the corresponding integer constant.
16114 (aarch64_float_const_representable_p): Handle vectors as well
16115 as scalars.
16116 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16117 for the new vcond_mask_<mode><vpred> expander.
16118 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16119 test aarch64_float_const_representable_p.
16120 (aarch64_sve_reg_or_dup_imm): New predicate.
16121 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16122 gen_vcond_mask_<mode><vpred> instead of
16123 gen_aarch64_sve_dup<mode>_const.
16124 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16125 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16126 for operands 1 and 2 respectively. Force operand 2 into a
16127 register if operand 1 is a register. Fold old define_insn...
16128 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16129 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16130 floating-point constants that can be moved as integers. Add
16131 alternatives for MOV /M and FMOV /M.
16132 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16133 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16134 1 and 2 respectively.
16135 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16136 as scalars.
16137 (vss): New constraint.
16138
16139 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16140
16141 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16142 (aarch64_sve_float_maxmin_operand): New predicates.
16143 * config/aarch64/constraints.md (vsB): New constraint.
16144 (vsM): Fix typo.
16145 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16146 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16147 UNSPEC_COND_FMINNM.
16148 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16149 Use aarch64_sve_float_maxmin_operand for operand 2.
16150 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16151 Add alternatives for the constant forms.
16152
16153 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16154
16155 * config/aarch64/constraints.md (vsb): New constraint.
16156 (vsm): Generalize description.
16157 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16158 iterator.
16159 (sve_imm_con): Handle smax, smin, umax and umin.
16160 (sve_imm_prefix): New code attribute.
16161 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16162 (aarch64_sve_vsb_operand): New predicates.
16163 (aarch64_sve_mul_immediate): Rename to...
16164 (aarch64_sve_vsm_immediate): ...this.
16165 (aarch64_sve_mul_operand): Rename to...
16166 (aarch64_sve_vsm_operand): ...this.
16167 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16168 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16169 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16170 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16171 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16172 add movprfx support for the immediate alternatives.
16173 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16174 of the above.
16175 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16176 for operand 3.
16177
16178 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16179
16180 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16181 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16182 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16183
16184 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16185
16186 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16187 (optab, sve_int_op): Handle them.
16188 * config/aarch64/aarch64-sve.md: Expand comment.
16189
16190 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16191
16192 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16193 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16194 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16195
16196 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16197
16198 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16199 (aarch64_expand_sve_const_pred_trn): New functions.
16200 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16201 use the above functions when the parameter is true.
16202 (aarch64_expand_sve_const_pred): Update call accordingly.
16203 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16204 Rename to...
16205 (@aarch64_sve_<perm_insn><mode>): ...this.
16206
16207 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16208
16209 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16210 Declare.
16211 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16212 (aarch64_sve_emit_int_cmp): New functions.
16213 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16214 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16215 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16216 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16217 (UNSPEC_PRED_Z): New unspec.
16218 (set_clobber_cc_nzc): Delete.
16219 * config/aarch64/aarch64-sve.md: Add a block comment about
16220 UNSPEC_PRED_Z.
16221 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16222 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16223 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16224 UNSPEC_MERGE_PTRUE.
16225 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16226 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16227 check for compatible predicates.
16228 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16229 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16230 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16231 comparisons above.
16232
16233 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16234
16235 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16236 * config/aarch64/aarch64-sve.md: Add a section describing it.
16237 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16238 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16239 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16240 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16241 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16242 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16243 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16244 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16245 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16246 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16247 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16248 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16249 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16250 (aarch64_evpc_rev_local): Update accordingly.
16251
16252 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16253
16254 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16255 iterators.
16256 (SVE_BHSI, SVE_SDI): Tweak comment.
16257 (SVE_HSDI): Likewise. Fix definition.
16258 (SVE_SDF): New mode iterator.
16259 (elem_bits): New mode attribute.
16260 (SVE_COND_FCVT): New int iterator.
16261 * config/aarch64/aarch64-sve.md
16262 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16263 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16264 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16265 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16266 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16267 ...these new patterns.
16268 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16269 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16270 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16271 Merge into...
16272 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16273 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16274 ...these new patterns.
16275 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16276 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16277 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16278 ...this new pattern.
16279 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16280 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16281 ...this new pattern.
16282 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16283
16284 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16285
16286 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16287 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16288 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16289 unspecs.
16290 (optab, su): Handle them.
16291 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16292 * config/aarch64/aarch64-sve.md
16293 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16294 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16295 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16296 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16297 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16298 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16299 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16300 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16301 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16302 FIXUORS.
16303 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16304 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16305 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16306 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16307 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16308 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16309 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16310 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16311 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16312 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16313 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16314 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16315 of UNSPEC_FLOAT_CONVERT.
16316 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16317 aarch64_sve_extend<mode><Vwide>2.
16318
16319 2019-08-14 Richard Biener <rguenther@suse.de>
16320
16321 PR target/91154
16322 * config/i386/i386-features.c
16323 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16324 individual instruction gain. Fix reg-reg copy GRP cost. Use
16325 ix86_cost->sse_op for vector instruction costs.
16326
16327 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16328
16329 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16330 (cmp_op): Handle it.
16331 (SVE_COND_FP_CMP): Rename to...
16332 (SVE_COND_FP_CMP_I0): ...this.
16333 (SVE_FP_CMP): Remove.
16334 * config/aarch64/aarch64-sve.md
16335 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16336 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16337 using unspecs to represent the comparison.
16338 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16339 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16340 accordingly.
16341 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16342 (aarch64_unspec_cond_code): Move after integer code. Handle
16343 UNORDERED.
16344 (aarch64_emit_sve_predicated_cond): Replace with...
16345 (aarch64_emit_sve_fp_cond): ...this new function.
16346 (aarch64_emit_sve_or_conds): Replace with...
16347 (aarch64_emit_sve_or_fp_conds): ...this new function.
16348 (aarch64_emit_sve_inverted_cond): Replace with...
16349 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16350 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16351
16352 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16353
16354 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16355 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16356 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16357 SVE_HSD instead of SVE_SD.
16358
16359 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16360 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16361
16362 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16363 iterator.
16364 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16365 attributes.
16366 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16367 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16368 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16369 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16370 (*div<SVE_F:mode>3): Generalize to...
16371 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16372
16373 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16374 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16375
16376 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16377 constants.
16378 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16379 predicate.
16380 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16381 Declare.
16382 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16383 function.
16384 * config/aarch64/aarch64-sve.md: Add a block comment about the
16385 handling of predicated FP operations.
16386 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16387 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16388 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16389 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16390 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16391 operand.
16392 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16393 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16394 operand.
16395 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16396 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16397 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16398 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16399 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16400 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16401 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16402 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16403 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16404 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16405 strictness operands. Use aarch64_sve_pred_dominates_p to check
16406 whether the predicate on the conditional operation is suitable
16407 for merging. Split patterns into the canonical equal-predicate form.
16408 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16409 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16410
16411 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16412 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16413
16414 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16415 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16416 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16417 rtx codes.
16418 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16419 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16420 unspecs.
16421
16422 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16423 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16424
16425 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16426 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16427 actually has, rather than relying on REG_EQUAL notes.
16428 Make the insn operand order match the SVE operand order.
16429 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16430 the SVE operand order.
16431
16432 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16433
16434 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16435 (aarch64_emit_set_immediate): Likewise.
16436 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16437 (aarch64_pfalse_reg): Likewise.
16438 (aarch64_convert_sve_data_to_pred): New function.
16439 (aarch64_sve_move_pred_via_while): Take an optional target register
16440 and the required register mode.
16441 (aarch64_expand_sve_const_pred_1): New function.
16442 (aarch64_expand_sve_const_pred): Likewise.
16443 (aarch64_expand_mov_immediate): Build an all-true predicate
16444 if the significant bits of the immediate are all true. Use
16445 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16446 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16447 before register allocation.
16448 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16449 a VNx16BI PTRUE when splitting the memory alternative.
16450 (vec_duplicate<mode>): Update accordingly.
16451 (*pred_cmp<cmp_op><mode>): Rename to...
16452 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16453
16454 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16455
16456 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16457 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16458 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16459 (UNSPEC_PTEST): New unspec.
16460 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16461 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16462 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16463 * config/aarch64/aarch64-sve.md: Add a new section describing the
16464 handling of UNSPEC_PTEST.
16465 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16466 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16467 (ptest_ptrue<mode>): Replace with...
16468 (aarch64_ptest<mode>): ...this new pattern.
16469 (cbranch<mode>4): Update after above changes.
16470 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16471 UNSPEC_PTEST_PTRUE.
16472 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16473 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16474 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16475
16476 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16477
16478 PR lto/91287
16479 * builtins.c (builtin_with_linkage_p): New function.
16480 * builtins.h (builtin_with_linkage_p): New function.
16481 * symtab.c (write_symbol): Remove redundant assert.
16482 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16483 Remove FIXME and use builtin_with_linkage_p.
16484
16485 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16486
16487 PR middle-end/91421
16488 * tree-core.h (function_decl::function_code): Change type to
16489 unsigned int.
16490 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16491 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16492 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16493 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16494 is BUILT_IN_NORMAL.
16495 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16496 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16497 (fndecl_built_in_p): Change the type of the "name" argument to
16498 unsigned int.
16499 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16500 after check for DECL_BUILT_IN_CLASS.
16501 * cgraphclones.c (build_function_decl_skip_args): Use
16502 set_decl_built_in_function.
16503 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16504 * ipa-split.c (split_function): Likewise.
16505 * langhooks.c (add_builtin_function_common): Likewise.
16506 * omp-simd-clone.c (simd_clone_create): Likewise.
16507 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16508 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16509 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16510 DECL_FUNCTION_CODE.
16511 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16512 instead of DECL_FUNCTION_CODE.
16513 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16514 instead of DECL_FUNCTION_CODE.
16515 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16516 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16517 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16518 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16519 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16520 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16521 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16522 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16523 (alpha_gimple_fold_builtin): Likewise.
16524 * config/arc/arc.c (arc_expand_builtin): Likewise.
16525 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16526 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16527 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16528 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16529 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16530 * config/frv/frv.c (frv_expand_builtin): Likewise.
16531 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16532 (gcn_expand_builtin): Likewise.
16533 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16534 (fold_builtin_cpu): Likewise.
16535 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16536 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16537 (ix86_gimple_fold_builtin): Likewise.
16538 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16539 (ia64_expand_builtin): Likewise.
16540 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16541 * config/mips/mips.c (mips_expand_builtin): Likewise.
16542 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16543 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16544 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16545 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16546 * config/pa/pa.c (pa_expand_builtin): Likewise.
16547 * config/pru/pru.c (pru_expand_builtin): Likewise.
16548 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16549 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16550 Likewise.
16551 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16552 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16553 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16554 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16555 (rs6000_builtin_reciprocal): Likewise.
16556 * config/rx/rx.c (rx_expand_builtin): Likewise.
16557 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16558 * config/s390/s390.c (s390_expand_builtin): Likewise.
16559 * config/sh/sh.c (sh_expand_builtin): Likewise.
16560 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16561 (sparc_fold_builtin): Likewise.
16562 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16563 * config/spu/spu.c (spu_expand_builtin): Likewise.
16564 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16565 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16566 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16567 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16568 (xtensa_expand_builtin): Likewise.
16569
16570 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16571
16572 PR middle-end/91421
16573 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16574 before the DECL_FUNCTION_CODE.
16575 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16576 to check for a BUILT_IN_ALLOCA call.
16577 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16578 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16579 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16580 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16581 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16582 for BUILT_IN_NORMAL functions.
16583 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16584 test for BUILT_IN_TM_ABORT.
16585 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16586 to check for a BUILT_IN_STACK_RESTORE call.
16587 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16588 * tree-ssa-threadedge.c
16589 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16590 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16591 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16592 test for a BUILT_IN_NORMAL call instead of a negative test for
16593 an internal function call.
16594
16595 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16596
16597 * tree.h (build_vector_a_then_b): Declare.
16598 * tree.c (build_vector_a_then_b): New function.
16599 * fold-const-call.c (fold_while_ult): Likewise.
16600 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16601 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16602 (aarch64_svpattern): New enum.
16603 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16604 constants through aarch64_expand_mov_immediate.
16605 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16606 than general_operand as the predicate for operand 1.
16607 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16608 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16609 insn_type.
16610 (simd_immediate_info::simd_immediate_info): New overload that
16611 takes a scalar_int_mode and an svpattern.
16612 (simd_immediate_info::u): Add a "pattern" field.
16613 (svpattern_token): New function.
16614 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16615 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16616 (aarch64_sve_move_pred_via_while): New functions.
16617 (aarch64_expand_mov_immediate): Try using
16618 aarch64_sve_move_pred_via_while for predicates that contain N ones
16619 followed by M zeros but that do not correspond to a VLnnn pattern.
16620 (aarch64_sve_pred_valid_immediate): New function.
16621 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16622 with PTRUE and PFALSE.
16623 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16624 forms.
16625
16626 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16627
16628 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16629 flag.
16630 (darwin_override_options): Likewise.
16631 * config/darwin.h: Likewise.
16632 * config/darwin.opt: Likewise.
16633 * config/i386/i386.c (output_pic_addr_const): Likewise.
16634 * config/rs6000/darwin.h: Likewise.
16635 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16636 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16637 ... this TARGET_MACHO_SYMBOL_STUBS.
16638 (FUNCTION_PROFILER):Likewise.
16639 * config/i386/i386.h: Likewise.
16640
16641 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16642
16643 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16644 <case E_V2SImode>: Use vec_extr path for
16645 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16646 <case E_V8QImode>: Ditto.
16647 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16648 Use SWI48 mode iterator. Use %k to output operand 0.
16649 (*mmx_pextrw): New insn pattern.
16650 (*mmx_pextrb): Ditto.
16651 (*mmx_pextrb_zext): Ditto.
16652
16653 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16654
16655 * target.def (libc_has_function, libc_has_fast_function): Improve
16656 documentation strings.
16657 * doc/tm.texi: Regenerate.
16658
16659 2019-08-13 Caroline Tice <cmtice@google.com>
16660
16661 PR other/91396
16662 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16663 vtv_end.o or vtv_end_preinit.o files if !static.
16664
16665 2019-08-13 Olivier Hainque <hainque@adacore.com>
16666
16667 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16668
16669 2019-08-13 Olivier Hainque <hainque@adacore.com>
16670
16671 * rtlanal.c (tablejump_casesi_pattern): New function, to
16672 determine if a tablejump insn is a casesi dispatcher. Extracted
16673 from patch_jump_insn.
16674 * rtl.h (tablejump_casesi_pattern): Declare.
16675 * cfgrtl.c (patch_jump_insn): Use it.
16676 * dwarf2cfi.c (create_trace_edges): Use it.
16677
16678 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16679
16680 PR target/81800
16681 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16682 operand is larger than a long int.
16683
16684 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16685
16686 * machmode.h (opt_mode::else_mode): New function.
16687 (opt_mode::else_blk): Use it.
16688 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16689 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16690 (aarch64_gen_stepped_int_parallel): Likewise.
16691 (aarch64_stepped_int_parallel_p): Likewise.
16692 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16693 argument.
16694 * config/aarch64/aarch64.c
16695 (aarch64_expand_sve_widened_duplicate): Delete.
16696 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16697 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16698 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16699 argument. Use early returns in the !CONST_INT_P handling.
16700 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16701 than handling some inline.
16702 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16703 from...
16704 (aarch64_simd_container_mode): ...here.
16705 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16706 (aarch64_sve_ld1rq_operand_p): New functions.
16707 * config/aarch64/predicates.md (descending_int_parallel)
16708 (aarch64_sve_ld1rq_operand): New predicates.
16709 * config/aarch64/constraints.md (UtQ): New constraint.
16710 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16711 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16712 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16713 (@aarch64_sve_reinterpret<mode>): New expander.
16714 (*aarch64_sve_reinterpret<mode>): New pattern.
16715 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16716 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16717 (*sve_ld1rq<Vesize>): Replace with...
16718 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16719
16720 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16721
16722 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16723 16:12.
16724
16725 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16726
16727 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16728 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16729 (msp430_check_path_for_devices): New.
16730 (parse_devices_csv_1): New.
16731 (parse_devices_csv): New.
16732 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16733 MCU data in devices.csv before using the hard-coded data.
16734 Warn if devices.csv isn't found and the MCU wasn't found in the
16735 hard-coded data either.
16736 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16737 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16738 Search for devices.csv on -I and -L paths.
16739 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16740 msp430_set_driver_var.
16741 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16742 -mdevices-csv-loc=.
16743 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16744 searched for devices.csv.
16745 (mwarn-devices-csv): Document option.
16746
16747 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16748
16749 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16750 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16751 Use a single Dn alternative instead of separate Dz and Dm
16752 alternatives. Use aarch64_output_sve_move_immediate.
16753 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16754 function.
16755 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16756 for predicates too.
16757 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16758 (aarch64_output_ptrue): Delete.
16759
16760 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16761
16762 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16763 INDEX.
16764 (simd_immediate_info::value, simd_immediate_info::step)
16765 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16766 with...
16767 (simd_immediate_info::u): ...this new union.
16768 (simd_immediate_info::simd_immediate_info): Update accordingly.
16769 (aarch64_output_simd_mov_immediate): Likewise.
16770 (aarch64_output_sve_mov_immediate): Likewise.
16771
16772 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16773
16774 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16775 extra_gcc_objs.
16776 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16777 (msp430_select_cpu): New spec function.
16778 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16779 MCU data.
16780 * config/msp430/msp430-devices.c: New file.
16781 * config/msp430/msp430-devices.h: New file.
16782 * config/msp430/msp430.c: Remove msp430_mcu_data.
16783 (msp430_option_override): Use msp430_extract_mcu_data to extract
16784 MCU data.
16785 (msp430_use_f5_series_hwmult): Likewise.
16786 (use_32bit_hwmult): Likewise.
16787 (msp430_no_hwmult): Likewise.
16788 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16789 assembler.
16790 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16791 and -mcpu option.
16792 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16793 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16794 Remove hard-coded MCU multilib data.
16795
16796 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16797
16798 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16799 based on the mode instead of testing properties of it.
16800
16801 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16802
16803 * doc/md.texi: Document the x and y constraints for AArch64.
16804 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16805 (FP_LO8_REGS): New reg_class.
16806 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16807 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16808 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16809 * config/aarch64/predicates.md (aarch64_simd_register): Use
16810 FP_REGNUM_P instead of checking the classes manually.
16811 * config/aarch64/constraints.md (y): New constraint.
16812
16813 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16814
16815 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16816 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16817 * config/aarch64/aarch64-simd.md
16818 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16819 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16820 from the asm template.
16821 * config/aarch64/aarch64-sve.md
16822 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16823 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16824 from the asm template.
16825 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16826 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16827 from the asm template.
16828 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16829
16830 2019-08-13 Martin Liska <mliska@suse.cz>
16831
16832 * value-prof.c (gimple_ic_transform): Add new line.
16833 Print details with MSG_NOTE.
16834
16835 2019-08-13 Martin Liska <mliska@suse.cz>
16836
16837 * doc/invoke.texi: Document automatic detection of jobserver.
16838 * lto-wrapper.c (run_gcc): Detect jobserver always.
16839
16840 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16841
16842 * config/i386/i386-expand.c (ix86_expand_vector_set)
16843 <case E_V2SImode>: Use vec_merge path for
16844 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16845 <case E_V8QImode>: Ditto.
16846 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16847 (*mmx_pinsrb): Ditto.
16848
16849 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16850
16851 PR target/83250
16852 PR target/91340
16853 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16854 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16855 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16856 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16857 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16858
16859 2019-08-12 Richard Biener <rguenther@suse.de>
16860
16861 PR lto/91375
16862 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16863 flag_devirtualize.
16864
16865 2019-08-12 Richard Biener <rguenther@suse.de>
16866
16867 PR driver/91130
16868 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16869 lang_mask option, always use CL_DRIVER.
16870 (get_options_from_collect_gcc_options): Adjust.
16871 (find_and_merge_options): Likewise.
16872 (run_gcc): Likewise.
16873
16874 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16875
16876 * ipa-predicate.c (add_condition): Restore inverted test.
16877
16878 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16879
16880 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16881 (enum omp_clause_device_type_kind): New enum.
16882 (struct tree_omp_clause): Add subcode.device_type_kind.
16883 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16884 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16885 for device_type clause.
16886 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16887 * tree-pretty-print.c (dump_omp_clause): Likewise.
16888
16889 PR target/91408
16890 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16891 vector_operand.
16892
16893 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16894
16895 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16896 handling spilled pseudos.
16897
16898 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16899
16900 PR target/91386
16901 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16902 to preserve the contents of the original insns.
16903
16904 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16905
16906 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16907 (addsi3_compare_op2): Likewise.
16908
16909 2019-08-09 Martin Liska <mliska@suse.cz>
16910
16911 * alias.c (alias_ptr_types_compatible_p): Strengten
16912 type comparison in LTO mode.
16913
16914 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16915
16916 PR middle-end/90313
16917 * tree-tailcall.c (find_tail_calls): Reject calls that might
16918 read from an escaped RESULT_DECL.
16919
16920 2019-08-09 Martin Liska <mliska@suse.cz>
16921
16922 * doc/invoke.texi: Document the option value.
16923 * lto-wrapper.c (run_gcc): Set auto_parallel
16924 only with -flto=auto.
16925
16926 2019-08-09 Martin Liska <mliska@suse.cz>
16927
16928 * opts.c (common_handle_option): Error for an invalid argument
16929 to -flto=.
16930
16931 2019-08-09 Martin Liska <mliska@suse.cz>
16932
16933 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16934 use dump_printf to report optimization.
16935 (sem_variable::merge): Likwise.
16936 (sem_item_optimizer::merge_classes): Use dump_printf to report
16937 ICF hits.
16938
16939 2019-08-09 Martin Liska <mliska@suse.cz>
16940
16941 * value-prof.c (gimple_divmod_fixed_value_transform):
16942 Use dump_printf_loc.
16943 (gimple_mod_pow2_value_transform): Likewise.
16944 (gimple_mod_subtract_transform): Likewise.
16945 (init_node_map): Likewise.
16946 (gimple_ic_transform): Likewise.
16947 (gimple_stringops_transform): Likewise.
16948
16949 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16950
16951 * doc/extend.texi: Add const qualifier to ld intrinsics.
16952
16953 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16954
16955 * config/rs6000/dfp.md (D64_D128): Rename to ...
16956 (DDTD): ... this, throughout.
16957 (dfp_suffix): Rename to ...
16958 (q): ... this, throughout.
16959
16960 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16961
16962 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16963 (dfp_suffix): Ditto.
16964 (adddd3, addtd3): Merge to ...
16965 (add<mode>3 for D64_D128): ... this.
16966 (subdd3, subtd3): Merge to ...
16967 (sub<mode>3 for D64_D128): ... this.
16968 (muldd3, multd3): Merge to ...
16969 (mul<mode>3 for D64_D128): ... this.
16970 (divdd3, divtd3): Merge to ...
16971 (div<mode>3 for D64_D128): ... this.
16972 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16973 (*cmp<mode>_internal1 for D64_D128): ... this.
16974 (ftruncdd2, ftrunctd2): Merge to ...
16975 (ftrunc<mode>2 for D64_D128): ... this.
16976 (fixdddi2, fixtddi2): Merge to ...
16977 (fix<mode>di2 for D64_D128): ... this.
16978
16979 2019-08-08 Jim Wilson <jimw@sifive.com>
16980
16981 PR target/91229
16982 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16983 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
16984 Pass into recursive call.
16985 (riscv_flatten_aggregate_argument): New arg. Pass to
16986 riscv_flatten_aggregate_field.
16987 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
16988 riscv_flatten_aggregate_argument twice, with false and true as last
16989 arg. Process result twice. Compare results and warn if different.
16990 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16991
16992 2019-08-08 Martin Liska <mliska@suse.cz>
16993
16994 PR bootstrap/91352
16995 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16996 * lto-wrapper.c (jobserver_active_p): Likewise.
16997
16998 2019-08-08 Martin Liska <mliska@suse.cz>
16999
17000 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17001 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17002 (create_version_clone_with_body): Likewise.
17003
17004 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17005
17006 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17007 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17008 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17009 GOVD_EXPLICIT flags.
17010 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17011 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17012 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17013 call install_var_field with mask 11 instead of 3.
17014 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17015 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17016
17017 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17018
17019 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17020 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17021
17022 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17023
17024 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17025 MOVPRFX alternatives. Make the GPR alternatives more expensive
17026 than the FPR ones.
17027
17028 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17029
17030 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17031 Disparage the GPR alternative relative to the FPR one.
17032 Fix handling of 8-bit and 16-bit FPR values.
17033
17034 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17035
17036 * config/aarch64/iterators.md (BITWISEV): Delete.
17037 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17038 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17039 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17040 UNSPEC_FMINNMV, UNSPEC_FMINV.
17041 (bit_reduc_op): Delete.
17042 (sve_int_op): New int attribute.
17043 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17044 UNSPEC_FMINNMV, UNSPEC_FMINV.
17045 * config/aarch64/aarch64-sve.md
17046 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17047 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17048 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17049 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17050 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17051 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17052 new patterns.
17053 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17054 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17055 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17056 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17057 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17058 new patterns.
17059
17060 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17061
17062 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17063 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17064 (fms<mode>4, *fms<mode>4): Replace with...
17065 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17066 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17067 Use unspecs instead of rtx codes.
17068 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17069 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17070
17071 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17072
17073 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17074 int iterator.
17075 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17076 * config/aarch64/aarch64-sve.md
17077 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17078 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17079 use a single unspec for the rhs.
17080 (*<su><maxmin><mode>3): Delete.
17081 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17082
17083 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17084
17085 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17086 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17087 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17088 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17089 (optab, sve_fp_op): Handle them.
17090 (SVE_FP_UNARY): Delete.
17091 (optab): Remove sqrt entry.
17092 (sve_fp_op): Remove neg, abs and sqrt entries.
17093 (SVE_COND_FP_UNARY): New int iterator.
17094 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17095 (*<frint_pattern><mode>2): Delete.
17096 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17097 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17098 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17099 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17100
17101 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17102
17103 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17104
17105 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17106
17107 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17108 (UNSPEC_COND_FADD): ...this.
17109 (UNSPEC_COND_SUB): Rename to...
17110 (UNSPEC_COND_FSUB): ...this.
17111 (UNSPEC_COND_MUL): Rename to...
17112 (UNSPEC_COND_FMUL): ...this.
17113 (UNSPEC_COND_DIV): Rename to...
17114 (UNSPEC_COND_FDIV): ...this.
17115 (UNSPEC_COND_MAX): Rename to...
17116 (UNSPEC_COND_FMAXNM): ...this.
17117 (UNSPEC_COND_MIN): Rename to...
17118 (UNSPEC_COND_FMINNM): ...this.
17119 (UNSPEC_COND_LT): Rename to...
17120 (UNSPEC_COND_FCMLT): ...this.
17121 (UNSPEC_COND_LE): Rename to...
17122 (UNSPEC_COND_FCMLE): ...this.
17123 (UNSPEC_COND_EQ): Rename to...
17124 (UNSPEC_COND_FCMEQ): ...this.
17125 (UNSPEC_COND_NE): Rename to...
17126 (UNSPEC_COND_FCMNE): ...this.
17127 (UNSPEC_COND_GE): Rename to...
17128 (UNSPEC_COND_FCMGE): ...this.
17129 (UNSPEC_COND_GT): Rename to...
17130 (UNSPEC_COND_FCMGT): ...this.
17131 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17132 (sve_fp_op_rev): Update accordingly.
17133 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17134
17135 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17136
17137 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17138 banner comments.
17139 * config/aarch64/check-sve-md.awk: New file.
17140 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17141 (insn-conditions.md): Depend on it.
17142
17143 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17144
17145 PR target/91385
17146 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17147 (*negsi2_cmpz_zext): Ditto.
17148
17149 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17150
17151 * config/aarch64/iterators.md (commutative): Remove.
17152
17153 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17154
17155 PR driver/91130
17156 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17157 processing COLLECT_GCC_OPTIONS.
17158 (run_gcc): Likewise.
17159
17160 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17161
17162 PR tree-optimization/91109
17163 * lra-remat.c (update_scratch_ops): Remove assignment of the
17164 hard register.
17165
17166 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17167
17168 * data-streamer.h (streamer_write_poly_uint64): Declare.
17169 (streamer_read_poly_uint64): Likewise.
17170 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17171 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17172 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17173 (add_condition): Take a poly_int64 size.
17174 * ipa-predicate.c (add_condition): Likewise.
17175 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17176 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17177 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17178 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17179 condition::size as a poly_int64.
17180 (unmodified_parm_1): Take a poly_int64 size pointer.
17181 (unmodified_parm): Likewise.
17182 (unmodified_parm_or_parm_agg_item): Likewise.
17183 (set_cond_stmt_execution_predicate): Update accordingly.
17184 (set_switch_stmt_execution_predicate): Likewise.
17185 (will_be_nonconstant_expr_predicate): Likewise.
17186 (will_be_nonconstant_predicate): Likewise.
17187 (inline_read_section): Stream condition::size as a poly_int.
17188 (ipa_fn_summary_write): Likewise.
17189
17190 2019-08-07 Martin Liska <mliska@suse.cz>
17191
17192 * fold-const.c (twoval_comparison_p): Replace int
17193 with bool as a return type.
17194 (simple_operand_p): Likewise.
17195 (operand_equal_p): Replace int with bool as a return type.
17196 * fold-const.h (operand_equal_p): Likewise.
17197
17198 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17199
17200 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17201 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17202 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17203 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17204 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17205 * tree-pretty-print.c (dump_omp_clause): Likewise.
17206 * tree-nested.c (convert_nonlocal_omp_clauses,
17207 convert_local_omp_clauses): Likewise.
17208 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17209 Likewise.
17210 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17211 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17212 clause with array or reference to array types, no matter what type
17213 except for reference it has.
17214
17215 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17216
17217 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17218
17219 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17220
17221 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17222 (arch_canonicalize): Support rv32g and rv64g and fix error
17223 handling.
17224
17225 2019-08-06 Martin Liska <mliska@suse.cz>
17226
17227 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17228 and DECL_IS_OPERATOR_DELETE_P.
17229
17230 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17231
17232 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17233 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17234 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17235 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17236 (gimplify_omp_for): Don't do C++ random access iterator clause
17237 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17238 don't predetermine the artificial iterator in case of C++ random
17239 access iterators as lastprivate, but private. For OMP_LOOP, force
17240 bind expr around simd body and force for_pre_body before the
17241 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17242 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17243 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17244 diff var of C++ random access iterators. Handle
17245 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17246 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17247 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17248 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17249 * omp-low.c (lower_rec_input_clauses): For
17250 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17251 variables instead of default constructing them.
17252 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17253 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17254 is_taskloop_ctx check from the assert to the guarding condition.
17255
17256 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17257
17258 * config/riscv/multilib-generator: (canonical_order): New.
17259 (arch_canonicalize): Dito.
17260 Apply arch_canonicalize for alts.
17261
17262 2019-08-05 Martin Sebor <msebor@redhat.com>
17263
17264 * doc/extend.texi (Common Variable Attributes): Document alias
17265 attribute.
17266
17267 2019-08-05 Marek Polacek <polacek@redhat.com>
17268
17269 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17270 * doc/invoke.texi: Document -Wcomma-subscript.
17271
17272 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17273
17274 * tree-core.h (tree_function_decl): Make function_code an
17275 independent field. Group the remaining bitfields into bytes
17276 and move decl_type so that it contines to be at a byte boundary.
17277 Leave 12 bits for future expansion.
17278
17279 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17280
17281 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17282 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17283 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17284 IFN_MASK_STORE.
17285
17286 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17287
17288 * gimple.h (gimple_move_vops): Declare.
17289 * gimple.c (gimple_move_vops): New function
17290 * gimple-fold.c (replace_call_with_call_and_fold)
17291 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17292 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17293 (gimple_fold_call): Use it.
17294 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17295 * tree-call-cdce.c (use_internal_fn): Likewise.
17296 * tree-if-conv.c (predicate_load_or_store): Likewise.
17297 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17298 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17299 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17300 (update_call_from_tree): Likewise.
17301 * tree-vect-stmts.c (vectorizable_load): Likewise.
17302 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17303
17304 2019-08-05 Martin Liska <mliska@suse.cz>
17305
17306 PR c++/91334
17307 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17308 with not arguments.
17309 (eliminate_unnecessary_stmts): Likewise.
17310
17311 2019-08-05 Richard Biener <rguenther@suse.de>
17312
17313 PR middle-end/91169
17314 * fold-const.c (get_array_ctor_element_at_index): Create
17315 offset_ints according to the sign of the index type and treat
17316 that as signed if it is obviously so.
17317
17318 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17319
17320 PR target/91341
17321 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17322 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17323 _mm256_storeu2_m128i): New function.
17324
17325 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17326
17327 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17328 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17329
17330 2019-08-05 Alan Modra <amodra@gmail.com>
17331
17332 PR target/91349
17333 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17334 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17335
17336 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17337
17338 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17339 bug that was fixed in Tcl 8.6.1.
17340
17341 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17342
17343 * config/rs6000/future.md: New file.
17344 * config/rs6000/rs6000.md: Include future.md.
17345 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17346
17347 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17348
17349 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17350 check to use targetm.slow_unaligned_access instead.
17351
17352 * function.c (assign_param_data_one): Remove unused data members.
17353
17354 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17355
17356 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17357 build_distinct_type_copy.
17358 (simd_clone_adjust_argument_types): Ditto.
17359 (simd_clone_adjust): Call build_distinct_type_copy here.
17360 (expand_simd_clones): Ditto.
17361
17362 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17363
17364 PR target/91201
17365 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17366
17367 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17368
17369 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17370 from 'const void *'.
17371 (sort_locs_in_loop_postorder_cmp): Likewise.
17372
17373 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17374
17375 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17376 (hot-bb-count-ws-permille): Likewise.
17377 (hot-bb-frequency-fraction): Likewise.
17378 (unlikely-bb-count-fraction): Likewise.
17379 * params.def (hot-bb-count-fraction): Rework description.
17380 (hot-bb-count-ws-permille): Likewise.
17381 (hot-bb-frequency-fraction): Likewise.
17382 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17383 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17384
17385 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17386
17387 PR target/91323
17388 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17389 Return false.
17390
17391 2019-08-02 Richard Biener <rguenther@suse.de>
17392
17393 * vec.h (vec::sort): Add gcc_qsort_r support.
17394 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17395 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17396 to gcc_qsort_r style callback.
17397 (sort_locs_in_loop_postorder_cmp): Likewise.
17398 (analyze_memory_references): Use gcc_sort_r interfaces.
17399 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17400
17401 2019-08-02 Martin Liska <mliska@suse.cz>
17402
17403 PR lto/91313
17404 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17405 to detect working job server.
17406 (driver::detect_jobserver): Test whether jobserver
17407 is active from GCC driver. That will prevent situation where
17408 GCC is invoked from a LD plugin and the linker already uses
17409 file descriptors suggested by make. That leads to a wrong
17410 detection.
17411 * gcc.h (driver): Add detect_jobserver.
17412 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17413 not scanning for --jobserver-auth prefix.
17414
17415 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17416
17417 PR tree-optimization/91201
17418 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17419 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17420 extraction.
17421
17422 2019-08-01 Martin Sebor <msebor@redhat.com>
17423
17424 PR c++/90947
17425 * tree.c (type_initializer_zero_p): Define.
17426 * tree.h (type_initializer_zero_p): New function.
17427
17428 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17429
17430 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17431
17432 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17433
17434 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17435 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17436 * predict.c (maybe_hot_count_p): Likewise.
17437 (maybe_hot_bb_p): Tweak comment.
17438 (maybe_hot_edge_p): Likewise.
17439 (probably_never_executed): Likewise. Minor tweak.
17440 (probably_never_executed_bb_p): Likewise.
17441 (unlikely_executed_edge_p): Likewise.
17442 (probably_never_executed_edge_p): Likewise.
17443 (optimize_function_for_size_p): Likewise.
17444 (optimize_function_for_speed_p): Likewise.
17445 (function_optimization_type): Likewise.
17446 (optimize_bb_for_size_p): Likewise.
17447 (optimize_bb_for_speed_p): Likewise.
17448 (bb_optimization_type): Likewise.
17449 (optimize_edge_for_size_p): Likewise.
17450 (optimize_edge_for_speed_p): Likewise.
17451 (optimize_insn_for_size_p): Likewise.
17452 (optimize_insn_for_speed_p): Likewise.
17453 (optimize_loop_for_size_p): Likewise.
17454 (optimize_loop_for_speed_p): Likewise.
17455 (optimize_loop_nest_for_speed_p): Likewise.
17456 (optimize_loop_nest_for_size_p): Likewise.
17457 (predictable_edge_p): Likewise.
17458 (handle_missing_profiles): Minor tweak.
17459
17460 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17461
17462 * config/rs6000/predicates.md (pcrel_external_address): Update
17463 comment.
17464
17465 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17466
17467 PR target/85693
17468 * config/i386/mmx.md (usadv8qi): New expander.
17469
17470 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17471
17472 PR c++/90590
17473 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17474 with reserved names that are in a system header.
17475
17476 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17477
17478 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17479 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17480 (*vec_extractv2si_0_zext): Ditto.
17481 (*vec_extractv2si_1): Add (rm,x) alternative.
17482 (*vec_extractv2si_1_zext): New insn pattern.
17483 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17484 insn constraint.
17485
17486 2019-08-01 Richard Biener <rguenther@suse.de>
17487
17488 * domwalk.c (bb_postorder): Remove static variable.
17489 (cmp_bb_postorder): Adjust.
17490 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17491 (dom_walker::walk): Adjust.
17492
17493 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17494
17495 * sort.cc (sort_r_ctx): New struct.
17496 (reorder23): Make templated on context type.
17497 (reorder45): Ditto.
17498 (cmp1): Ditto. Adjust signature.
17499 (netsort): Ditto.
17500 (mergesort): Ditto.
17501 [CHECKING_P] (cmp2to3): New static function. Use it...
17502 (gcc_qsort) [CHECKING_P]: ...here.
17503 (gcc_sort_r): New function.
17504 * system.h (sort_r_cmp_fn): New function typedef.
17505 (qsort_chk): Adjust signature.
17506 (gcc_sort_r): Declare.
17507 * vec.c (qsort_chk_error): Adjust.
17508 (qsort_chk): Adjust.
17509
17510 2019-08-01 Richard Biener <rguenther@suse.de>
17511
17512 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17513 (compute_antic): Localize it here.
17514
17515 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17516
17517 * common/config/riscv/riscv-common.c: Check -march string ends
17518 with null.
17519
17520 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17521
17522 * ipa-devirt.c (type_warning_cmp): Make static.
17523 (decl_warning_cmp): Ditto.
17524
17525 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17526
17527 PR target/91050
17528 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17529 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17530 use of deleted rs6000_dejagnu_cpu_index variable.
17531 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17532 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17533 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17534 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17535 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17536 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17537
17538 2019-07-31 Richard Biener <rguenther@suse.de>
17539
17540 PR tree-optimization/91280
17541 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17542 Decompose MEM_REF manually for offset handling.
17543
17544 2019-07-31 Richard Biener <rguenther@suse.de>
17545
17546 PR tree-optimization/91293
17547 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17548 of reduction stmts.
17549
17550 2019-07-31 Matt Thomas <matt@3am-software.com>
17551 Nick Hudson <nick@nthcliff.demon.co.uk>
17552 Matthew Green <mrg@eterna.com.au>
17553 Maya Rashish <coypu@sdf.org>
17554
17555 * config.gcc (hppa*-*-netbsd*): New target.
17556 * config/pa/pa-netbsd.h: New file.
17557 * config/pa/pa32-netbsd.h: New file.
17558
17559 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17560
17561 PR tree-optimization/91201
17562 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17563
17564 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17565
17566 * config/gcn/gcn-valu.md
17567 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17568 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17569 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17570 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17571 struct ilist. Add nops for delayeduse insns.
17572 * config/gcn/gcn.md (delayeduse): New attribute.
17573 (*movbi): Remove s_waitcnt from stores.
17574 (*mov<mode>_insn): Likewise.
17575 (*movti_insn): Likewise. Add delayeduse attribute.
17576 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17577 (atomic_store<mode>): Remove or adjust s_waitcnt.
17578
17579 2019-07-31 Richard Biener <rguenther@suse.de>
17580
17581 * vr-values.h (vr_values::swap_vr_value): New.
17582 (vr_values::free_value_range): likewise.
17583 * vr-values.c (vr_values::swap_vr_value): Implement.
17584 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17585 Do not return a range or take a var.
17586 (evrp_range_analyzer::stack): Change back to recording a non-const
17587 value_range *.
17588 * gimple-ssa-evrp-analyze.c
17589 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17590 value-range.
17591 (evrp_range_analyzer::pop_to_marker): Adjust.
17592 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17593 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17594 no longer needed value-range.
17595
17596 2019-07-31 Martin Liska <mliska@suse.cz>
17597
17598 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17599 have size and (or) alignment as 2nd and later arguments.
17600 Mark all of them as necessary.
17601
17602 2019-07-31 Richard Biener <rguenther@suse.de>
17603
17604 PR tree-optimization/91178
17605 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17606 Use tail-recursion.
17607
17608 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17609
17610 PR tree-optimization/91201
17611 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17612 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17613 TARGET_AVX512F.
17614 (reduc_plus_scal_<mode>): Improve formatting by introducing
17615 a temporary.
17616
17617 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17618
17619 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17620 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17621 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17622 (aarch64_init_tme_builtins): New.
17623 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17624 (aarch64_expand_builtin_tme): New.
17625 (aarch64_expand_builtin): Handle TME builtins.
17626 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17627 __ARM_FEATURE_TME when enabled.
17628 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17629 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17630 (TARGET_TME): New.
17631 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17632 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17633 UNSPECV_TCANCEL.
17634 (tstart, ttest, tcommit, tcancel): New instructions.
17635 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17636 (__tcancel, __ttest): New.
17637 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17638 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17639 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17640 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17641 * config/arm/types.md: Add new tme type attr.
17642 * doc/invoke.texi: Document "tme".
17643
17644 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17645
17646 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17647 warn_unused_result attribute.
17648 (cmse_check_address_range): Add warn_unused_result attribute.
17649
17650 2019-07-31 Richard Biener <rguenther@suse.de>
17651
17652 PR tree-optimization/91257
17653 * tree-vrp.c (union_ranges): Unify equality and less tests
17654 by using compare_values. Re-order cheap tests first.
17655
17656 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17657
17658 PR middle-end/91301
17659 * gimplify.c (gimplify_omp_for): If for class iterator on
17660 distribute parallel for there is no data sharing clause
17661 on inner_for_stmt, look for private clause on combined
17662 parallel too and if found, move it to inner_for_stmt.
17663
17664 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17665
17666 * lra-int.h (lra_operand_data): Remove early_clobber field.
17667 (lra_insn_reg): Likewise.
17668 * lra.c (debug_operand_data): Update accordingly.
17669 (setup_operand_alternative): Likewise.
17670 (new_insn_reg): Likewise. Remove early_clobber parameter.
17671 (collect_non_operand_hard_regs): Update call accordingly.
17672 Don't assign to lra_insn_reg::early_clobber.
17673 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17674 and update calls to new_insn_reg.
17675 (lra_update_insn_regno_info): Update calls accordingly.
17676 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17677 alternative number as a parameter and test whether the operand
17678 is earlyclobbered in that particular alternative.
17679 (process_alt_operands): Update call accordingly. Use per-alternative
17680 checks for earyclobber here too.
17681 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17682 against zero for IRA_UNKNOWN_ALT.
17683
17684 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17685
17686 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17687
17688 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17689
17690 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17691 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17692
17693 2019-07-30 Martin Liska <mliska@suse.cz>
17694
17695 PR ipa/89330
17696 * cgraph.c (cgraph_edge::make_direct): Use
17697 edge->indirect_unknown_callee as edge->resolve_speculation can
17698 deallocate edge which is this pointer.
17699
17700 2019-07-30 Richard Biener <rguenther@suse.de>
17701
17702 PR tree-optimization/91257
17703 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17704
17705 2019-07-30 Martin Liska <mliska@suse.cz>
17706
17707 * doc/invoke.texi: Document new behavior.
17708 * lto-wrapper.c (cpuset_popcount): New function
17709 is a copy of libgomp/config/linux/proc.c.
17710 (init_num_threads): Likewise.
17711 (run_gcc): Automatically detect core count for -flto.
17712 (jobserver_active_p): New function.
17713
17714 2019-07-30 Richard Biener <rguenther@suse.de>
17715
17716 PR tree-optimization/91257
17717 * bitmap.h (bitmap_ior_into_and_free): Declare.
17718 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17719 whether to add the unliked element to the freelist.
17720 (bitmap_list_insert_element_after): Add defaulted param for
17721 an already allocated element.
17722 (bitmap_ior_into_and_free): New function.
17723 * tree-ssa-structalias.c (condense_visit): Reduce the
17724 ponts-to and edge bitmaps of the SCC members in a
17725 logarithmic fashion rather than all to one.
17726
17727 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17728
17729 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17730 parameter. When nonnull, make sure that the addition or subtraction
17731 has the same condition.
17732 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17733 for CFN_COND_MUL too.
17734
17735 2019-07-30 Richard Biener <rguenther@suse.de>
17736
17737 PR tree-optimization/91291
17738 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17739 constant values.
17740
17741 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17742
17743 PR middle-end/91216
17744 * omp-low.c (global_nonaddressable_vars): New variable.
17745 (use_pointer_for_field): For global decls, if they are non-addressable,
17746 remember it in the global_nonaddressable_vars bitmap, if they are
17747 addressable and in the global_nonaddressable_vars bitmap, ignore their
17748 TREE_ADDRESSABLE bit.
17749 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17750 vars in global_nonaddressable_vars bitmap.
17751 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17752
17753 PR target/91150
17754 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17755 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17756 comparison to unsigned HOST_WIDE_INT before shifting it left.
17757
17758 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17759
17760 * config/i386/i386.md (movstrict<mode>): Use register_operand
17761 predicate for operand 0. Add expander condition. Assert that
17762 operand 0 is a SUBREG RTX.
17763 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17764 Update operand constraints and insn condition.
17765 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17766 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17767 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17768 Update operand 0 constraints.
17769 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17770
17771 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17772
17773 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17774 when -m{code,data}-region are used without -mlarge.
17775 * config/msp430/msp430.c (msp430_option_override): Error when a
17776 non-default code or data region is used without -mlarge.
17777 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17778 attributes when they are used without -mlarge.
17779
17780 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17781
17782 PR target/70320
17783 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17784
17785 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17786
17787 PR middle-end/91242
17788 * wide-int.h (generic_wide_int::sext_elt): New function.
17789 * inchash.h (hash::add_wide_int): Use it instead of elt.
17790
17791 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17792
17793 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17794 CODE_FOR_arm_##.
17795 * config/arm/arm.md (<crc_variant>): Rename to...
17796 (arm_<crc_variant>): ... This.
17797 (<cdp>): Rename to...
17798 (arm_<cdp>): ... This.
17799 (<ldc>): Rename to...
17800 (arm_<ldc>): ... This.
17801 (<stc>): Rename to...
17802 (arm_<stc>): ... This.
17803 (<mcr>): Rename to...
17804 (arm_<mcr>): ... This.
17805 (<mrc>): Rename to...
17806 (arm_<mrc>): ... This.
17807 (<mcrr>): Rename to...
17808 (arm_<mcrr>): ... This.
17809 (<mrrc>): Rename to...
17810 (arm_<mrrc>): ... This.
17811
17812 2019-07-29 Richard Biener <rguenther@suse.de>
17813
17814 PR tree-optimization/91257
17815 * tree-ssa-sccvn.h (struct vn_avail): New.
17816 (struct vn_ssa_aux): Add avail member.
17817 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17818 member, add m_avail_freelist one.
17819 (rpo_elim::~rpo_elim): Remove.
17820 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17821 data structure.
17822 (rpo_elim::eliminate_push_avail): Likewise.
17823 (do_unwind): Likewise.
17824 (do_rpo_vn): Likewise.
17825
17826 2019-07-29 Richard Biener <rguenther@suse.de>
17827
17828 PR tree-optimization/91257
17829 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17830 most cases, instead call compare_values which handles the
17831 symbolic ranges we handle specially.
17832 (compare_values_warnv): Do not call operand_less_p but open-code
17833 the effective fold calls. Avoid converting so much.
17834
17835 2019-07-29 Martin Liska <mliska@suse.cz>
17836
17837 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17838 remove LHS of operator new call. It's handled latter.
17839
17840 2019-07-29 Richard Biener <rguenther@suse.de>
17841
17842 PR tree-optimization/91267
17843 * vr-values.c (vr_values::update_value_range): Add early return
17844 for effectively VARYING lattice entry.
17845
17846 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17847
17848 PR debug/86638
17849 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17850 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17851 necessary if keep_all_vdefs_p is true.
17852 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17853 that keep_all_vdefs_p is false.
17854 (mark_all_reaching_defs_necessary): Likewise.
17855 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17856
17857 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17858
17859 * common.opt (Og): Change the initial value of flag_dse to 0.
17860 * opts.c (default_options_table): Move OPT_ftree_dse from
17861 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17862 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17863 entry before the OPT_ftree_sra entry.
17864 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17865 of flags disabled by Og.
17866
17867 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17868
17869 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17870 variables for -Og.
17871
17872 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17873
17874 * doc/sourcebuild.texi (check-function-bodies): Document.
17875
17876 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17877
17878 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17879 VEC_DUPLICATE of a fixed-length vector even if the result
17880 is variable-length. Likewise fold a duplicate of a
17881 variable-length vector if the variable-length vector is
17882 itself a duplicate of a fixed-length sequence.
17883 (test_vector_ops_duplicate): Test more cases.
17884
17885 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17886
17887 * vector-builder.h (vector_builder): Add a shape template parameter.
17888 (vector_builder::new_unary_operation): New function, generalizing
17889 the old tree_vector_builder function.
17890 (vector_builder::new_binary_operation): Likewise.
17891 (vector_builder::binary_encoded_nelts): Likewise.
17892 * int-vector-builder.h (int_vector_builder): Update template
17893 parameters to vector_builder.
17894 (int_vector_builder::shape_nelts): New function.
17895 * rtx-vector-builder.h (rtx_vector_builder): Update template
17896 parameters to vector_builder.
17897 (rtx_vector_builder::shape_nelts): New function.
17898 (rtx_vector_builder::nelts_of): Likewise.
17899 (rtx_vector_builder::npatterns_of): Likewise.
17900 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17901 * tree-vector-builder.h (tree_vector_builder): Update template
17902 parameters to vector_builder.
17903 (tree_vector_builder::shape_nelts): New function.
17904 (tree_vector_builder::nelts_of): Likewise.
17905 (tree_vector_builder::npatterns_of): Likewise.
17906 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17907 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17908 (tree_vector_builder::new_binary_operation): Delete.
17909 (tree_vector_builder::binary_encoded_nelts): Likewise.
17910 * simplify-rtx.c: Include rtx-vector-builder.h.
17911 (distributes_over_addition_p): New function.
17912 (simplify_const_unary_operation)
17913 (simplify_const_binary_operation): Generalize handling of vector
17914 constants to include variable-length vectors.
17915 (test_vector_ops_series): Add more tests.
17916
17917 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17918
17919 PR lto/91222
17920 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17921 than INDENTIFIER_POINTER.
17922
17923 2019-07-28 Martin Liska <mliska@suse.cz>
17924
17925 PR ipa/89330
17926 * cgraph.c (symbol_table::create_edge): Always allocate
17927 a cgraph_edge.
17928 (symbol_table::free_edge): Store summary_id to
17929 edge_released_summary_ids if != -1;
17930 * cgraph.h (NEXT_FREE_NODE): Remove.
17931 (SET_NEXT_FREE_NODE): Likewise.
17932 (NEXT_FREE_EDGE): Likewise.
17933 (symbol_table::release_symbol): Store summary_id to
17934 cgraph_released_summary_ids if != -1;
17935 (symbol_table::allocate_cgraph_symbol): Always allocate
17936 a cgraph_node.
17937
17938 2019-07-28 Alan Modra <amodra@gmail.com>
17939
17940 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17941 gen_sibcall.
17942
17943 2019-07-28 Alan Modra <amodra@gmail.com>
17944
17945 PR target/91135
17946 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17947 define.
17948 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17949 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17950 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17951
17952 2019-07-28 Alan Modra <amodra@gmail.com>
17953
17954 PR target/91050
17955 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17956 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17957 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17958 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17959 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17960 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17961 in asm_default spec.
17962 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17963 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17964
17965 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
17966
17967 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17968
17969 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17970
17971 PR target/89517
17972 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17973 * config/aarch64/aarch64-option-extensions.def: Add new comments
17974 and restore easier to read options.
17975
17976 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17977
17978 * convert.c (convert_to_real_1): Move part of conversion code...
17979 * match.pd: ...To here.
17980
17981 2019-07-26 Martin Jambor <mjambor@suse.cz>
17982
17983 PR ipa/89330
17984 * ipa-inline-transform.c (check_speculations_1): New function.
17985 (push_all_edges_in_set_to_vec): Likewise.
17986 (check_speculations): Use check_speculations_1, new parameter
17987 new_edges.
17988 (inline_call): Pass new_edges to check_speculations.
17989 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17990 NULL.
17991 (speculation_useful_p): Early return true if edge is inlined, remove
17992 later checks for inline_failed.
17993
17994 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
17995
17996 PR rtl-optimization/91223
17997 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17998 matching with INOUT operand.
17999
18000 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18001
18002 * stmt.c (expand_case): Try to narrow the index type if it's larger
18003 than a word. Tidy up.
18004
18005 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18006
18007 * cif-code.def (NEVER_CALL): New code.
18008 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18009 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18010
18011 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18012
18013 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18014 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18015
18016 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18017
18018 * ipa-devirt.c (add_type_duplicate): Fix return value.
18019
18020 2019-07-25 Richard Biener <rguenther@suse.de>
18021
18022 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18023 type parameter and use it instead of guessing expression
18024 type from the first operand.
18025 (extract_range_from_binary_expr): Pass expr_type down.
18026
18027 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18028
18029 * config/arm/arm.md (SATrev): Change to code attribute.
18030 (*satsi_<SAT:code>): Adjust for the above.
18031 (*satsi_<SAT:code>_shift): Likewise.
18032
18033 2019-07-25 Richard Biener <rguenther@suse.de>
18034
18035 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18036 Make value_range * temporary const.
18037 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18038 Likewise.
18039 (evrp_range_analyzer::record_ranges_from_): Likewise.
18040 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18041 deal with having recorded a const one.
18042 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18043 Return a const value_range *.
18044 (evrp_range_analyzer::pop_value_range): Likewise.
18045 (evrp_range_analyzer::stack): Record const value_range *s.
18046 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18047 Adjust.
18048 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18049 (format_integer): Likewise.
18050 (sprintf_dom_walker::handle_gimple_call): Likewise.
18051 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18052 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18053 (vrp_prop::get_value_range): Adjust.
18054 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18055 modifying the lattice in-place.
18056 (vrp_prop::visit_stmt): Likewise.
18057 * vr-values.c (vr_values::get_lattice_entry): New private method.
18058 (vr_values::get_value_range): Wrap it and return a const
18059 value_range *.
18060 (vr_values::set_def_to_varying): New.
18061 (vr_values::set_defs_to_varying): Use it.
18062 (vr_values::update_value_range): Likewise.
18063 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18064 (values::op_with_constant_singleton_va): Likewise.
18065 (vr_values::extract_range_for_var_from_co): Likewise.
18066 (vr_values::extract_range_from_ssa_name): Likewise.
18067 (vr_values::extract_range_from_cond_expr): Likewise.
18068 (vr_values::extract_range_basic): Likewise.
18069 (compare_ranges): Take const value_range *, adjust.
18070 (compare_range_with_value): Likewise.
18071 (vrp_valueize): Adjust.
18072 (vrp_valueize_1): Likewise.
18073 (vr_values::get_vr_for_comparison): Return a const value_range *.
18074 (vr_values::compare_name_with_value): Adjust.
18075 (vr_values::compare_names): Likewise.
18076 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18077 Likewise.
18078 (vr_values::vrp_evaluate_conditional): Likewise.
18079 (find_case_label_ranges): Take a const value_range *.
18080 (vr_values::vrp_visit_switch_stmt): Adjust.
18081 (vr_values::extract_range_from_phi_node): Likewise.
18082 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18083 (vr_values::simplify_abs_using_ranges): Likewise.
18084 (test_for_singularity): Take a const value_range *.
18085 (range_fits_type_p): Likewise.
18086 (vr_values::simplify_cond_using_ranges_1): Adjust.
18087 (vr_values::simplify_cond_using_ranges_2): Likewise.
18088 (vr_values::simplify_switch_using_ranges): Likewise.
18089 (vr_values::simplify_float_conversion_usi): Likewise.
18090 (vr_values::two_valued_val_range_p): Likewise.
18091 * vr-values.h (vr_values::get_value_range): Return a const
18092 value_range *.
18093 (vr_values::set_def_to_varying): New.
18094 (vr_values::get_lattice_entry): New private method.
18095 (vr_values::get_vr_for_comparison): Return a const value_range *.
18096
18097 2019-07-25 Martin Liska <mliska@suse.cz>
18098 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18099
18100 PR c++/23383
18101 * common.opt: Add -fallocation-dce
18102 * gimple.c (gimple_call_operator_delete_p): New.
18103 * gimple.h (gimple_call_operator_delete_p): Likewise.
18104 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18105 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18106 DECL_IS_OPERATOR_DELETE_P.
18107 (mark_all_reaching_defs_necessary_1): Likewise.
18108 (propagate_necessity): Likewise.
18109 (eliminate_unnecessary_stmts): Handle
18110 gimple_call_operator_delete_p.
18111 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18112 Add packing of OPERATOR_DELETE.
18113 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18114 Similarly here.
18115 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18116 (DECL_SET_IS_OPERATOR_DELETE): New.
18117 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18118
18119 2019-07-25 Martin Liska <mliska@suse.cz>
18120
18121 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18122 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18123 * coverage.c (coverage_begin_function): Likewise.
18124 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18125 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18126 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18127 (sem_item::hash_referenced_symbol_properties): Likewise.
18128 * lto-streamer-out.c (hash_tree): Likewise.
18129 * predict.c (expr_expected_value_1): Likewise.
18130 * tree-inline.c (expand_call_inline): Likewise.
18131 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18132 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18133 * tree-core.h (enum function_decl_type): New enum.
18134 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18135 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18136 (set_function_decl_type): Likewise.
18137 (DECL_IS_OPERATOR_NEW_P): New.
18138 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18139 (DECL_LAMBDA_FUNCTION): Likewise.
18140 (DECL_LAMBDA_FUNCTION_P): Likewise.
18141 (DECL_IS_OPERATOR_NEW): Remove.
18142 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18143
18144 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18145
18146 * ipa-profile.c (get_most_common_single_value): Use
18147 get_nth_most_common_value.
18148 * profile.c (sort_hist_value): New function.
18149 (compute_value_histograms): Call sort_hist_value to sort the
18150 values after loading from disk.
18151 * value-prof.c (get_most_common_single_value): Rename to ...
18152 get_nth_most_common_value. Add input params n, return
18153 the n_th value and count.
18154 (gimple_divmod_fixed_value_transform): Use
18155 get_nth_most_common_value.
18156 (gimple_ic_transform): Likewise.
18157 (gimple_stringops_transform): Likewise.
18158 * value-prof.h (get_most_common_single_value): Add input params
18159 n, default to 0.
18160
18161 2019-07-25 Richard Biener <rguenther@suse.de>
18162
18163 PR tree-optimization/91236
18164 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18165 size of CONSTRUCTOR write. Fix buffer size we pass to
18166 native_encode_expr.
18167
18168 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18169
18170 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18171 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18172 r273773.
18173
18174 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18175
18176 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18177 explicitly disabled with --disable-initfini-array.
18178
18179 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18180
18181 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18182 if-exists.
18183
18184 2019-07-24 Martin Sebor <msebor@redhat.com>
18185
18186 PR tree-optimization/91183
18187 PR tree-optimization/86688
18188 * builtins.c (compute_objsize): Handle MEM_REF.
18189 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18190 (get_min_string_length): Remove.
18191 (count_nonzero_bytes): New function.
18192 (handle_char_store): Rename...
18193 (handle_store): to this. Handle multibyte stores via integer types.
18194 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18195 function name.
18196
18197 2019-07-24 Martin Sebor <msebor@redhat.com>
18198
18199 PR driver/80545
18200 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18201 (diagnostic_report_diagnostic): Same.
18202 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18203 (diagnostic_context::lang_mask): New data member.
18204 * ipa-pure-const.c (suggest_attribute): Use
18205 lang_hooks.option_lang_mask ().
18206 * opts-common.c (option_enabled): Handle new argument.
18207 (get_option_state): Pass an additional argument.
18208 * opts.c (print_filtered_help): Print supported languages for
18209 unsupported options. Adjust printing of current state.
18210 * opts.h (option_enabled): Add argument.
18211 * toplev.c (print_switch_values): Use lang_mask.
18212 (general_init): Set global_dc->lang_mask.
18213
18214 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18215
18216 PR bootstrap/87030
18217 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18218
18219 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18220
18221 * cgraphunit.c (symbol_table::compile): Start and stop
18222 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18223 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18224
18225 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18226
18227 * gimplify.c (flag_instrument_functions_exclude_p): Include
18228 namespace/class information in the printable name.
18229 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18230 to tokens entered into the vector.
18231
18232 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18233
18234 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18235 (get_static_chain): Call it instead of build_simple_mem_ref.
18236 (get_frame_field): Likewise.
18237 (get_nonlocal_debug_decl): Likewise.
18238 (convert_nonlocal_reference_op): Likewise.
18239
18240 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18241
18242 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18243 declaration.
18244 (arc_compute_frame_size): Millicode is disabled when compiling
18245 ISR.
18246 (arc_return_address_register): Likewise.
18247 (arc_compute_function_type): Likewise.
18248 (arc_compute_frame_size): Likewise.
18249 (secondary_reload_info): Likewise.
18250 (arc_get_unalign): Likewise.
18251 (arc_can_use_return_insn): Declare.
18252 * config/arc/arc.c (AUX_LP_START): Define
18253 (AUX_LP_END): Likewise.
18254 (arc_frame_info): Update gmask member to 64-bit datum.
18255 (GMASK_LEN): Update.
18256 (arc_compute_function_type): Make it static, move it forward.
18257 (arc_must_save_register): Update, consider the extra regs.
18258 (arc_compute_millicode_save_restore_regs): Update to use the 64
18259 bit gmask.
18260 (arc_compute_frame_size): Likewise.
18261 (arc_enter_leave_p): Likewise.
18262 (arc_save_callee_saves): Likewise.
18263 (arc_restore_callee_saves): Likewise.
18264 (arc_save_callee_enter): Likewise.
18265 (arc_restore_callee_leave): Likewise.
18266 (arc_save_callee_milli): Likewise.
18267 (arc_restore_callee_milli): Likewise.
18268 (arc_expand_prologue): Add new interrupt handling.
18269 (arc_return_address_register): Make it static, move it forward.
18270 (arc_expand_epilogue): Add new interrupt handling.
18271 (arc_get_unalign): Delete.
18272 (arc_epilogue_uses): Make sure we do not remove the extra
18273 saved/restored registers when interrupt.
18274 (arc_can_use_return_insn): New function.
18275 (push_reg): Likewise.
18276 (pop_reg): Likewise.
18277 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18278 procedures.
18279 (arc_restore_callee_saves): Likewise, but restoring.
18280 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18281 (R33_REG): Likewise.
18282 (R34_REG): Likewise.
18283 (R35_REG): Likewise.
18284 (R36_REG): Likewise.
18285 (R37_REG): Likewise.
18286 (R38_REG): Likewise.
18287 (R39_REG): Likewise.
18288 (R45_REG): Likewise.
18289 (R46_REG): Likewise.
18290 (R47_REG): Likewise.
18291 (R48_REG): Likewise.
18292 (R49_REG): Likewise.
18293 (R50_REG): Likewise.
18294 (R51_REG): Likewise.
18295 (R52_REG): Likewise.
18296 (R53_REG): Likewise.
18297 (R54_REG): Likewise.
18298 (R55_REG): Likewise.
18299 (R56_REG): Likewise.
18300 (R58_REG): Likewise.
18301 (type): Add rtie attribute.
18302 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18303 (movsi_insn): Accept moves to lp_count.
18304 (rtie): Update pattern.
18305 (simple_return): Simplify it, don't use this pattern as a return
18306 from an interrupt.
18307 (arc600_rtie): New pattern.
18308 (p_return_i): Clean up.
18309 (return): Likewise.
18310 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18311 family CPUs.
18312 * config/arc/predicates.md (move_src_operand): Consider lp_count
18313 as a register.
18314
18315 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18316
18317 * config/s390/predicates.md (addv_const_operand): New predicate.
18318 * config/s390/s390-modes.def (CCO): New condition code mode.
18319 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18320 (s390_branch_condition_mask): Likewise.
18321 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18322 ("mulv<mode>4"): New expanders.
18323 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18324 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18325 pattern definitions.
18326
18327 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18328
18329 PR middle-end/91166
18330 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18331 (define_predicates): Add entry for uniform_vector_p.
18332 (vec_same_elem_p): New match pattern.
18333
18334 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18335
18336 PR bootstrap/87030
18337 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18338 * config/i386/darwin32-biarch.h .. to here.
18339 * config/i386/darwin64-biarch.h: Adjust comments.
18340 * config/rs6000/darwin32-biarch.h: Likewise.
18341 * config/rs6000/darwin64-biarch.h: Likewise.
18342 * config.gcc: Missed commit from r273746
18343 (*-*-darwin*): Don't include CPU t-darwin here.
18344 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18345 an error message if i686-darwin configuration is attempted for
18346 Darwin >= 18.
18347
18348 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18349
18350 PR bootstrap/87030
18351 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18352 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18353 an error message if i686-darwin configuration is attempted for
18354 Darwin >= 18.
18355 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18356 (powerpc-*-darwin*): Use biarch files where needed.
18357 (powerpc64-*-darwin*): Likewise.
18358 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18359 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18360 arch case.
18361 * config/i386/darwin32-biarch.h: New.
18362 * config/i386/darwin64.h: Rename.
18363 * config/i386/darwin64-biarch.h: To this.
18364 * config/i386/t-darwin: Rename.
18365 * config/i386/t-darwin32-biarch: To this.
18366 * config/i386/t-darwin64: Rename.
18367 * config/i386/t-darwin64-biarch: To this.
18368 * config/rs6000/darwin32-biarch.h: New.
18369 * config/rs6000/darwin64.h: Rename.
18370 * config/rs6000/darwin64-biarch.h: To this.
18371 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18372 arch case.
18373 * config/rs6000/t-darwin8: Rename.
18374 * config/rs6000/t-darwin32-biarch: To this.
18375 * config/rs6000/t-darwin64 Rename.
18376 * config/rs6000/t-darwin64-biarch: To this.
18377
18378 2019-07-23 Martin Sebor <msebor@redhat.com>
18379
18380 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18381
18382 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18383
18384 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18385 (rh): New alias for it.
18386
18387 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18388
18389 * gdbhooks.py: Pass replace=True to
18390 gdb.printing.register_pretty_printer.
18391
18392 2019-07-23 Richard Biener <rguenther@suse.de>
18393
18394 PR debug/91231
18395 * lto-streamer-in.c (input_function): Drop inline-entry markers
18396 that ended up with an unknown location block.
18397
18398 2019-07-23 Richard Biener <rguenther@suse.de>
18399
18400 PR tree-optimization/83518
18401 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18402 init from a constant even when partial defs are already recorded.
18403
18404 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18405
18406 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18407 * config/i386/znver1.md: Enable patterns for znver2 and add store
18408 variants which use extra AGU unit.
18409
18410 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18411
18412 * config/i386/i386-options.c (ix86_option_override_internal): Default
18413 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18414 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18415 for ZNVER2.
18416
18417 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18418
18419 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18420 (znver2_costs): Update 256 bit SSE costs and multiplication.
18421
18422 2019-07-23 Jan Beulich <jbeulich@suse.com>
18423
18424 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18425 Require only AVX512F.
18426 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18427 alternative expanding to vpternlog.
18428
18429 2019-07-23 Martin Liska <mliska@suse.cz>
18430
18431 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18432 to -flto in dwarf producer string.
18433
18434 2019-07-23 Richard Biener <rguenther@suse.de>
18435
18436 * tree-cfg.c (label_for_bb): Remove global var.
18437 (main_block_label): Take label_for_bb as argument.
18438 (cleanup_dead_labels_eh): Likewise, adjust.
18439 (cleanup_dead_labels): Adjust.
18440
18441 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18442
18443 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18444 Configurations): Add documentation for __builtin_mtfsf.
18445
18446 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18447
18448 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18449 * config/riscv/riscv.c (riscv_constant_alignment): Use
18450 riscv_align_data_type.
18451 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18452 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18453 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18454 * config/riscv/riscv.opt (malign-data): New.
18455 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18456
18457 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18458
18459 * cgraph.c (dump_graphviz): New function.
18460 * cgraph.h (dump_graphviz): New function.
18461 * symtab.c (dump_graphviz): New function.
18462
18463 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18464
18465 * config/aarch64/aarch64-simd.md
18466 (*aarch64_simd_sra<mode>): New.
18467 * config/aarch64/iterators.md
18468 (SHIFTRT): New iterator.
18469 (sra_op): New attribute.
18470
18471 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18472
18473 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18474 callee-saved regs R4->R10 in an interrupt function that calls another
18475 function.
18476
18477 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18478
18479 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18480 (_mm_blendv_epi8): New.
18481
18482 2019-07-22 Richard Biener <rguenther@suse.de>
18483
18484 PR tree-optimization/91221
18485 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18486 restrict partial-def handling of empty constructors and
18487 memset to refs with known offset.
18488
18489 2019-07-22 Jan Beulich <jbeulich@suse.com>
18490
18491 * config/i386/sse.md (ternlogsuffix): New.
18492 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18493 AVX512F is in use.
18494 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18495
18496 2019-07-22 Martin Liska <mliska@suse.cz>
18497
18498 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18499 comment.
18500 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18501
18502 2019-07-22 Martin Liska <mliska@suse.cz>
18503
18504 * lto-section-in.c (lto_get_section_data):
18505 Use new function get_compression.
18506 * lto-streamer-out.c (produce_lto_section): Use
18507 set_compression to encode compression algorithm.
18508 * lto-streamer.h (struct lto_section): Do not
18509 use bitfields in the format.
18510
18511 2019-07-22 Martin Liska <mliska@suse.cz>
18512
18513 PR driver/91172
18514 * opts-common.c (decode_cmdline_option): Decode
18515 argument of -Werror and check it for a wrong language.
18516 * opts-global.c (complain_wrong_lang): Remove such case.
18517
18518 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18519
18520 * config/arc/arc.c (prepare_move_operands): Always use an
18521 intermediate register when storing a TLS symbols.
18522
18523 2019-07-22 Stafford Horne <shorne@gmail.com>
18524
18525 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18526 force_reg.
18527
18528 2019-07-22 Stafford Horne <shorne@gmail.com>
18529
18530 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18531 and munordered-float validations.
18532 * config/or1k/constraints.md (d): New register constraint.
18533 * config/or1k/predicates.md (fp_comparison_operator): New.
18534 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18535 operands.
18536 (or1k_expand_compare): Normalize unordered comparisons.
18537 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18538 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18539 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18540 * config/or1k/or1k.md (type): Add fpu.
18541 (fpu): New instruction reservation.
18542 (F, f, fr, fi, FI, FOP, fop): New.
18543 (<fop><F:mode>3): New ALU instruction definition.
18544 (float<fi><F:mode>2): New conversion instruction definition.
18545 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18546 (fpcmpcc): New code iterator.
18547 (*sf_fp_insn): New instruction definition.
18548 (cstore<F:mode>4): New expand definition.
18549 (cbranch<F:mode>4): New expand definition.
18550 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18551 munordered-float): New options.
18552 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18553 munordered-float.
18554
18555 2019-07-22 Stafford Horne <shorne@gmail.com>
18556
18557 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18558 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18559 documenation to be more clear.
18560 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18561 more clear.
18562 * config/or1k/or1k.opt (mrori): New option.
18563 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18564 msfimm, mshftimm): Rewrite documentation to be more clear.
18565 * config/or1k/or1k.md (insn_support): Add ror and rori.
18566 (enabled): Add conditions for ror and rori.
18567 (rotrsi3): Replace condition for shftimm with ror and rori.
18568
18569 2019-07-22 Stafford Horne <shorne@gmail.com>
18570
18571 PR target/90363
18572 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18573 (extend<mode>si2): Update predicate.
18574 * config/or1k/predicates.md (volatile_mem_operand): New.
18575 (reg_or_mem_operand): New.
18576
18577 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18578
18579 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18580 * config/rs6000/rs6000-call.c: ... to here.
18581
18582 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18583
18584 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18585 memory.
18586
18587 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18588
18589 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18590
18591 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18592
18593 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18594
18595 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18596
18597 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18598 (any_memory_operand): New predicate.
18599 (reg_or_mem_operand): Use it.
18600
18601 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18602
18603 PR target/91204
18604 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18605
18606 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18607
18608 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18609 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18610
18611 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18612
18613 * tree.def (OMP_LOOP): New tree code.
18614 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18615 (enum omp_clause_bind_kind): New enum.
18616 (struct tree_omp_clause): Add subcode.bind_kind.
18617 * tree.h (OMP_LOOP_CHECK): Rename to ...
18618 (OMP_LOOPING_CHECK): ... this.
18619 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18620 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18621 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18622 (OMP_CLAUSE_BIND_KIND): Define.
18623 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18624 bind clause entries.
18625 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18626 * tree-pretty-print.c (dump_omp_clause): Likewise.
18627 (dump_generic_node): Handle OMP_LOOP.
18628 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18629 (in_omp_construct): New variable.
18630 (is_gimple_stmt): Handle OMP_LOOP.
18631 (gimplify_scan_omp_clauses): For lastprivate don't set
18632 check_non_private if code == OMP_LOOP. For reduction clause
18633 on OMP_LOOP combined with parallel or teams propagate as shared
18634 on the combined construct. Handle OMP_CLAUSE_BIND.
18635 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18636 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18637 for constructs from a loop construct to gimplify_scan_omp_clauses.
18638 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18639 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18640 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18641 to match the implicit ORT_TARGET construct around whole body.
18642 Temporarily clear in_omp_construct when processing body.
18643 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18644 etc. temporarily set in_omp_construct when processing body.
18645 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18646 * omp-low.c (struct omp_context): Add loop_p.
18647 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18648 in that the original var might be private.
18649 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18650 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18651 addition of loop construct.
18652 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18653
18654 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18655 lastprivate non-addressable iterator of a collapse(1) simd.
18656
18657 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18658
18659 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18660 as in rs6000.c.
18661
18662 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18663
18664 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18665 refer to default conditions. Warn for the 'y' spec which is ignored
18666 by current linkers.
18667
18668 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18669
18670 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18671 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18672 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18673 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18674 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18675 init_cumulative_args, rs6000_promote_function_mode,
18676 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18677 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18678 rs6000_function_arg_boundary, rs6000_parm_offset,
18679 rs6000_parm_start, rs6000_arg_size,
18680 rs6000_darwin64_record_arg_advance_flush,
18681 rs6000_darwin64_record_arg_advance_recurse,
18682 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18683 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18684 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18685 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18686 rs6000_finish_function_arg, rs6000_function_arg,
18687 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18688 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18689 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18690 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18691 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18692 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18693 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18694 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18695 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18696 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18697 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18698 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18699 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18700 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18701 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18702 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18703 get_element_number, altivec_expand_vec_set_builtin,
18704 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18705 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18706 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18707 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18708 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18709 rs6000_expand_builtin, rs6000_vector_type,
18710 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18711 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18712 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18713 to rs6000-call.c.
18714 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18715 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18716 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18717 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18718 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18719 init_cumulative_args, rs6000_promote_function_mode,
18720 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18721 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18722 rs6000_function_arg_boundary, rs6000_parm_offset,
18723 rs6000_parm_start, rs6000_arg_size,
18724 rs6000_darwin64_record_arg_advance_flush,
18725 rs6000_darwin64_record_arg_advance_recurse,
18726 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18727 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18728 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18729 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18730 rs6000_finish_function_arg, rs6000_function_arg,
18731 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18732 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18733 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18734 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18735 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18736 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18737 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18738 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18739 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18740 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18741 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18742 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18743 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18744 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18745 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18746 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18747 get_element_number, altivec_expand_vec_set_builtin,
18748 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18749 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18750 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18751 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18752 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18753 rs6000_expand_builtin, rs6000_vector_type,
18754 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18755 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18756 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18757 to here from rs6000.c.
18758 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18759 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18760 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18761 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18762 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18763 rs6000_return_in_memory, rs6000_return_in_msb,
18764 rs6000_pass_by_reference, setup_incoming_varargs,
18765 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18766 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18767 rs6000_function_arg_padding, rs6000_function_arg,
18768 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18769 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18770 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18771 rs6000_passes_long_double, rs6000_passes_vector,
18772 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18773 altivec_builtin_mask_for_load) Add declarations.
18774 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18775 * config/config.gcc: Add new source file rs6000-call.c to garbage
18776 collector and extra_objs.
18777
18778 2019-07-19 Jeff Law <law@redhat.com>
18779
18780 PR tree-optimization/86061
18781 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18782 strncpy. Drop some trivial dead code.
18783 (maybe_trim_memstar_call): Handle strncpy.
18784
18785 2019-07-19 Richard Biener <rguenther@suse.de>
18786
18787 PR tree-optimization/91211
18788 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18789 memset encoding size.
18790
18791 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18792
18793 PR target/91204
18794 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18795
18796 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18797
18798 PR ipa/91194
18799 * ipa-inline.c (recursive_inlining): Fix limits check.
18800
18801 2019-07-19 Richard Biener <rguenther@suse.de>
18802
18803 PR tree-optimization/91200
18804 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18805 no PHI nodes in middle-bb.
18806
18807 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18808
18809 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18810 to +sve-bitperm.
18811 * config/aarch64/aarch64-option-extensions.def: Likewise.
18812
18813 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18814
18815 PR middle-end/91190
18816 * function.c (insert_temp_slot_address): Store into the hash table
18817 a copy of address to avoid RTL sharing issues.
18818
18819 2019-07-19 Richard Biener <rguenther@suse.de>
18820
18821 PR tree-optimization/91207
18822 Revert
18823 2019-07-17 Richard Biener <rguenther@suse.de>
18824
18825 PR tree-optimization/91178
18826 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18827 loads with a gap larger than the vector size always use
18828 VMAT_STRIDED_SLP.
18829 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18830 avoid loading vectors that are only contained in the gap
18831 and thus are not needed.
18832
18833 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18834
18835 * config/i386/i386.md (*addqi_2_slp): Remove.
18836 (*<code>qi_2_slp): Ditto.
18837
18838 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18839
18840 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18841 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18842 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18843 Rename function from rs6000_prefixed_address.
18844 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18845 TARGET_HAS_TOC.
18846 (TARGET_TOC): Likewise.
18847 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18848 rs6000.h.
18849 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18850 TARGET_HAS_TOC.
18851 (TARGET_TOC): Likewise.
18852 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18853 rs6000.h.
18854 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18855 TARGET_HAS_TOC.
18856 (TARGET_TOC): Likewise.
18857 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18858 check to require -mcmodel=medium for pc-relative addressing.
18859 (create_TOC_reference): Add assertion for TARGET_TOC.
18860 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18861 TARGET_NO_TOC.
18862 (rs6000_emit_move): Likewise.
18863 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18864 to 'TOC_alias_set'.
18865 (get_TOC_alias_set): Likewise.
18866 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18867 TARGET_NO_TOC.
18868 (rs6000_can_eliminate): Likewise.
18869 (rs6000_prefixed_address_mode_p): Rename function from
18870 rs6000_prefixed_address.
18871 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18872 TARGET_HAS_TOC and not pc-relative.
18873 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18874 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18875 TARGET_HAS_TOC.
18876 (TARGET_TOC): Likewise.
18877 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18878 rs6000.h.
18879
18880 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18881
18882 PR target/91188
18883 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18884 for operand 0. Do not use (match_dup) to match operand 1 with
18885 operand 0. Add check in insn constraint that either input operand
18886 matches operand 0. Use SWI12 mode iterator to also handle
18887 HImode operands.
18888 (*and<mode>_1_slp): Ditto.
18889 (*<code>qi_1_slp): Ditto.
18890 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18891 Do not use (match_dup) to match operand 1 with operand 0. Add
18892 check in insn constraint that operand 1 matches operand 0.
18893 Use SWI12 mode iterator to also handle HImode operands.
18894 (*ashl<mode>3_1_slp): Ditto.
18895 (*<shift_insn><mode>3_1_slp): Ditto.
18896 (*<rotate_insn><mode>3_1_slp): Ditto.
18897
18898 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18899
18900 * config/arm/arm-builtins.c
18901 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18902 (arm_expand_unop_builtin): Likewise.
18903 * config/arm/crypto.md
18904 (crypto_sha1h): Convert from define_insn to define_expand.
18905 (crypto_<crypto_pattern>): Likewise.
18906 (crypto_sha1h_lb): New define_insn.
18907 (crypto_<crypto_pattern>_lb): Likewise.
18908
18909 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18910
18911 PR target/90317
18912 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18913 (vsha1cq_u32): Likewise.
18914 (vsha1pq_u32): Likewise.
18915 (vsha1mq_u32): Likewise.
18916 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18917 vec select.
18918 (crypto_sha1c): Correct vec select.
18919 (crypto_sha1m): Likewise.
18920 (crypto_sha1p): Likewise.
18921
18922 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18923
18924 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18925 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18926 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18927 (subdi_zesidi_zesidi): Likewise.
18928 (negdi2_compare, negdi2_insn): Likewise.
18929 (negdi_extensidi): Likewise.
18930 (negdi_zero_extendsidi): Likewise.
18931 (arm_cmpdi_insn): Likewise.
18932 (subsi3_carryin): Use arm_borrow_operation.
18933 (subsi3_carryin_const): Likewise.
18934 (subsi3_carryin_const0): Likewise.
18935 (subsi3_carryin_compare): Likewise.
18936 (subsi3_carryin_compare_const): Likewise.
18937 (subsi3_carryin_compare_const0): Likewise.
18938 (subsi3_carryin_shift): Likewise.
18939 (rsbsi3_carryin_shift): Likewise.
18940 (negsi2_carryin_compare): Likewise.
18941
18942 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18943
18944 PR tree-optimization/91137
18945 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18946 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18947 Init, use and fini the above new field.
18948 (determine_base_object_1): New function.
18949 (determine_base_object): Reimplement using walk_tree.
18950
18951 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18952
18953 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18954 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18955 CLEANUP_FORCE_FAST_DCE is set.
18956 * ifcvt.c (rest_of_handle_if_conversion): Pass
18957 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18958 if-conversion succeeded.
18959
18960 2019-07-18 Richard Biener <rguenther@suse.de>
18961
18962 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18963 branches to make code less indented.
18964
18965 2019-07-17 Alexandre Oliva <oliva@adacore.com>
18966
18967 PR middle-end/81824
18968 * attribs.c (decls_mismatched_attributes): Simplify the logic
18969 that avoids duplicates and false positives.
18970
18971 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
18972
18973 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18974 data into data section when generating PIC code.
18975 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18976 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18977 generating code for SOM targets earlier than HP-UX 11. Otherwise,
18978 return 2 for SOM and 0 for other targets.
18979
18980 2019-07-17 Jeff Law <law@redhat.com>
18981
18982 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18983 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
18984 avoid unexpected switch statement fallthru.
18985
18986 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18987
18988 * config/i386/i386.md (*add<dwi>3_doubleword):
18989 Remove redundant constraints.
18990 (*add<mode>_1): Ditto.
18991 (*addhi_1): Ditto.
18992 (*addqi_1): Ditto.
18993 (*addqi_1_slp): Ditto.
18994 (*add<mode>_2): Ditto.
18995 (*addv<mode>4): Ditto.
18996 (*sub<dwi>3_doubleword): Ditto.
18997 (*sub<mode>_1): Ditto.
18998 (*subqi_1_slp): Ditto.
18999 (*sub<mode>_2): Ditto.
19000 (*subv<mode>4): Ditto.
19001 (*sub<mode>_3): Ditto.
19002 (@add<mode>3_carry): Ditto.
19003 (@sub<mode>3_carry): Ditto.
19004 (*add<mode>3_cc_overflow_1): Ditto.
19005 (*add<mode>3_zext_cc_overflow_2): Ditto.
19006 (*anddi_1): Ditto.
19007 (*and<mode>_1): Ditto.
19008 (*andqi_1): Ditto.
19009 (*andqi_1_slp): Ditto.
19010 (*anddi_2): Ditto.
19011 (*andqi_2_maybe_si): Ditto.
19012 (*and<mode>_2): Ditto.
19013 (*andqi_2_slp): Ditto.
19014 (*<code><mode>_1): Ditto.
19015 (*<code>qi_1): Ditto.
19016 (*<code>qi_1_slp): Ditto.
19017 (*<code><mode>_2): Ditto.
19018 (*<code>qi_2_slp): Ditto.
19019
19020 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19021
19022 * alias.c (record_component_aliases): Do not simplify pointed-to
19023 types of ODR types.
19024
19025 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19026
19027 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19028 partial reg stall on alternative 2.
19029
19030 2019-07-17 Richard Biener <rguenther@suse.de>
19031
19032 PR tree-optimization/91178
19033 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19034 lower SSA names to avoid quadratic behavior in the common case.
19035 * tree-data-ref.c (split_constant_offset): Add limit argument
19036 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19037 (split_constant_offset_1): Add limit argument and use it to
19038 limit SSA def walking. Optimize the common plus/minus case.
19039
19040 2019-07-17 Richard Biener <rguenther@suse.de>
19041
19042 PR tree-optimization/91178
19043 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19044 loads with a gap larger than the vector size always use
19045 VMAT_STRIDED_SLP.
19046 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19047 avoid loading vectors that are only contained in the gap
19048 and thus are not needed.
19049
19050 2019-07-17 Richard Biener <rguenther@suse.de>
19051
19052 PR tree-optimization/91180
19053 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19054 computation for memset partial defs.
19055
19056 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19057
19058 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19059 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19060 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19061 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19062 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19063 * omp-grid.c (grid_process_grid_body,
19064 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19065 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19066 == GF_OMP_FOR_KIND_SIMD.
19067 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19068 check_omp_nesting_restrictions, scan_omp_1_stmt,
19069 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19070 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19071 omp_find_scan): Likewise.
19072 * omp-expand.c (expand_omp_for): Likewise.
19073 * omp-general.c (omp_extract_for_data): Likewise.
19074
19075 PR tree-optimization/91157
19076 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19077 a vector boolean with scalar mode.
19078 (expand_vector_condition): Handle first operand being a vector boolean
19079 with scalar mode.
19080 (expand_vector_operations_1): For comparisons, don't bail out early
19081 if the return type is vector boolean with scalar mode, but comparison
19082 operand type is not.
19083
19084 2019-07-17 Richard Biener <rguenther@suse.de>
19085
19086 PR tree-optimization/91181
19087 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19088 IFN_LOADs as calls.
19089
19090 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19091
19092 * config/i386/i386.md (*testdi_1): Match CCZmode for
19093 constants that might have the SImode sign bit set.
19094 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19095 Use correct constraints for pentium pairing.
19096 (*test<mode>_1): Ditto.
19097
19098 2019-07-16 Jeff Law <law@redhat.com>
19099
19100 PR rtl-optimization/91173
19101 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19102 SSA_NAME with a constant value, fold its value into the offset
19103 and clear the base before calling gen_addr_rtx.
19104
19105 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19106
19107 PR rtl-optimization/91164
19108 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19109 invalidate dominance info.
19110
19111 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19112
19113 * read-md.h (md_reader::record_potential_iterator_use): Add a
19114 file_location parameter.
19115 * read-rtl.c (attribute_use::loc): New field.
19116 (map_attr_string): Take a file_location parameter. Report cases
19117 in which attributes map to multiple distinct values.
19118 (apply_attribute_uses): Update call accordingly.
19119 (md_reader::handle_overloaded_name): Likewise.
19120 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19121 nonnull strings.
19122 (record_attribute_use): Take a file_location parameter.
19123 Initialize attribute_use::loc.
19124 (md_reader::record_potential_iterator_use): Take a file_location
19125 parameter. Update call to record_attribute_use.
19126 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19127 (rtx_reader::read_rtx_code): Likewise.
19128 (rtx_reader::read_rtx_operand): Likewise. Record a location
19129 for implicitly-expanded empty strings.
19130
19131 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19132
19133 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19134 Use file_location instead of separate fields.
19135 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19136 separate filename and line number.
19137 * read-md.c (ptr_loc): As above.
19138 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19139 (md_reader::fprint_md_ptr_loc): Likewise.
19140 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19141 instead of a separate filename and line number.
19142 (md_reader::read_string): Update call accordingly.
19143
19144 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19145
19146 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19147 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19148 leaving the choice between SFDF and P implicit.
19149 (*mov<mode>_update2): Likewise.
19150 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19151 rather than leaving the choice betweem IBM128 and GPR implicit.
19152 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19153 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19154 QHSI implicit.
19155 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19156 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19157 * config/rs6000/vsx.md
19158 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19159 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19160 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19161 and VSX_EXTRACT_I implicit.
19162
19163 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19164
19165 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19166 Explicitly use <MOVEP1:MODE> for the mode attribute.
19167
19168 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19169
19170 PR bootstrap/91176
19171 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19172
19173 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19174
19175 PR target/91050
19176 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19177 .machine directive.
19178
19179 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19180
19181 * config/i386/i386.md (@test<mode>_ccno_1):
19182 Rename from test<mode>_ccno_1.
19183 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19184 (*testqi_1_maybe_si): Remove modrm attribute.
19185 (*test<mode>_1): Ditto.
19186 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19187 gen_test_ccno_1 and gen_extend_insn.
19188
19189 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19190
19191 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19192 to 0.
19193
19194 2019-07-15 Richard Biener <rguenther@suse.de>
19195
19196 PR middle-end/91162
19197 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19198 node make sure to replace all uses with something valid.
19199
19200 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19201
19202 PR tree-optimization/88497
19203 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19204 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19205 function undistribute_bitref_for_vector.
19206 (undistribute_bitref_for_vector): New function.
19207 (cleanup_vinfo_map): Likewise.
19208 (sort_by_mach_mode): Likewise.
19209
19210 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19211
19212 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19213 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19214 and testdi_ccno_1 using SWI48 mode attribute.
19215 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19216 x86_64_szext_general_operand.
19217 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19218 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19219 instead of genera_operand mode attribute.
19220
19221 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19222
19223 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19224 fopen and fclose to their respective types.
19225 (DotFn.invoke): Ditto.
19226
19227 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19228
19229 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19230 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19231 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19232 (array_index_predicate): Remove.
19233 (analyze_function_body): Account cost for variable ofsetted array
19234 indexing.
19235 (estimate_node_size_and_time): Do not compute array index hint.
19236 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19237 (inline_read_section): Do not read array index hint.
19238 (ipa_fn_summary_write): Do not write array index hint.
19239 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19240 * ipa-cp.c (hint_time_bonus): Remove.
19241 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19242 (ipa_fnsummary): Remove array_index.
19243 * ipa-inline.c (want_inline_small_function_p): Do not use
19244 array_index.
19245 (edge_badness): Likewise.
19246 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19247
19248 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19249
19250 PR target/91148
19251 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19252 superfluous "builtin function" phrasing.
19253
19254 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19255
19256 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19257 Break out from ...
19258 (aliasing_component_refs_walk): Break out from ...
19259 (aliasing_component_refs_p): ... here.
19260
19261 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19262
19263 PR target/91148
19264 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19265 "builtin function" phrasing.
19266
19267 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19268
19269 PR target/90723
19270 * recog.h (temporary_volatile_ok): New class.
19271 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19272 volatile_ok temporarily to true using temporary_volatile_ok.
19273 * expr.c (emit_block_move_via_cpymem): Likewise.
19274 * optabs.c (maybe_legitimize_operand): Likewise.
19275
19276 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19277
19278 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19279 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19280 uses inside of order(concurrent) constructs.
19281 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19282 OMP_CLAUSE_ORDER is seen.
19283 * omp-low.c (struct omp_context): Add order_concurrent member.
19284 (scan_sharing_clauses): Set ctx->order_concurrent if
19285 OMP_CLAUSE_ORDER is seen.
19286 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19287 of simd order(concurrent). Diagnose constructs not allowed inside of
19288 for order(concurrent).
19289 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19290 complaining about static double setjmp (double); or class static
19291 methods or non-global namespace setjmps.
19292 (omp_runtime_api_call): New function.
19293 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19294 order(concurrent) loops.
19295
19296 2019-07-12 Martin Sebor <msebor@redhat.com>
19297
19298 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19299 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19300 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19301 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19302
19303 2019-07-12 Jan Hubicka <jh@suse.cz>
19304
19305 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19306 (indirect_refs_may_alias_p): ... here.
19307 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19308 mem refs in the access paths.
19309
19310 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19311
19312 PR tree-optimization/89430
19313 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19314 store elimination for local variable without address escape.
19315
19316 2019-07-12 Jeff Law <law@redhat.com>
19317
19318 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19319 for the ".far" section.
19320
19321 2019-07-12 Richard Biener <rguenther@suse.de>
19322
19323 PR tree-optimization/91145
19324 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19325 chain check.
19326
19327 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19328
19329 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19330 rather than this_state as the lowering context for the ELSE
19331 seq in a GIMPLE_EH_ELSE.
19332
19333 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19334
19335 * vector-builder.h (vector_builder::elt): Allow already-supplied
19336 elements to be read back before building is complete.
19337
19338 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19339
19340 PR rtl-optimization/91136
19341 * df-core.c (ACCESSING REFS): Fix typos in comment.
19342 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19343 the beginning of the block to the initial set of live registers.
19344
19345 2019-07-12 Richard Biener <rguenther@suse.de>
19346
19347 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19348 * fold-const.c (get_array_ctor_element_at_index): Add
19349 ctor_idx output parameter informing the caller where in
19350 the constructor the element was (not) found. Add early exit
19351 for when the ctor is sorted.
19352 * gimple-fold.c (fold_array_ctor_reference): Support constant
19353 folding across multiple array elements.
19354
19355 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19356
19357 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19358 doesn't have location, set the current location to the function's end.
19359
19360 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19361
19362 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19363 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19364 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19365 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19366 * config/aarch64/aarch64-simd.md
19367 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19368 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19369 * config/aarch64/aarch64-sve.md
19370 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19371 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19372
19373 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19374
19375 * doc/md.texi: Document that @ patterns can have different
19376 numbers of operands.
19377 * genemit.c (handle_overloaded_gen): Handle this case.
19378 * genopinit.c (handle_overloaded_gen): Likewise.
19379 * gensupport.c (replace_operands_with_dups): Iterate over
19380 the new rtx's format rather than the old one's.
19381
19382 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19383
19384 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19385 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19386 order clause entries.
19387 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19388 * tree-pretty-print.c (dump_omp_clause): Likewise.
19389 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19390 Likewise.
19391 * omp-low.c (scan_sharing_clauses): Likewise.
19392 * tree-nested.c (convert_nonlocal_omp_clauses,
19393 convert_local_omp_clauses): Likewise.
19394
19395 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19396
19397 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19398 fallthrough target of current basic block isn't the placed
19399 right next.
19400
19401 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19402
19403 PR target/90980
19404 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19405 (_mm512_storeu_epi64): Likewise.
19406 (_mm512_loadu_epi32): Likewise.
19407 (_mm512_storeu_epi32): Likewise.
19408 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19409 (_mm_storeu_epi64): Likewise.
19410 (_mm256_storeu_epi32): Likewise.
19411 (_mm_storeu_epi32): Likewise.
19412
19413 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19414
19415 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19416
19417 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19418
19419 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19420 Handle Modula-2.
19421
19422 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19423
19424 PR target/91124
19425 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19426 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19427 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19428 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19429 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19430 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19431 define_insns.
19432 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19433 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19434 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19435 define_insns.
19436 (sse2_cvttpd2dq<mask_name>): Change into ...
19437 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19438 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19439 (*sse2_cvtpd2dq<mask_name>): Change into ...
19440 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19441 Add "C" constraint to const0_operand.
19442 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19443 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19444 changes.
19445
19446 PR target/91124
19447 * config/i386/i386-builtin-types.def
19448 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19449 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19450 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19451 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19452 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19453 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19454 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19455 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19456 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19457 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19458 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19459 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19460 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19461 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19462 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19463 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19464 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19465 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19466 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19467 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19468 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19469 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19470 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19471 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19472 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19473 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19474 __builtin_ia32_vpdpbusd_v4si_maskz,
19475 __builtin_ia32_vpdpbusds_v16si_mask,
19476 __builtin_ia32_vpdpbusds_v16si_maskz,
19477 __builtin_ia32_vpdpbusds_v8si_mask,
19478 __builtin_ia32_vpdpbusds_v8si_maskz,
19479 __builtin_ia32_vpdpbusds_v4si_mask,
19480 __builtin_ia32_vpdpbusds_v4si_maskz,
19481 __builtin_ia32_vpdpwssd_v16si_mask,
19482 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19483 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19484 __builtin_ia32_vpdpwssd_v4si_maskz,
19485 __builtin_ia32_vpdpwssds_v16si_mask,
19486 __builtin_ia32_vpdpwssds_v16si_maskz,
19487 __builtin_ia32_vpdpwssds_v8si_mask,
19488 __builtin_ia32_vpdpwssds_v8si_maskz,
19489 __builtin_ia32_vpdpwssds_v4si_mask,
19490 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19491 suffixed types rather than *_INT.
19492 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19493 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19494 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19495 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19496 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19497 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19498
19499 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19500
19501 * tree-vrp.c (intersect_ranges): If we know the intersection is
19502 empty, there is no need to conservatively add anything else to
19503 the set.
19504
19505 2019-07-11 Richard Biener <rguenther@suse.de>
19506
19507 PR middle-end/91131
19508 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19509 when the object is volatile and we have not cleared it even though
19510 there are no nonzero elements.
19511
19512 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19513
19514 * config/rs6000/predicates.md (cint34_operand): Update
19515 SIGNED_34BIT_OFFSET_P call.
19516 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19517 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19518 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19519 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19520 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19521 argument.
19522 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19523 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19524 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19525 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19526 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19527
19528 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19529
19530 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19531 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19532 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19533 (DEF_MIN_OSX_VERSION): New.
19534
19535 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19536
19537 * fold-const.c (fold_relational_const): Fix folding of
19538 vector-to-scalar NE_EXPRs.
19539 (test_vector_folding): Add more tests.
19540
19541 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19542
19543 PR target/91060
19544 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19545 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19546 (vec_setv2di_internal): Reexpress as...
19547 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19548 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19549 rather than gen_neon_vset_lane<mode>.
19550
19551 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19552
19553 PR target/91102
19554 * lra-constraints.c (process_alt_operands): Don't match user
19555 defined regs only if they are early clobbers.
19556
19557 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19558
19559 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19560
19561 2019-07-10 Richard Biener <rguenther@suse.de>
19562
19563 PR tree-optimization/91126
19564 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19565 native encoding offset for BYTES_BIG_ENDIAN.
19566 (vn_reference_lookup_3): Likewise.
19567
19568 2019-07-10 Richard Biener <rguenther@suse.de>
19569
19570 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19571 LHS whenever possible.
19572
19573 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19574
19575 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19576 from ...; work also on duplicated types.
19577 (nonoverlapping_component_refs_since_match): ... here
19578 (ncr_type_uid): Break out from ...
19579 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19580 available.
19581 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19582 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19583
19584 2019-07-09 Martin Sebor <msebor@redhat.com>
19585
19586 PR tree-optimization/90989
19587 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19588 optimization to just single character stores.
19589
19590 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19591
19592 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19593 Swap operands only once.
19594
19595 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19596
19597 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19598 for both call instructions.
19599
19600 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19601
19602 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19603 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19604
19605 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19606
19607 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19608 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19609 function from rs6000-logue.c back to rs6000.c.
19610 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19611
19612 2019-07-09 Martin Sebor <msebor@redhat.com>
19613
19614 PR c++/61339
19615 * auto-profile.c: Change class-key of PODs to struct and others
19616 to class.
19617 * basic-block.h: Same.
19618 * bitmap.c (bitmap_alloc): Same.
19619 * bitmap.h: Same.
19620 * builtins.c (expand_builtin_prefetch): Same.
19621 (expand_builtin_interclass_mathfn): Same.
19622 (expand_builtin_strlen): Same.
19623 (expand_builtin_mempcpy_args): Same.
19624 (expand_cmpstr): Same.
19625 (expand_builtin___clear_cache): Same.
19626 (expand_ifn_atomic_bit_test_and): Same.
19627 (expand_builtin_thread_pointer): Same.
19628 (expand_builtin_set_thread_pointer): Same.
19629 * caller-save.c (setup_save_areas): Same.
19630 (replace_reg_with_saved_mem): Same.
19631 (insert_restore): Same.
19632 (insert_save): Same.
19633 (add_used_regs): Same.
19634 * cfg.c (get_bb_copy): Same.
19635 (set_loop_copy): Same.
19636 * cfg.h: Same.
19637 * cfganal.h: Same.
19638 * cfgexpand.c (alloc_stack_frame_space): Same.
19639 (add_stack_var): Same.
19640 (add_stack_var_conflict): Same.
19641 (add_scope_conflicts_1): Same.
19642 (update_alias_info_with_stack_vars): Same.
19643 (expand_used_vars): Same.
19644 * cfghooks.c (redirect_edge_and_branch_force): Same.
19645 (delete_basic_block): Same.
19646 (split_edge): Same.
19647 (make_forwarder_block): Same.
19648 (force_nonfallthru): Same.
19649 (duplicate_block): Same.
19650 (lv_flush_pending_stmts): Same.
19651 * cfghooks.h: Same.
19652 * cfgloop.c (flow_loops_cfg_dump): Same.
19653 (flow_loop_nested_p): Same.
19654 (superloop_at_depth): Same.
19655 (get_loop_latch_edges): Same.
19656 (flow_loop_dump): Same.
19657 (flow_loops_dump): Same.
19658 (flow_loops_free): Same.
19659 (flow_loop_nodes_find): Same.
19660 (establish_preds): Same.
19661 (flow_loop_tree_node_add): Same.
19662 (flow_loop_tree_node_remove): Same.
19663 (flow_loops_find): Same.
19664 (find_subloop_latch_edge_by_profile): Same.
19665 (find_subloop_latch_edge_by_ivs): Same.
19666 (mfb_redirect_edges_in_set): Same.
19667 (form_subloop): Same.
19668 (merge_latch_edges): Same.
19669 (disambiguate_multiple_latches): Same.
19670 (disambiguate_loops_with_multiple_latches): Same.
19671 (flow_bb_inside_loop_p): Same.
19672 (glb_enum_p): Same.
19673 (get_loop_body_with_size): Same.
19674 (get_loop_body): Same.
19675 (fill_sons_in_loop): Same.
19676 (get_loop_body_in_dom_order): Same.
19677 (get_loop_body_in_custom_order): Same.
19678 (release_recorded_exits): Same.
19679 (get_loop_exit_edges): Same.
19680 (num_loop_branches): Same.
19681 (remove_bb_from_loops): Same.
19682 (find_common_loop): Same.
19683 (delete_loop): Same.
19684 (cancel_loop): Same.
19685 (verify_loop_structure): Same.
19686 (loop_preheader_edge): Same.
19687 (loop_exit_edge_p): Same.
19688 (single_exit): Same.
19689 (loop_exits_to_bb_p): Same.
19690 (loop_exits_from_bb_p): Same.
19691 (get_loop_location): Same.
19692 (record_niter_bound): Same.
19693 (get_estimated_loop_iterations_int): Same.
19694 (max_stmt_executions_int): Same.
19695 (likely_max_stmt_executions_int): Same.
19696 (get_estimated_loop_iterations): Same.
19697 (get_max_loop_iterations): Same.
19698 (get_max_loop_iterations_int): Same.
19699 (get_likely_max_loop_iterations): Same.
19700 * cfgloop.h (simple_loop_desc): Same.
19701 (get_loop): Same.
19702 (loop_depth): Same.
19703 (loop_outer): Same.
19704 (loop_iterator::next): Same.
19705 (loop_outermost): Same.
19706 * cfgloopanal.c (mark_irreducible_loops): Same.
19707 (num_loop_insns): Same.
19708 (average_num_loop_insns): Same.
19709 (expected_loop_iterations_unbounded): Same.
19710 (expected_loop_iterations): Same.
19711 (mark_loop_exit_edges): Same.
19712 (single_likely_exit): Same.
19713 * cfgloopmanip.c (fix_bb_placement): Same.
19714 (fix_bb_placements): Same.
19715 (remove_path): Same.
19716 (place_new_loop): Same.
19717 (add_loop): Same.
19718 (scale_loop_frequencies): Same.
19719 (scale_loop_profile): Same.
19720 (create_empty_if_region_on_edge): Same.
19721 (create_empty_loop_on_edge): Same.
19722 (loopify): Same.
19723 (unloop): Same.
19724 (fix_loop_placements): Same.
19725 (copy_loop_info): Same.
19726 (duplicate_loop): Same.
19727 (duplicate_subloops): Same.
19728 (loop_redirect_edge): Same.
19729 (can_duplicate_loop_p): Same.
19730 (duplicate_loop_to_header_edge): Same.
19731 (mfb_keep_just): Same.
19732 (has_preds_from_loop): Same.
19733 (create_preheader): Same.
19734 (create_preheaders): Same.
19735 (lv_adjust_loop_entry_edge): Same.
19736 (loop_version): Same.
19737 * cfgloopmanip.h: Same.
19738 * cgraph.h: Same.
19739 * cgraphbuild.c: Same.
19740 * combine.c (make_extraction): Same.
19741 * config/i386/i386-features.c: Same.
19742 * config/i386/i386-features.h: Same.
19743 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19744 (ix86_emit_outlined_ms2sysv_restore): Same.
19745 (ix86_noce_conversion_profitable_p): Same.
19746 (ix86_init_cost): Same.
19747 (ix86_simd_clone_usable): Same.
19748 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19749 Wstruct-not-pod.
19750 * coretypes.h: Same.
19751 * data-streamer-in.c (string_for_index): Change class-key of PODs
19752 to struct and others to class.
19753 (streamer_read_indexed_string): Same.
19754 (streamer_read_string): Same.
19755 (bp_unpack_indexed_string): Same.
19756 (bp_unpack_string): Same.
19757 (streamer_read_uhwi): Same.
19758 (streamer_read_hwi): Same.
19759 (streamer_read_gcov_count): Same.
19760 (streamer_read_wide_int): Same.
19761 * data-streamer.h (streamer_write_bitpack): Same.
19762 (bp_unpack_value): Same.
19763 (streamer_write_char_stream): Same.
19764 (streamer_write_hwi_in_range): Same.
19765 (streamer_write_record_start): Same.
19766 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19767 (add_cross_iteration_register_deps): Same.
19768 (build_intra_loop_deps): Same.
19769 * df-core.c (df_analyze): Same.
19770 (loop_post_order_compute): Same.
19771 (loop_inverted_post_order_compute): Same.
19772 * df-problems.c (df_rd_alloc): Same.
19773 (df_rd_simulate_one_insn): Same.
19774 (df_rd_local_compute): Same.
19775 (df_rd_init_solution): Same.
19776 (df_rd_confluence_n): Same.
19777 (df_rd_transfer_function): Same.
19778 (df_rd_free): Same.
19779 (df_rd_dump_defs_set): Same.
19780 (df_rd_top_dump): Same.
19781 (df_lr_alloc): Same.
19782 (df_lr_reset): Same.
19783 (df_lr_local_compute): Same.
19784 (df_lr_init): Same.
19785 (df_lr_confluence_n): Same.
19786 (df_lr_free): Same.
19787 (df_lr_top_dump): Same.
19788 (df_lr_verify_transfer_functions): Same.
19789 (df_live_alloc): Same.
19790 (df_live_reset): Same.
19791 (df_live_init): Same.
19792 (df_live_confluence_n): Same.
19793 (df_live_finalize): Same.
19794 (df_live_free): Same.
19795 (df_live_top_dump): Same.
19796 (df_live_verify_transfer_functions): Same.
19797 (df_mir_alloc): Same.
19798 (df_mir_reset): Same.
19799 (df_mir_init): Same.
19800 (df_mir_confluence_n): Same.
19801 (df_mir_free): Same.
19802 (df_mir_top_dump): Same.
19803 (df_word_lr_alloc): Same.
19804 (df_word_lr_reset): Same.
19805 (df_word_lr_init): Same.
19806 (df_word_lr_confluence_n): Same.
19807 (df_word_lr_free): Same.
19808 (df_word_lr_top_dump): Same.
19809 (df_md_alloc): Same.
19810 (df_md_simulate_one_insn): Same.
19811 (df_md_reset): Same.
19812 (df_md_init): Same.
19813 (df_md_free): Same.
19814 (df_md_top_dump): Same.
19815 * df-scan.c (df_insn_delete): Same.
19816 (df_insn_rescan): Same.
19817 (df_notes_rescan): Same.
19818 (df_sort_and_compress_mws): Same.
19819 (df_install_mws): Same.
19820 (df_refs_add_to_chains): Same.
19821 (df_ref_create_structure): Same.
19822 (df_ref_record): Same.
19823 (df_def_record_1): Same.
19824 (df_find_hard_reg_defs): Same.
19825 (df_uses_record): Same.
19826 (df_get_conditional_uses): Same.
19827 (df_get_call_refs): Same.
19828 (df_recompute_luids): Same.
19829 (df_get_entry_block_def_set): Same.
19830 (df_entry_block_defs_collect): Same.
19831 (df_get_exit_block_use_set): Same.
19832 (df_exit_block_uses_collect): Same.
19833 (df_mws_verify): Same.
19834 (df_bb_verify): Same.
19835 * df.h (df_scan_get_bb_info): Same.
19836 * doc/tm.texi: Same.
19837 * dse.c (record_store): Same.
19838 * dumpfile.h: Same.
19839 * emit-rtl.c (const_fixed_hasher::equal): Same.
19840 (set_mem_attributes_minus_bitpos): Same.
19841 (change_address): Same.
19842 (adjust_address_1): Same.
19843 (offset_address): Same.
19844 * emit-rtl.h: Same.
19845 * except.c (dw2_build_landing_pads): Same.
19846 (sjlj_emit_dispatch_table): Same.
19847 * explow.c (allocate_dynamic_stack_space): Same.
19848 (emit_stack_probe): Same.
19849 (probe_stack_range): Same.
19850 * expmed.c (store_bit_field_using_insv): Same.
19851 (store_bit_field_1): Same.
19852 (store_integral_bit_field): Same.
19853 (extract_bit_field_using_extv): Same.
19854 (extract_bit_field_1): Same.
19855 (emit_cstore): Same.
19856 * expr.c (emit_block_move_via_cpymem): Same.
19857 (expand_cmpstrn_or_cmpmem): Same.
19858 (set_storage_via_setmem): Same.
19859 (emit_single_push_insn_1): Same.
19860 (expand_assignment): Same.
19861 (store_constructor): Same.
19862 (expand_expr_real_2): Same.
19863 (expand_expr_real_1): Same.
19864 (try_casesi): Same.
19865 * flags.h: Same.
19866 * function.c (try_fit_stack_local): Same.
19867 (assign_stack_local_1): Same.
19868 (assign_stack_local): Same.
19869 (cut_slot_from_list): Same.
19870 (insert_slot_to_list): Same.
19871 (max_slot_level): Same.
19872 (move_slot_to_level): Same.
19873 (temp_address_hasher::equal): Same.
19874 (remove_unused_temp_slot_addresses): Same.
19875 (assign_temp): Same.
19876 (combine_temp_slots): Same.
19877 (update_temp_slot_address): Same.
19878 (preserve_temp_slots): Same.
19879 * function.h: Same.
19880 * fwprop.c: Same.
19881 * gcc-rich-location.h: Same.
19882 * gcov.c: Same.
19883 * genattrtab.c (check_attr_test): Same.
19884 (check_attr_value): Same.
19885 (convert_set_attr_alternative): Same.
19886 (convert_set_attr): Same.
19887 (check_defs): Same.
19888 (copy_boolean): Same.
19889 (get_attr_value): Same.
19890 (expand_delays): Same.
19891 (make_length_attrs): Same.
19892 (min_fn): Same.
19893 (make_alternative_compare): Same.
19894 (simplify_test_exp): Same.
19895 (tests_attr_p): Same.
19896 (get_attr_order): Same.
19897 (clear_struct_flag): Same.
19898 (gen_attr): Same.
19899 (compares_alternatives_p): Same.
19900 (gen_insn): Same.
19901 (gen_delay): Same.
19902 (find_attrs_to_cache): Same.
19903 (write_test_expr): Same.
19904 (walk_attr_value): Same.
19905 (write_attr_get): Same.
19906 (eliminate_known_true): Same.
19907 (write_insn_cases): Same.
19908 (write_attr_case): Same.
19909 (write_attr_valueq): Same.
19910 (write_attr_value): Same.
19911 (write_dummy_eligible_delay): Same.
19912 (next_comma_elt): Same.
19913 (find_attr): Same.
19914 (make_internal_attr): Same.
19915 (copy_rtx_unchanging): Same.
19916 (gen_insn_reserv): Same.
19917 (check_tune_attr): Same.
19918 (make_automaton_attrs): Same.
19919 (handle_arg): Same.
19920 * genextract.c (gen_insn): Same.
19921 (VEC_char_to_string): Same.
19922 * genmatch.c (print_operand): Same.
19923 (lower): Same.
19924 (parser::parse_operation): Same.
19925 (parser::parse_capture): Same.
19926 (parser::parse_c_expr): Same.
19927 (parser::parse_simplify): Same.
19928 (main): Same.
19929 * genoutput.c (output_operand_data): Same.
19930 (output_get_insn_name): Same.
19931 (compare_operands): Same.
19932 (place_operands): Same.
19933 (process_template): Same.
19934 (validate_insn_alternatives): Same.
19935 (validate_insn_operands): Same.
19936 (gen_expand): Same.
19937 (note_constraint): Same.
19938 * genpreds.c (write_one_predicate_function): Same.
19939 (add_constraint): Same.
19940 (process_define_register_constraint): Same.
19941 (write_lookup_constraint_1): Same.
19942 (write_lookup_constraint_array): Same.
19943 (write_insn_constraint_len): Same.
19944 (write_reg_class_for_constraint_1): Same.
19945 (write_constraint_satisfied_p_array): Same.
19946 * genrecog.c (optimize_subroutine_group): Same.
19947 * gensupport.c (process_define_predicate): Same.
19948 (queue_pattern): Same.
19949 (remove_from_queue): Same.
19950 (process_rtx): Same.
19951 (is_predicable): Same.
19952 (change_subst_attribute): Same.
19953 (subst_pattern_match): Same.
19954 (alter_constraints): Same.
19955 (alter_attrs_for_insn): Same.
19956 (shift_output_template): Same.
19957 (alter_output_for_subst_insn): Same.
19958 (process_one_cond_exec): Same.
19959 (subst_dup): Same.
19960 (process_define_cond_exec): Same.
19961 (mnemonic_htab_callback): Same.
19962 (gen_mnemonic_attr): Same.
19963 (read_md_rtx): Same.
19964 * ggc-page.c: Same.
19965 * gimple-loop-interchange.cc (dump_reduction): Same.
19966 (dump_induction): Same.
19967 (loop_cand::~loop_cand): Same.
19968 (free_data_refs_with_aux): Same.
19969 (tree_loop_interchange::interchange_loops): Same.
19970 (tree_loop_interchange::map_inductions_to_loop): Same.
19971 (tree_loop_interchange::move_code_to_inner_loop): Same.
19972 (compute_access_stride): Same.
19973 (compute_access_strides): Same.
19974 (proper_loop_form_for_interchange): Same.
19975 (tree_loop_interchange_compute_ddrs): Same.
19976 (prune_datarefs_not_in_loop): Same.
19977 (prepare_data_references): Same.
19978 (pass_linterchange::execute): Same.
19979 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19980 (unroll_jam_possible_p): Same.
19981 (fuse_loops): Same.
19982 (adjust_unroll_factor): Same.
19983 (tree_loop_unroll_and_jam): Same.
19984 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19985 (loop_versioning::expensive_stmt_p): Same.
19986 (loop_versioning::version_for_unity): Same.
19987 (loop_versioning::dump_inner_likelihood): Same.
19988 (loop_versioning::find_per_loop_multiplication): Same.
19989 (loop_versioning::analyze_term_using_scevs): Same.
19990 (loop_versioning::record_address_fragment): Same.
19991 (loop_versioning::analyze_expr): Same.
19992 (loop_versioning::analyze_blocks): Same.
19993 (loop_versioning::prune_conditions): Same.
19994 (loop_versioning::merge_loop_info): Same.
19995 (loop_versioning::add_loop_to_queue): Same.
19996 (loop_versioning::decide_whether_loop_is_versionable): Same.
19997 (loop_versioning::make_versioning_decisions): Same.
19998 (loop_versioning::implement_versioning_decisions): Same.
19999 * gimple-ssa-evrp-analyze.c
20000 (evrp_range_analyzer::record_ranges_from_phis): Same.
20001 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20002 (count_multiple_uses): Same.
20003 (split_group): Same.
20004 (imm_store_chain_info::output_merged_store): Same.
20005 (pass_store_merging::process_store): Same.
20006 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20007 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20008 (is_max): Same.
20009 (alloca_call_type): Same.
20010 (pass_walloca::execute): Same.
20011 * gimple-streamer-in.c (input_phi): Same.
20012 (input_gimple_stmt): Same.
20013 * gimple-streamer.h: Same.
20014 * godump.c (go_force_record_alignment): Same.
20015 (go_format_type): Same.
20016 (go_output_type): Same.
20017 (go_output_fndecl): Same.
20018 (go_output_typedef): Same.
20019 (keyword_hash_init): Same.
20020 (find_dummy_types): Same.
20021 * graph.c (draw_cfg_nodes_no_loops): Same.
20022 (draw_cfg_nodes_for_loop): Same.
20023 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20024 * hsa-brig.c: Same.
20025 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20026 * hsa-dump.c (dump_hsa_cfun): Same.
20027 * hsa-gen.c (gen_function_def_parameters): Same.
20028 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20029 * input.c (dump_line_table_statistics): Same.
20030 (test_lexer): Same.
20031 * input.h: Same.
20032 * internal-fn.c (get_multi_vector_move): Same.
20033 (expand_load_lanes_optab_fn): Same.
20034 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20035 (expand_GOMP_SIMT_EXIT): Same.
20036 (expand_GOMP_SIMT_LAST_LANE): Same.
20037 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20038 (expand_GOMP_SIMT_VOTE_ANY): Same.
20039 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20040 (expand_GOMP_SIMT_XCHG_IDX): Same.
20041 (expand_addsub_overflow): Same.
20042 (expand_neg_overflow): Same.
20043 (expand_mul_overflow): Same.
20044 (expand_call_mem_ref): Same.
20045 (expand_mask_load_optab_fn): Same.
20046 (expand_scatter_store_optab_fn): Same.
20047 (expand_gather_load_optab_fn): Same.
20048 * ipa-cp.c (ipa_get_parm_lattices): Same.
20049 (print_all_lattices): Same.
20050 (ignore_edge_p): Same.
20051 (build_toporder_info): Same.
20052 (free_toporder_info): Same.
20053 (push_node_to_stack): Same.
20054 (ipcp_lattice<valtype>::set_contains_variable): Same.
20055 (set_agg_lats_to_bottom): Same.
20056 (ipcp_bits_lattice::meet_with): Same.
20057 (set_single_call_flag): Same.
20058 (initialize_node_lattices): Same.
20059 (ipa_get_jf_ancestor_result): Same.
20060 (ipcp_verify_propagated_values): Same.
20061 (propagate_scalar_across_jump_function): Same.
20062 (propagate_context_across_jump_function): Same.
20063 (propagate_bits_across_jump_function): Same.
20064 (ipa_vr_operation_and_type_effects): Same.
20065 (propagate_vr_across_jump_function): Same.
20066 (set_check_aggs_by_ref): Same.
20067 (set_chain_of_aglats_contains_variable): Same.
20068 (merge_aggregate_lattices): Same.
20069 (agg_pass_through_permissible_p): Same.
20070 (propagate_aggs_across_jump_function): Same.
20071 (call_passes_through_thunk_p): Same.
20072 (propagate_constants_across_call): Same.
20073 (devirtualization_time_bonus): Same.
20074 (good_cloning_opportunity_p): Same.
20075 (context_independent_aggregate_values): Same.
20076 (gather_context_independent_values): Same.
20077 (perform_estimation_of_a_value): Same.
20078 (estimate_local_effects): Same.
20079 (value_topo_info<valtype>::add_val): Same.
20080 (add_all_node_vals_to_toposort): Same.
20081 (value_topo_info<valtype>::propagate_effects): Same.
20082 (ipcp_propagate_stage): Same.
20083 (ipcp_discover_new_direct_edges): Same.
20084 (same_node_or_its_all_contexts_clone_p): Same.
20085 (cgraph_edge_brings_value_p): Same.
20086 (gather_edges_for_value): Same.
20087 (create_specialized_node): Same.
20088 (find_more_scalar_values_for_callers_subset): Same.
20089 (find_more_contexts_for_caller_subset): Same.
20090 (copy_plats_to_inter): Same.
20091 (intersect_aggregates_with_edge): Same.
20092 (find_aggregate_values_for_callers_subset): Same.
20093 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20094 (decide_about_value): Same.
20095 (decide_whether_version_node): Same.
20096 (spread_undeadness): Same.
20097 (identify_dead_nodes): Same.
20098 (ipcp_store_vr_results): Same.
20099 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20100 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20101 (redirect_to_unreachable): Same.
20102 (edge_set_predicate): Same.
20103 (evaluate_conditions_for_known_args): Same.
20104 (evaluate_properties_for_edge): Same.
20105 (ipa_fn_summary_t::duplicate): Same.
20106 (ipa_call_summary_t::duplicate): Same.
20107 (dump_ipa_call_summary): Same.
20108 (ipa_dump_fn_summary): Same.
20109 (eliminated_by_inlining_prob): Same.
20110 (set_cond_stmt_execution_predicate): Same.
20111 (set_switch_stmt_execution_predicate): Same.
20112 (compute_bb_predicates): Same.
20113 (will_be_nonconstant_expr_predicate): Same.
20114 (phi_result_unknown_predicate): Same.
20115 (analyze_function_body): Same.
20116 (compute_fn_summary): Same.
20117 (estimate_edge_devirt_benefit): Same.
20118 (estimate_edge_size_and_time): Same.
20119 (estimate_calls_size_and_time): Same.
20120 (estimate_node_size_and_time): Same.
20121 (remap_edge_change_prob): Same.
20122 (remap_edge_summaries): Same.
20123 (ipa_merge_fn_summary_after_inlining): Same.
20124 (ipa_fn_summary_generate): Same.
20125 (inline_read_section): Same.
20126 (ipa_fn_summary_read): Same.
20127 (ipa_fn_summary_write): Same.
20128 * ipa-fnsummary.h: Same.
20129 * ipa-hsa.c (ipa_hsa_read_section): Same.
20130 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20131 * ipa-icf.c (sem_function::param_used_p): Same.
20132 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20133 * ipa-inline.c (edge_badness): Same.
20134 (inline_small_functions): Same.
20135 * ipa-polymorphic-call.c
20136 (ipa_polymorphic_call_context::stream_out): Same.
20137 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20138 (predicate::remap_after_inlining): Same.
20139 (predicate::stream_out): Same.
20140 * ipa-predicate.h: Same.
20141 * ipa-profile.c (ipa_profile_read_summary): Same.
20142 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20143 (count_formal_params): Same.
20144 (ipa_dump_param): Same.
20145 (ipa_alloc_node_params): Same.
20146 (ipa_print_node_jump_functions_for_edge): Same.
20147 (ipa_print_node_jump_functions): Same.
20148 (ipa_load_from_parm_agg): Same.
20149 (get_ancestor_addr_info): Same.
20150 (ipa_compute_jump_functions_for_edge): Same.
20151 (ipa_analyze_virtual_call_uses): Same.
20152 (ipa_analyze_stmt_uses): Same.
20153 (ipa_analyze_params_uses_in_bb): Same.
20154 (update_jump_functions_after_inlining): Same.
20155 (try_decrement_rdesc_refcount): Same.
20156 (ipa_impossible_devirt_target): Same.
20157 (update_indirect_edges_after_inlining): Same.
20158 (combine_controlled_uses_counters): Same.
20159 (ipa_edge_args_sum_t::duplicate): Same.
20160 (ipa_write_jump_function): Same.
20161 (ipa_write_indirect_edge_info): Same.
20162 (ipa_write_node_info): Same.
20163 (ipa_read_edge_info): Same.
20164 (ipa_prop_read_section): Same.
20165 (read_replacements_section): Same.
20166 * ipa-prop.h (ipa_get_param_count): Same.
20167 (ipa_get_param): Same.
20168 (ipa_get_type): Same.
20169 (ipa_get_param_move_cost): Same.
20170 (ipa_set_param_used): Same.
20171 (ipa_get_controlled_uses): Same.
20172 (ipa_set_controlled_uses): Same.
20173 (ipa_get_cs_argument_count): Same.
20174 * ipa-pure-const.c (analyze_function): Same.
20175 (pure_const_read_summary): Same.
20176 * ipa-ref.h: Same.
20177 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20178 * ipa-split.c (test_nonssa_use): Same.
20179 (dump_split_point): Same.
20180 (dominated_by_forbidden): Same.
20181 (split_part_set_ssa_name_p): Same.
20182 (find_split_points): Same.
20183 * ira-build.c (finish_loop_tree_nodes): Same.
20184 (low_pressure_loop_node_p): Same.
20185 * ira-color.c (ira_reuse_stack_slot): Same.
20186 * ira-int.h: Same.
20187 * ira.c (setup_reg_equiv): Same.
20188 (print_insn_chain): Same.
20189 (ira): Same.
20190 * loop-doloop.c (doloop_condition_get): Same.
20191 (add_test): Same.
20192 (record_reg_sets): Same.
20193 (doloop_optimize): Same.
20194 * loop-init.c (loop_optimizer_init): Same.
20195 (fix_loop_structure): Same.
20196 * loop-invariant.c (merge_identical_invariants): Same.
20197 (compute_always_reached): Same.
20198 (find_exits): Same.
20199 (may_assign_reg_p): Same.
20200 (find_invariants_bb): Same.
20201 (find_invariants_body): Same.
20202 (replace_uses): Same.
20203 (can_move_invariant_reg): Same.
20204 (free_inv_motion_data): Same.
20205 (move_single_loop_invariants): Same.
20206 (change_pressure): Same.
20207 (mark_ref_regs): Same.
20208 (calculate_loop_reg_pressure): Same.
20209 * loop-iv.c (biv_entry_hasher::equal): Same.
20210 (iv_extend_to_rtx_code): Same.
20211 (check_iv_ref_table_size): Same.
20212 (clear_iv_info): Same.
20213 (latch_dominating_def): Same.
20214 (iv_get_reaching_def): Same.
20215 (iv_constant): Same.
20216 (iv_subreg): Same.
20217 (iv_extend): Same.
20218 (iv_neg): Same.
20219 (iv_add): Same.
20220 (iv_mult): Same.
20221 (get_biv_step): Same.
20222 (record_iv): Same.
20223 (analyzed_for_bivness_p): Same.
20224 (record_biv): Same.
20225 (iv_analyze_biv): Same.
20226 (iv_analyze_expr): Same.
20227 (iv_analyze_def): Same.
20228 (iv_analyze_op): Same.
20229 (iv_analyze): Same.
20230 (iv_analyze_result): Same.
20231 (biv_p): Same.
20232 (eliminate_implied_conditions): Same.
20233 (simplify_using_initial_values): Same.
20234 (shorten_into_mode): Same.
20235 (canonicalize_iv_subregs): Same.
20236 (determine_max_iter): Same.
20237 (check_simple_exit): Same.
20238 (find_simple_exit): Same.
20239 (get_simple_loop_desc): Same.
20240 * loop-unroll.c (report_unroll): Same.
20241 (decide_unrolling): Same.
20242 (unroll_loops): Same.
20243 (loop_exit_at_end_p): Same.
20244 (decide_unroll_constant_iterations): Same.
20245 (unroll_loop_constant_iterations): Same.
20246 (compare_and_jump_seq): Same.
20247 (unroll_loop_runtime_iterations): Same.
20248 (decide_unroll_stupid): Same.
20249 (unroll_loop_stupid): Same.
20250 (referenced_in_one_insn_in_loop_p): Same.
20251 (reset_debug_uses_in_loop): Same.
20252 (analyze_iv_to_split_insn): Same.
20253 * lra-eliminations.c (lra_debug_elim_table): Same.
20254 (setup_can_eliminate): Same.
20255 (form_sum): Same.
20256 (lra_get_elimination_hard_regno): Same.
20257 (lra_eliminate_regs_1): Same.
20258 (eliminate_regs_in_insn): Same.
20259 (update_reg_eliminate): Same.
20260 (init_elimination): Same.
20261 (lra_eliminate): Same.
20262 * lra-int.h: Same.
20263 * lra-lives.c (initiate_live_solver): Same.
20264 * lra-remat.c (create_remat_bb_data): Same.
20265 * lra-spills.c (lra_spill): Same.
20266 * lra.c (lra_set_insn_recog_data): Same.
20267 (lra_set_used_insn_alternative_by_uid): Same.
20268 (init_reg_info): Same.
20269 (expand_reg_info): Same.
20270 * lto-cgraph.c (output_symtab): Same.
20271 (read_identifier): Same.
20272 (get_alias_symbol): Same.
20273 (input_node): Same.
20274 (input_varpool_node): Same.
20275 (input_ref): Same.
20276 (input_edge): Same.
20277 (input_cgraph_1): Same.
20278 (input_refs): Same.
20279 (input_symtab): Same.
20280 (input_offload_tables): Same.
20281 (output_cgraph_opt_summary): Same.
20282 (input_edge_opt_summary): Same.
20283 (input_cgraph_opt_section): Same.
20284 * lto-section-in.c (lto_free_raw_section_data): Same.
20285 (lto_create_simple_input_block): Same.
20286 (lto_free_function_in_decl_state_for_node): Same.
20287 * lto-streamer-in.c (lto_tag_check_set): Same.
20288 (lto_location_cache::revert_location_cache): Same.
20289 (lto_location_cache::input_location): Same.
20290 (lto_input_location): Same.
20291 (stream_input_location_now): Same.
20292 (lto_input_tree_ref): Same.
20293 (lto_input_eh_catch_list): Same.
20294 (input_eh_region): Same.
20295 (lto_init_eh): Same.
20296 (make_new_block): Same.
20297 (input_cfg): Same.
20298 (fixup_call_stmt_edges): Same.
20299 (input_struct_function_base): Same.
20300 (input_function): Same.
20301 (lto_read_body_or_constructor): Same.
20302 (lto_read_tree_1): Same.
20303 (lto_read_tree): Same.
20304 (lto_input_scc): Same.
20305 (lto_input_tree_1): Same.
20306 (lto_input_toplevel_asms): Same.
20307 (lto_input_mode_table): Same.
20308 (lto_reader_init): Same.
20309 (lto_data_in_create): Same.
20310 * lto-streamer-out.c (output_cfg): Same.
20311 * lto-streamer.h: Same.
20312 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20313 (generate_prolog_epilog): Same.
20314 (mark_loop_unsched): Same.
20315 (dump_insn_location): Same.
20316 (loop_canon_p): Same.
20317 (sms_schedule): Same.
20318 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20319 (expand_omp_for_generic): Same.
20320 (expand_omp_for_static_nochunk): Same.
20321 (expand_omp_for_static_chunk): Same.
20322 (expand_omp_simd): Same.
20323 (expand_omp_taskloop_for_inner): Same.
20324 (expand_oacc_for): Same.
20325 (expand_omp_atomic_pipeline): Same.
20326 (mark_loops_in_oacc_kernels_region): Same.
20327 * omp-offload.c (oacc_xform_loop): Same.
20328 * omp-simd-clone.c (simd_clone_adjust): Same.
20329 * optabs-query.c (get_traditional_extraction_insn): Same.
20330 * optabs.c (expand_vector_broadcast): Same.
20331 (expand_binop_directly): Same.
20332 (expand_twoval_unop): Same.
20333 (expand_twoval_binop): Same.
20334 (expand_unop_direct): Same.
20335 (emit_indirect_jump): Same.
20336 (emit_conditional_move): Same.
20337 (emit_conditional_neg_or_complement): Same.
20338 (emit_conditional_add): Same.
20339 (vector_compare_rtx): Same.
20340 (expand_vec_perm_1): Same.
20341 (expand_vec_perm_const): Same.
20342 (expand_vec_cond_expr): Same.
20343 (expand_vec_series_expr): Same.
20344 (maybe_emit_atomic_exchange): Same.
20345 (maybe_emit_sync_lock_test_and_set): Same.
20346 (expand_atomic_compare_and_swap): Same.
20347 (expand_atomic_load): Same.
20348 (expand_atomic_store): Same.
20349 (maybe_emit_op): Same.
20350 (valid_multiword_target_p): Same.
20351 (create_integer_operand): Same.
20352 (maybe_legitimize_operand_same_code): Same.
20353 (maybe_legitimize_operand): Same.
20354 (create_convert_operand_from_type): Same.
20355 (can_reuse_operands_p): Same.
20356 (maybe_legitimize_operands): Same.
20357 (maybe_gen_insn): Same.
20358 (maybe_expand_insn): Same.
20359 (maybe_expand_jump_insn): Same.
20360 (expand_insn): Same.
20361 * optabs.h (create_expand_operand): Same.
20362 (create_fixed_operand): Same.
20363 (create_output_operand): Same.
20364 (create_input_operand): Same.
20365 (create_convert_operand_to): Same.
20366 (create_convert_operand_from): Same.
20367 * optinfo.h: Same.
20368 * poly-int.h: Same.
20369 * predict.c (optimize_insn_for_speed_p): Same.
20370 (optimize_loop_for_size_p): Same.
20371 (optimize_loop_for_speed_p): Same.
20372 (optimize_loop_nest_for_speed_p): Same.
20373 (get_base_value): Same.
20374 (predicted_by_loop_heuristics_p): Same.
20375 (predict_extra_loop_exits): Same.
20376 (predict_loops): Same.
20377 (predict_paths_for_bb): Same.
20378 (predict_paths_leading_to): Same.
20379 (propagate_freq): Same.
20380 (pass_profile::execute): Same.
20381 * predict.h: Same.
20382 * profile-count.c (profile_count::differs_from_p): Same.
20383 (profile_probability::differs_lot_from_p): Same.
20384 * profile-count.h: Same.
20385 * profile.c (branch_prob): Same.
20386 * regrename.c (free_chain_data): Same.
20387 (mark_conflict): Same.
20388 (create_new_chain): Same.
20389 (merge_overlapping_regs): Same.
20390 (init_rename_info): Same.
20391 (merge_chains): Same.
20392 (regrename_analyze): Same.
20393 (regrename_do_replace): Same.
20394 (scan_rtx_reg): Same.
20395 (record_out_operands): Same.
20396 (build_def_use): Same.
20397 * regrename.h: Same.
20398 * reload.h: Same.
20399 * reload1.c (init_reload): Same.
20400 (maybe_fix_stack_asms): Same.
20401 (copy_reloads): Same.
20402 (count_pseudo): Same.
20403 (count_spilled_pseudo): Same.
20404 (find_reg): Same.
20405 (find_reload_regs): Same.
20406 (select_reload_regs): Same.
20407 (spill_hard_reg): Same.
20408 (fixup_eh_region_note): Same.
20409 (set_reload_reg): Same.
20410 (allocate_reload_reg): Same.
20411 (compute_reload_subreg_offset): Same.
20412 (reload_adjust_reg_for_icode): Same.
20413 (emit_input_reload_insns): Same.
20414 (emit_output_reload_insns): Same.
20415 (do_input_reload): Same.
20416 (inherit_piecemeal_p): Same.
20417 * rtl.h: Same.
20418 * sanopt.c (maybe_get_dominating_check): Same.
20419 (maybe_optimize_ubsan_ptr_ifn): Same.
20420 (can_remove_asan_check): Same.
20421 (maybe_optimize_asan_check_ifn): Same.
20422 (sanopt_optimize_walker): Same.
20423 * sched-deps.c (add_dependence_list): Same.
20424 (chain_to_prev_insn): Same.
20425 (add_insn_mem_dependence): Same.
20426 (create_insn_reg_set): Same.
20427 (maybe_extend_reg_info_p): Same.
20428 (sched_analyze_reg): Same.
20429 (sched_analyze_1): Same.
20430 (get_implicit_reg_pending_clobbers): Same.
20431 (chain_to_prev_insn_p): Same.
20432 (deps_analyze_insn): Same.
20433 (deps_start_bb): Same.
20434 (sched_free_deps): Same.
20435 (init_deps): Same.
20436 (init_deps_reg_last): Same.
20437 (free_deps): Same.
20438 * sched-ebb.c: Same.
20439 * sched-int.h: Same.
20440 * sched-rgn.c (add_branch_dependences): Same.
20441 (concat_insn_mem_list): Same.
20442 (deps_join): Same.
20443 (sched_rgn_compute_dependencies): Same.
20444 * sel-sched-ir.c (reset_target_context): Same.
20445 (copy_deps_context): Same.
20446 (init_id_from_df): Same.
20447 (has_dependence_p): Same.
20448 (change_loops_latches): Same.
20449 (bb_top_order_comparator): Same.
20450 (make_region_from_loop_preheader): Same.
20451 (sel_init_pipelining): Same.
20452 (get_loop_nest_for_rgn): Same.
20453 (make_regions_from_the_rest): Same.
20454 (sel_is_loop_preheader_p): Same.
20455 * sel-sched-ir.h (inner_loop_header_p): Same.
20456 (get_all_loop_exits): Same.
20457 * selftest.h: Same.
20458 * sese.c (sese_build_liveouts): Same.
20459 (sese_insert_phis_for_liveouts): Same.
20460 * sese.h (defined_in_sese_p): Same.
20461 * sreal.c (sreal::stream_out): Same.
20462 * sreal.h: Same.
20463 * streamer-hooks.h: Same.
20464 * target-globals.c (save_target_globals): Same.
20465 * target-globals.h: Same.
20466 * target.def: Same.
20467 * target.h: Same.
20468 * targhooks.c (default_has_ifunc_p): Same.
20469 (default_empty_mask_is_expensive): Same.
20470 (default_init_cost): Same.
20471 * targhooks.h: Same.
20472 * toplev.c: Same.
20473 * tree-affine.c (aff_combination_mult): Same.
20474 (aff_combination_expand): Same.
20475 (aff_combination_constant_multiple_p): Same.
20476 * tree-affine.h: Same.
20477 * tree-cfg.c (build_gimple_cfg): Same.
20478 (replace_loop_annotate_in_block): Same.
20479 (replace_uses_by): Same.
20480 (remove_bb): Same.
20481 (dump_cfg_stats): Same.
20482 (gimple_duplicate_sese_region): Same.
20483 (gimple_duplicate_sese_tail): Same.
20484 (move_block_to_fn): Same.
20485 (replace_block_vars_by_duplicates): Same.
20486 (move_sese_region_to_fn): Same.
20487 (print_loops_bb): Same.
20488 (print_loop): Same.
20489 (print_loops): Same.
20490 (debug): Same.
20491 (debug_loops): Same.
20492 * tree-cfg.h: Same.
20493 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20494 (chrec_fold_multiply_poly_poly): Same.
20495 (chrec_evaluate): Same.
20496 (chrec_component_in_loop_num): Same.
20497 (reset_evolution_in_loop): Same.
20498 (is_multivariate_chrec): Same.
20499 (chrec_contains_symbols): Same.
20500 (nb_vars_in_chrec): Same.
20501 (chrec_convert_1): Same.
20502 (chrec_convert_aggressive): Same.
20503 * tree-chrec.h: Same.
20504 * tree-core.h: Same.
20505 * tree-data-ref.c (dump_data_dependence_relation): Same.
20506 (canonicalize_base_object_address): Same.
20507 (data_ref_compare_tree): Same.
20508 (prune_runtime_alias_test_list): Same.
20509 (get_segment_min_max): Same.
20510 (create_intersect_range_checks): Same.
20511 (conflict_fn_no_dependence): Same.
20512 (object_address_invariant_in_loop_p): Same.
20513 (analyze_ziv_subscript): Same.
20514 (analyze_siv_subscript_cst_affine): Same.
20515 (analyze_miv_subscript): Same.
20516 (analyze_overlapping_iterations): Same.
20517 (build_classic_dist_vector_1): Same.
20518 (add_other_self_distances): Same.
20519 (same_access_functions): Same.
20520 (build_classic_dir_vector): Same.
20521 (subscript_dependence_tester_1): Same.
20522 (subscript_dependence_tester): Same.
20523 (access_functions_are_affine_or_constant_p): Same.
20524 (get_references_in_stmt): Same.
20525 (loop_nest_has_data_refs): Same.
20526 (graphite_find_data_references_in_stmt): Same.
20527 (find_data_references_in_bb): Same.
20528 (get_base_for_alignment): Same.
20529 (find_loop_nest_1): Same.
20530 (find_loop_nest): Same.
20531 * tree-data-ref.h (dr_alignment): Same.
20532 (ddr_dependence_level): Same.
20533 * tree-if-conv.c (fold_build_cond_expr): Same.
20534 (add_to_predicate_list): Same.
20535 (add_to_dst_predicate_list): Same.
20536 (phi_convertible_by_degenerating_args): Same.
20537 (idx_within_array_bound): Same.
20538 (all_preds_critical_p): Same.
20539 (pred_blocks_visited_p): Same.
20540 (predicate_bbs): Same.
20541 (build_region): Same.
20542 (if_convertible_loop_p_1): Same.
20543 (is_cond_scalar_reduction): Same.
20544 (predicate_scalar_phi): Same.
20545 (remove_conditions_and_labels): Same.
20546 (combine_blocks): Same.
20547 (version_loop_for_if_conversion): Same.
20548 (versionable_outer_loop_p): Same.
20549 (ifcvt_local_dce): Same.
20550 (tree_if_conversion): Same.
20551 (pass_if_conversion::gate): Same.
20552 * tree-if-conv.h: Same.
20553 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20554 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20555 (free_rdg): Same.
20556 (stmt_has_scalar_dependences_outside_loop): Same.
20557 (copy_loop_before): Same.
20558 (create_bb_after_loop): Same.
20559 (const_with_all_bytes_same): Same.
20560 (generate_memset_builtin): Same.
20561 (generate_memcpy_builtin): Same.
20562 (destroy_loop): Same.
20563 (build_rdg_partition_for_vertex): Same.
20564 (compute_access_range): Same.
20565 (data_ref_segment_size): Same.
20566 (latch_dominated_by_data_ref): Same.
20567 (compute_alias_check_pairs): Same.
20568 (fuse_memset_builtins): Same.
20569 (finalize_partitions): Same.
20570 (find_seed_stmts_for_distribution): Same.
20571 (prepare_perfect_loop_nest): Same.
20572 * tree-parloops.c (lambda_transform_legal_p): Same.
20573 (loop_parallel_p): Same.
20574 (reduc_stmt_res): Same.
20575 (add_field_for_name): Same.
20576 (create_call_for_reduction_1): Same.
20577 (replace_uses_in_bb_by): Same.
20578 (transform_to_exit_first_loop_alt): Same.
20579 (try_transform_to_exit_first_loop_alt): Same.
20580 (transform_to_exit_first_loop): Same.
20581 (num_phis): Same.
20582 (gen_parallel_loop): Same.
20583 (gather_scalar_reductions): Same.
20584 (get_omp_data_i_param): Same.
20585 (try_create_reduction_list): Same.
20586 (oacc_entry_exit_single_gang): Same.
20587 (parallelize_loops): Same.
20588 * tree-pass.h: Same.
20589 * tree-predcom.c (determine_offset): Same.
20590 (last_always_executed_block): Same.
20591 (split_data_refs_to_components): Same.
20592 (suitable_component_p): Same.
20593 (valid_initializer_p): Same.
20594 (find_looparound_phi): Same.
20595 (insert_looparound_copy): Same.
20596 (add_looparound_copies): Same.
20597 (determine_roots_comp): Same.
20598 (predcom_tmp_var): Same.
20599 (initialize_root_vars): Same.
20600 (initialize_root_vars_store_elim_1): Same.
20601 (initialize_root_vars_store_elim_2): Same.
20602 (finalize_eliminated_stores): Same.
20603 (initialize_root_vars_lm): Same.
20604 (remove_stmt): Same.
20605 (determine_unroll_factor): Same.
20606 (execute_pred_commoning_cbck): Same.
20607 (base_names_in_chain_on): Same.
20608 (combine_chains): Same.
20609 (pcom_stmt_dominates_stmt_p): Same.
20610 (try_combine_chains): Same.
20611 (prepare_initializers_chain_store_elim): Same.
20612 (prepare_initializers_chain): Same.
20613 (prepare_initializers): Same.
20614 (prepare_finalizers_chain): Same.
20615 (prepare_finalizers): Same.
20616 (insert_init_seqs): Same.
20617 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20618 (compute_overall_effect_of_inner_loop): Same.
20619 (add_to_evolution_1): Same.
20620 (add_to_evolution): Same.
20621 (follow_ssa_edge_binary): Same.
20622 (follow_ssa_edge_expr): Same.
20623 (backedge_phi_arg_p): Same.
20624 (follow_ssa_edge_in_condition_phi_branch): Same.
20625 (follow_ssa_edge_in_condition_phi): Same.
20626 (follow_ssa_edge_inner_loop_phi): Same.
20627 (follow_ssa_edge): Same.
20628 (analyze_evolution_in_loop): Same.
20629 (analyze_initial_condition): Same.
20630 (interpret_loop_phi): Same.
20631 (interpret_condition_phi): Same.
20632 (interpret_rhs_expr): Same.
20633 (interpret_expr): Same.
20634 (interpret_gimple_assign): Same.
20635 (analyze_scalar_evolution_1): Same.
20636 (analyze_scalar_evolution): Same.
20637 (analyze_scalar_evolution_for_address_of): Same.
20638 (get_instantiated_value_entry): Same.
20639 (loop_closed_phi_def): Same.
20640 (instantiate_scev_name): Same.
20641 (instantiate_scev_poly): Same.
20642 (instantiate_scev_binary): Same.
20643 (instantiate_scev_convert): Same.
20644 (instantiate_scev_not): Same.
20645 (instantiate_scev_r): Same.
20646 (instantiate_scev): Same.
20647 (resolve_mixers): Same.
20648 (initialize_scalar_evolutions_analyzer): Same.
20649 (scev_reset_htab): Same.
20650 (scev_reset): Same.
20651 (derive_simple_iv_with_niters): Same.
20652 (simple_iv_with_niters): Same.
20653 (expression_expensive_p): Same.
20654 (final_value_replacement_loop): Same.
20655 * tree-scalar-evolution.h (block_before_loop): Same.
20656 * tree-ssa-address.h: Same.
20657 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20658 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20659 (record_edge_info): Same.
20660 * tree-ssa-live.c (var_map_base_fini): Same.
20661 (remove_unused_locals): Same.
20662 * tree-ssa-live.h: Same.
20663 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20664 (pass_ch_vect::execute): Same.
20665 (pass_ch::process_loop_p): Same.
20666 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20667 (movement_possibility): Same.
20668 (outermost_invariant_loop): Same.
20669 (stmt_cost): Same.
20670 (determine_max_movement): Same.
20671 (invariantness_dom_walker::before_dom_children): Same.
20672 (move_computations): Same.
20673 (may_move_till): Same.
20674 (force_move_till_op): Same.
20675 (force_move_till): Same.
20676 (memref_free): Same.
20677 (record_mem_ref_loc): Same.
20678 (set_ref_stored_in_loop): Same.
20679 (mark_ref_stored): Same.
20680 (sort_bbs_in_loop_postorder_cmp): Same.
20681 (sort_locs_in_loop_postorder_cmp): Same.
20682 (analyze_memory_references): Same.
20683 (mem_refs_may_alias_p): Same.
20684 (find_ref_loc_in_loop_cmp): Same.
20685 (rewrite_mem_ref_loc::operator): Same.
20686 (first_mem_ref_loc_1::operator): Same.
20687 (sm_set_flag_if_changed::operator): Same.
20688 (execute_sm_if_changed_flag_set): Same.
20689 (execute_sm): Same.
20690 (hoist_memory_references): Same.
20691 (ref_always_accessed::operator): Same.
20692 (refs_independent_p): Same.
20693 (record_dep_loop): Same.
20694 (ref_indep_loop_p_1): Same.
20695 (ref_indep_loop_p): Same.
20696 (can_sm_ref_p): Same.
20697 (find_refs_for_sm): Same.
20698 (loop_suitable_for_sm): Same.
20699 (store_motion_loop): Same.
20700 (store_motion): Same.
20701 (fill_always_executed_in): Same.
20702 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20703 (estimated_unrolled_size): Same.
20704 (loop_edge_to_cancel): Same.
20705 (remove_exits_and_undefined_stmts): Same.
20706 (remove_redundant_iv_tests): Same.
20707 (unloop_loops): Same.
20708 (estimated_peeled_sequence_size): Same.
20709 (try_peel_loop): Same.
20710 (canonicalize_loop_induction_variables): Same.
20711 (canonicalize_induction_variables): Same.
20712 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20713 (name_info): Same.
20714 (stmt_after_inc_pos): Same.
20715 (contains_abnormal_ssa_name_p): Same.
20716 (niter_for_exit): Same.
20717 (find_bivs): Same.
20718 (mark_bivs): Same.
20719 (find_givs_in_bb): Same.
20720 (find_induction_variables): Same.
20721 (find_interesting_uses_cond): Same.
20722 (outermost_invariant_loop_for_expr): Same.
20723 (idx_find_step): Same.
20724 (add_candidate_1): Same.
20725 (add_iv_candidate_derived_from_uses): Same.
20726 (alloc_use_cost_map): Same.
20727 (prepare_decl_rtl): Same.
20728 (generic_predict_doloop_p): Same.
20729 (computation_cost): Same.
20730 (determine_common_wider_type): Same.
20731 (get_computation_aff_1): Same.
20732 (get_use_type): Same.
20733 (determine_group_iv_cost_address): Same.
20734 (iv_period): Same.
20735 (difference_cannot_overflow_p): Same.
20736 (may_eliminate_iv): Same.
20737 (determine_set_costs): Same.
20738 (cheaper_cost_pair): Same.
20739 (compare_cost_pair): Same.
20740 (iv_ca_cand_for_group): Same.
20741 (iv_ca_recount_cost): Same.
20742 (iv_ca_set_remove_invs): Same.
20743 (iv_ca_set_no_cp): Same.
20744 (iv_ca_set_add_invs): Same.
20745 (iv_ca_set_cp): Same.
20746 (iv_ca_add_group): Same.
20747 (iv_ca_cost): Same.
20748 (iv_ca_compare_deps): Same.
20749 (iv_ca_delta_reverse): Same.
20750 (iv_ca_delta_commit): Same.
20751 (iv_ca_cand_used_p): Same.
20752 (iv_ca_delta_free): Same.
20753 (iv_ca_new): Same.
20754 (iv_ca_free): Same.
20755 (iv_ca_dump): Same.
20756 (iv_ca_extend): Same.
20757 (iv_ca_narrow): Same.
20758 (iv_ca_prune): Same.
20759 (cheaper_cost_with_cand): Same.
20760 (iv_ca_replace): Same.
20761 (try_add_cand_for): Same.
20762 (get_initial_solution): Same.
20763 (try_improve_iv_set): Same.
20764 (find_optimal_iv_set_1): Same.
20765 (create_new_iv): Same.
20766 (rewrite_use_compare): Same.
20767 (remove_unused_ivs): Same.
20768 (determine_scaling_factor): Same.
20769 * tree-ssa-loop-ivopts.h: Same.
20770 * tree-ssa-loop-manip.c (create_iv): Same.
20771 (compute_live_loop_exits): Same.
20772 (add_exit_phi): Same.
20773 (add_exit_phis): Same.
20774 (find_uses_to_rename_use): Same.
20775 (find_uses_to_rename_def): Same.
20776 (find_uses_to_rename_in_loop): Same.
20777 (rewrite_into_loop_closed_ssa): Same.
20778 (check_loop_closed_ssa_bb): Same.
20779 (split_loop_exit_edge): Same.
20780 (ip_end_pos): Same.
20781 (ip_normal_pos): Same.
20782 (copy_phi_node_args): Same.
20783 (gimple_duplicate_loop_to_header_edge): Same.
20784 (can_unroll_loop_p): Same.
20785 (determine_exit_conditions): Same.
20786 (scale_dominated_blocks_in_loop): Same.
20787 (niter_for_unrolled_loop): Same.
20788 (tree_transform_and_unroll_loop): Same.
20789 (rewrite_all_phi_nodes_with_iv): Same.
20790 * tree-ssa-loop-manip.h: Same.
20791 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20792 (number_of_iterations_ne): Same.
20793 (assert_no_overflow_lt): Same.
20794 (assert_loop_rolls_lt): Same.
20795 (number_of_iterations_lt): Same.
20796 (adjust_cond_for_loop_until_wrap): Same.
20797 (tree_simplify_using_condition): Same.
20798 (simplify_using_initial_conditions): Same.
20799 (simplify_using_outer_evolutions): Same.
20800 (loop_only_exit_p): Same.
20801 (ssa_defined_by_minus_one_stmt_p): Same.
20802 (number_of_iterations_popcount): Same.
20803 (number_of_iterations_exit): Same.
20804 (find_loop_niter): Same.
20805 (finite_loop_p): Same.
20806 (chain_of_csts_start): Same.
20807 (get_val_for): Same.
20808 (loop_niter_by_eval): Same.
20809 (derive_constant_upper_bound_ops): Same.
20810 (do_warn_aggressive_loop_optimizations): Same.
20811 (record_estimate): Same.
20812 (get_cst_init_from_scev): Same.
20813 (record_nonwrapping_iv): Same.
20814 (idx_infer_loop_bounds): Same.
20815 (infer_loop_bounds_from_ref): Same.
20816 (infer_loop_bounds_from_array): Same.
20817 (infer_loop_bounds_from_pointer_arith): Same.
20818 (infer_loop_bounds_from_signedness): Same.
20819 (bound_index): Same.
20820 (discover_iteration_bound_by_body_walk): Same.
20821 (maybe_lower_iteration_bound): Same.
20822 (estimate_numbers_of_iterations): Same.
20823 (estimated_loop_iterations): Same.
20824 (estimated_loop_iterations_int): Same.
20825 (max_loop_iterations): Same.
20826 (max_loop_iterations_int): Same.
20827 (likely_max_loop_iterations): Same.
20828 (likely_max_loop_iterations_int): Same.
20829 (estimated_stmt_executions_int): Same.
20830 (max_stmt_executions): Same.
20831 (likely_max_stmt_executions): Same.
20832 (estimated_stmt_executions): Same.
20833 (stmt_dominates_stmt_p): Same.
20834 (nowrap_type_p): Same.
20835 (loop_exits_before_overflow): Same.
20836 (scev_var_range_cant_overflow): Same.
20837 (scev_probably_wraps_p): Same.
20838 (free_numbers_of_iterations_estimates): Same.
20839 * tree-ssa-loop-niter.h: Same.
20840 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20841 (idx_analyze_ref): Same.
20842 (analyze_ref): Same.
20843 (gather_memory_references_ref): Same.
20844 (mark_nontemporal_store): Same.
20845 (emit_mfence_after_loop): Same.
20846 (may_use_storent_in_loop_p): Same.
20847 (mark_nontemporal_stores): Same.
20848 (should_unroll_loop_p): Same.
20849 (volume_of_dist_vector): Same.
20850 (add_subscript_strides): Same.
20851 (self_reuse_distance): Same.
20852 (insn_to_prefetch_ratio_too_small_p): Same.
20853 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20854 (patch_loop_exit): Same.
20855 (find_or_create_guard_phi): Same.
20856 (easy_exit_values): Same.
20857 (connect_loop_phis): Same.
20858 (connect_loops): Same.
20859 (compute_new_first_bound): Same.
20860 (split_loop): Same.
20861 (tree_ssa_split_loops): Same.
20862 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20863 (is_maybe_undefined): Same.
20864 (tree_may_unswitch_on): Same.
20865 (simplify_using_entry_checks): Same.
20866 (tree_unswitch_single_loop): Same.
20867 (tree_unswitch_loop): Same.
20868 (tree_unswitch_outer_loop): Same.
20869 (empty_bb_without_guard_p): Same.
20870 (used_outside_loop_p): Same.
20871 (get_vop_from_header): Same.
20872 (hoist_guard): Same.
20873 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20874 (get_lsm_tmp_name): Same.
20875 * tree-ssa-loop.h: Same.
20876 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20877 (build_and_add_sum): Same.
20878 (no_side_effect_bb): Same.
20879 (get_ops): Same.
20880 (linearize_expr): Same.
20881 (should_break_up_subtract): Same.
20882 (linearize_expr_tree): Same.
20883 * tree-ssa-scopedtables.c: Same.
20884 * tree-ssa-scopedtables.h: Same.
20885 * tree-ssa-structalias.c (condense_visit): Same.
20886 (label_visit): Same.
20887 (dump_pred_graph): Same.
20888 (perform_var_substitution): Same.
20889 (move_complex_constraints): Same.
20890 (remove_preds_and_fake_succs): Same.
20891 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20892 (determine_bb_domination_status): Same.
20893 (duplicate_thread_path): Same.
20894 (thread_through_all_blocks): Same.
20895 * tree-ssa-threadupdate.h: Same.
20896 * tree-streamer-in.c (streamer_read_string_cst): Same.
20897 (input_identifier): Same.
20898 (unpack_ts_type_common_value_fields): Same.
20899 (unpack_ts_block_value_fields): Same.
20900 (unpack_ts_translation_unit_decl_value_fields): Same.
20901 (unpack_ts_omp_clause_value_fields): Same.
20902 (streamer_read_tree_bitfields): Same.
20903 (streamer_alloc_tree): Same.
20904 (lto_input_ts_common_tree_pointers): Same.
20905 (lto_input_ts_vector_tree_pointers): Same.
20906 (lto_input_ts_poly_tree_pointers): Same.
20907 (lto_input_ts_complex_tree_pointers): Same.
20908 (lto_input_ts_decl_minimal_tree_pointers): Same.
20909 (lto_input_ts_decl_common_tree_pointers): Same.
20910 (lto_input_ts_decl_non_common_tree_pointers): Same.
20911 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20912 (lto_input_ts_field_decl_tree_pointers): Same.
20913 (lto_input_ts_function_decl_tree_pointers): Same.
20914 (lto_input_ts_type_common_tree_pointers): Same.
20915 (lto_input_ts_type_non_common_tree_pointers): Same.
20916 (lto_input_ts_list_tree_pointers): Same.
20917 (lto_input_ts_vec_tree_pointers): Same.
20918 (lto_input_ts_exp_tree_pointers): Same.
20919 (lto_input_ts_block_tree_pointers): Same.
20920 (lto_input_ts_binfo_tree_pointers): Same.
20921 (lto_input_ts_constructor_tree_pointers): Same.
20922 (lto_input_ts_omp_clause_tree_pointers): Same.
20923 (streamer_read_tree_body): Same.
20924 * tree-streamer.h: Same.
20925 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20926 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20927 (vect_analyze_possibly_independent_ddr): Same.
20928 (vect_analyze_data_ref_dependence): Same.
20929 (vect_compute_data_ref_alignment): Same.
20930 (vect_enhance_data_refs_alignment): Same.
20931 (vect_analyze_data_ref_access): Same.
20932 (vect_check_gather_scatter): Same.
20933 (vect_find_stmt_data_reference): Same.
20934 (vect_create_addr_base_for_vector_ref): Same.
20935 (vect_setup_realignment): Same.
20936 (vect_supportable_dr_alignment): Same.
20937 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20938 (adjust_phi_and_debug_stmts): Same.
20939 (vect_set_loop_mask): Same.
20940 (add_preheader_seq): Same.
20941 (vect_maybe_permute_loop_masks): Same.
20942 (vect_set_loop_masks_directly): Same.
20943 (vect_set_loop_condition_masked): Same.
20944 (vect_set_loop_condition_unmasked): Same.
20945 (slpeel_duplicate_current_defs_from_edges): Same.
20946 (slpeel_add_loop_guard): Same.
20947 (slpeel_can_duplicate_loop_p): Same.
20948 (create_lcssa_for_virtual_phi): Same.
20949 (iv_phi_p): Same.
20950 (vect_update_ivs_after_vectorizer): Same.
20951 (vect_gen_vector_loop_niters_mult_vf): Same.
20952 (slpeel_update_phi_nodes_for_loops): Same.
20953 (slpeel_update_phi_nodes_for_guard1): Same.
20954 (find_guard_arg): Same.
20955 (slpeel_update_phi_nodes_for_guard2): Same.
20956 (slpeel_update_phi_nodes_for_lcssa): Same.
20957 (vect_do_peeling): Same.
20958 (vect_create_cond_for_alias_checks): Same.
20959 (vect_loop_versioning): Same.
20960 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20961 (vect_inner_phi_in_double_reduction_p): Same.
20962 (vect_analyze_scalar_cycles_1): Same.
20963 (vect_fixup_scalar_cycles_with_patterns): Same.
20964 (vect_get_loop_niters): Same.
20965 (bb_in_loop_p): Same.
20966 (vect_get_max_nscalars_per_iter): Same.
20967 (vect_verify_full_masking): Same.
20968 (vect_compute_single_scalar_iteration_cost): Same.
20969 (vect_analyze_loop_form_1): Same.
20970 (vect_analyze_loop_form): Same.
20971 (vect_active_double_reduction_p): Same.
20972 (vect_analyze_loop_operations): Same.
20973 (neutral_op_for_slp_reduction): Same.
20974 (vect_is_simple_reduction): Same.
20975 (vect_model_reduction_cost): Same.
20976 (get_initial_def_for_reduction): Same.
20977 (get_initial_defs_for_reduction): Same.
20978 (vect_create_epilog_for_reduction): Same.
20979 (vectorize_fold_left_reduction): Same.
20980 (vectorizable_reduction): Same.
20981 (vectorizable_induction): Same.
20982 (vectorizable_live_operation): Same.
20983 (loop_niters_no_overflow): Same.
20984 (vect_get_loop_mask): Same.
20985 (vect_transform_loop_stmt): Same.
20986 (vect_transform_loop): Same.
20987 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20988 (vect_determine_precisions): Same.
20989 (vect_pattern_recog_1): Same.
20990 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20991 * tree-vect-stmts.c (stmt_vectype): Same.
20992 (process_use): Same.
20993 (vect_init_vector_1): Same.
20994 (vect_truncate_gather_scatter_offset): Same.
20995 (get_group_load_store_type): Same.
20996 (vect_build_gather_load_calls): Same.
20997 (vect_get_strided_load_store_ops): Same.
20998 (vectorizable_simd_clone_call): Same.
20999 (vectorizable_store): Same.
21000 (permute_vec_elements): Same.
21001 (vectorizable_load): Same.
21002 (vect_transform_stmt): Same.
21003 (supportable_widening_operation): Same.
21004 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21005 (vec_info::free_stmt_vec_info): Same.
21006 (vect_free_loop_info_assumptions): Same.
21007 (vect_loop_vectorized_call): Same.
21008 (set_uid_loop_bbs): Same.
21009 (vectorize_loops): Same.
21010 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21011 * tree.c (add_tree_to_fld_list): Same.
21012 (fld_type_variant_equal_p): Same.
21013 (fld_decl_context): Same.
21014 (fld_incomplete_type_of): Same.
21015 (free_lang_data_in_binfo): Same.
21016 (need_assembler_name_p): Same.
21017 (find_decls_types_r): Same.
21018 (get_eh_types_for_runtime): Same.
21019 (find_decls_types_in_eh_region): Same.
21020 (find_decls_types_in_node): Same.
21021 (assign_assembler_name_if_needed): Same.
21022 * value-prof.c (stream_out_histogram_value): Same.
21023 * value-prof.h: Same.
21024 * var-tracking.c (use_narrower_mode): Same.
21025 (prepare_call_arguments): Same.
21026 (vt_expand_loc_callback): Same.
21027 (resolve_expansions_pending_recursion): Same.
21028 (vt_expand_loc): Same.
21029 * varasm.c (const_hash_1): Same.
21030 (compare_constant): Same.
21031 (tree_output_constant_def): Same.
21032 (simplify_subtraction): Same.
21033 (get_pool_constant): Same.
21034 (output_constant_pool_2): Same.
21035 (output_constant_pool_1): Same.
21036 (mark_constants_in_pattern): Same.
21037 (mark_constant_pool): Same.
21038 (get_section_anchor): Same.
21039 * vr-values.c (compare_range_with_value): Same.
21040 (vr_values::extract_range_from_phi_node): Same.
21041 * vr-values.h: Same.
21042 * web.c (unionfind_union): Same.
21043 * wide-int.h: Same.
21044
21045 2019-07-09 Martin Sebor <msebor@redhat.com>
21046
21047 PR c++/61339
21048 * align.h: Change class-key from class to struct and vice versa
21049 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21050 * alloc-pool.h: Same.
21051 * asan.c (shadow_mem_size): Same.
21052 * auto-profile.c: Same.
21053 * basic-block.h: Same.
21054 * bitmap.h: Same.
21055 * cfgexpand.c (set_rtl): Same.
21056 (expand_one_stack_var_at): Same.
21057 * cfghooks.h: Same.
21058 * cfgloop.h: Same.
21059 * cgraph.h: Same.
21060 * config/i386/i386.h: Same.
21061 * df-problems.c (df_print_bb_index): Same.
21062 * df-scan.c: Same.
21063 * df.h (df_single_use): Same.
21064 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21065 (layout::annotation_line_showed_range_p): Same.
21066 (get_printed_columns): Same.
21067 (correction::ensure_terminated): Same.
21068 (line_corrections::~line_corrections): Same.
21069 * dojump.h: Same.
21070 * dse.c: Same.
21071 * dump-context.h: Same.
21072 * dumpfile.h: Same.
21073 * dwarf2out.c: Same.
21074 * edit-context.c: Same.
21075 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21076 * flags.h: Same.
21077 * function.c (assign_stack_local): Same.
21078 * function.h: Same.
21079 * gcc.c: Same.
21080 * gcov.c (block_info::block_info): Same.
21081 * genattrtab.c: Same.
21082 * genextract.c: Same.
21083 * genmatch.c (comparison_code_p): Same.
21084 (id_base::id_base): Same.
21085 (decision_tree::print): Same.
21086 * genoutput.c: Same.
21087 * genpreds.c (write_one_predicate_function): Same.
21088 * genrecog.c (validate_pattern): Same.
21089 (find_operand_positions): Same.
21090 (optimize_subroutine_group): Same.
21091 (merge_pattern_transition::merge_pattern_transition): Same.
21092 (merge_pattern_info::merge_pattern_info): Same.
21093 (merge_state_result::merge_state_result): Same.
21094 (merge_into_state): Same.
21095 * gensupport.c: Same.
21096 * gensupport.h: Same.
21097 * ggc-common.c (init_ggc_heuristics): Same.
21098 * ggc-tests.c (test_union): Same.
21099 * gimple-loop-interchange.cc (dump_induction): Same.
21100 * gimple-loop-versioning.cc: Same.
21101 * gimple-match.h (gimple_match_cond::any_else): Same.
21102 * gimple-ssa-backprop.c: Same.
21103 * gimple-ssa-sprintf.c: Same.
21104 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21105 Same.
21106 (store_immediate_info::store_immediate_info): Same.
21107 (merged_store_group::apply_stores): Same.
21108 (get_location_for_stmts): Same.
21109 * gimple-ssa-strength-reduction.c: Same.
21110 * gimple-ssa-warn-alloca.c: Same.
21111 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21112 * godump.c (go_type_decl): Same.
21113 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21114 * hash-map.h: Same.
21115 * hash-set-tests.c (test_set_of_strings): Same.
21116 * hsa-brig.c: Same.
21117 * hsa-common.h: Same.
21118 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21119 * input.c (assert_loceq): Same.
21120 * input.h: Same.
21121 * ipa-cp.c: Same.
21122 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21123 * ipa-fnsummary.h: Same.
21124 * ipa-inline.h: Same.
21125 * ipa-prop.h: Same.
21126 * ipa-split.c (visit_bb): Same.
21127 * ira-int.h (minmax_set_iter_next): Same.
21128 * loop-invariant.c: Same.
21129 * loop-iv.c: Same.
21130 * lra-eliminations.c: Same.
21131 * lra-int.h: Same.
21132 * lra-lives.c (mark_regno_dead): Same.
21133 * lra-remat.c: Same.
21134 * lra-spills.c: Same.
21135 * lto-streamer.h: Same.
21136 * mem-stats.h: Same.
21137 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21138 * omp-low.c (omp_clause_aligned_alignment): Same.
21139 * optabs-query.h (get_vcond_eq_icode): Same.
21140 * optabs.h: Same.
21141 * opts.c (wrap_help): Same.
21142 * poly-int.h: Same.
21143 * predict.c (predict_paths_leading_to_edge): Same.
21144 * pretty-print.h: Same.
21145 * profile-count.h: Same.
21146 * read-md.h: Same.
21147 * read-rtl-function.c: Same.
21148 * ree.c: Same.
21149 * reginfo.c: Same.
21150 * regrename.c: Same.
21151 * regrename.h: Same.
21152 * reload.h: Same.
21153 * rtl-iter.h: Same.
21154 * rtl.h (costs_add_n_insns): Same.
21155 * sanopt.c: Same.
21156 * sched-int.h: Same.
21157 * sel-sched-ir.h: Same.
21158 * selftest.h: Same.
21159 * sese.h (vec_find): Same.
21160 * stmt.c: Same.
21161 * target-globals.h: Same.
21162 * tree-affine.c (aff_combination_find_elt): Same.
21163 * tree-affine.h: Same.
21164 * tree-data-ref.h: Same.
21165 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21166 * tree-predcom.c: Same.
21167 * tree-scalar-evolution.c (find_var_scev_info): Same.
21168 * tree-ssa-alias.h: Same.
21169 * tree-ssa-ccp.c: Same.
21170 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21171 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21172 (rewrite_mem_refs): Same.
21173 (execute_sm_if_changed): Same.
21174 (hoist_memory_references): Same.
21175 * tree-ssa-loop-ivopts.c (operator<=): Same.
21176 * tree-ssa-loop.h: Same.
21177 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21178 * tree-ssa-structalias.c: Same.
21179 * tree-switch-conversion.h (cluster::cluster): Same.
21180 (simple_cluster::simple_cluster): Same.
21181 * tree-vect-patterns.c (type_conversion_p): Same.
21182 * tree-vectorizer.c (dump_stmt_cost): Same.
21183 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21184 * tree.c (protected_set_expr_location): Same.
21185 * tree.h (desired_pro_or_demotion_p): Same.
21186 (fndecl_built_in_p): Same.
21187 * unique-ptr-tests.cc: Same.
21188 * var-tracking.c (delete_variable_part): Same.
21189 * varasm.c (assemble_real): Same.
21190 (tree_output_constant_def): Same.
21191 * vec.c: Same.
21192 * wide-int-bitmask.h: Same.
21193 * wide-int.h (decompose): Same.
21194
21195 2019-07-09 Richard Biener <rguenther@suse.de>
21196
21197 PR tree-optimization/91114
21198 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21199 find a vector type isn't fatal.
21200
21201 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21202
21203 * config/aarch64/aarch64-simd.md
21204 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21205 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21206 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21207 (*aarch64_crypto_aese_fused,
21208 *aarch64_crypto_aesd_fused): Update to new definition.
21209 * config/aarch64/aarch64.c
21210 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21211
21212 2019-07-09 Richard Biener <rguenther@suse.de>
21213
21214 * gimple-match.h (gimple_match_op::resimplify): New.
21215 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21216 gimple_resimplify4, gimple_resimplify5): Remove.
21217 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21218 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21219 Make static.
21220 (gimple_match_op::resimplify): New.
21221 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21222 according to availability. Use gimple_match_op::resimplify.
21223
21224 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21225
21226 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21227
21228 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21229
21230 * config/arm/crypto.md:
21231 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21232 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21233 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21234 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21235 * config/arm/arm.c
21236 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21237 * config/arm/aarch-common-protos.h
21238 (aarch_crypto_can_dual_issue): Remove.
21239 * config/arm/aarch-common.c
21240 (aarch_crypto_can_dual_issue): Likewise.
21241 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21242 * config/arm/cortex-a53.md: Likewise.
21243 * config/arm/cortex-a57.md: Likewise.
21244 * config/arm/iterators.md:
21245 (CRYPTO_BINARY): Redefine.
21246 (CRYPTO_UNARY): Removed.
21247 (CRYPTO_AES, CRYPTO_AESMC): New.
21248
21249 2019-07-09 Richard Biener <rguenther@suse.de>
21250
21251 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21252 (vn_reference_lookup_3): If the main ref has no access path recorded
21253 but orig_ref has use it to do access-path based disambiguation.
21254 (vn_reference_lookup_pieces): Adjust.
21255 (vn_reference_lookup): Pass down original ref if we valueized.
21256
21257 2019-07-09 Martin Liska <mliska@suse.cz>
21258
21259 * doc/extend.texi: Document influence on loop
21260 optimizers.
21261
21262 2019-07-09 Martin Liska <mliska@suse.cz>
21263
21264 * lto-compress.c (lto_normalized_zstd_level): Do not use
21265 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21266 of libzstd. One can use 0 as a default compression level.
21267
21268 2019-07-09 Martin Liska <mliska@suse.cz>
21269
21270 * doc/invoke.texi: Add link from -fprofile-dir option.
21271 Use better wording for 'gcno filename'.
21272
21273 2019-07-08 Martin Sebor <msebor@redhat.com>
21274
21275 PR middle-end/71924
21276 PR middle-end/90549
21277 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21278 comment.
21279 (args_loc_t): New type.
21280 (args_loc_t, locmap_t): same.
21281 (diag_returned_locals): New function.
21282 (is_addr_local): Same.
21283 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21284 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21285 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21286
21287 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21288
21289 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21290 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21291 and casts in offset when different, both through gimple stmts
21292 and through trees. Rewritten using loops to minimize code duplication
21293 for each operand.
21294
21295 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21296
21297 * emit-rtl.c (set_insn_locations): New function moved from...
21298 * function.c (set_insn_locations): ...here.
21299 * ira-emit.c (emit_moves): Propagate location of the first instruction
21300 to the inserted move instructions.
21301 * reg-stack.c (compensate_edge): Set the location if the sequence is
21302 inserted on the edge.
21303 * rtl.h (set_insn_locations): Declare.
21304
21305 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21306
21307 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21308 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21309 .machine string.
21310
21311 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21312
21313 PR rtl-optimization/88233
21314 * common.opt (fsplit-wide-types-early): New option.
21315 * common/config/rs6000/rs6000-common.c
21316 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21317 OPT_LEVELS_ALL.
21318 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21319 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21320 flag_split_wide_types_early.
21321 (pass_data_lower_subreg3): New.
21322 (pass_lower_subreg3): New.
21323 (make_pass_lower_subreg3): New.
21324 * passes.def (pass_lower_subreg2): Move after the loop passes.
21325 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21326 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21327 the pass pipeline; its previous place is taken by ...
21328 (make_pass_lower_subreg3): ... this.
21329
21330 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21331
21332 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21333 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21334
21335 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21336
21337 * config/s390/constraints.md: Add new jsc constraint.
21338 * config/s390/predicates.md: New predicates.
21339 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21340 * config/s390/s390.c (s390_valid_shift_count): New function.
21341 (print_shift_count_operand): Use s390_valid_shift_count.
21342 (print_operand): Likewise.
21343 * config/s390/s390.md: Use new predicate.
21344 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21345 * config/s390/vector.md: Use new predicate.
21346
21347 2019-07-08 Andrew Waterman <andrew@sifive.com>
21348 Jim Wilson <jimw@sifive.com>
21349
21350 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21351 bitsize instead of BITS_PER_WORD.
21352
21353 2019-07-08 Martin Liska <mliska@suse.cz>
21354
21355 * collect2.c (defined): Revert to before r254460.
21356 (scan_prog_file): Revert to before r254460.
21357
21358 2019-07-08 Richard Biener <rguenther@suse.de>
21359
21360 PR tree-optimization/83518
21361 * tree-ssa-sccvn.c: Include splay-tree.h.
21362 (struct pd_range, struct pd_data): New.
21363 (struct vn_walk_cb_data): Add data to track partial definitions.
21364 (vn_walk_cb_data::~vn_walk_cb_data): New.
21365 (vn_walk_cb_data::push_partial_def): New.
21366 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21367 (vn_reference_lookup_2): When partial defs are registered give up.
21368 (vn_reference_lookup_3): Track partial defs for memset and
21369 constructor zeroing and for defs from constants.
21370
21371 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21372
21373 * doc/install.texi (bootstrap-Og): Document.
21374
21375 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21376
21377 * config/riscv/pic.md (*local_pic_load_s<mode>)
21378 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21379 referenced by <mode>, giving...
21380 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21381 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21382 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21383 use <X:MODE> for the mode attribute.
21384
21385 2019-07-07 Jeff Law <law@redhat.com>
21386
21387 PR tree-optimization/91090
21388 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21389 in handling of ranges to simplify switch statements.
21390
21391 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21392
21393 * config/darwin.c (darwin_override_options): Make a final check on PIC
21394 options.
21395
21396 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21397
21398 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21399 on for kernel code.
21400
21401 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21402
21403 PR target/91068
21404 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21405 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21406 instead of matching them to "l" output operands.
21407
21408 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21409
21410 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21411 and check whether addr.reg is nonnull before using it.
21412
21413 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21414
21415 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21416 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21417 variable(s). For conditional lastprivate look through outer
21418 GIMPLE_OMP_SCAN context.
21419 (lower_omp_1): For conditional lastprivate look through outer
21420 GIMPLE_OMP_SCAN context.
21421
21422 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21423 member to combined_into_simd_safelen1.
21424 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21425 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21426 clauses if ctx->combined_into_simd_safelen1 put statements after the
21427 predicate conditionalized block rather than into it.
21428
21429 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21430
21431 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21432 operand 1.
21433 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21434 Make the choice of <mode> explicit, giving...
21435 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21436
21437 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21438
21439 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21440 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21441 of .md attributes.
21442 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21443 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21444 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21445 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21446 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21447 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21448 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21449 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21450 (*avx512f_scatterdi<mode>): Likewise.
21451 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21452
21453 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21454
21455 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21456 specify the mode iterator referenced by <mode>, giving...
21457 (*push1_h8300hs_<QHI:mode>): ...this.
21458
21459 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21460
21461 * config/gcn/gcn-valu.md
21462 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21463 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21464 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21465 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21466 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21467 but using the _exec comparison patterns.
21468 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21469 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21470 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21471 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21472 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21473 but using the _exec comparison patterns.
21474
21475 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21476
21477 * config/arm/sync.md
21478 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21479 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21480 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21481 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21482 <SIDI:cas_cmp_str>.
21483
21484 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21485
21486 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21487 (maybe_lookup_ctx): Add forward declaration.
21488 (omp_find_scan): Likewise. Walk into body of simd if composited
21489 with worksharing loop.
21490 (scan_omp_simd_scan): New function.
21491 (scan_omp_1_stmt): Call it.
21492 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21493 ctx->for_simd_scan_phase.
21494 (lower_rec_input_clauses): Do much less work for inscan reductions
21495 in ctx->for_simd_scan_phase is_simd regions.
21496 (lower_omp_scan): Set is_simd also on simd constructs composited
21497 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21498 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21499 emit their body after in simd constructs composited with worksharing
21500 loop.
21501 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21502
21503 * omp-low.c (omp_find_scan): Make static.
21504 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21505 the second loop, var2 represents the first partial sum and so needs
21506 to go before rprivb[ivar].
21507
21508 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21509
21510 * config/rs6000/rs6000-logue.c: Remove unused code.
21511
21512 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21513
21514 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21515
21516 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21517
21518 PR target/90712
21519 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21520 check with a frame laid out check.
21521
21522 2019-07-05 Richard Biener <rguenther@suse.de>
21523
21524 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21525 when comparing against a store with possibly the same value.
21526
21527 2019-07-05 Richard Biener <rguenther@suse.de>
21528
21529 PR tree-optimization/91091
21530 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21531 (walk_non_aliased_vuses): Likewise.
21532 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21533 (get_continuation_for_phi): New tbaa_p parameter and pass
21534 it down.
21535 (walk_non_aliased_vuses): Likewise.
21536 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21537 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21538 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21539 Likewise.
21540 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21541 (adjust_offsets_for_equal_base_address): New function.
21542 (vn_reference_lookup_3): Use it to catch more base equivalences.
21543 Handle and pass down tbaa_p flag.
21544 (vn_reference_lookup_pieces): Adjust.
21545 (vn_reference_lookup): Remove alias-set altering, instead pass
21546 down false as tbaa_p.
21547
21548 2019-07-05 Richard Biener <rguenther@suse.de>
21549
21550 PR tree-optimization/91091
21551 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21552 accesses can happen with -fno-strict-aliasing.
21553
21554 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21555
21556 * tree-ssa-alias.c (alias_stats): Add
21557 nonoverlapping_component_refs_since_match_p_must_overlap.
21558 (dump_alias_stats): Print it.
21559 (nonoverlapping_component_refs_since_match_p): Add early exit.
21560 (nonoverlapping_component_refs_p): Do not account early exit.
21561
21562 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21563
21564 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21565 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21566 (emit_eh_dispatch): Delete.
21567 (lower_catch): Emit the eh_dispatch manually and set the location of
21568 the first catch statement onto it.
21569 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21570 (lower_eh_dispatch): Propagate location.
21571 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21572 (eliminate_build): Likewise.
21573
21574 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21575
21576 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21577 phi nodes if possible.
21578 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21579 location info on the newly created statement.
21580 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21581 newly created increment if needed.
21582
21583 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21584
21585 PR middle-end/78884
21586 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21587 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21588 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21589 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21590 ctx->add_safelen1 is set.
21591
21592 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21593 GOMP_loop_start at the start of second worksharing loop in a scan.
21594 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21595 worksharing loop in a scan even if there are conditional lastprivates,
21596 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21597
21598 2019-07-04 Jan Hubicka <jh@suse.cz>
21599
21600 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21601 Fix check for match in the ref walk.
21602
21603 2019-07-04 Martin Liska <mliska@suse.cz>
21604
21605 * tree-ssa-loop-niter.c
21606 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21607 (estimate_numbers_of_iterations):
21608 Support __builtin_expect_with_probability for analysis
21609 of # of loop iterations.
21610
21611 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21612
21613 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21614 * except.c: Likewise.
21615 * expr.c (expand_expr_real_1): Reject it.
21616 * gimplify.c (gimplify_expr): Gimplify it, within
21617 TRY_FINALLY_EXPR.
21618 * tree-dump.c (dequeue_and_dump): Dump it.
21619 * tree-pretty-print.c (dump_generic_node): Likewise.
21620 * tree.c (block_may_fallthru): Handle it.
21621 * tree.def (EH_ELSE_EXPR): Introduce it.
21622 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21623 with GIMPLE_EH_ELSE as try/finally/else.
21624
21625 2019-07-04 Richard Biener <rguenther@suse.de>
21626
21627 PR ipa/91062
21628 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21629 parameter whether to disable GC collection.
21630 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21631 honor it.
21632 (execute_all_ipa_transforms): Likewise and pass it down.
21633 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21634 collection from applying IPA transforms.
21635 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21636 from applying IPA transforms.
21637
21638 2019-07-04 Richard Biener <rguenther@suse.de>
21639
21640 PR tree-optimization/90911
21641 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21642 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21643 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21644 scalar_loop_scaling.
21645 (vect_transform_loop): Scale scalar loop profile if needed.
21646 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21647 the loop copy from if-conversion adjust edge probabilities
21648 and scale the vectorized loop body profile, queue the scalar
21649 profile for updating after peeling.
21650
21651 2019-07-04 Jan Hubicka <jh@suse.cz>
21652
21653 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21654 parameters; return early for must-alias.
21655 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21656 outer types match, try nonoverlapping_component_refs
21657 if must-alias is not obvious.
21658 (indirect_refs_may_alias_p): Likewise.
21659 (refs_may_alias_p_2): Likewise.
21660
21661 2019-07-04 Richard Biener <rguenther@suse.de>
21662
21663 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21664 argument.
21665 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21666 globals into...
21667 (struct vn_walk_cb_data): New callback data struct.
21668 (vn_reference_lookup_2): Adjust.
21669 (vn_reference_lookup_3): Likewise.
21670 (vn_reference_lookup_pieces): Likewise.
21671 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21672 (visit_reference_op_load): Adjust.
21673
21674 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21675
21676 PR tree-optimization/91063
21677 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21678 stmt from stmts sequence before calling vect_init_vector_1.
21679 Formatting fix.
21680
21681 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21682
21683 PR target/88833
21684 * fwprop.c (reg_single_def_p): New function.
21685 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21686 (forward_propagate_into): New parameter reg_prop_only
21687 with default value false.
21688 Propagate def's src into loop only if SET_SRC and SET_DEST
21689 of def_set have single definitions.
21690 Likewise if reg_prop_only is set to true.
21691 (fwprop): New param fwprop_addr_p.
21692 Integrate fwprop_addr into fwprop.
21693 (fwprop_addr): Remove.
21694 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21695 to true.
21696 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21697 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21698 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21699
21700 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21701
21702 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21703 in worksharing loop scans.
21704
21705 PR tree-optimization/91074
21706 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21707 temporary.
21708
21709 PR rtl-optimization/90756
21710 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21711 for VECTOR_TYPE_P.
21712
21713 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21714
21715 * config/aarch64/aarch64.md: Remove redundant constraints from
21716 define_expand but keep some patterns untouched if they are
21717 specially selected by TARGET_SECONDARY_RELOAD hook.
21718 * config/aarch64/aarch64-sve.md: Likewise.
21719 * config/aarch64/atomics.md: Remove redundant constraints from
21720 define_expand.
21721 * config/aarch64/aarch64-simd.md: Likewise.
21722
21723 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21724
21725 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21726 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21727 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21728 clauses.
21729 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21730 DARWIN_NOPIE_SPEC.
21731
21732 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21733
21734 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21735 (STARTFILE_SPEC): Split crt3 into a separate spec.
21736 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21737 (DARWIN_CRT2_SPEC): New.
21738 (DARWIN_CRT3_SPEC): New.
21739 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21740 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21741 (DARWIN_CRT3_SPEC): New.
21742
21743 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21744
21745 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21746 Change the RTL attribute "length" from "4" to "*" to allow the
21747 length attribute to be adjusted automatically for prefixed load,
21748 store, and add immediate instructions.
21749 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21750 Likewise.
21751 (extendsi<mode>2, EXTSI iterator): Likewise.
21752 (movsi_internal1): Likewise.
21753 (movsi_from_sf): Likewise.
21754 (movdi_from_sf_zero_ext): Likewise.
21755 (mov<mode>_internal): Likewise.
21756 (movcc_internal1, QHI iterator): Likewise.
21757 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21758 (movsf_from_si): Likewise.
21759 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21760 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21761 (mov<mode>, FMOVE128 iterator): Likewise.
21762 (movdi_internal64): Likewise.
21763 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21764 Likewise.
21765 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21766 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21767 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21768 (vsx_splat_v4sf): Likewise.
21769
21770 2019-07-03 Mark Wielaard <mark@klomp.org>
21771
21772 PR debug/90981
21773 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21774 DW_AT_addr_base if there is actually a .debug_addr section with
21775 addresses.
21776 (output_addr_table): Add DWARF5 table header generation here after
21777 checking there are actually any addresses from...
21778 (dwarf2out_finish): ...here.
21779
21780 2019-07-03 Richard Biener <rguenther@suse.de>
21781
21782 PR middle-end/91069
21783 * match.pd (vec_perm -> bit_insert): Fix element read from
21784 first vector.
21785
21786 2019-07-03 Martin Liska <mliska@suse.cz>
21787
21788 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21789 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21790 condition.
21791 * generic-match-head.c: Include dbgcnt.h.
21792 * gimple-match-head.c: Likewise.
21793
21794 2019-07-03 Martin Liska <mliska@suse.cz>
21795
21796 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21797 (GCOV_COUNTER_V_TOPN): New.
21798 (GCOV_COUNTER_V_INDIR): Use _topn.
21799 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21800 (GCOV_TOPN_VALUES): New.
21801 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21802 (GCOV_TOPN_VALUES_COUNTERS): New.
21803 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21804 * tree-profile.c:
21805 (gimple_init_gcov_profiler): Rename variables from one_value
21806 to topn_values.
21807 (gimple_gen_one_value_profiler): Remove.
21808 (gimple_gen_topn_values_profiler): New function.
21809 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21810 names instead of SINGLE_VALUE.
21811 (stream_out_histogram_value): Likewise.
21812 (stream_in_histogram_value): Likewise.
21813 (get_most_common_single_value): Likewise.
21814 (gimple_divmod_fixed_value_transform): Likewise.
21815 (gimple_stringops_transform): Likewise.
21816 (gimple_divmod_values_to_profile): Likewise.
21817 (gimple_stringops_values_to_profile): Likewise.
21818 (gimple_find_values_to_profile): Likewise.
21819 * value-prof.h (enum hist_type): Rename to TOPN.
21820 (gimple_gen_one_value_profiler): Remove.
21821 (gimple_gen_topn_values_profiler): New.
21822
21823 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21824
21825 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21826 if it has the DW_AT_data_member_location attribute.
21827
21828 2019-07-03 Richard Biener <rguenther@suse.de>
21829
21830 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21831 dumping.
21832
21833 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21834
21835 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21836 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21837 (tlsdesc_small_sve_<mode>): Likewise.
21838
21839 2019-07-03 Martin Liska <mliska@suse.cz>
21840
21841 * Makefile.in: Define ZSTD_LIB.
21842 * common.opt: Adjust compression level
21843 to support also zstd levels.
21844 * config.in: Regenerate.
21845 * configure: Likewise.
21846 * configure.ac: Add --with-zstd and --with-zstd-include options
21847 and detect ZSTD.
21848 * doc/install.texi: Mention zstd dependency.
21849 * gcc.c: Print supported LTO compression algorithms.
21850 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21851 (lto_compression_zstd): Likewise.
21852 (lto_uncompression_zstd): Likewise.
21853 (lto_end_compression): Dispatch in between zlib and zstd.
21854 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21855 (lto_uncompression_zlib): Make it static.
21856 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21857 * lto-section-in.c (lto_get_section_data): Pass info
21858 about used compression.
21859 * lto-streamer-out.c: By default use zstd when possible.
21860 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21861 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21862
21863 2019-07-03 Martin Liska <mliska@suse.cz>
21864
21865 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21866 * lto-section-out.c (lto_destroy_simple_output_block): Never
21867 compress LTO_section_lto section.
21868 * lto-streamer-out.c (produce_asm): Do not set major_version
21869 and minor_version.
21870 (lto_output_toplevel_asms): Likewise.
21871 (produce_lto_section): New function.
21872 (lto_output): Call produce_lto_section.
21873 (lto_write_mode_table): Do not set major_version and
21874 minor_version.
21875 (produce_asm_for_decls): Likewise.
21876 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21877 type.
21878 (struct lto_header): Remove.
21879 (struct lto_section): New struct.
21880 (struct lto_simple_header): Do not inherit from lto_header.
21881 (struct lto_file_decl_data): Add lto_section_header field.
21882
21883 2019-07-03 Martin Liska <mliska@suse.cz>
21884
21885 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21886 dead assignemts.
21887 * reg-stack.c (check_asm_stack_operands): Likewise.
21888 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21889 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21890 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21891 force_expand_binop.
21892
21893 2019-07-03 Martin Liska <mliska@suse.cz>
21894
21895 PR tree-optimization/90892
21896 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21897 in string constants.
21898
21899 2019-07-03 Martin Liska <mliska@suse.cz>
21900
21901 PR middle-end/90899
21902 * multiple_target.c (create_dispatcher_calls): Add to comdat
21903 group only if set for ifunc.
21904
21905 2019-07-03 Martin Liska <mliska@suse.cz>
21906
21907 PR target/88056
21908 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21909 Define local_object_name in outer scope in order to handle
21910 use-after-scope issue.
21911
21912 2019-07-03 Martin Liska <mliska@suse.cz>
21913
21914 * common.opt: Add fprofile-note.
21915 * coverage.c (coverage_init): Append the option
21916 to bbg_file_name.
21917 * doc/invoke.texi: Document -fprofile-note.
21918
21919 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21920
21921 PR tree-optimization/91033
21922 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21923 vect_analyze_data_refs): Add bool * arguments.
21924 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21925 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21926 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21927 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21928 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21929 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21930 vect_analyze_data_refs caller.
21931
21932 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21933 clause.
21934 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21935 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21936 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21937 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21938 OMP_CLAUSE__SCANTEMP_ entry.
21939 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21940 * tree-pretty-print.c (dump_omp_clause): Likewise.
21941 * tree-nested.c (convert_nonlocal_omp_clauses,
21942 convert_local_omp_clauses): Likewise.
21943 * omp-general.h (struct omp_for_data): Add have_scantemp and
21944 have_nonctrl_scantemp members.
21945 * omp-general.c (omp_extract_for_data): Initialize them.
21946 * omp-low.c (struct omp_context): Add scan_exclusive member.
21947 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21948 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21949 ctx->scan_exclusive.
21950 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21951 of !ctx->scan_inclusive.
21952 (lower_rec_input_clauses): Simplify gimplification of dtors using
21953 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21954 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21955 loops. Don't add barrier for reduction_omp_orig_ref if
21956 ctx->scan_??xclusive.
21957 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21958 (lower_omp_scan): Use ctx->scan_exclusive instead
21959 of !ctx->scan_inclusive. Handle worksharing loops with inscan
21960 reductions. Use new_vard != new_var instead of repeated
21961 omp_is_reference calls.
21962 (omp_find_scan, lower_omp_for_scan): New functions.
21963 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21964 inscan reductions.
21965 * omp-expand.c (expand_omp_scantemp_alloc): New function.
21966 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21967 and fd->have_scantemp.
21968
21969 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21970 on worksharing loop propagate it as shared clause to containing
21971 combined parallel.
21972
21973 * omp-expand.c (expand_omp_for_static_nochunk,
21974 expand_omp_for_static_chunk): For nowait worksharing loop with
21975 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21976 at the end.
21977
21978 2019-07-02 qing zhao <qing.zhao@oracle.com>
21979
21980 PR preprocessor/90581
21981 * doc/cppopts.texi: Add document for -fmax-include-depth.
21982 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21983
21984 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
21985
21986 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21987 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21988 (mmx_packssdw): Ditto.
21989 (mmx_punpckhbw): Ditto.
21990 (mmx_punpcklbw): Ditto.
21991 (mmx_punpckhwd): Ditto.
21992 (mmx_punpcklwd): Ditto.
21993 (mmx_punpckhdq): Ditto.
21994 (mmx_punpckldq): Ditto.
21995 (*vec_dupv4hi): Ditto.
21996 (*vec_dupv2si): Ditto.
21997 (mmx_pmovmskb): Ditto.
21998 * config/i386/sse.md (sse_cvtpi2ps): Use
21999 TARGET_SSE2 && SSE_REG_P in split condition.
22000 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22001 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22002 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22003 (ssse3_pshufbv8qi3): Ditto.
22004 (ssse3_palignrdi): Ditto.
22005
22006 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22007
22008 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22009 with inlined save and restore.
22010
22011 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22012
22013 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22014 to be inserted on single successor edge of the entry block. Then call
22015 commit_edge_insertions instead of inserting the instructions manually.
22016 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22017 RTL expansion and rebuild jump labels chain.
22018
22019 2019-07-02 Richard Biener <rguenther@suse.de>
22020
22021 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22022 TI_CHREC_KNOWN.
22023 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22024 Define here.
22025 * tree.c (build_common_tree_nodes): Initialize them.
22026 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22027 Make declarations comments.
22028 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22029 chrec_known): Remove definitions.
22030 (initialize_scalar_evolutions_analyzer): Remove.
22031 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22032 * tree-streamer.c (preload_common_nodes): Do not preload
22033 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22034
22035 2019-07-02 Jan Hubicka <jh@suse.cz>
22036
22037 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22038 sanity check.
22039
22040 2019-07-02 Jan Hubicka <jh@suse.cz>
22041
22042 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22043 to ..
22044 (nonoverlapping_component_refs_since_match_p): ... this one;
22045 handle also non-decl bases; return -1 if search gave up.
22046 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22047 nonoverlapping_component_refs_of_decl_p_no_alias to
22048 nonoverlapping_component_refs_since_match_p_may_alias,
22049 nonoverlapping_component_refs_since_match_p_no_alias.
22050 (dump_alias_stats): Update dumping.
22051 (aliasing_matching_component_refs_p): Break out from ...;
22052 dispatch to nonoverlapping_component_refs_for_decl_p
22053 and nonoverlapping_component_refs_since_match_p.
22054 (aliasing_component_refs_p): ... here; call
22055 nonoverlapping_component_refs_p in scenarios where we can not
22056 precisely determine base match.
22057 (decl_refs_may_alias_p): Use
22058 nonoverlapping_component_refs_since_match_p.
22059 (indirect_ref_may_alias_decl_p): Do not call
22060 nonoverlapping_component_refs_p.
22061 (indirect_refs_may_alias_p): Likewise.
22062
22063 2019-07-02 Jan Hubicka <jh@suse.cz>
22064
22065 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22066 to clobber of return value.
22067
22068 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22069
22070 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22071 for is_neon_type instructions that have not already been categorized.
22072
22073 2019-07-02 Richard Biener <rguenther@suse.de>
22074
22075 PR tree-optimization/58483
22076 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22077 for MEM_REF base hashing.
22078 (equal_mem_array_ref_p): Likewise for base comparison.
22079
22080 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22081
22082 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22083 parameterized name.
22084 (signbit<mode>2): Use that name. Simplify.
22085
22086 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22087
22088 PR middle-end/66726
22089 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22090 Tune heuristic from PR71016 to allow MIN / MAX.
22091
22092 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22093
22094 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22095 parameterized name.
22096 (abs<mode>2): Use that name. Simplify.
22097
22098 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22099
22100 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22101 parameterized name.
22102 (neg<mode>2): Use that name. Simplify.
22103
22104 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22105
22106 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22107 name.
22108 (abs<mode>2): Use that name. Simplify.
22109
22110 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22111
22112 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22113 name.
22114 (neg<mode>2): Use that name. Simplify.
22115
22116 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22117
22118 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22119 ("enabled" attribute): Handle sse_noavx isa attribute.
22120 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22121 Use TARGET_SSE && SSE_REGNO_P in split condition.
22122 (*vec_dupv2sf): Ditto.
22123
22124 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22125
22126 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22127 name.
22128 (floatsi<mode>2): Use that name. Simplify.
22129
22130 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22131
22132 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22133 parameterized name.
22134 (extenddf<mode>2_vsx): Make this a parameterized name.
22135 (extenddf<mode>2): Use those names. Simplify.
22136
22137 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22138
22139 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22140 name.
22141 (eh_return): Use that name. Simplify.
22142
22143 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22144
22145 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22146 (doloop_end): Use that name. Simplify.
22147
22148 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22149
22150 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22151 parameterized name.
22152 (indirect_jump): Use that name. Simplify.
22153
22154 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22155
22156 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22157 parameterized name.
22158 (abs<mode>2): Use that name. Simplify.
22159
22160 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22161
22162 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22163 parameterized name.
22164 (fix_trunc<mode>si2): Use that name. Simplify.
22165
22166 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22167
22168 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22169 (allocate_stack): Use that name. Simplify.
22170
22171 2019-07-01 Martin Sebor <msebor@redhat.com>
22172
22173 PR middle-end/90923
22174 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22175 (hash_map::get_or_insert): Same. Reformat comment.
22176 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22177 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22178 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22179 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22180 (hash_table::hash_table (const hash_table&)): Use copy ctor
22181 instead of assignment to copy elements.
22182
22183 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22184 John David Anglin <danglin@gcc.gnu.org>
22185
22186 PR target/90963
22187 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22188 using saved frame pointer.
22189
22190 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22191
22192 PR middle-end/64242
22193 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22194 Add frame clobber and schedule blockage.
22195
22196 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22197
22198 * doc/invoke.texi (Link Options): Further editorial changes to
22199 -flinker-output docs.
22200
22201 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22202
22203 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22204 Load both operands of a PLUS into registers separately.
22205
22206 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22207
22208 * config/s390/vector.md: Fix shift count operand printing.
22209
22210 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22211
22212 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22213
22214 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22215
22216 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22217 Use recog_data to test for an output operand.
22218
22219 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22220
22221 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22222 exclude any others that are disparaged or that are bound to need
22223 a reload or spill.
22224 (ira_get_dup_out_num): Expand comment.
22225
22226 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22227
22228 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22229 constraint string for each operand/alternative combo. Only handle
22230 '%' at the start of constraint strings, and look for it outside
22231 the main loop.
22232
22233 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22234
22235 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22236 alternative_mask instead of HARD_REG_SET to represent a
22237 bitmask of alternatives.
22238 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22239 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22240
22241 2019-07-01 Martin Liska <mliska@suse.cz>
22242
22243 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22244 use () for a constructor call.
22245 (test_applying_fixits_line_out_of_range): Likewise.
22246 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22247 argument.
22248 (free_page): Likewise.
22249
22250 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22251
22252 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22253 parameter names to match usage (no functional change).
22254 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22255
22256 2019-07-01 Richard Biener <rguenther@suse.de>
22257
22258 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22259 pass parameter.
22260 (pass_fre::execute): Honor it.
22261 * passes.def: Adjust pass_fre invocations to allow iterating,
22262 add non-iterating pass_fre before late threading/dom.
22263
22264 2019-07-01 Richard Biener <rguenther@suse.de>
22265
22266 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22267 TARGET_MEM_REF handling to also handle address-taken ones.
22268
22269 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22270
22271 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22272 hardware attributes): Document avx512vp2intersect.
22273
22274 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22275
22276 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22277 (abs<mode>2): New expander.
22278 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22279 Use CODE_FOR_ssse3_absv8qi2.
22280 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22281 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22282
22283 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22284
22285 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22286 to sse, sse_noavx and avx. Update all uses.
22287
22288 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22289
22290 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22291 (*mmx_<plusminus_insn><mode>3): Ditto.
22292 (*mmx_mulv4hi3"): Ditto.
22293 (*mmx_smulv4hi3_highpart): Ditto.
22294 (*mmx_umulv4hi3_highpart): Ditto.
22295 (*mmx_pmaddwd): Ditto.
22296 (*sse2_umulv1siv1di3): Ditto.
22297 (*mmx_<code>v4hi3): Ditto.
22298 (*mmx_<code>v8qi3): Ditto.
22299 (mmx_ashr<mode>3): Ditto.
22300 ("mmx_<shift_insn><mode>3): Ditto.
22301 (*mmx_eq<mode>3): Ditto.
22302 (mmx_gt<mode>3): Ditto.
22303 (mmx_andnot<mode>3): Ditto.
22304 (*mmx_<code><mode>3): Ditto.
22305 (*mmx_pinsrw): Ditto.
22306 (*mmx_pextrw): Ditto.
22307 (mmx_pshufw_1): Ditto.
22308 (*mmx_uavgv8qi3): Ditto.
22309 (*mmx_uavgv4hi3): Ditto.
22310 ("mmx_psadbw): Ditto.
22311 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22312 (sse_cvttps2pi): Ditto.
22313 (ssse3_pmaddubsw): Ditto.
22314 (*ssse3_pmulhrswv4hi3): Ditto.
22315 (ssse3_psign<mode>3): Ditto.
22316
22317 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22318
22319 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22320 adjustment for bit-fields to all aggregate types.
22321
22322 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22323
22324 * config/rs6000/predicates.md (pcrel_address): Use
22325 SYMBOL_REF_LOCAL_P to determine if a label is local.
22326 (pcrel_external_address): New predicate.
22327 (non_prefixed_mem_operand): Delete, predicate not used.
22328 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22329 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22330 addressing.
22331 (SYMBOL_REF_PCREL_P): Likewise.
22332
22333 PR target/91009
22334 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22335 alternative.
22336 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22337 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22338 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22339
22340 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22341
22342 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22343 override on extra_headers.
22344
22345 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22346
22347 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22348 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22349 from warning.
22350 (darwin_driver_init): Likewise.
22351
22352 2019-06-28 Jan Beulich <jbeulich@suse.com>
22353
22354 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22355 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22356 Eliminate redundant alternative.
22357
22358 2019-06-28 Jan Beulich <jbeulich@suse.com>
22359
22360 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22361 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22362 Use vector_operand.
22363
22364 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22365
22366 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22367 having a lower cost regardless of the speed option.
22368
22369 2019-06-28 Jan Beulich <jbeulich@suse.com>
22370
22371 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22372 vector_operand plus, on both alternatives, "Bm" constraint.
22373
22374 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22375
22376 * config/arm/arm.md: Remove redundant constraints from
22377 define_expand but leave reload_inm and reload_outm patterns
22378 untouched since they need special constraints to work.
22379 * config/arm/arm-fixed.md: Remove redundant constraints from
22380 define_expand.
22381 * config/arm/iwmmxt.md: Likewise.
22382 * config/arm/neon.md: Likewise.
22383 * config/arm/sync.md: Likewise.
22384 * config/arm/thumb1.md: Likewise.
22385 * config/arm/vec-common.md: Likewise.
22386
22387 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22388
22389 * doc/install.texi: Document --disable-tm-clone-registry.
22390
22391 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22392
22393 PR c++/91024
22394 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22395 statements.
22396
22397 PR tree-optimization/91010
22398 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22399 return true. Otherwise, don't call operand_equal_p if offset1 or
22400 offset2 is NULL and just return false.
22401
22402 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22403
22404 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22405 user-specified float mode choice for kernel mode code.
22406
22407 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22408
22409 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22410 spec.
22411
22412 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22413
22414 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22415 use longcall for 64b code.
22416
22417 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22418
22419 * builtins.c (get_memory_rtx): Fix comment.
22420 * optabs.def (movmem_optab): Change to cpymem_optab.
22421 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22422 (emit_block_move_hints): Change movmem to cpymem.
22423 * defaults.h: Change movmem to cpymem.
22424 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22425 (default_use_by_pieces_infrastructure_p): Ditto.
22426 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22427 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22428 to cpymem.
22429 * config/aarch64/aarch64.h: Change movmem to cpymem.
22430 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22431 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22432 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22433 movmem to cpymem.
22434 * config/arc/arc-protos.h: Change movmem to cpymem.
22435 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22436 * config/arc/arc.h: Change movmem to cpymem in comment.
22437 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22438 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22439 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22440 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22441 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22442 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22443 * config/avr/avr-protos.h: Change movmem to cpymem.
22444 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22445 avr_out_movmem): Change movmem to cpymem.
22446 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22447 Change movmem to cpymem.
22448 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22449 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22450 Change movmem to cpymem.
22451 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22452 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22453 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22454 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22455 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22456 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22457 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22458 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22459 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22460 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22461 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22462 expand_small_cpymem_or_setmem,
22463 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22464 expand_set_or_cpymem_constant_prologue,
22465 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22466 * config/i386/i386-protos.h: Change movmem to cpymem.
22467 * config/i386/i386.h: Change movmem to cpymem in comment.
22468 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22469 (setmem<mode>): Change expansion function name.
22470 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22471 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22472 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22473 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22474 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22475 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22476 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22477 to cpymem.
22478 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22479 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22480 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22481 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22482 Change movmem to cpymem.
22483 * config/mips/mips.h: Change movmem to cpymem.
22484 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22485 * config/nds32/nds32-memory-manipulation.c
22486 (nds32_expand_movmemsi_loop_unknown_size,
22487 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22488 nds32_expand_movmemsi_unroll,
22489 nds32_expand_movmemsi): Change movmem to cpymem.
22490 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22491 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22492 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22493 (pa_adjust_insn_length): Change call to compute_movmem_length.
22494 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22495 movmemdi, movmemdi_prereload,
22496 movmemdi_postreload): Change movmem to cpymem.
22497 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22498 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22499 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22500 * config/riscv/riscv.h: Change movmem to cpymem.
22501 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22502 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22503 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22504 movmem to cpymem.
22505 * config/s390/s390-protos.h: Change movmem to cpymem.
22506 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22507 s390_expand_insv): Change movmem to cpymem.
22508 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22509 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22510 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22511 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22512 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22513 for nonexistent function.
22514 * config/vax/vax.h: Change movmem to cpymem in comment.
22515 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22516 * config/visium/visium.h: Change movmem to cpymem in comment.
22517 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22518 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22519 * doc/md.texi: Change movmem to cpymem and update description to match.
22520 * doc/rtl.texi: Change movmem to cpymem.
22521 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22522 * doc/tm.texi: Regenerate.
22523
22524 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22525
22526 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22527 -fvariable-expansion-in-unroller by default.
22528 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22529 default for Power.
22530
22531 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22532
22533 Revert
22534 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22535 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22536
22537 * config.gcc(rs6000-*-*): Define target_gtfiles.
22538
22539 2019-06-27 Jan Hubicka <jh@suse.cz>
22540
22541 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22542 (add_type_duplicate): When odr hash is not allocated, to nothing.
22543 (odr_based_tbaa_p): New function.
22544 (set_type_canonical_for_odr_type): New function.
22545 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22546 set_type_canonical_for_odr_type): New.
22547 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22548 ODR based TBAA are not equivalent to non-ODR types.
22549
22550 2019-06-27 Martin Liska <mliska@suse.cz>
22551
22552 PR tree-optimization/90974
22553 PR rtl-optimization/90975
22554 PR rtl-optimization/90976
22555 PR target/91016
22556 PR tree-optimization/91017
22557 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22558 unused tmp.
22559 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22560 initial commit of IRA.
22561 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22562 of op0 and op1.
22563 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22564 Remove unused mode1.
22565 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22566 to new_stmt_info.
22567
22568 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22569
22570 PR target/90991
22571 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22572 instead of register_operand for operands[1], add m to its constraints
22573 if operands[2] uses "C" constraint. Ensure in condition that if
22574 operands[2] is not 0, then operands[1] is not a MEM. For last two
22575 alternatives, use unaligned loads instead of aligned if operands[1] is
22576 misaligned_operand.
22577
22578 2019-06-27 Martin Liska <mliska@suse.cz>
22579
22580 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22581 dead assignments.
22582 * bt-load.c (move_btr_def): Likewise.
22583 * builtins.c (expand_builtin_apply_args_1): Likewise.
22584 (expand_builtin_apply): Likewise.
22585 * cfgexpand.c (expand_asm_stmt): Likewise.
22586 (construct_init_block): Likewise.
22587 * cfghooks.c (verify_flow_info): Likewise.
22588 * cfgloopmanip.c (remove_path): Likewise.
22589 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22590 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22591 * combine.c (simplify_if_then_else): Likewise.
22592 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22593 (choose_basereg): Likewise.
22594 (ix86_expand_prologue): Likewise.
22595 (ix86_preferred_output_reload_class): Likewise.
22596 * cselib.c (cselib_record_sets): Likewise.
22597 * df-scan.c (df_scan_alloc): Likewise.
22598 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22599 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22600 * emit-rtl.c (try_split): Likewise.
22601 * graphite-scop-detection.c (assign_parameter_index_in_region):
22602 Likewise.
22603 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22604 * ira-color.c (setup_profitable_hard_regs): Likewise.
22605 * ira.c (rtx_moveable_p): Likewise.
22606 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22607 * read-rtl.c (read_subst_mapping): Likewise.
22608 * regrename.c (scan_rtx): Likewise.
22609 * reorg.c (fill_slots_from_thread): Likewise.
22610 * tree-inline.c (tree_function_versioning): Likewise.
22611 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22612 * tree-ssa-sink.c (statement_sink_location): Likewise.
22613 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22614 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22615 (vect_create_epilog_for_reduction): Likewise.
22616 * tree.c (build_nonstandard_integer_type): Likewise.
22617
22618 2019-06-27 Richard Biener <rguenther@suse.de>
22619
22620 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22621
22622 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22623
22624 PR tree-optimization/89772
22625 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22626 out-of-bound accesses checking.
22627
22628 2019-06-27 Martin Liska <mliska@suse.cz>
22629
22630 PR tree-optimization/91014
22631 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22632 when LHS is NULL_TREE.
22633
22634 2019-06-27 Martin Liska <mliska@suse.cz>
22635
22636 * symbol-summary.h (traverse): Pass
22637 argument a to the call of callback.
22638 (gt_ggc_mx): Mark arguments as unused.
22639 (gt_pch_nx): Likewise.
22640
22641 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22642
22643 PR target/62147
22644 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22645 finiteness.
22646
22647 2019-06-26 Jeff Law <law@redhat.com>
22648
22649 PR tree-optimization/90883
22650 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22651 (delete_dead_or_redundant_assignment): Likewise.
22652
22653 PR tree-optimization/90883
22654 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22655 * tree-ssa-dse.c: Update various comments to distinguish between
22656 dead and redundant stores.
22657 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22658 (dse_optimize_redundant_stores): New function.
22659 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22660 Distinguish between dead and redundant calls in dump output. All
22661 callers updated.
22662 (delete_dead_or_redundant_assignment): Similarly for assignments.
22663 (dse_optimize_stmt): Handle _CHK variants. For statements which
22664 store 0 into multiple memory locations, try to prove a subsequent
22665 store is redundant.
22666
22667 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22668
22669 PR target/89021
22670 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22671 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22672
22673 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22674
22675 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22676 (branch_islands): New extern.
22677 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22678 * config/rs6000/rs6000.c: .. here.
22679
22680 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22681
22682 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22683 (powerpc*-*-*) ... to here.
22684
22685 2019-06-26 Jeff Law <law@redhat.com>
22686
22687 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22688 memcpy, memmove and memset builtins.
22689 (maybe_trim_memstar_call): Likewise.
22690
22691 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22692
22693 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22694
22695 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22696
22697 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22698
22699 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22700
22701 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22702 declaration.
22703 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22704 "static".
22705 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22706 declaration.
22707
22708 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22709
22710 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22711
22712 2019-06-26 Richard Biener <rguenther@suse.de>
22713
22714 PR ipa/90982
22715 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22716
22717 2019-06-26 Richard Biener <rguenther@suse.de>
22718
22719 * lto-streamer.h (lto_bitmap_alloc): Remove.
22720 (lto_bitmap_free): Likewise.
22721 * lto-streamer.c (lto_bitmap_alloc): Remove.
22722 (lto_bitmap_free): Likewise.
22723 (lto_obstack): Likewise.
22724 (lto_obstack_initialized): Likewise.
22725 * lto-streamer-out.c (lto_output): Use own obstack for local
22726 bitmap, free it consistently.
22727
22728 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22729
22730 PR target/90991
22731 * config/i386/sse.md
22732 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22733 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22734 insns if operands[2] is misaligned_operand.
22735
22736 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22737
22738 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22739 TARGET_POWERPC64.
22740 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22741 to GPR.
22742
22743 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22744
22745 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22746
22747 2019-06-26 Martin Liska <mliska@suse.cz>
22748
22749 PR tree-optimization/90973
22750 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22751 epilogue_cost_vec instead of prologue_cost_vec for
22752 a epilogue cost.
22753
22754 2019-06-26 Martin Liska <mliska@suse.cz>
22755
22756 * bb-reorder.c (connect_better_edge_p): Add missing else
22757 statement in the middle of if-else statements.
22758
22759 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22760 H.J. Lu <hongjiu.lu@intel.com>
22761 Olga Makhotina <olga.makhotina@intel.com>
22762
22763 * common/config/i386/i386-common.c
22764 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22765 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22766 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22767 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22768 (ix86_handle_option): Handle -mavx512vp2intersect.
22769 * config/i386/avx512vp2intersectintrin.h: New.
22770 * config/i386/avx512vp2intersectvlintrin.h: New.
22771 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22772 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22773 AVX512VP2INTERSECT.
22774 * config/i386/i386-builtin-types.def: Add new types.
22775 * config/i386/i386-builtin.def: Add new builtins.
22776 * config/i386/i386-builtins.c: (enum processor_features): Add
22777 F_AVX512VP2INTERSECT.
22778 (static const _isa_names_table isa_names_table): Ditto.
22779 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22780 __AVX512VP2INTERSECT__.
22781 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22782 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22783 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22784 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22785 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22786 * config/i386/i386-options.c (ix86_target_string): Add
22787 -mavx512vp2intersect.
22788 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22789 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22790 P2HImode and P2QImode.
22791 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22792 number for P2QImode and P2HImode.
22793 (ix86_regmode_natural_size): New function.
22794 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22795 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22796 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22797 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22798 * config/i386/i386.opt: Add -mavx512vp2intersect.
22799 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22800 avx512vp2intersectvlintrin.h.
22801 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22802 (define_mode_iterator VI48_AVX512VP2VL): New.
22803 (avx512vp2intersect_2intersect<mode>,
22804 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22805 * config.gcc: Add avx512vp2intersectvlintrin.h and
22806 avx512vp2intersectintrin.h to extra_headers.
22807 * doc/invoke.texi: Document -mavx512vp2intersect.
22808
22809 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22810
22811 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22812
22813 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22814
22815 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22816 savres_routine_syms, savres_routine_name, morestack_ref,
22817 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22818 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22819 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22820 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22821 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22822 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22823 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22824 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22825 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22826 get_stack_clash_protection_probe_interval,
22827 get_stack_clash_protection_guard_size,
22828 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22829 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22830 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22831 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22832 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22833 gen_frame_mem_offset, rs6000_savres_routine_name,
22834 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22835 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22836 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22837 rs6000_global_entry_point_prologue_needed_p,
22838 rs6000_get_separate_components, rs6000_components_for_bb,
22839 rs6000_disqualify_components, rs6000_emit_prologue_components,
22840 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22841 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22842 rs6000_output_savres_externs, rs6000_output_function_prologue,
22843 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22844 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22845 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22846 rs6000_output_function_epilogue, gen_add3_const,
22847 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22848 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22849 to rs6000-logue.c.
22850 (machine_function): Moved to rs6000.h.
22851 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22852 rs6000-internal.h.
22853 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22854 savres_routine_syms, savres_routine_name, morestack_ref,
22855 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22856 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22857 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22858 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22859 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22860 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22861 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22862 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22863 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22864 get_stack_clash_protection_probe_interval,
22865 get_stack_clash_protection_guard_size,
22866 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22867 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22868 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22869 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22870 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22871 gen_frame_mem_offset, rs6000_savres_routine_name,
22872 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22873 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22874 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22875 rs6000_global_entry_point_prologue_needed_p,
22876 rs6000_get_separate_components, rs6000_components_for_bb,
22877 rs6000_disqualify_components, rs6000_emit_prologue_components,
22878 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22879 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22880 rs6000_output_savres_externs, rs6000_output_function_prologue,
22881 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22882 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22883 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22884 rs6000_output_function_epilogue, gen_add3_const,
22885 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22886 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22887 to here from rs6000.c.
22888 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22889 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22890 quad_address_offset_p) Moved to here from rs6000.c.
22891 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22892 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22893 collector.
22894
22895 2019-06-25 Martin Liska <mliska@suse.cz>
22896
22897 * hash-table.c (hashtab_chk_error): Move here from ...
22898 * hash-table.h (hashtab_chk_error): ... here.
22899
22900 2019-06-25 Martin Liska <mliska@suse.cz>
22901
22902 PR tree-optimization/90978
22903 * df-scan.c (df_update_entry_block_defs): Remove dead else
22904 branch.
22905 (df_update_exit_block_uses): Likewise.
22906
22907 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22908 Andrew Stubbs <ams@codesourcery.com>
22909
22910 * config.gcc (thread_file): Set to gcn for AMD GCN.
22911 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22912 (TARGET_EMUTLS_VAR_INIT): New hook.
22913
22914 2019-06-25 Martin Jambor <mjambor@suse.cz>
22915
22916 PR ipa/90939
22917 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22918
22919 2019-06-25 Richard Biener <rguenther@suse.de>
22920
22921 PR tree-optimization/90930
22922 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22923 into parallel form in the last pass instance.
22924
22925 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22926
22927 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22928 (arc_legitimize_pic_address): Simplify and cleanup the function.
22929 (SYMBOLIC_CONST): Remove.
22930 (prepare_pic_move): Likewise.
22931 (prepare_move_operands): Handle complex mov cases here.
22932 (arc_legitimize_address_0): Remove call to
22933 arc_legitimize_pic_address.
22934 (arc_legitimize_address): Remove call to
22935 arc_legitimize_tls_address.
22936 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22937 (movhi_insn): Likewise.
22938
22939 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22940
22941 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22942 PTRDIFF_TYPE.
22943 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22944 format of "__intN" types for UINTMAX_TYPE.
22945 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22946 format of "__intN" types for SIZETYPE.
22947 * tree.c (build_common_tree_nodes): Accept "__intN__"
22948 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22949 * doc/invoke.texi: Document that __intN__ disables pedantic
22950 warnings.
22951
22952 2019-06-25 Jan Hubicka <jh@suse.cz>
22953
22954 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22955 base2_alias_set is non-zero before doing TBAA based disambiguation.
22956
22957 2019-06-25 Martin Liska <mliska@suse.cz>
22958
22959 PR tree-optimization/90973
22960 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22961 of prologue and epilogue.
22962
22963 2019-06-24 Jan Hubicka <jh@suse.cz>
22964
22965 * ipa-utils.h (type_with_linkage_p): Verify that type is
22966 CXX_ODR_P.
22967 (odr_type_p): Remove extra return.
22968 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22969 hash STRING_FLAG only for arrays and integers.
22970 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22971 Update analogously.
22972 * tree-streamer-out.c (pack_ts_type_common_value_fields):
22973 Likewise.
22974 * print-tree.c (print_node): Print cxx-odr-p
22975 and string-flag.
22976 * tree.c (need_assembler_name_p): Also check that type
22977 is CXX_ODR_TYPE_P
22978 (verify_type_variant): Update verification of SRING_FLAG;
22979 also check CXX_ODR_P.
22980 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22981 (TYPE_STRING_FLAG): Use it.
22982 (TYPE_CXX_ODR_P): New macro.
22983 * dwarf2out.c (gen_array_type_die): First check that type
22984 is an array and then test string flag.
22985
22986 2019-06-24 Richard Biener <rguenther@suse.de>
22987
22988 PR tree-optimization/90972
22989 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22990 in common code, dealing with STRING_CST properly.
22991
22992 2019-06-24 Richard Biener <rguenther@suse.de>
22993
22994 PR tree-optimization/90930
22995 PR tree-optimization/90316
22996 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22997 decrement of limit.
22998
22999 2019-06-24 Martin Sebor <msebor@redhat.com>
23000
23001 * tree-pretty-print.h: Remove unnecessary punctuation characters
23002 from a diagnostic.
23003 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23004
23005 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23006
23007 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23008 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23009 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23010
23011 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23012
23013 * config/rs6000/darwin.h: Handle GCC target pragma.
23014
23015 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23016
23017 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23018
23019 2019-06-22 Jeff Law <law@redhat.com>
23020
23021 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23022
23023 2019-06-22 Jan Hubicka <jh@suse.cz>
23024
23025 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23026 give up on bitfields; continue searching for different refs
23027 appearing later.
23028
23029 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23030
23031 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23032 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23033 containing the offset as possible simd lane access. Look through
23034 widening conversion. Move the
23035 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23036
23037 2019-06-21 Richard Biener <rguenther@suse.de>
23038
23039 PR tree-optimization/90930
23040 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23041 flag on new stmts to avoid re-processing them.
23042
23043 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23044
23045 PR c++/90875 - added -Wswitch-outside-range option
23046 * doc/invoke.texi (Wswitch-outside-range): Document.
23047
23048 2019-06-21 Jeff Law <law@redhat.com>
23049
23050 PR tree-optimization/90949
23051 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23052 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23053
23054 2019-06-21 Richard Biener <rguenther@suse.de>
23055
23056 PR debug/90914
23057 * dwarf2out.c (prune_unused_types_walk): Always consider
23058 function-local extern declarations as used.
23059
23060 2019-06-21 Richard Biener <rguenther@suse.de>
23061
23062 PR tree-optimization/90913
23063 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23064 the scalar variant of if-conversion versioning.
23065
23066 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23067
23068 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23069 create another "omp scan inscan exclusive" array if
23070 !ctx->scan_inclusive.
23071 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23072 (lower_omp_scan): Likewise.
23073 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23074 2-bit bitfield for simd_lane_access_p member.
23075 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23076 aux == (void *)-4 as simd lane access.
23077 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23078 comment with permutations to show the canonical permutation order.
23079 (vectorizable_scan_store): Handle exclusive scan.
23080 (vectorizable_store): Call vectorizable_scan_store even for
23081 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23082
23083 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23084 "omp simd array" arrays with one byte elements.
23085
23086 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23087
23088 * config/alpha/alpha.md (@unaligned_store<mode>):
23089 Rename from unaligned_store<mode>.
23090 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23091 * config/alpha/sync.md (@load_locked_<mode>): Rename
23092 from load_locked_<mode>.
23093 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23094 (@atomic_compare_and_swap<mode>_1): Rename
23095 from atomic_compare_and_swap<mode>_1.
23096 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23097 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23098 Use gen_reload_in_aligned and gen_unaligned_store.
23099 (emit_load_locked): Remove.
23100 (emit_store_conditional): Ditto.
23101 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23102 (alpha_split_compare_and_swap): Ditto.
23103 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23104 (alpha_split_compare_and_swap_12): Use gen_load_locked
23105 and gen_store_conditional.
23106 (alpha_split_atomic_exchange): Ditto.
23107 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23108 (alpha_split_atomic_exchange_12): Use gen_load_locked
23109 and gen_store_conditional.
23110
23111 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23112
23113 * config/aarch64/aarch64-errata.h: New file.
23114 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23115 (CA53_ERR_843419_SPEC): Delete.
23116 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23117 * config/aarch64/aarch64-linux.h: Likewise.
23118 * config/aarch64/aarch64-netbsd.h: Likewise.
23119 * config/aarch64/aarch64-freebsd.h: Likewise.
23120
23121 2019-06-20 Marek Polacek <polacek@redhat.com>
23122
23123 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23124
23125 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23126
23127 * config/rs6000/rs6000.md (isa attribute): Add support for
23128 for a future processor.
23129
23130 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23131
23132 PR target/54855
23133 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23134 standard scalar operation pattern for V2DF.
23135 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23136 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23137 (*ieee_<ieee_maxmin><mode>3): Likewise.
23138 (vec_setv2df_0): Likewise.
23139
23140 2019-06-20 Jan Hubicka <jh@suse.cz>
23141
23142 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23143 parameter; it has no use in gimple memory model.
23144 (indirect_ref_may_alias_decl_p): Update.
23145
23146 2019-06-20 Martin Liska <mliska@suse.cz>
23147
23148 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23149 to 10.
23150
23151 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23152
23153 * tree-vect-stmts.c (enum scan_store_kind): New type.
23154 (scan_store_can_perm_p): Change last argument from int * to
23155 vec<enum scan_store_kind> *, record precisely which permutations
23156 need whole vector left shift or that plus VEC_COND_EXPR.
23157 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23158 and additional VEC_COND_EXPR only for those iterations that need it.
23159
23160 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23161
23162 * config.gcc: Fix ARM --with-fpu checking and error message.
23163
23164 2019-06-19 Marek Polacek <polacek@redhat.com>
23165
23166 PR c++/60364 - noreturn after first decl not diagnosed.
23167 * attribs.c (get_attribute_namespace): No longer static.
23168 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23169 attributes.
23170 (attr_noreturn_exclusions): Make it extern.
23171 * attribs.h (get_attribute_namespace): Declare.
23172 * tree-inline.c (function_attribute_inlinable_p): Use
23173 get_attribute_name.
23174
23175 2019-06-19 Martin Sebor <msebor@redhat.com>
23176
23177 PR tree-optimization/90626
23178 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23179
23180 PR tree-optimization/90626
23181 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23182 (handle_builtin_string_cmp): Call it.
23183
23184 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23185
23186 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23187 and DARWIN_NOPIE_SPEC.
23188 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23189 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23190 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23191 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23192 (DARWIN_EXPORT_DYNAMIC): Delete.
23193 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23194 and pie options processing to darwin.h.
23195 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23196
23197 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23198
23199 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23200 in computing the number of options to be moved.
23201
23202 2019-06-19 Maya Rashish <coypu@sdf.org>
23203
23204 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23205 (CLEAR_INSN_CACHE) Use it.
23206
23207 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23208
23209 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23210
23211 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23212
23213 PR middle-end/84521
23214 * builtins.c (expand_builtin_setjmp_setup): Save
23215 hard_frame_pointer_rtx.
23216 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23217 restore fp.
23218 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23219 non-local goto.
23220 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23221 elimination code.
23222 (remove_reg_equal_offset_note): Remove unused function.
23223 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23224 code.
23225 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23226 (arc_builtin_setjmp_frame_value): Remove function.
23227 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23228 (avr_builtin_setjmp_frame_value): Remove function.
23229 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23230 (ix86_builtin_setjmp_frame_value): Remove function.
23231 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23232 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23233 (sparc_builtin_setjmp_frame_value): Remove function.
23234 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23235 (vax_builtin_setjmp_frame_value): Remove function.
23236 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23237 pointer if has_nonlocal_label.
23238
23239 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23240
23241 * doc/md.texi: Document vec_shl_<mode> pattern.
23242 * optabs.def (vec_shl_optab): New optab.
23243 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23244 argument, if == vec_shl_optab, check for left whole vector shift
23245 pattern rather than right shift.
23246 (expand_vec_perm_const): Add vec_shl_optab support.
23247 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23248 in the comment.
23249 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23250 can be handled by vec_shl_optab.
23251 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23252 (check_scan_store): Use it.
23253 (vectorizable_scan_store): If target can't do normal permutations,
23254 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23255 after it.
23256 * config/i386/sse.md (vec_shl_<mode>): New expander.
23257
23258 * omp-low.c (lower_rec_input_clauses): Handle references properly
23259 in inscan clauses.
23260 (lower_omp_scan): Likewise.
23261
23262 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23263
23264 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23265 mem_mode is BLKmode.
23266
23267 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23268
23269 PR target/90922
23270 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23271 pointer adjustment for the case of no callee-saved registers and
23272 stack frame bigger than 128 bytes.
23273
23274 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23275
23276 PR middle-end/90862
23277 * omp-low.c (check_omp_nesting_restrictions): Handle
23278 GF_OMP_TARGET_KIND_OACC_DECLARE.
23279
23280 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23281
23282 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23283 (@add<mode>3_carry): Rename from add<mode>3_carry.
23284 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23285 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23286 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23287 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23288 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23289 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23290 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23291 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23292 (cmpstrnsi): Use gen_cmp_1.
23293 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23294 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23295 (@umonitor_<mode>): Rename from umonitor_<mode>.
23296 * config/i386/i386-expand.c (ix86_expand_copysign):
23297 Use gen_copysign3_const and gen_copysign3_var.
23298 (ix86_expand_xorsign): Use gen_xorsign3_1.
23299 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23300 gen_sub3_carry_ccgz and gen_cmp1.
23301 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23302 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23303 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23304 (ix86_split_lshr): Ditto.
23305 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23306
23307 2019-06-18 Jason Merrill <jason@redhat.com>
23308
23309 * tree.c (build_constructor): Add MEM_STAT_DECL.
23310
23311 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23312
23313 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23314 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23315 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23316 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23317 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23318 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23319 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23320 Use CC_NZC instead of CC.
23321 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23322 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23323 (aarch64_print_operand): Handle E_CC_NZCmode.
23324 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23325 of gen_set_clobber_cc.
23326
23327 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23328
23329 * config/aarch64/aarch64-sve.md: Tabify file.
23330
23331 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23332
23333 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23334 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23335 * config/aarch64/aarch64-sve.md: Use it.
23336
23337 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23338
23339 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23340 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23341 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23342 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23343 (aarch64_expand_sve_vec_cmp_int): Use it.
23344 (aarch64_expand_sve_vec_cmp_float): Likewise.
23345 * config/aarch64/aarch64-sve.md: Likewise throughout.
23346
23347 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23348 Kugan Vivekanandarajah <kuganv@linaro.org>
23349
23350 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23351 (*cond_<optab><mode>_z): Fold into...
23352 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23353 operand 4 can be tied to operand 0 (either inherently or via RA).
23354
23355 2019-06-18 Richard Biener <rguenther@suse.de>
23356
23357 PR debug/90900
23358 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23359 as if optimized away.
23360
23361 2019-06-18 Tom de Vries <tdevries@suse.de>
23362
23363 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23364 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23365 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23366 Rename to ...
23367 (define_insn "@set_softstack_<mode>"): ... this.
23368 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23369 (define_insn "@omp_simt_enter_<mode>"): ... this.
23370 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23371 (define_insn "@omp_simt_exit_<mode>"): ... this.
23372
23373 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23374
23375 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23376 vf parameter. Restore the previous iv step of nscalars_step,
23377 but give it iv_type rather than compare_type. Tweak code order
23378 to match the comments.
23379 (vect_set_loop_condition_masked): Update accordingly.
23380 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23381 for iv_precision. Tweak comment formatting.
23382
23383 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23384
23385 * config/darwin.c: Strip trailing whitespace.
23386
23387 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23388
23389 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23390 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23391
23392 2019-06-18 Martin Jambor <mjambor@suse.cz>
23393
23394 PR ipa/90889
23395 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23396 caller does not have flag_ipa_cp set.
23397
23398 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23399
23400 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23401 from "*fold_left_plus_<mode>", updated operands order.
23402 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23403 * internal-fn.c (mask_fold_left_direct): New define.
23404 (expand_mask_fold_left_optab_fn): Likewise.
23405 (direct_mask_fold_left_optab_supported_p): Likewise.
23406 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23407 * optabs.def (mask_fold_left_plus_optab): New optab.
23408 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23409 masked internal_fn for a reduction ifn.
23410 (vectorize_fold_left_reduction): Add support for masking reductions.
23411
23412 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23413
23414 PR middle-end/80791
23415 * target.def (predict_doloop_p): New hook.
23416 * targhooks.h (default_predict_doloop_p): New declaration.
23417 * targhooks.c (default_predict_doloop_p): New function.
23418 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23419 * doc/tm.texi: Regenerate.
23420 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23421 (TARGET_PREDICT_DOLOOP_P): New macro.
23422 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23423
23424 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23425
23426 * omp-low.c (struct omp_context): Add scan_inclusive field.
23427 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23428 if inclusive scan.
23429 (struct omplow_simd_context): Add lastlane member.
23430 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23431 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23432 1 or 2 argument.
23433 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23434 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23435 (lower_omp_scan): New function.
23436 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23437 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23438 check 3rd argument if present rather than 2nd.
23439 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23440 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23441 2-bit bitfield.
23442 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23443 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23444 than 2nd.
23445 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23446 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23447 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23448 init.
23449 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23450 IFN_GOMP_SIMD_LANE argument.
23451 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23452 encoded ->aux value.
23453 * tree-vect-stmts.c: Include attribs.h.
23454 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23455 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23456 functions.
23457 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23458 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23459
23460 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23461
23462 PR target/62055
23463 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23464 (*nabs<mode>2_1): Ditto.
23465 (nabs sse-reg splitter): New splitter.
23466 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23467
23468 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23469
23470 PR bootstrap/90873.
23471 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23472 TMR index check.
23473
23474 2019-06-17 Tom de Vries <tdevries@suse.de>
23475
23476 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23477 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23478 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23479 ...
23480 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23481 match_operand 0.
23482 (define_insn "omp_simt_enter_insn"): Rename to ...
23483 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23484 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23485 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23486 gen_omp_simt_enter_si.
23487 (define_expand "omp_simt_exit"): New.
23488 (define_insn "omp_simt_exit"): Rename to ...
23489 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23490 match_operand 0.
23491
23492 2019-06-17 Matthew Green <mrg@eterna.com.au>
23493 Maya Rashish <coypu@sdf.org>
23494
23495 * config.gcc (aarch64*-*-netbsd*): New target.
23496 * config/aarch64/aarch64-netbsd.h: New file.
23497 * config/aarch64/t-aarch64-netbsd: Likewise.
23498
23499 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23500
23501 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23502 the access path from base to first VIEW_CONVERT_EXPR or
23503 BIT_FIELD_REF.
23504
23505 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23506
23507 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23508 access path on BIT_FIELD_REFs.
23509
23510 2019-06-17 Martin Liska <mliska@suse.cz>
23511
23512 PR ipa/90874
23513 * ipa-utils.h (odr_type_p): Remove dead code.
23514
23515 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23516
23517 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23518 alternative Solaris 11.4 format.
23519 * configure: Regenerate.
23520
23521 2019-06-17 Tom de Vries <tdevries@suse.de>
23522
23523 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23524 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23525 match_operand 0.
23526 (define_insn "call_value_insn"): Rename to ...
23527 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23528 match_operand 0.
23529 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23530 DI.
23531
23532 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23533
23534 PR middle-end/64242
23535 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23536 frame clobbers and schedule block.
23537 (builtin_longjmp): Likewise.
23538
23539 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23540
23541 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23542 describe how to perform MSPABI compliant 64-bit shift.
23543 * config/msp430/msp430.md (ashldi3): New define_expand.
23544 (ashrdi3): New define_expand.
23545 (lshrdi3): New define_expand.
23546
23547 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23548
23549 * doc/sourcebuild.texi: Document new effective target keyword
23550 longlong64.
23551
23552 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23553
23554 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23555 indirect_refs_may_alias_p): Revert accidental commits.
23556
23557 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23558 at the end of structures.
23559
23560 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23561
23562 * config/darwin.c (machopic_indirect_call_target): Use renamed
23563 darwin_picsymbol_stubs to decide on output.
23564 (darwin_override_options): Handle darwin_picsymbol_stubs.
23565 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23566 (LD64_VERSION): Revise default.
23567 * config/darwin.opt: (mpic-symbol-stubs): New option.
23568 (darwin_picsymbol_stubs): New variable.
23569 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23570 rename to TARGET_MACHO_PICSYM_STUBS.
23571 * config/i386/i386.c (output_pic_addr_const): Likewise.
23572 * config/i386/i386.h Likewise.
23573 * config/rs6000/darwin.h: Likewise.
23574 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23575 darwin_picsymbol_stubs.
23576
23577 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23578
23579 * config/darwin.opt (prebind, noprebind, seglinkedit,
23580 noseglinkedit): Add RejectNegative.
23581
23582 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23583
23584 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23585 in my previous patch.
23586
23587 2019-06-16 Tom de Vries <tdevries@suse.de>
23588
23589 PR tree-optimization/89376
23590 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23591
23592 2019-06-15 Maya Rashish <coypu@sdf.org>
23593
23594 * doc/invoke.texi (Spec Files): Update location of the
23595 Fortran spec file.
23596
23597 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23598
23599 * doc/extend.texi (Common Function Attributes): Clarify
23600 no_sanitize. Fix grammar.
23601
23602 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23603
23604 * tree-ssa-alias.c (alias_stats): Add
23605 nonoverlapping_component_refs_p_may_alias,
23606 nonoverlapping_component_refs_p_no_alias,
23607 nonoverlapping_component_refs_of_decl_p_may_alias,
23608 nonoverlapping_component_refs_of_decl_p_no_alias.
23609 (dump_alias_stats): Dump them.
23610 (nonoverlapping_component_refs_of_decl_p): Add stats.
23611 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23612 ARRAY_REF.
23613
23614 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23615
23616 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23617 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23618 only.
23619 (*anddi3_doubleword): Split before reload. Merge with
23620 anddi->zext pre-reload splitter.
23621 (*andndi3_doubleword): Split before reload.
23622 (*<code>di3_doubleword): Ditto.
23623 (*one_cmpldi2_doubleword): Ditto.
23624
23625 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23626
23627 PR middle-end/90779
23628 * gimplify.c: Include omp-offload.h and context.h.
23629 (gimplify_bind_expr): Add "omp declare target" attributes
23630 to static block scope variables inside of target region or target
23631 functions.
23632
23633 2019-06-15 Tom de Vries <tdevries@suse.de>
23634
23635 PR tree-optimization/90009
23636 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23637 Return NULL if bb contains IFN_UNIQUE.
23638
23639 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23640
23641 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23642 (un): New define_mode_attr.
23643 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23644 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23645 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23646 merge into ...
23647 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23648
23649 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23650
23651 * config/darwin.opt: Add RejectNegative where needed, reorder
23652 and add minimal functional descriptions.
23653
23654 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23655
23656 PR rtl-optimization/90765
23657 * calls.c (update_stack_alignment_for_call): New function.
23658 (expand_call): Call update_stack_alignment_for_call when
23659 outgoing parameter is passed in the stack.
23660 (emit_library_call_value_1): Likewise.
23661 * function.c (locate_and_pad_parm): Don't update
23662 stack_alignment_needed and preferred_stack_boundary.
23663
23664 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23665
23666 PR target/90877
23667 * config/i386/i386-features.c
23668 (dimode_scalar_chain::compute_convert_gain): Replace
23669 mmxsse_to_integer with sse_to_integer.
23670 * config/i386/i386.c (ix86_register_move_cost): Verify that
23671 moves between MMX and non-MMX units require secondary memory.
23672 Correct costs of moves between SSE and integer units.
23673 * config/i386/i386.h (processor_costs): Rename cost of moving
23674 SSE register to integer to sse_to_integer. Rename cost of
23675
23676 2019-06-14 Matt Thomas <matt@3am-software.com>
23677 Matthew Green <mrg@eterna.com.au>
23678 Nick Hudson <skrll@netbsd.org>
23679 Maya Rashish <coypu@sdf.org>
23680 Richard Earnshaw <rearnsha@arm.com>
23681
23682 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23683 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23684 * config/arm/netbsd-eabi.h: New file.
23685 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23686 redefining.
23687 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23688 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23689 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23690 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23691
23692 2019-06-14 Richard Biener <rguenther@suse.de>
23693
23694 * tree-loop-distribution.c (classify_partition): Return
23695 whether a reduction appeared in all partitions and do not
23696 stop builtin detection because of this.
23697 (distribute_loop): Sort a non-builtin partition last if
23698 there's a reduction in all partitions and make sure the
23699 partition prevailing as last is not a builtin.
23700
23701 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23702
23703 PR ipa/90401
23704 * ipa-prop.c (add_to_agg_contents_list): New function.
23705 (clobber_by_agg_contents_list_p): Likewise.
23706 (extract_mem_content): Likewise.
23707 (get_place_in_agg_contents_list): Delete.
23708 (determine_known_aggregate_parts): Renamed from
23709 determine_locally_known_aggregate_parts. New parameter
23710 aa_walk_budget_p.
23711
23712 2019-06-13 Martin Sebor <msebor@redhat.com>
23713
23714 PR tree-optimization/90662
23715 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23716 to the same type.
23717
23718 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23719
23720 PR bootstrap/90873
23721 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23722 dbase is not TARGET_MEM_REF.
23723
23724 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23725
23726 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23727 Update all uses.
23728 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23729 Do not generate DImode extends for 32bit targets.
23730 (and->zext post-reload splitter): Use gen_extend_insn
23731 instead of indirect functions.
23732 (anddi->zext pre-reload splitter): New.
23733 (*zext<mode>_doubleword_and): Remove.
23734 (*zext<mode>_doubleword): Ditto.
23735 (*zextsi_doubleword): Dittto.
23736
23737 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23738
23739 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23740 Use gen_sub3_insn instead of indirect function.
23741 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23742 indirect function.
23743 (ix86_adjust_counter): Ditto.
23744
23745 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23746 Lijia He <helijia@linux.ibm.com>
23747
23748 PR tree-optimization/77820
23749 * tree-ssa-threadedge.c
23750 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23751 function.
23752 (thread_across_edge): Add call to
23753 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23754
23755 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23756
23757 * config/darwin-driver.c (validate_macosx_version_min): New.
23758 (darwin_default_min_version): Cleanup and validate supplied version.
23759 (darwin_driver_init): Likewise and push cleaned version into opts.
23760
23761 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23762
23763 PR tree-optimization/90869
23764 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23765 converts in MEM_REF referencing decl rather than view converts
23766 from decl type to MEM_REF type.
23767
23768 2019-06-13 Richard Biener <rguenther@suse.de>
23769
23770 PR tree-optimization/90856
23771 * tree-sra.c (build_ref_for_model): Only use
23772 build_reconstructed_reference when address-spaces are the same.
23773
23774 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23775
23776 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23777 wrap ei variable name in the declaration in ()s.
23778 (nvptx_single): Actually use mode_label variable. Formatting fix.
23779
23780 2019-06-13 Richard Biener <rguenther@suse.de>
23781
23782 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23783 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23784 also return the condition stmt.
23785 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23786 loop we can version and version that, reusing the loop version
23787 created by if-conversion instead of versioning again.
23788
23789 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23790
23791 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23792 may_contain_p.
23793 * tree-vrp (value_range_base::may_contain_p): Call into
23794 value_inside_range.
23795 (value_inside_range): Make private inside value_range_base class.
23796 Take min/max from *this.
23797 (range_includes_p): Remove.
23798 * tree-vrp.h (value_range_base): Add value_inside_range.
23799 (range_includes_p): Remove.
23800 (range_includes_zero_p): Call may_contain_p.
23801 * vr-values.c (compare_range_with_value): Same.
23802
23803 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23804
23805 * doc/extend.texi (ARC Function Attributes): Update info.
23806
23807 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23808
23809 PR tree-optimization/89713
23810 * doc/invoke.texi (-ffinite-loops): Document new option.
23811 * common.opt (-ffinite-loops): New option.
23812 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23813 IFN_GOACC_LOOP calls as necessary.
23814 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23815 is finite.
23816 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23817 IFN_GOACC_LOOP call is not used.
23818 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23819
23820 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23821
23822 PR target/88838
23823 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23824 compare_type is not with Pmode size, we will create an IV with
23825 Pmode size with truncated use (i.e. converted to the correct type).
23826 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23827 (vect_iv_limit_for_full_masking): New. Factored out of
23828 vect_set_loop_condition_masked.
23829 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23830 (vect_iv_limit_for_full_masking): Declare.
23831
23832 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23833
23834 PR target/88834
23835 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23836 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23837 (get_alias_ptr_type_for_ptr_address): Likewise.
23838 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23839 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23840 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23841 allow_reg_index_p.
23842
23843 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23844
23845 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23846
23847 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23848
23849 * common/config/pru/pru-common.c: New file.
23850 * config.gcc: Add PRU target.
23851 * config/pru/alu-zext.md: New file.
23852 * config/pru/constraints.md: New file.
23853 * config/pru/predicates.md: New file.
23854 * config/pru/pru-opts.h: New file.
23855 * config/pru/pru-passes.c: New file.
23856 * config/pru/pru-pragma.c: New file.
23857 * config/pru/pru-protos.h: New file.
23858 * config/pru/pru.c: New file.
23859 * config/pru/pru.h: New file.
23860 * config/pru/pru.md: New file.
23861 * config/pru/pru.opt: New file.
23862 * config/pru/t-pru: New file.
23863 * doc/extend.texi: Document PRU pragmas.
23864 * doc/invoke.texi: Document PRU-specific options.
23865 * doc/md.texi: Document PRU asm constraints.
23866
23867 2019-06-12 Martin Sebor <msebor@redhat.com>
23868
23869 PR middle-end/90676
23870 * tree-pretty-print.c (dump_mem_ref): New function. Include
23871 MEM_REF type in output when different size than operand.
23872 (dump_generic_node): Move code to dump_mem_ref and call it.
23873
23874 2019-06-12 Martin Sebor <msebor@redhat.com>
23875
23876 PR tree-optimization/90662
23877 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23878 to arrays.
23879
23880 2019-06-12 Tom de Vries <tdevries@suse.de>
23881
23882 PR tree-optimization/90009
23883 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23884
23885 2019-06-12 Martin Liska <mliska@suse.cz>
23886
23887 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23888 the created map.
23889 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23890 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23891 Do not sanitize created maps.
23892
23893 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23894
23895 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23896 value_range::singleton_p.
23897 * tree-vrp.c (value_range_constant_singleton): Remove.
23898 * tree-vrp.h (value_range_constant_singleton): Remove.
23899 * vr-values.c (vr_values::singleton): Use
23900 value_range::singleton_p.
23901
23902 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23903
23904 PR target/90811
23905 * cfgexpand.c (align_local_variable): Add really_expand argument,
23906 don't SET_DECL_ALIGN if it is false.
23907 (add_stack_var): Add really_expand argument, pass it through to
23908 align_local_variable.
23909 (expand_one_stack_var_1): Pass true as really_expand to
23910 align_local_variable.
23911 (expand_one_ssa_partition): Pass true as really_expand to
23912 add_stack_var.
23913 (expand_one_var): Pass really_expand through to add_stack_var.
23914
23915 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23916
23917 * config/arm/iterators.md (VABAL): New int iterator.
23918 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23919 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23920 UNSPEC_VABAL_U values.
23921
23922 2019-06-12 Martin Liska <mliska@suse.cz>
23923
23924 * value-prof.c (stream_out_histogram_value): Only first value
23925 can't be negative.
23926
23927 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23928
23929 PR c/90760
23930 * symtab.c (symtab_node::set_section): Allow being called on aliases
23931 as long as they aren't analyzed yet.
23932
23933 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23934
23935 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23936 to `mips_set_text_contents_type' to indicate whether a
23937 non-debug insn follows.
23938
23939 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23940
23941 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23942 enabling -mpcrel by default.
23943 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23944 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23945 that the test against -mcpu=future is done first. Then test if
23946 -mprefixed-addr is on for -mpcrel.
23947 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23948
23949 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23950
23951 PR target/90811
23952 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23953 instead of and.u%d.
23954
23955 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23956
23957 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23958
23959 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
23960
23961 PR c++/90449 - add -Winaccessible-base option.
23962 * doc/invoke.texi (Winaccessible-base): Document.
23963
23964 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23965
23966 PR tree-optimization/62041
23967 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23968
23969 2019-06-11 Jason Merrill <jason@redhat.com>
23970
23971 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23972 * tree.c (get_tree_code_name): Likewise.
23973 * print-tree.c (print_node): Only briefly print a node with an
23974 invalid code.
23975
23976 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23977
23978 PR bootstrap/90819
23979 * trans-mem.c (tm_memopt_compute_available): Add assertion
23980 that blocks is not empty. Formatting fix.
23981
23982 2019-06-11 Martin Liska <mliska@suse.cz>
23983
23984 PR c++/87847
23985 * hash-table.h: Extend create_gcc, add one parameter
23986 that is passed into hash_table::hash_table.
23987
23988 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
23989
23990 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23991 New prototype.
23992 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23993 Emit clobber also for non-sse operations.
23994 (ix86_split_fp_absneg_operator): New function.
23995 * config/i386/i386.md (SSEMODEF): New mode iterator.
23996 (ssevecmodef): New mode attribute.
23997 (<code>tf2): Use absneg code iterator.
23998 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23999 Add three-operand AVX alternatives.
24000 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24001 Use absneg code iterator and X87MODEF mode iterator.
24002 (absneg fp_reg non-sse splitter): Call absneg code iterator
24003 and X87MODEF mode iterator.
24004 (absneg general_reg non-sse splitter): Use absneg code iterator
24005 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24006 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24007 code iterator. Add three-operand AVX alternative.
24008 (absneg sse_reg splitter): Use absneg code iterator
24009 and SSEMODEF mode iterator. Handle AVX operands.
24010 (absneg fp_reg splitter): Use absneg code iterator
24011 and MODEF mode iterator.
24012 (absneg general_reg splitter): Merge splitters using MODEF mode
24013 iterator. Use absneg code iterator. Call
24014 ix86_split_fp_absneg_operator.
24015 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24016 Do not enable for non-sse modes before reload.
24017 (CSGNMODE): Remove.
24018 (CSGNVMODE): Ditto.
24019 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24020 ssevecmodef mode attribute instaed of CSGNVMODE.
24021 (copysign<mode>3_const): Ditto.
24022 (copysign<mode>3_var): Ditto.
24023 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24024 Use absneg code iterator. Simplify code using std::swap.
24025 * config/i386/predicates.md (absneg_operator): Remove.
24026
24027 2019-06-10 Martin Sebor <msebor@redhat.com>
24028
24029 * gimple-fold.c (get_range_strlen): Update comment that didn't
24030 make it into r267503 or related commits.
24031
24032 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24033
24034 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24035 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24036
24037 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24038
24039 * tree.def (OMP_SCAN): New tree code.
24040 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24041 OMP_CLAUSE_EXCLUSIVE.
24042 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24043 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24044 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24045 OMP_CLAUSE_{IN,EX}CLUSIVE.
24046 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24047 * tree-nested.c (convert_nonlocal_reference_stmt,
24048 convert_local_reference_stmt, convert_gimple_call): Handle
24049 GIMPLE_OMP_SCAN.
24050 * tree-pretty-print.c (dump_omp_clause): Handle
24051 OMP_CLAUSE_{IN,EX}CLUSIVE.
24052 (dump_generic_node): Handle OMP_SCAN.
24053 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24054 * gimple.h (gomp_scan): New type.
24055 (is_a_helper <gomp_scan *>::test,
24056 is_a_helper <const gomp_scan *>::test): New templates.
24057 (gimple_build_omp_scan): Declare.
24058 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24059 gimple_omp_scan_set_clauses): New inline functions.
24060 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24061 * gimple.c (gimple_build_omp_scan): New function.
24062 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24063 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24064 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24065 GIMPLE_OMP_TASKGROUP.
24066 (dump_gimple_omp_scan): New function.
24067 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24068 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24069 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24070 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24071 (is_gimple_stmt): Handle OMP_SCAN.
24072 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24073 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24074 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24075 mentioned in nested #pragma omp scan. Handle
24076 OMP_CLAUSE_{IN,EX}CLUSIVE.
24077 (gimplify_expr): Handle OMP_SCAN.
24078 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24079 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24080 simd constructs.
24081 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24082 GIMPLE_OMP_SCAN.
24083
24084 2019-06-10 Martin Liska <mliska@suse.cz>
24085
24086 * ipa-cp.c (ignore_edge_p): New function.
24087 (build_toporder_info): Use it.
24088 * ipa-inline.c (ignore_edge_p): New function.
24089 (inline_small_functions): Use it.
24090 * ipa-pure-const.c (ignore_edge_for_nothrow):
24091 Verify opt_for_fn for caller and callee.
24092 (ignore_edge_for_pure_const): Likewise.
24093 * ipa-reference.c (ignore_edge_p): Extend to check
24094 for opt_for_fn.
24095 * ipa-utils.c (searchc): Refactor.
24096 * ipa-utils.h: Fix coding style.
24097
24098 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24099
24100 * config/arc/arc.c (arc_rtx_costs): Update costs.
24101
24102 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24103
24104 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24105 (arc_split_ior): Likewise.
24106 (arc_check_mov_const): Likewise.
24107 (arc_split_mov_const): Likewise.
24108 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24109 (arc_rtx_costs): Replace check Crr with Cax constraint.
24110 (prepare_move_operands): Cleanup, remove unused code.
24111 (arc_split_ior): New function.
24112 (arc_check_ior_const): Likewise.
24113 (arc_split_mov_const): Likewise.
24114 (arc_check_mov_const): Likewise.
24115 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24116 in define_insn_and_split pattern.
24117 (iorsi3): Likewise.
24118 (mulsi3_v2): Add new matching variant.
24119 (andsi3_i): Cleanup pattern.
24120 (rotrsi3_cnt1): Update pattern.
24121 (rotrsi3_cnt8): New pattern.
24122 (ashlsi2_cnt8): Likewise.
24123 (ashlsi2_cnt16): Likewise.
24124 * config/arc/constraints.md (C0p): Update constraint.
24125 (Crr): Remove it.
24126 (C0x): New pattern.
24127 (Cax): New pattern.
24128
24129 2019-06-10 Martin Liska <mliska@suse.cz>
24130
24131 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24132 Update coding style.
24133 (sem_item_optimizer::dump_cong_classes):
24134 Print how many items are in a non-singular class. Improve
24135 coding style.
24136
24137 2019-06-10 Martin Liska <mliska@suse.cz>
24138
24139 * value-prof.c (dump_histogram_value): Change dump format.
24140 (gimple_mod_subtract_transform): Remove legacy comment.
24141
24142 2019-06-10 Martin Liska <mliska@suse.cz>
24143
24144 * value-prof.c (dump_histogram_value): Print histogram values
24145 only if present.
24146
24147 2019-06-10 Martin Liska <mliska@suse.cz>
24148
24149 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24150 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24151 * ipa-profile.c (ipa_profile_generate_summary):
24152 Use get_most_common_single_value.
24153 * tree-profile.c (gimple_init_gcov_profiler):
24154 Instrument with __gcov_one_value_profiler_v2
24155 and __gcov_indirect_call_profiler_v4.
24156 * value-prof.c (dump_histogram_value):
24157 Print all values for HIST_TYPE_SINGLE_VALUE.
24158 (stream_out_histogram_value): Update assert for
24159 N values.
24160 (stream_in_histogram_value): Set number of
24161 counters for HIST_TYPE_SINGLE_VALUE.
24162 (get_most_common_single_value): New.
24163 (gimple_divmod_fixed_value_transform):
24164 Use get_most_common_single_value.
24165 (gimple_ic_transform): Likewise.
24166 (gimple_stringops_transform): Likewise.
24167 (gimple_find_values_to_profile): Set number
24168 of counters for HIST_TYPE_SINGLE_VALUE.
24169 * value-prof.h (get_most_common_single_value): New.
24170
24171 2019-06-10 Martin Liska <mliska@suse.cz>
24172
24173 * hash-map.h: Pass default value to hash_table ctor.
24174 * hash-table.h: Add default value to call of a ctor.
24175
24176 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24177
24178 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24179 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24180
24181 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24182
24183 PR target/90751
24184 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24185 Call pa_output_function_label.
24186 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24187 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24188 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24189 to declaration.
24190 (pa_linux_output_function_prologue): Declare.
24191 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24192 (pa_output_function_label): New.
24193 (pa_output_function_prologue): Revise to use pa_output_function_label.
24194 (pa_linux_output_function_prologue): New.
24195 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24196
24197 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24198
24199 * tree-vrp.h (value_range_base::intersect): New.
24200 (value_range::intersect_helper): Move from here...
24201 (value_range_base::intersect_helper): ...to here.
24202 * tree-vrp.c (value_range::intersect_helper): Rename to...
24203 (value_range_base::intersect_helper): ...this, and rewrite to
24204 return a value instead of modifying THIS in place.
24205 Also, move equivalence handling...
24206 (value_range::intersect): ...here, while calling intersect_helper.
24207 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24208 calling intersect.
24209 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24210 Same.
24211 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24212
24213 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24214
24215 * Makefile.in (genprogerr): Add condmd.
24216 (genprog): Remove it here.
24217
24218 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24219
24220 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24221
24222 2019-06-07 Richard Biener <rguenther@suse.de>
24223
24224 PR debug/90574
24225 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24226 that appear after user labels.
24227
24228 2019-06-07 Martin Liska <mliska@suse.cz>
24229
24230 * cselib.c (cselib_init): Disable hash table
24231 sanitization.
24232 * hash-set.h: Pass new default argument to m_table.
24233 * hash-table.c: Add global variable with hash table
24234 sanitization limit.
24235 * hash-table.h (Allocator>::hash_table): Add new argument
24236 to ctor.
24237 (hashtab_chk_error): New.
24238 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24239 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24240 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24241
24242 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24243
24244 * common.opt (flto-odr-type-merging): Ignore.
24245 * invoke.texi (-flto-odr-type-merging): Remove.
24246 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24247 (can_be_vtable_hashed_p): Remove.
24248 (hash_odr_vtable): Remove.
24249 (odr_vtable_hasher::hash): Remove.
24250 (types_same_for_odr): Remove.
24251 (types_odr_comparable): Remove.
24252 (odr_vtable_hasher::equal): Remove.
24253 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24254 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24255 (get_odr_type): Do not use vtable hash.
24256 (dump_odr_type): Remove commented out code.
24257 (build_type_inheritance_graph): Do not allocate vtable hash.
24258 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24259 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24260 (odr_type_p): Likewise.
24261 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24262 test.
24263
24264 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24265
24266 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24267 immediately after same_types_for_tbaa_p returns -1 and continue
24268 looking for possible exact match; if matching types are arrays
24269 watch for partial overlaps.
24270 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24271 (indirect_refs_may_alias_p): Do type based disambiguation first;
24272 update comment.
24273
24274 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24275
24276 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24277
24278 2019-06-07 Martin Liska <mliska@suse.cz>
24279
24280 * doc/invoke.texi: Remove param.
24281 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24282 Remove.
24283 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24284 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24285 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24286 * profile.c (instrument_values): Remove
24287 HIST_TYPE_INDIR_CALL_TOPN.
24288 * tree-profile.c (init_ic_make_global_vars):
24289 Always build __gcov_indirect_call only.
24290 (gimple_init_gcov_profiler): Remove usage
24291 of PARAM_INDIR_CALL_TOPN_PROFILE.
24292 (gimple_gen_ic_profiler): Likewise.
24293 * value-prof.c (dump_histogram_value): Likewise.
24294 (stream_in_histogram_value): Likewise.
24295 (gimple_indirect_call_to_profile): Likewise.
24296 (gimple_find_values_to_profile): Likewise.
24297 * value-prof.h (enum hist_type): Likewise.
24298
24299 2019-06-07 Martin Liska <mliska@suse.cz>
24300
24301 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24302 function.
24303
24304 2019-06-07 Martin Liska <mliska@suse.cz>
24305
24306 PR tree-optimization/78902
24307 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24308 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24309 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24310 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24311 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24312 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24313 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24314 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24315 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24316 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24317 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24318 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24319 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24320 New.
24321 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24322 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24323 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24324 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24325 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24326 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24327 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24328 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24329 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24330 warn_unused_result attribute.
24331 (BUILT_IN_STRDUP): Likewise.
24332 (BUILT_IN_STRNDUP): Likewise.
24333 (BUILT_IN_ALLOCA): Likewise.
24334 (BUILT_IN_CALLOC): Likewise.
24335 (BUILT_IN_MALLOC): Likewise.
24336 (BUILT_IN_REALLOC): Likewise.
24337
24338 2019-06-06 Jim Wilson <jimw@sifive.com>
24339
24340 PR target/89955
24341 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24342 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24343 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24344
24345 2019-06-06 Martin Sebor <msebor@redhat.com>
24346
24347 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24348 (handle_builtin_malloc): Remove trailing spaces.
24349 (handle_builtin_memset): Same.
24350 (handle_builtin_memcmp): Same.
24351 (compute_string_length): Same.
24352 (determine_min_objsize): Same.
24353 (handle_builtin_string_cmp): Same.
24354 (handle_char_store): Same. Break up excessively long line.
24355
24356 2019-06-06 Martin Jambor <mjambor@suse.cz>
24357
24358 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24359 check.
24360
24361 2019-06-06 Martin Jambor <mjambor@suse.cz>
24362
24363 * tree-sra.c (struct access): New field grp_same_access_path.
24364 (dump_access): Dump it.
24365 (build_reconstructed_reference): New function.
24366 (build_ref_for_model): Use it if possible.
24367 (path_comparable_for_same_access): New function.
24368 (same_access_path_p): Likewise.
24369 (sort_and_splice_var_accesses): Set the new flag.
24370 (analyze_access_subtree): Likewise.
24371 (propagate_subaccesses_across_link): Propagate zero value of the new
24372 flag down the access tree.
24373
24374 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24375
24376 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24377 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24378 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24379 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24380 Add gfx906.
24381
24382 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24383
24384 PR tree-optimization/90332
24385 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24386 Handle VALS containing two vectors.
24387 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24388 to...
24389 (@aarch64_combinez<mode>): ... This.
24390 (*aarch64_combinez_be<mode>): Rename to...
24391 (@aarch64_combinez_be<mode>): ... This.
24392 (vec_init<mode><Vhalf>): New define_expand.
24393 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24394
24395 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24396
24397 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24398 library functions only when not optimizing for size.
24399 (ashlsi3): Likewise.
24400 (ashrhi3): Likewise.
24401 (ashrsi3): Likewise.
24402 (lshrhi3): Likewise.
24403 (lshrsi3): Likewise.
24404
24405 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24406
24407 PR rtl-optimization/88751
24408 * ira.c (ira): Use the number of the actually referenced registers
24409 when calculating the threshold.
24410
24411 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24412
24413 * configure: Regenerate.
24414
24415 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24416
24417 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24418 register if it is in memory, so the shift can be emulated with a rotate
24419 instruction.
24420 (ashrhi3): Likewise.
24421 (lshrhi3): Likewise.
24422
24423 2019-06-06 Martin Liska <mliska@suse.cz>
24424
24425 PR tree-optimization/87954
24426 * match.pd: Simplify mult where both arguments are 0 or 1.
24427
24428 2019-06-06 Richard Biener <rguenther@suse.de>
24429
24430 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24431 put equivalences on UNDEFINED ranges.
24432 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24433 Make sure to drop defs of stmts added during simplification
24434 to VARYING.
24435
24436 2019-06-06 Richard Biener <rguenther@suse.de>
24437
24438 * tree-ssa-structalias.c: Include tree-cfg.h.
24439 (make_heapvar): Do not make heap vars artificial.
24440 (find_func_aliases_for_builtin_call): Handle stack allocation
24441 functions.
24442 (find_func_aliases): Delay processing of simple enough returns
24443 in non-IPA mode.
24444 (set_uids_in_ptset): Adjust.
24445 (find_what_var_points_to): Likewise.
24446 (solve_constraints): Do not dump points-to sets here.
24447 (compute_points_to_sets): Post-process return statements,
24448 amending the escaped solution. Dump points-to sets afterwards.
24449 (ipa_pta_execute): Dump points-to sets.
24450
24451 2019-06-06 Martin Liska <mliska@suse.cz>
24452
24453 PR web/87933
24454 * doc/install.texi: Fix HTML headers and
24455 titles for 'Installing GCC' pages.
24456
24457 2019-06-06 Martin Liska <mliska@suse.cz>
24458
24459 * ipa-icf-gimple.h (dump_message_1): Remove.
24460 (dump_message): Likewise.
24461 (return_false_with_message_1): Print also file.
24462 (return_false_with_msg): Likewise.
24463 (return_with_result): Likewise.
24464 (return_with_debug): Likewise.
24465 * ipa-icf.c (sem_function::equals_private): Remove call
24466 to dump_message.
24467
24468 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24469
24470 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24471 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24472 memory operand for it.
24473 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24474
24475 2019-06-05 Martin Sebor <msebor@redhat.com>
24476
24477 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24478 Adjust quoting and hyphenation.
24479 * convert.c (convert_to_real_1): Same.
24480 * gcc.c (driver_wrong_lang_callback): Same.
24481 (driver::handle_unrecognized_options): Same.
24482 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24483 * opts-common.c (cmdline_handle_error): Same.
24484 (read_cmdline_option): Same.
24485 * opts-global.c (complain_wrong_lang): Same.
24486 (print_ignored_options): Same.
24487 (handle_common_deferred_options): Same.
24488 * pretty-print.h: Same.
24489 * print-rtl.c (debug_bb_n_slim): Same.
24490 * sched-rgn.c (make_pass_sched_fusion): Same.
24491 * tree-cfg.c (verify_gimple_assign_unary): Same.
24492 (verify_gimple_label): Same.
24493 * tree-ssa-operands.c (verify_ssa_operands): Same.
24494 * varasm.c (do_assemble_alias): Same.
24495 (assemble_alias): Same.
24496
24497 2019-06-05 Richard Henderson <rth@twiddle.net>
24498
24499 * config/alpha/alpha.c (direct_return): Move down after
24500 struct machine_function definition; use saved frame_size;
24501 return bool.
24502 (struct machine_function): Add sa_mask, sa_size, frame_size.
24503 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24504 (alpha_compute_frame_layout): ... new function.
24505 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24506 (alpha_initial_elimination_offset): Use saved sa_size.
24507 (alpha_vms_initial_elimination_offset): Likewise.
24508 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24509 (alpha_expand_prologue): Use saved frame data. Merge integer
24510 and fp register save loops.
24511 (alpha_expand_epilogue): Likewise.
24512 (alpha_start_function): Use saved frame data.
24513 * config/alpha/alpha-protos.h (direct_return): Update.
24514 (alpha_sa_size): Remove.
24515
24516 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24517
24518 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24519 multiplication by a power-of-two value.
24520 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24521 and turn the modulo operation into a masking operation.
24522
24523 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24524
24525 PR debug/90733
24526 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24527 with VOIDmode inner operands.
24528
24529 2019-06-05 Richard Biener <rguenther@suse.de>
24530
24531 PR middle-end/90726
24532 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24533 turn an expression graph into a tree.
24534
24535 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24536
24537 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24538 member.
24539 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24540 treat it like explicit monotonic schedule modifier.
24541 (expand_omp_for): Initialize has_lastprivate_conditional.
24542 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24543 schedule modifier.
24544
24545 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24546 references, lookup in in hash map MEM_REF operand instead of the
24547 MEM_REF itself.
24548 (lower_omp_1): When looking for lastprivate conditional assignments,
24549 handle MEM_REFs with REFERENCE_TYPE operands.
24550
24551 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24552 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24553 and references a VLA. Handle references to non-VLAs if is_simd
24554 all privatization clauses like reductions.
24555 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24556 If omp_is_reference, use always omp simd arrays and set
24557 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24558 fails, emit reference initialization.
24559
24560 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24561
24562 PR target/89803
24563 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24564 _mm_mask_fpclass_sd_mask): New intrinsics.
24565 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24566 * config/i386/i386-builtin.def
24567 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24568 New builtins.
24569 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24570 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24571 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24572 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24573 case QI_FTYPE_V2SF_INT): Ditto.
24574 * config/i386/sse.md
24575 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24576 Extended to insnstructions with mask operands.
24577
24578 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24579
24580 * config/rs6000/constraints.md (define_register_constraint "wp"):
24581 Delete.
24582 (define_register_constraint "wq"): Delete.
24583 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24584 (rs6000_init_hard_regno_mode_ok): Adjust.
24585 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24586 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24587 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24588 (define_mode_attr VSa): Delete.
24589 (define_mode_attr VSisa): New.
24590 (rest of file): Adjust.
24591 * doc/md.texi (Machine Constraints): Adjust.
24592
24593 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24594
24595 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24596 (define_attr "enabled"): Handle those new isa values.
24597
24598 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24599
24600 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24601 (define_mode_attr VSr5): Delete.
24602 (define_mode_attr VStype_sqrt): Delete.
24603 (define_mode_iterator VSX_SPDP): Delete.
24604 (define_mode_attr VS_spdp_res): Delete.
24605 (define_mode_attr VS_spdp_insn): Delete.
24606 (define_mode_attr VS_spdp_type): Delete.
24607 (*vsx_sqrt<mode>2): Adjust.
24608 (vsx_<VS_spdp_insn>): Delete, split to...
24609 (vsx_xscvdpsp): ... this. New. And...
24610 (vsx_xvcvspdp): ... this. New. And...
24611 (vsx_xvcvdpsp): ... this. New.
24612
24613 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24614
24615 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24616 and V2DF.
24617 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24618 (rest of file): Adjust.
24619
24620 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24621
24622 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24623 (vsx_extract_<mode>_var): Ditto.
24624
24625 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24626
24627 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24628 with just "wa".
24629
24630 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24631
24632 * config/rs6000/constraints.md (define_register_constraint "ww"):
24633 Delete.
24634 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24635 (rs6000_init_hard_regno_mode_ok): Adjust.
24636 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24637 RS6000_CONSTRAINT_ww.
24638 * config/rs6000/rs6000.md: Adjust.
24639 * config/rs6000/vsx.md: Adjust.
24640 * doc/md.texi (Machine Constraints): Adjust.
24641
24642 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24643
24644 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24645 (define_mode_attr sd): New.
24646 (define_mode_attr s): New.
24647 (define_mode_attr Ftrad): Delete.
24648 (define_mode_attr Fvsx): Delete.
24649 (define_mode_attr Fs): Delete.
24650 (rest of file): Use the new mode attributes.
24651 * config.rs6000/vsx.md: Use the new mode attributes.
24652
24653 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24654
24655 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24656 with just "wa".
24657
24658 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24659
24660 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24661 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24662 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24663
24664 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24665
24666 PR target/78263
24667 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24668 C++ with strict ANSI requirements.
24669
24670 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24671
24672 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24673 computations when step is 1.
24674
24675 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24676
24677 * config/rs6000/constraints.md (define_register_constraint "wf"):
24678 Delete.
24679 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24680 (rs6000_init_hard_regno_mode_ok): Adjust.
24681 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24682 RS6000_CONSTRAINT_wf.
24683 * config/rs6000/rs6000.md: Adjust.
24684 * config/rs6000/vsx.md: Adjust.
24685 * doc/md.texi (Machine Constraints): Adjust.
24686
24687 2019-06-04 Andrew Pinski <apinski@marvell.com>
24688
24689 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24690 Fix ILP32 value.
24691
24692 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24693
24694 * config/rs6000/constraints.md (define_register_constraint "wd"):
24695 Delete.
24696 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24697 (rs6000_init_hard_regno_mode_ok): Adjust.
24698 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24699 RS6000_CONSTRAINT_wd.
24700 * config/rs6000/rs6000.md: Adjust.
24701 * config/rs6000/vsx.md: Adjust.
24702 * doc/md.texi (Machine Constraints): Adjust.
24703
24704 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24705
24706 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24707 (rest of file): Adjust.
24708
24709 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24710
24711 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24712 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24713 (vsx_splat_<mode>_reg): Adjust.
24714
24715 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24716
24717 * config/rs6000/constraints.md (define_register_constraint "ws"):
24718 Delete.
24719 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24720 (rs6000_init_hard_regno_mode_ok): Adjust.
24721 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24722 RS6000_CONSTRAINT_ws.
24723 * config/rs6000/rs6000.md: Adjust.
24724 * config/rs6000/vsx.md: Adjust.
24725 * doc/md.texi (Machine Constraints): Adjust.
24726
24727 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24728
24729 * config/rs6000/constraints.md (define_register_constraint "wv"):
24730 Delete.
24731 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24732 (rs6000_init_hard_regno_mode_ok): Adjust.
24733 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24734 RS6000_CONSTRAINT_wv.
24735 * config/rs6000/rs6000.md: Adjust.
24736 * config/rs6000/vsx.md: Adjust.
24737 * doc/md.texi (Machine Constraints): Adjust.
24738
24739 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24740
24741 * config/rs6000/constraints.md (define_register_constraint "wi"):
24742 Delete.
24743 (define_register_constraint "wt"): Delete.
24744 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24745 (rs6000_init_hard_regno_mode_ok): Adjust.
24746 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24747 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24748 * config/rs6000/rs6000.md: Adjust.
24749 * config/rs6000/vsx.md: Adjust.
24750 * doc/md.texi (Machine Constraints): Adjust.
24751
24752 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24753
24754 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24755 const.
24756 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24757 default_elf_asm_output_external.
24758
24759 2019-06-04 Martin Liska <mliska@suse.cz>
24760
24761 * ipa-icf.c (INCLUDE_LIST): Remove.
24762 (sem_item_optimizer::execute): Remove call to init_wpa.
24763 * ipa-icf.h (init_wpa): Remove.
24764
24765 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24766
24767 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24768 conditional on combined for simd.
24769 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24770 member.
24771 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24772 constructs, don't remove lastprivate_conditional_map, but instead set
24773 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24774 to parent construct temporaries.
24775 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24776 like !ctx->lastprivate_conditional_map.
24777 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24778 use up->outer context instead of up.
24779 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24780 gimple_omp_for_combined_p.
24781 (expand_omp_for_static_nochunk): Likewise.
24782 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24783 probably moved over into expand_omp_for_generic rather than being copied
24784 there.
24785
24786 2019-06-04 Martin Liska <mliska@suse.cz>
24787
24788 * value-prof.c (dump_histogram_value): Fix typo.
24789 (gimple_mod_subtract_transform): Likewise.
24790
24791 2019-06-04 Richard Biener <rguenther@suse.de>
24792
24793 PR middle-end/90726
24794 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24795 (tree_contains_chrecs): Likewise.
24796 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24797 exponential behaivor from ...
24798 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24799 ... here.
24800 (expression_expensive_p): Avoid exponential behavior and compute
24801 expanded size, rejecting any expansion.
24802 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24803 (idx_contains_abnormal_ssa_name_p): Likewise.
24804 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24805 (contains_abnormal_ssa_name_p): Simplify and use
24806 walk_tree_without_duplicates.
24807
24808 2019-06-04 Richard Biener <rguenther@suse.de>
24809
24810 PR tree-optimization/90738
24811 Revert
24812 2019-06-03 Richard Biener <rguenther@suse.de>
24813
24814 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24815 full reference tree and record in ref->ref.
24816 (vn_reference_lookup_3): Pass in original ref to
24817 ao_ref_init_from_vn_reference.
24818 (vn_reference_lookup): Likewise.
24819 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24820 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24821 Handle non-decl bases in the original reference.
24822
24823 2019-06-04 Martin Liska <mliska@suse.cz>
24824
24825 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24826 number of references.
24827 (sem_item_optimizer::do_congruence_step):
24828 (sem_item_optimizer::worklist_push): Dump how references
24829 a class has.
24830 (sem_item_optimizer::worklist_pop): Use heap.
24831 (sem_item_optimizer::process_cong_reduction): Likewise.
24832 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24833
24834 2019-06-04 Martin Liska <mliska@suse.cz>
24835
24836 * ipa-icf.h (struct sem_usage_pair_hash): New.
24837 (sem_usage_pair_hash::hash): Likewise.
24838 (sem_usage_pair_hash::equal): Likewise.
24839 (struct sem_usage_hash): Likewise.
24840 * ipa-icf.c (sem_item::sem_item): Initialize
24841 referenced_by_count.
24842 (sem_item::add_reference): Register a reference
24843 in ref_map and not in target->usages.
24844 (sem_item::setup): Remove initialization of
24845 dead vectors.
24846 (sem_item::~sem_item): Remove usage of dead vectors.
24847 (sem_item::dump): Remove dump of references.
24848 (sem_item_optimizer::sem_item_optimizer): Initialize
24849 m_references.
24850 (sem_item_optimizer::read_section): Remove useless
24851 dump.
24852 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24853 (sem_item_optimizer::build_graph): Pass m_references
24854 to ::add_reference.
24855 (sem_item_optimizer::verify_classes): Remove usage of dead
24856 vectors.
24857 (sem_item_optimizer::traverse_congruence_split): Return true
24858 when a class is split.
24859 (sem_item_optimizer::do_congruence_step_for_index): Use
24860 hash_map for look up of (sem_item *, index). That brings
24861 significant speed up.
24862 (sem_item_optimizer::do_congruence_step): Return true
24863 when a split is done.
24864 (congruence_class::is_class_used): Use referenced_by_count.
24865
24866 2019-06-04 Alan Modra <amodra@gmail.com>
24867
24868 PR target/90689
24869 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24870 error.
24871
24872 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24873
24874 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24875 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24876 (rs6000_secondary_reload_simple_move): Adjust.
24877 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24878 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24879 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24880 comment.
24881 (power6x): Adjust.
24882 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24883 (floatunssi<mode>2_lfiwzx): Adjust.
24884 (fix_trunc<mode>si2_stfiwx): Adjust.
24885 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24886 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24887 (mfpgpr): Mark as deprecated.
24888 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24889 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24890 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24891
24892 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24893
24894 * config/rs6000/constraints.md (define_register_constraint "wg"):
24895 Delete.
24896 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24897 RS6000_CONSTRAINT_wg.
24898 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24899 (rs6000_init_hard_regno_mode_ok): Adjust.
24900 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24901 Delete "wg" alternatives.
24902 * doc/md.texi (Machine Constraints): Adjust.
24903
24904 2019-06-03 Alan Modra <amodra@gmail.com>
24905
24906 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24907 (get_uncond_jump_length): Assert length less than INT_MAX and
24908 non-negative.
24909
24910 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24911
24912 PR middle-end/64242
24913 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24914 block.
24915 (expand_builtin_nonlocal_goto): Likewise.
24916
24917 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24918
24919 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24920 (aarch64_asm_output_external): Declare.
24921 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24922 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24923 (aarch64_asm_output_alias): New.
24924 (aarch64_asm_output_external): New.
24925 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24926 (ASM_OUTPUT_EXTERNAL): Define.
24927
24928 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24929 * tree-vrp.h (value_range_base::nonzero_p): New.
24930 (value_range_base::set_nonnull): Rename to...
24931 (value_range_base::set_nonzero): ...this.
24932 (value_range_base::set_null): Rename to...
24933 (value_range_base::set_zero): ...this.
24934 (value_range::set_nonnull): Remove.
24935 (value_range::set_null): Remove.
24936 * tree-vrp.c (range_is_null): Remove.
24937 (range_is_nonnull): Remove.
24938 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24939 instead of range_is_*null.
24940 (extract_range_from_unary_expr): Same.
24941 (value_range_base::set_nonnull): Rename to...
24942 (value_range_base::set_nonzero): ...this.
24943 (value_range::set_nonnull): Remove.
24944 (value_range_base::set_null): Rename to...
24945 (value_range_base::set_zero): ...this.
24946 (value_range::set_null): Remove.
24947 (extract_range_from_binary_expr): Rename set_*null uses to
24948 set_*zero.
24949 (extract_range_from_unary_expr): Same.
24950 (union_helper): Same.
24951 * vr-values.c (get_value_range): Use set_*zero instead of
24952 set_*null.
24953 (vr_values::extract_range_from_binary_expr): Same.
24954 (vr_values::extract_range_basic): Same.
24955
24956 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24957
24958 PR driver/90684
24959 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24960
24961 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24962
24963 * config/aarch64/iterators.md (MAX_OPP): New code attr.
24964 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24965 Rename to...
24966 (aarch64_<su>abd<mode>_3): ... This.
24967 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24968
24969 2019-06-03 Richard Biener <rguenther@suse.de>
24970
24971 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24972 full reference tree and record in ref->ref.
24973 (vn_reference_lookup_3): Pass in original ref to
24974 ao_ref_init_from_vn_reference.
24975 (vn_reference_lookup): Likewise.
24976 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24977 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24978 Handle non-decl bases in the original reference.
24979
24980 2019-06-03 Martin Liska <mliska@suse.cz>
24981
24982 * doc/generic.texi: Remove Java Trees.
24983
24984 2019-06-03 Martin Liska <mliska@suse.cz>
24985
24986 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24987 returns 0 when operands are equal.
24988
24989 2019-06-03 Richard Biener <rguenther@suse.de>
24990
24991 PR tree-optimization/90716
24992 * tree-loop-distribution.c (destroy_loop): Process blocks in
24993 correct order.
24994
24995 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24996
24997 PR target/88837
24998 * vector-builder.h (vector_builder::count_dups): New method.
24999 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25000 Declare prototype.
25001 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25002 (vec_init<mode><Vel>): New pattern.
25003 * config/aarch64/aarch64.c (emit_insr): New function.
25004 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25005 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25006 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25007 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25008
25009 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25010
25011 PR tree-optimization/90681
25012 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25013 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25014 special case for SLP, but fail on non-groupped loads.
25015
25016 2019-06-03 Martin Liska <mliska@suse.cz>
25017
25018 * cfg.c (debug): Use TDF_DETAILS for debug and
25019 print edge info only once.
25020
25021 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25022
25023 PR fortran/90539
25024 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25025
25026 2019-06-01 Martin Sebor <msebor@redhat.com>
25027
25028 PR middle-end/90694
25029 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25030
25031 2019-05-31 Jan Hubicka <jh@suse.cz>
25032
25033 * alias.c: Include ipa-utils.h.
25034 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25035 * ipa-devirt.c (prevailing_odr_type): New.
25036 * ipa-utils.h (previaling_odr_type): Declare.
25037
25038 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25039 Hongtao Liu <hongtao.liu@intel.com>
25040
25041 PR target/89355
25042 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25043 NOTE_INSN_DELETED_LABEL check.
25044
25045 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25046 Robert Suchanek <robert.suchanek@mips.com>
25047
25048 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25049 and 3rd operands of the fmadd/fmsub/maddv builtin.
25050
25051 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25052
25053 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25054 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25055 on OMP_SIMD if not nested inside of worksharing loop that also has
25056 lastprivate conditional clause for the same decl.
25057 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25058 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25059 on simd.
25060 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25061 on simd construct.
25062 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25063 on simd construct.
25064 (lower_lastprivate_clauses): Likewise.
25065 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25066 calling lower_rec_input_clauses.
25067 (lower_omp_for): Likewise.
25068 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25069 clause on simd construct.
25070 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25071 OMP_CLAUSE__CONDTEMP_ clause is present.
25072
25073 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25074 ivar and lvar.
25075
25076 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25077
25078 PR c/43673
25079 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25080 TEX_D32, TEX_D64 or TEX_D128.
25081
25082 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25083
25084 * match.pd (~(vec?cst1:cst2)): New transformation.
25085
25086 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25087
25088 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25089 ((size_t)(A /[ex] B) CMP C): New transformation.
25090
25091 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25092
25093 * doc/md.texi: Document define_insn_and_rewrite.
25094 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25095 * gensupport.c (queue_elem): Update comment.
25096 (replace_operands_with_dups): New function.
25097 (gen_rewrite_sequence): Likewise.
25098 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25099 * read-rtl.c (apply_subst_iterator): Likewise.
25100 (add_condition_to_rtx, named_rtx_p): Likewise.
25101 (rtx_reader::read_rtx_operand): Likewise.
25102 * config/aarch64/aarch64-sve.md
25103 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25104 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25105 define_insn_and_rewrite.
25106 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25107 Remove separate define_split.
25108
25109 2019-05-31 Jan Hubicka <jh@suse.cz>
25110
25111 * tree-ssa-alias.c (type_has_components_p): New function.
25112 (aliasing_component_refs_p): Use it.
25113
25114 2019-05-31 Martin Liska <mliska@suse.cz>
25115
25116 * gdbhooks.py: Add const_tree to TreePrinter.
25117
25118 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25119
25120 PR debug/86964
25121 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25122 * doc/invoke.texi (Debugging Options): Document new default of
25123 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25124
25125 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25126
25127 PR tree-optimization/90671
25128 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25129 template_block used to be empty on the first call, don't use
25130 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25131 seq with bb_seq and set it with set_bb_seq.
25132
25133 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25134
25135 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25136
25137 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25138 Michael Meissner <meissner@linux.ibm.com>
25139
25140 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25141 (prefixed_mem_operand): Likewise.
25142 (non_prefixed_mem_operand): Likewise.
25143 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25144 prototype.
25145 * config/rs6000/rs6000.c (print_operand_address): Handle
25146 PC-relative addresses.
25147 (mode_supports_prefixed_address_p): New function.
25148 (rs6000_prefixed_address): New function.
25149 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25150 (SYMBOL_REF_PCREL_P): Likewise.
25151
25152 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25153
25154 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25155 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25156 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25157 is nested inside of parallel region, add _condtemp_ clause to both.
25158 * tree-nested.c (convert_nonlocal_omp_clauses,
25159 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25160 assertion failure.
25161 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25162 member.
25163 * omp-general.c (omp_extract_for_data): Compute it.
25164 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25165 (lower_rec_input_clauses): Likewise.
25166 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25167 clause is already present, just add one further one after it.
25168 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25169 (lower_send_shared_vars): Clear _condtemp_ vars.
25170 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25171 or section or taskgroup.
25172 * omp-expand.c (determine_parallel_type): Disallow combining only if
25173 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25174 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25175 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25176 expand_omp_for_static_chunk, expand_omp_for): Use
25177 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25178 determine if a special set of API routines are needed and if condtemp
25179 needs to be initialized, while always initialize cond_var if
25180 fd->lastprivate_conditional is non-zero.
25181
25182 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25183 Michael Meissner <meissner@linux.ibm.com>
25184
25185 * config/rs6000/constraints.md (eI): New constraint.
25186 * config/rs6000/predicates.md (cint34_operand): New predicate.
25187 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25188 (SIGNED_34BIT_OFFSET_P): Likewise.
25189 * doc/md.texi (eI): Document constraint.
25190
25191 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25192
25193 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25194
25195 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25196 Michael Meissner <meissner@linux.ibm.com>
25197
25198 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25199 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25200 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25201 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25202 (OTHER_FUTURE_MASKS): Likewise.
25203 (POWERPC_MASKS): Likewise.
25204 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25205 specified without -mprefixed-addr or -mcpu=future. Error if
25206 -mprefixed-addr is specified without -mcpu=future.
25207 (rs6000_opt_masks): Add entry for prefixed-addr.
25208 * rs6000.opt (mprefixed-addr): New option.
25209
25210 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25211
25212 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25213 cfun->is_thunk check.
25214
25215 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25216
25217 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25218 to length.
25219
25220 2019-05-30 Martin Liska <mliska@suse.cz>
25221
25222 * gdbinit.in: Fix 'ptc' command. Add trt
25223 that prints TREE_TYPE($).
25224
25225 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25226 Alan Modra <amodra@gmail.com>
25227
25228 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25229 calls here...
25230 (rs6000_indirect_call_template_1): ...and here.
25231 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25232 plt16_ha, plt16_lo, mtctr indirect calls. Use
25233 rs6000_pltseq_enum.
25234 (rs6000_decl_ok_for_sibcall): New function.
25235 (rs6000_function_ok_for_sibcall): Refactor.
25236 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25237 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25238 when pcrel. Reorganize.
25239 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25240 * rs6000.h (rs6000_pltseq_enum): New enum.
25241 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25242 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25243 (*pltseq_plt16_ha): Likewise.
25244 (*pltseq_plt16_lo): Likewise.
25245 (*pltseq_mtctr): Likewise.
25246 (*pltseq_plt_pcrel): New insn.
25247 (*call_local_aix): Handle @notoc calls.
25248 (*call_value_local_aix): Likewise.
25249 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25250 (*call_value_nonlocal_aix): Likewise.
25251 (*call_indirect_pcrel): New insn.
25252 (*call_value_indirect_pcrel): Likewise.
25253
25254 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25255
25256 * config/i386/sse.md (*save_multiple<mode>): Rename from
25257 save_multiple<mode>.
25258 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25259 (*restore_multiple_and_return<mode>): Rename from
25260 restore_multiple_and_return<mode>.
25261 (*restore_multiple_leave_return<mode>): Rename from
25262 restore_multiple_leave_return<mode>.
25263
25264 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25265
25266 * config.gcc (rx-*-linux*): New target.
25267 * config/rx/elf.opt: New file.
25268 * config/rx/linux.h: Likewise.
25269 * config/rx/t-linux: Likewise.
25270 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25271 make it zero.
25272 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25273 (ASM_APP_OFF): Likewise.
25274 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25275 moved elsewhere.
25276
25277 2019-05-29 Jan Hubicka <jh@suse.cz>
25278
25279 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25280 variants are pointer equivalent.
25281
25282 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25283
25284 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25285 * config/aarch64/aarch64-sve2.md: New file.
25286 (<u>avg<mode>3_floor): New pattern.
25287 (<u>avg<mode>3_ceil): Likewise.
25288 (*<sur>h<addsub><mode>): Likewise.
25289 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25290 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25291
25292 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25293
25294 PR bootstrap/90543
25295 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25296 for var_opt_string printing. In cl_optimization_print_diff, print
25297 (null) instead of invoking undefined behavior if one of the
25298 var_opt_string pointers is NULL and use && instead of first || in the
25299 guarding condition. For var_target_other options, handle const char *
25300 target variables similarly to const char * optimize node variables.
25301
25302 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25303
25304 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25305 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25306 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25307 Add autib1716 and pacib1716 initialisation.
25308 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25309 for autib1716 and pacib1716.
25310 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25311 aarch64_post_cfi_startproc): Define.
25312 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25313 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25314 aarch64_handle_pac_ret_protection): Set default sign key to A.
25315 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25316 aarch64_expand_prologue): Add check for b-key.
25317 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25318 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25319 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25320 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25321 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25322 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25323 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25324 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25325 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25326 pauth_hint_num_a with pauth_hint_num.
25327 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25328 pauth_hint_num_a with pauth_hint_num.
25329 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25330 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25331 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25332 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25333 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25334 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25335 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25336 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25337 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25338 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25339 UNSPEC_AUTIA1716 respectively.
25340 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25341 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25342 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25343 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25344 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25345 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25346
25347 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25348
25349 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25350 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25351 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25352 explicit clause on combined parallel into implicit shared clause.
25353 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25354 and firstprivate if the decl has one too from combined parallel to
25355 the worksharing construct.
25356
25357 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25358 Michael Meissner <meissner@linux.ibm.com>
25359
25360 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25361
25362 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25363
25364 * rtl.h (LABEL_REF_P): New #define.
25365
25366 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25367
25368 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25369
25370 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25371
25372 * internal-fn.c: Marked mask_load_direct as vectorizable.
25373 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25374 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25375 combined even if masks different with allow_slp_p param.
25376 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25377 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25378 dissolve SLP-only vectorizable groups when SLP has been discarded.
25379 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25380 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25381 masks.
25382 (vect_build_slp_tree_1): Fixed comment typo.
25383 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25384 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25385 loads for SLP only.
25386 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25387 vectorizable.
25388 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25389
25390 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25391
25392 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25393 Remove obsolete use_thunk reference.
25394 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25395 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25396 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25397 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25398 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25399 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25400 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25401 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25402 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25403
25404 2019-05-28 Nathan Sidwell <nathan@acm.org>
25405
25406 * tree.h (IDENTIFIER_ANON_P): New.
25407 (anon_aggrname_format, anon_aggname_p): Don't declare.
25408 (make_anon_name): Declare.
25409 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25410 (hash_tree): Likewise.
25411 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25412 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25413 (anon_cnt, make_anon_name): New.
25414
25415 2019-05-28 Martin Liska <mliska@suse.cz>
25416
25417 PR other/90315
25418 * opts-global.c (decode_options): Print help for all
25419 help_option_arguments.
25420 * opts.c (print_help): Add new argument.
25421 (common_handle_option): Remember all values into
25422 help_option_arguments.
25423 * opts.h (print_help): Add new argument.
25424
25425 2019-05-28 Martin Liska <mliska@suse.cz>
25426
25427 PR ipa/90555
25428 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25429 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25430 (func_checker::compare_bb): Call compare_loops.
25431
25432 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25433
25434 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25435 on sections construct.
25436 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25437 construct.
25438 (lower_omp_sections): Handle lastprivate conditional.
25439 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25440 lastprivate_conditional_map.
25441 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25442
25443 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25444 critical, taskgroup and section regions when looking for a region
25445 with non-NULL lastprivate_conditional_map.
25446
25447 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25448
25449 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25450 (*ix86_gen_sub3): Ditto.
25451 (*ix86_gen_sub3_carry): Ditto.
25452 (*ix86_gen_one_cmpl2): Ditto.
25453 (*ix86_gen_andsp): Ditto.
25454 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25455 (gen_and2_insn): New static function.
25456 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25457 Use gen_add3_insn instead of ix86_gen_add3.
25458 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25459 instead of ix86_gen_add3.
25460 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25461 Use gen_sub3_insn instead of ix86_gen_sub3.
25462 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25463 instead of ix86_gen_add3.
25464 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25465 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25466 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25467 * config/i386/i386-options.c (ix86_option_override_internal):
25468 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25469 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25470
25471 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25472
25473 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25474 and DW_OP_GNU_const_index opcodes.
25475
25476 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25477
25478 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25479
25480 2019-05-27 Richard Biener <rguenther@suse.de>
25481
25482 PR tree-optimization/90637
25483 * tree-ssa-sink.c (statement_sink_location): Honor the
25484 computed sink location for single-uses.
25485
25486 2019-05-27 Richard Biener <rguenther@suse.de>
25487
25488 PR middle-end/90610
25489 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25490 a bit-insert.
25491
25492 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25493
25494 * config/i386/i386.md (@sub<mode>3_carry): Rename
25495 from sub<mode>3_carry.
25496 (@leave_<mode>): New expander.
25497 (*leave): Rename from leave.
25498 (*leave_rex64): Rename from leave_rex64.
25499 (@monitorx_<mode>): Rename from monitorx_<mode>.
25500 (@clzero_<mode>): Rename from clzero_<mode>.
25501 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25502 from sse3_monitor_<mode>.
25503 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25504 (*ix86_gen_leave): Ditto.
25505 (*ix86_gen_monitor): Ditto.
25506 (*ix86_gen_monitorx): Ditto.
25507 (*ix86_gen_clzero): Ditto.
25508 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25509 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25510 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25511 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25512 Use gen_sse3_monitor instead of ix86_gen_monitor.
25513 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25514 instead of ix86_gen_monitorx.
25515 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25516 instead of ix86_gen_clzero.
25517 * config/i386/i386-options.c (ix86_option_override_internal):
25518 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25519 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25520
25521 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25522
25523 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25524 Rename from tls_global_dynamic_64_<mode>.
25525 (@tls_local_dynamic_base_64_<mode>): Rename from
25526 tls_local_dynamic_base_64_<mode>.
25527 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25528 Remove indirect function.
25529 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25530 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25531 instead of ix86_gen_tls_global_dynamic_64.
25532 Use gen_tls_local_dynamic_base_64 instead of
25533 ix86_gen_tls_local_dynamic_base_64.
25534 * config/i386/i386-options.c (ix86_option_override_internal):
25535 Do not initialize ix86_gen_tls_global_dynamic_64 and
25536 ix86_gen_tls_local_dynamic_base_64.
25537
25538 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25539
25540 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25541 Rename from pro_epilogue_adjust_stack_<mode>_add.
25542 (@pro_epilogue_adjust_stack_sub_<mode>)
25543 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25544 (@allocate_stack_worker_probe_<mode>):
25545 Rename from allocate_stack_worker_probe_<mode>.
25546 (allocate_stack): Use gen_allocate_stack_worker_probe.
25547 (probe_stack): Use gen_probe_stack_1.
25548 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25549 (@adjust_stack_and_probe_<mode>): Rename from
25550 adjust_stack_and_probe<mode>.
25551 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25552 (stack_protect_set): Use gen_stack_protect_set_1.
25553 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25554 (stack_protect_test): Use gen_stack_protect_test_1.
25555 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25556 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25557 Remove indirect function.
25558 (*ix86_gen_adjust_stack_and_probe): Ditto.
25559 (*ix86_gen_probe_stack_range): Ditto.
25560 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25561 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25562 (ix86_adjust_stack_and_probe_stack_clash): Use
25563 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25564 (ix86_adjust_stack_and_probe): Ditto.
25565 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25566 of ix86_gen_probe_stack_range.
25567 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25568 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25569 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25570 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25571 CODE_FOR_stack_protect_test_{si,di}.
25572 * config/i386/i386-options.c (ix86_option_override_internal):
25573 Do not initialize ix86_gen_allocate_stack_worker,
25574 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25575
25576 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25577
25578 * doc/invoke.texi (Link Options): Many editorial changes around
25579 -flinker-output.
25580
25581 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25582
25583 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25584 pre-Solaris 11 referene and most Studio compiler details.
25585
25586 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25587
25588 PR target/90530
25589 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25590 DImode to SImode in floating-point registers on 64-bit target.
25591 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25592 register_operand in xmpyu patterns.
25593
25594 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25595
25596 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25597 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25598 OMP_CLAUSE__REDUCTEMP_.
25599 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25600 OMP_CLAUSE__CONDTEMP_.
25601 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25602 * tree-pretty-print.c (dump_omp_clause): Likewise.
25603 * tree-nested.c (convert_nonlocal_omp_clauses,
25604 convert_local_omp_clauses): Likewise.
25605 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25606 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25607 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25608 on OMP_FOR.
25609 (gimplify_omp_for): Warn and disable conditional modifier from
25610 lastprivate on loop iterators.
25611 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25612 member.
25613 * omp-general.c (omp_extract_for_data): Initialize it.
25614 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25615 member.
25616 (delete_omp_context): Delete it.
25617 (lower_lastprivate_conditional_clauses): New function.
25618 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25619 handle lastprivate conditional clauses.
25620 (lower_reduction_clauses): Add CLIST argument, emit it into
25621 the critical section if any.
25622 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25623 lower_reduction_clauses callers.
25624 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25625 to lower_lastprivate_clauses.
25626 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25627 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25628 clist into a critical section if not emitted there already by
25629 lower_reduction_clauses.
25630 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25631 callers.
25632 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25633 conditional variables.
25634 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25635 clause is present.
25636 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25637 expand_omp_for_static_chunk): Handle lastprivate conditional.
25638 (expand_omp_for): Handle fd.lastprivate_conditional like
25639 fd.have_reductemp.
25640
25641 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25642
25643 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25644 kernel does not exit cleanly.
25645 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25646
25647 2019-05-24 Jason Merrill <jason@redhat.com>
25648
25649 Revert:
25650 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25651
25652 2019-05-24 Richard Biener <rguenther@suse.de>
25653
25654 PR testsuite/90607
25655 * tree-loop-distribution.c (struct partition): Add location
25656 member.
25657 (partition_alloc): Initialize all fields.
25658 (generate_memset_builtin): Use the location recorded in the
25659 partition for the generated call.
25660 (generate_memcpy_builtin): Likewise.
25661 (classify_partition): Record the location of a single store
25662 as location for the partition.
25663
25664 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25665
25666 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25667 for lo-part.
25668
25669 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25670
25671 PR target/90588
25672 * common/config/aarch64/aarch64-common.c
25673 (aarch64_rewrite_selected_cpu): Change local temporary variable
25674 type from unsigned long to uint64_t.
25675 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25676 aarch64_get_extension_string_for_isa_flags): Change declaration to
25677 match new definition by replacing unsigned long with uint64_t.
25678
25679 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25680
25681 PR target/90568
25682 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25683 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25684 Handle stack_protect_test_<mode> codegen similarly to corresponding
25685 sub instruction.
25686
25687 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25688
25689 * config/i386/darwin.h: Reject -mfentry*.
25690 * doc/sourcebuild.texi: Document mfentry target support.
25691
25692 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25693
25694 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25695 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25696 false for PC-relative functions.
25697 (rs6000_output_function_prologue): Change called function name to
25698 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25699 name,1" for PC-relative functions.
25700 (rs6000_elf_declare_function_name): Change called function name to
25701 rs6000_global_entry_point_prologue_needed_p.
25702
25703 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25704
25705 PR target/90552
25706 * config/i386/i386.c (gen_rtx_cost):
25707 Use ix86_tune_cost instead of ix86_cost.
25708
25709 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25710 Michael Meissner <meissner@linux.ibm.com>
25711 Segher Boessenkool <segher@kernel.crashing.org>
25712
25713 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25714 OPTION_MASK_PCREL.
25715 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25716 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25717 (rs6000_fndecl_pcrel_p): Likewise.
25718 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25719 error if -mpcrel is requested without -mcpu=future.
25720 (rs6000_opt_masks): Add entry for pcrel.
25721 (rs6000_fndecl_pcrel_p): New function.
25722 (rs6000_pcrel_p): Likewise.
25723 * config/rs6000/rs6000.opt (mpcrel): New option.
25724 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25725
25726 2019-05-23 Jan Hubicka <jh@suse.cz>
25727 Martin Liska <mliska@suse.cz>
25728
25729 PR tree-optimization/90576
25730 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25731 poly_int_tree_p.
25732 (aliasing_component_refs_p): Fix three way size compare conditional;
25733 give up earlier in case we can not decide on equivalence.
25734
25735 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25736 Michael Meissner <meissner@linux.ibm.com>
25737 Segher Boessenkool <segher@kernel.crashing.org>
25738
25739 * config.gcc: Add future cpu.
25740 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25741 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25742 #define.
25743 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25744 (RS6000_CPU): New instantiation for future cpu.
25745 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25746 PROCESSOR_FUTURE.
25747 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25748 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25749 * config/rs6000/rs6000-tables.opt: Regenerate.
25750 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25751 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25752 (rs6000_machine_from_flags): Handle future cpu.
25753 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25754 PROCESSOR_POWER9 for now.
25755 (rs6000_adjust_cost): Likewise.
25756 (rs6000_issue_rate): Likewise.
25757 (rs6000_register_move_cost): Likewise.
25758 (rs6000_opt_masks): Add entry for future.
25759 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25760 (MASK_FUTURE): New #define.
25761 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25762 * config/rs6000/rs6000.opt (mfuture): New target option.
25763 * doc/invoke.texi (mcpu): Add future cpu.
25764
25765 2019-05-23 Martin Liska <mliska@suse.cz>
25766
25767 PR c++/90587
25768 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25769 operation points to a temporary (pointed via tree_to_wide_ref)
25770 that is out of scope after the &.
25771
25772 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25773
25774 PR c++/90592
25775 * doc/extend.texi (Function Names): Add missing word.
25776
25777 2019-05-23 Richard Biener <rguenther@suse.de>
25778
25779 PR tree-optimization/88440
25780 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25781 at -O[2s]+.
25782 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25783 generated call.
25784 (generate_memcpy_builtin): Likewise.
25785 (distribute_loop): Pass in whether to only distribute patterns.
25786 (prepare_perfect_loop_nest): Also allow size optimization.
25787 (pass_loop_distribution::execute): When optimizing a loop
25788 nest for size allow pattern replacement.
25789
25790 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25791
25792 PR target/90568
25793 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25794 of xor.
25795
25796 2019-05-23 Martin Liska <mliska@suse.cz>
25797
25798 PR sanitizer/90570
25799 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25800 expression similarly to gimplify_decl_expr.
25801
25802 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25803
25804 * cse.c (cse_dump_path): s/dump_file/f.
25805
25806 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25807
25808 PR c++/90462
25809 * diagnostic-format-json.cc: Include "selftest.h".
25810 (json_from_expanded_location): Only add "file" key for non-NULL
25811 file strings.
25812 (json_from_location_range): Don't add "start" and "finish"
25813 children if they are UNKNOWN_LOCATION.
25814 (selftest::test_unknown_location): New selftest.
25815 (selftest::test_bad_endpoints): New selftest.
25816 (selftest::diagnostic_format_json_cc_tests): New function.
25817 * json.cc (json::object::get): New function.
25818 (selftest::test_object_get): New selftest.
25819 (selftest::json_cc_tests): Call it.
25820 * json.h (json::object::get): New decl.
25821 * selftest-run-tests.c (selftest::run_tests): Call
25822 selftest::diagnostic_format_json_cc_tests.
25823 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25824 decl.
25825
25826 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25827 Andrew Stubbs <amd@codesourcery.com>
25828
25829 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25830 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25831 (kernel): Rename to...
25832 (main_kernel): ... this.
25833 (load_image): Load _init_array and _fini_array kernels.
25834 (run): Add argument for kernel to run.
25835 (main): Run init_array_kernel before main_kernel, and
25836 fini_array_kernel after.
25837 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25838 amdgpu_hsa_kernel attribute on functions.
25839 (gcn_disable_constructors): Delete.
25840 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25841 * config/gcn/crt0.c (size_t): Define.
25842 (_init_array, _fini_array): New.
25843 (__preinit_array_start, __preinit_array_end,
25844 __init_array_start, __init_array_end,
25845 __fini_array_start, __fini_array_end): Declare weak references.
25846
25847 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25848
25849 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25850
25851 2019-05-22 Jason Merrill <jason@redhat.com>
25852
25853 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25854
25855 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25856
25857 PR target/88483
25858 * config/i386/i386-options.c (ix86_init_machine_status): Set
25859 stack_frame_required to true.
25860 * config/i386/i386.c (ix86_get_frame_size): New function.
25861 (ix86_frame_pointer_required): Replace get_frame_size with
25862 ix86_get_frame_size.
25863 (ix86_compute_frame_layout): Likewise.
25864 (ix86_find_max_used_stack_alignment): Changed to void. Set
25865 stack_frame_required.
25866 (ix86_finalize_stack_frame_flags): Always call
25867 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25868 ix86_get_frame_size.
25869 * config/i386/i386.h (machine_function): Add stack_frame_required.
25870
25871 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25872
25873 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25874
25875 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25876
25877 * common/config/aarch64/aarch64-common.c
25878 (struct aarch64_option_extension, struct processor_name_to_arch,
25879 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25880 aarch64_contains_opt,
25881 aarch64_get_extension_string_for_isa_flags): Change type of
25882 variables storing flags to uint64_t.
25883 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25884 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25885 * config/aarch64/aarch64.c (struct processor,
25886 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25887 aarch64_validate_march, aarch64_override_options,
25888 aarch64_option_print, aarch64_handle_attr_isa_flags,
25889 aarch64_declare_function_name, aarch64_start_file): Make flag
25890 variables uint64_t.
25891 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25892 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25893 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25894 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25895 * config/aarch64/driver-aarch64.c
25896 (struct aarch64_arch_extension, struct aarch64_core_data,
25897 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25898 flag variables uint64_t.
25899 * doc/invoke.texi: Add documentation for new arguments.
25900
25901 2019-05-22 Richard Biener <rguenther@suse.de>
25902
25903 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25904 rewrite ...
25905 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25906
25907 2019-05-22 Martin Liska <mliska@suse.cz>
25908
25909 PR lto/90500
25910 * doc/extend.texi: Document the change.
25911
25912 2019-05-22 Richard Biener <rguenther@suse.de>
25913
25914 PR tree-optimization/90450
25915 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25916 (mem_ref_hasher::equal): Check it.
25917 (mem_ref_alloc): Initialize it.
25918 (gather_mem_refs_stmt): Set it.
25919
25920 2019-05-22 Richard Biener <rguenther@suse.de>
25921
25922 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25923 Add ABS_EXPR.
25924 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25925 as ABSU_EXPR.
25926
25927 2019-05-22 Alan Modra <amodra@gmail.com>
25928
25929 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25930 (ASM_CPU_SPEC): Conditionally add -many.
25931 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25932 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25933 (rs6000_file_start): ..extracted from here, and modified to
25934 test all ISA bits.
25935 (rs6000_output_function_prologue): Emit .machine as necessary.
25936
25937 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25938
25939 PR middle-end/90553
25940 * ira-lives.c (process_bb_node_lives): Consider defs
25941 for a call insn to be die before the call, not after.
25942
25943 * function.c (assign_parm_setup_block): Raise alignment of
25944 stacked parameter only for STRICT_ALIGNMENT targets.
25945
25946 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25947
25948 * config/rs6000/constraints.md (define_register_constraint "wz"):
25949 Delete.
25950 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25951 RS6000_CONSTRAINT_wz.
25952 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25953 (rs6000_init_hard_regno_mode_ok): Adjust.
25954 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25955 * doc/md.texi (Machine Constraints): Adjust.
25956
25957 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25958
25959 * config/rs6000/constraints.md (define_register_constraint "wl"):
25960 Delete.
25961 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25962 RS6000_CONSTRAINT_wl.
25963 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25964 (rs6000_init_hard_regno_mode_ok): Adjust.
25965 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25966 * doc/md.texi (Machine Constraints): Adjust.
25967
25968 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25969
25970 * config/rs6000/constraints.md (define_register_constraint "wm"):
25971 Delete.
25972 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25973 RS6000_CONSTRAINT_wm.
25974 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25975 (rs6000_init_hard_regno_mode_ok): Adjust.
25976 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25977 * doc/md.texi (Machine Constraints): Adjust.
25978
25979 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25980
25981 * config/rs6000/constraints.md (define_register_constraint "wk"):
25982 Delete.
25983 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25984 RS6000_CONSTRAINT_wk.
25985 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25986 (rs6000_init_hard_regno_mode_ok): Adjust.
25987 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25988 * doc/md.texi (Machine Constraints): Adjust.
25989
25990 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25991
25992 * config/rs6000/constraints.md (define_register_constraint "wj"):
25993 Delete.
25994 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25995 RS6000_CONSTRAINT_wj.
25996 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25997 (rs6000_init_hard_regno_mode_ok): Adjust.
25998 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25999 (VS_64dm): Delete.
26000 * config/rs6000/vsx.md: Ditto.
26001 * doc/md.texi (Machine Constraints): Adjust.
26002
26003 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26004
26005 * config/rs6000/constraints.md (define_register_constraint "wh"):
26006 Delete.
26007 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26008 RS6000_CONSTRAINT_wh.
26009 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26010 (rs6000_init_hard_regno_mode_ok): Adjust.
26011 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26012 * doc/md.texi (Machine Constraints): Adjust.
26013
26014 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26015
26016 PR target/90547
26017 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26018 Avoid calling gen_lowpart with CONST operand.
26019
26020 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26021
26022 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26023 field template_last_to_copy.
26024 (ssa_create_duplicates): Set it, and use it. Attempt to
26025 preserve more debug stmts.
26026
26027 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26028
26029 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26030 (signbit<mode>2): New expander
26031
26032 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26033
26034 PR bootstrap/87338
26035 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26036 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26037
26038 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26039
26040 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26041 %ebx and %ecx bafore calling cpuid with leaf 1 or
26042 non-constant leaf argument.
26043
26044 2019-05-21 Alan Modra <amodra@gmail.com>
26045
26046 PR target/90545
26047 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26048 power9 direct move cost.
26049
26050 2019-05-21 Richard Biener <rguenther@suse.de>
26051
26052 PR middle-end/90510
26053 * fold-const.c (fold_read_from_vector): New function.
26054 * fold-const.h (fold_read_from_vector): Declare.
26055 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26056 single-element insert permutations. Canonicalize selector
26057 further and fix issue with last commit.
26058
26059 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26060
26061 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26062 parameter with default value false to declaration.
26063 (split_edges_for_insertion): New inline function. Wrapper for
26064 split_critical_edges with for_edge_insertion_p = true.
26065 * tree-cfg.c (split_critical_edges): Don't split non-critical
26066 edges if for_edge_insertion_p is false. Fix whitespace.
26067 * tree-ssa-pre.c (pass_pre::execute): Call
26068 split_edges_for_insertion instead of split_critical_edges.
26069 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26070 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26071 (pass_data_sink_code): Update function name in the comment.
26072
26073 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26074
26075 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26076 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26077 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26078 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26079 positives.
26080
26081 2019-05-21 Martin Liska <mliska@suse.cz>
26082
26083 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26084 an extra newline.
26085 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26086 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26087 vec_lvsr.
26088 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26089 Quote a C type.
26090 (rs6000_function_arg): Likewise.
26091 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26092 (rs6000_expand_ternop_builtin): Use interval syntax.
26093 (get_element_number): Likewise.
26094 (altivec_expand_builtin): Likewise.
26095 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26096
26097 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26098
26099 PR c++/59813
26100 PR target/90418
26101 * function.h (struct function): Add calls_eh_return member.
26102 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26103 gimplifying __builtin_eh_return call.
26104 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26105 to cfun.
26106 (expand_call_inline): Or in src_cfun->calls_eh_return into
26107 dst_cfun->calls_eh_return.
26108 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26109 cfun->calls_eh_return.
26110 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26111 * lto-streamer-out.c (output_struct_function_base): Write
26112 calls_eh_return.
26113
26114 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26115
26116 PR rtl-optimization/43147
26117 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26118 IX86_BUILTIN_SHUFPD.
26119
26120 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26121
26122 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26123 (refs_may_alias_p_1): ... here; update stats.
26124 (refs_may_alias_p): Do not update stats here.
26125
26126 2019-05-20 Richard Biener <rguenther@suse.de>
26127
26128 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26129 doesn't produce pointers.
26130 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26131 the first operand points to.
26132
26133 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26134
26135 * tree-ssa-alias.c (compare_sizes): New function.
26136 (sompare_type_sizes): New function
26137 (aliasing_component_refs_p): Use it.
26138 (indirect_ref_may_alias_decl_p): Likewise.
26139
26140 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26141
26142 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26143
26144 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26145
26146 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26147 (LIBLSAN_EARLY_SPEC): Likewise.
26148 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26149
26150 2019-05-20 Martin Liska <mliska@suse.cz>
26151
26152 * config/i386/i386.c (ix86_libc_has_fast_function):
26153 Add ATTRIBUTE_UNUSED for the argument.
26154
26155 2019-05-20 Richard Biener <rguenther@suse.de>
26156
26157 * gimple-match-head.c: Include vec-perm-indices.h.
26158 * generic-match-head.c: Likewise.
26159 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26160 is included.
26161 * fold-const.c (fold_vec_perm): Export.
26162 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26163 (match.pd): ...here.
26164
26165 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26166
26167 * cfgloop.h (struct loop): Add simdlen member.
26168 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26169 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26170 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26171 as new argument to autovectorize_vector_sizes target hook. If
26172 loop->simdlen, pick up vector size where the vectorization factor
26173 is equal to loop->simd, and if there is none, fall back to the first
26174 successful one.
26175 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26176 caller.
26177 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26178 * omp-general.c (omp_max_vf): Likewise.
26179 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26180 * tree-vect-slp.c (vect_slp_bb): Likewise.
26181 * target.def (autovectorize_vector_sizes): Add ALL argument and
26182 document it.
26183 * doc/tm.texi: Adjust documentation.
26184 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26185 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26186 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26187 bool argument.
26188 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26189 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26190 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26191 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26192 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26193 preferred vector size is not 512-bit or 256-bit, just put those
26194 unpreferred ones last.
26195
26196 2019-05-20 Martin Liska <mliska@suse.cz>
26197
26198 * targhooks.c (default_libc_has_fast_function): New function.
26199 * targhooks.h (default_libc_has_fast_function): Likewise.
26200
26201 2019-05-20 Martin Liska <mliska@suse.cz>
26202
26203 PR middle-end/90263
26204 * builtins.c (expand_builtin_memory_copy_args): When having a
26205 target with fast mempcpy implementation do now use memcpy.
26206 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26207 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26208 * doc/tm.texi: Likewise.
26209 * doc/tm.texi.in: Likewise.
26210 * target.def:
26211 * expr.c (emit_block_move_hints): Add 2 new arguments.
26212 * expr.h (emit_block_move_hints): Bail out when libcall
26213 to memcpy would be used.
26214
26215 2019-05-20 Martin Liska <mliska@suse.cz>
26216
26217 * profile-count.c: Add vertical spacing in order
26218 to separate functions.
26219 * profile-count.h: Likewise.
26220
26221 2019-05-20 Martin Liska <mliska@suse.cz>
26222
26223 * profile-count.h: Do not use full qualified
26224 names if possible.
26225 * profile-count.c (profile_count::to_frequency): Likewise.
26226
26227 2019-05-20 Martin Liska <mliska@suse.cz>
26228
26229 * profile-count.h (enum profile_quality): Use capital letters
26230 for enum value names. Use the adjusted names.
26231 * profile-count.c: Use the adjusted names.
26232
26233 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26234
26235 * config/rs6000/constraints.md (define_register_constraint "wH"):
26236 Delete.
26237 (define_register_constraint "wI"): Delete.
26238 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26239 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26240 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26241 (rs6000_init_hard_regno_mode_ok): Adjust.
26242 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26243 resp. "d", or with "wa" as appropriate, all with "p8v".
26244 * config/rs6000/vsx.md: Ditto.
26245 * doc/md.texi (Machine Constraints): Adjust.
26246
26247 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26248
26249 * config/rs6000/constraints.md (define_register_constraint "wy"):
26250 Delete.
26251 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26252 RS6000_CONSTRAINT_wy.
26253 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26254 (rs6000_init_hard_regno_mode_ok): Adjust.
26255 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26256 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26257 (define_mode_attr Fisa): New.
26258 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26259 * doc/md.texi (Machine Constraints): Adjust.
26260
26261 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26262
26263 * config/rs6000/constraints.md (define_register_constraint "wu"):
26264 Delete.
26265 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26266 RS6000_CONSTRAINT_wu.
26267 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26268 (rs6000_init_hard_regno_mode_ok): Adjust.
26269 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26270 both with "p8v".
26271 (define_mode_attr Fa): Delete.
26272 * config/rs6000/vsx.md: Ditto.
26273 * doc/md.texi (Machine Constraints): Adjust.
26274
26275 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26276
26277 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26278 Delete.
26279 (define_register_constraint "wK"): Delete.
26280 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26281 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26282 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26283 (rs6000_init_hard_regno_mode_ok): Adjust.
26284 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26285 Replace "wK" constraint by "wH" with "p9v".
26286 * config/rs6000/vsx.md: Ditto.
26287 * doc/md.texi (Machine Constraints): Adjust.
26288
26289 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26290
26291 * config/rs6000/constraints.md (define_register_constraint "wb"):
26292 Delete.
26293 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26294 RS6000_CONSTRAINT_wb.
26295 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26296 (rs6000_init_hard_regno_mode_ok): Adjust.
26297 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26298 * config/rs6000/vsx.md: Ditto.
26299 * doc/md.texi (Machine Constraints): Adjust.
26300
26301 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26302
26303 * config/rs6000/constraints.md (define_register_constraint "wo"):
26304 Delete.
26305 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26306 RS6000_CONSTRAINT_wo.
26307 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26308 (rs6000_init_hard_regno_mode_ok): Adjust.
26309 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26310 * config/rs6000/altivec.md: Ditto.
26311 * doc/md.texi (Machine Constraints): Adjust.
26312
26313 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26314
26315 * config/darwin-c.c (darwin_register_objc_includes): Do not
26316 prepend the sysroot when building gnu-runtime header search
26317 paths.
26318
26319 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26320
26321 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26322 instead of direct output of the asm.
26323
26324 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26325
26326 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26327 argument to be type bool (was int before).
26328 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26329 at first use. Use type bool for some variables. Fix a theoretical
26330 eh_return bug for svr4.
26331
26332 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26333
26334 * config/rs6000/rs6000.md (isa): New attribute.
26335 (enabled): New attribute.
26336
26337 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26338
26339 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26340 assemble_start_function and assemble_end_function.
26341
26342 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26343
26344 PR middle-end/89433
26345 * omp-general.c (oacc_verify_routine_clauses): Change formal
26346 parameters. Add checking if already marked with an OpenACC
26347 'routine' directive. Adjust all users.
26348
26349 PR middle-end/89433
26350 * omp-general.c (oacc_build_routine_dims): Move some of its
26351 processing into...
26352 (oacc_verify_routine_clauses): ... this new function.
26353 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26354
26355 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26356
26357 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26358 formating of picbase labels to match other ports.
26359
26360 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26361
26362 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26363 in the generated code.
26364
26365 2019-05-16 Martin Sebor <msebor@redhat.com>
26366
26367 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26368 identifiers, keywords, operators, and types in diagnostics. Correct
26369 quoting, spelling, and sentence capitalization issues.
26370 (expand_builtin_atomic_is_lock_free): Same.
26371 (fold_builtin_next_arg): Same.
26372 * cfgexpand.c (expand_one_var): Same.
26373 (tree_conflicts_with_clobbers_p): Same.
26374 (expand_asm_stmt): Same.
26375 (verify_loop_structure): Same.
26376 * cgraphunit.c (process_function_and_variable_attributes): Same.
26377 * collect-utils.c (collect_execute): Same.
26378 * collect2.c (maybe_run_lto_and_relink): Same.
26379 (is_lto_object_file): Same.
26380 (scan_prog_file): Same.
26381 * convert.c (convert_to_real_1): Same.
26382 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26383 * except.c (verify_eh_tree): Same.
26384 * gcc.c (execute): Same.
26385 (eval_spec_function): Same.
26386 (run_attempt): Same.
26387 (driver::set_up_specs): Same.
26388 (compare_debug_auxbase_opt_spec_function): Same.
26389 * gcov-tool.c (unlink_gcda_file): Same.
26390 (do_merge): Same.
26391 (do_rewrite): Same.
26392 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26393 * gimplify.c (gimplify_asm_expr): Same.
26394 (gimplify_adjust_omp_clauses): Same.
26395 * hsa-gen.c (gen_hsa_addr_insns): Same.
26396 (gen_hsa_insns_for_load): Same.
26397 (gen_hsa_cmp_insn_from_gimple): Same.
26398 (gen_hsa_insns_for_operation_assignment): Same.
26399 (gen_get_level): Same.
26400 (gen_hsa_alloca): Same.
26401 (omp_simple_builtin::generate): Same.
26402 (gen_hsa_atomic_for_builtin): Same.
26403 (gen_hsa_insns_for_call): Same.
26404 * input.c (dump_location_info): Same.
26405 * ipa-devirt.c (compare_virtual_tables): Same.
26406 * ira.c (ira_setup_eliminable_regset): Same.
26407 * lra-assigns.c (lra_assign): Same.
26408 * lra-constraints.c (lra_constraints): Same.
26409 * lto-streamer-in.c (lto_input_mode_table): Same.
26410 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26411 (merge_and_complain): Same.
26412 (compile_offload_image): Same.
26413 (compile_images_for_offload_targets): Same.
26414 (debug_objcopy): Same.
26415 (run_gcc): Same.
26416 (main): Same.
26417 * opts.c (print_specific_help): Same.
26418 (parse_no_sanitize_attribute): Same.
26419 (print_help): Same.
26420 (handle_param): Same.
26421 * plugin.c (add_new_plugin): Same.
26422 (parse_plugin_arg_opt): Same.
26423 (try_init_one_plugin): Same.
26424 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26425 operators, and types in diagnostics. Correct quoting and spelling
26426 issues.
26427 * read-rtl-function.c (parse_edge_flag_token): Same.
26428 (function_reader::parse_enum_value): Same.
26429 * reg-stack.c (check_asm_stack_operands): Same.
26430 * regcprop.c (validate_value_data): Same.
26431 * sched-rgn.c (make_pass_sched_fusion): Same.
26432 * stmt.c (check_unique_operand_names): Same.
26433 * targhooks.c (default_target_option_pragma_parse): Same.
26434 * tlink.c (recompile_files): Same.
26435 * toplev.c (process_options): Same.
26436 (do_compile): Same.
26437 * trans-mem.c (diagnose_tm_1): Same.
26438 (ipa_tm_scan_irr_block): Same.
26439 (ipa_tm_diagnose_transaction): Same.
26440 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26441 format a tree code name in a diagnostic.
26442 (verify_types_in_gimple_min_lval): Same.
26443 (verify_types_in_gimple_reference): Same.
26444 (verify_gimple_call): Same.
26445 (verify_gimple_assign_unary): Same.
26446 (verify_gimple_assign_binary): Same.
26447 (verify_gimple_assign_ternary): Same.
26448 (verify_gimple_assign_single): Same.
26449 (verify_gimple_switch): Same.
26450 (verify_gimple_label): Same.
26451 (verify_gimple_phi): Same.
26452 (verify_gimple_in_seq): Same.
26453 (verify_eh_throw_stmt_node): Same.
26454 (collect_subblocks): Same.
26455 (gimple_verify_flow_info): Same.
26456 (do_warn_unused_result): Same.
26457 * tree-inline.c (expand_call_inline): Same.
26458 * tree-into-ssa.c (update_ssa): Same.
26459 * tree.c (tree_int_cst_elt_check_failed): Same.
26460 (tree_vec_elt_check_failed): Same.
26461 (omp_clause_operand_check_failed): Same.
26462 (verify_type_variant): Same.
26463 (verify_type): Same.
26464 * value-prof.c (verify_histograms): Same.
26465 * varasm.c (assemble_start_function): Same.
26466
26467 2019-05-16 Martin Sebor <msebor@redhat.com>
26468
26469 * config/i386/i386-expand.c (get_element_number): Quote keywords
26470 and other internal names in diagnostics. Adjust other diagnostic
26471 formatting issues noted by -Wformat-diag.
26472 * config/i386/i386-features.c
26473 (ix86_mangle_function_version_assembler_name): Same.
26474 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26475 * config/i386/i386.c (ix86_function_type_abi): Same.
26476 (ix86_function_ms_hook_prologue): Same.
26477 (classify_argument): Same.
26478 (ix86_expand_prologue): Same.
26479 (ix86_md_asm_adjust): Same.
26480 (ix86_memmodel_check): Same.
26481
26482 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26483
26484 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26485 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26486 and fpxx modes.
26487
26488 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26489
26490 PR target/90497
26491 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26492 intrinsics without SSE/SSE2/SSSE3.
26493 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26494 check.
26495 (*mmx_uavgv8qi3): Likewise.
26496
26497 2019-05-17 Richard Biener <rguenther@suse.de>
26498
26499 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26500 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26501
26502 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26503
26504 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26505 vec_sldw insn pattern.
26506
26507 2019-05-17 Richard Biener <rguenther@suse.de>
26508
26509 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26510
26511 2019-05-17 Martin Liska <mliska@suse.cz>
26512
26513 PR driver/90496
26514 * toplev.c (output_stack_usage): With LTO and sanitizer it
26515 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26516 has no file location.
26517
26518 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26519
26520 PR c++/90484
26521 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26522 sz0 is equal to sz1, instead return false in that case.
26523
26524 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26525 has non-constant expression, force sctx.lane and use two
26526 argument IFN_GOMP_SIMD_LANE instead of single argument.
26527 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26528 two argument IFN_GOMP_SIMD_LANE without lhs.
26529 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26530 member.
26531 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26532 Define.
26533 (LOOP_REQUIRES_VERSIONING): Or in
26534 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26535 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26536 simd_if_cond.
26537 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26538 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26539 from simd if clause if needed.
26540
26541 2019-05-16 Richard Biener <rguenther@suse.de>
26542
26543 * tree-affine.c (expr_to_aff_combination): New function split
26544 out from...
26545 (tree_to_aff_combination): ... here.
26546 (aff_combination_expand): Avoid building a GENERIC tree.
26547
26548 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26549
26550 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26551 assemble_start_function and assemble_end_function calls.
26552 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26553 assemble_start_function and assemble_end_function.
26554 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26555 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26556 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26557 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26558 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26559 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26560 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26561 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26562 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26563 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26564 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26565 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26566 Likewise.
26567 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26568 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26569 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26570 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26571 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26572 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26573 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26574 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26575 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26576 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26577 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26578 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26579 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26580 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26581 Likewise.
26582 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26583 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26584 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26585
26586 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26587
26588 * tree-ssa-alias.c (alias_stats): Add
26589 aliasing_component_refs_p_may_alias and
26590 aliasing_component_refs_p_no_alias.
26591 (dump_alias_stats): Print aliasing_component_refs_p stats.
26592 (aliasing_component_refs_p): Update stats.
26593
26594 2019-05-16 Martin Liska <mliska@suse.cz>
26595
26596 PR lto/90500
26597 * multiple_target.c (expand_target_clones): Do not allow
26598 target_clones being used with a symbol that is an alias.
26599
26600 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26601
26602 PR tree-optimization/90394
26603 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26604 positives rather than ICE for cases where (code2 == NE_EXPR
26605 && code1 == BIT_AND_EXPR).
26606
26607 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26608
26609 PR fortran/90329
26610 * tree-core.h (struct tree_decl_common): Document
26611 decl_nonshareable_flag for PARM_DECLs.
26612 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26613 * calls.c (expand_call): Don't try tail call if caller
26614 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26615 passed on the stack and callee needs to pass any arguments on the
26616 stack.
26617 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26618 else if instead of series of mutually exclusive ifs. Handle
26619 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26620 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26621
26622 * lto-streamer.h (LTO_major_version): Bump to 9.
26623
26624 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26625
26626 PR tree-optimization/90106
26627 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26628 new parameter as new internal function call, also move it to new
26629 basic block.
26630 (use_internal_fn): Pass internal function call to
26631 shrink_wrap_one_built_in_call_with_conds.
26632
26633 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26634
26635 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26636 max_vf to 1.
26637 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26638 safelen_int and set loop->dont_vectorize.
26639
26640 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26641
26642 PR target/89021
26643 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26644 SSE/SSE2/SSSE3.
26645 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26646 Likewise.
26647 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26648 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26649 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26650 is defined.
26651
26652 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26653
26654 PR target/89021
26655 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26656 define_insn_and_split to support SSE emulation.
26657 (*vec_extractv2sf_0): Likewise.
26658 (*vec_extractv2sf_1): Likewise.
26659 (*vec_extractv2si_0): Likewise.
26660 (*vec_extractv2si_1): Likewise.
26661 (*vec_extractv2si_zext_mem): Likewise.
26662 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26663 (vec_extractv2sf_1 splitter): Likewise.
26664 (vec_extractv2sfsf): Likewise.
26665 (vec_setv2si): Likewise.
26666 (vec_extractv2si_1 splitter): Likewise.
26667 (vec_extractv2sisi): Likewise.
26668 (vec_setv4hi): Likewise.
26669 (vec_extractv4hihi): Likewise.
26670 (vec_setv8qi): Likewise.
26671 (vec_extractv8qiqi): Likewise.
26672 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26673 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26674 (vec_extractv2sisi): Likewise.
26675 (vec_extractv4hihi): Likewise.
26676 (vec_extractv8qiqi): Likewise.
26677 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26678 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26679 (vec_initv2sisi): Likewise.
26680 (vec_initv4hihi): Likewise.
26681 (vec_initv8qiqi): Likewise.
26682 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26683 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26684 (vec_setv4hi): Likewise.
26685 (vec_setv8qi): Likewise.
26686
26687 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26688
26689 PR target/89021
26690 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26691 TARGET_MMX_WITH_SSE.
26692 (MMXMODE:*mov<mode>_internal): Likewise.
26693 (MMXMODE:movmisalign<mode>): Likewise.
26694
26695 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26696
26697 PR target/89021
26698 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26699 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26700 (sse2_cvtpd2pi): Ditto.
26701 (sse2_cvttpd2pi): Ditto.
26702 (*vec_concatv2sf_sse4_1): Ditto.
26703 (*vec_concatv2sf_sse): Ditto.
26704 (*vec_concatv2si_sse4_1): Ditto.
26705 (*vec_concatv2si): Ditto.
26706 (*vec_concatv4si_0): Ditto.
26707 (*vec_concatv2di_0): Ditto.
26708
26709 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26710
26711 PR target/89021
26712 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26713
26714 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26715
26716 PR target/89021
26717 * config/i386/sse.md (ssse3_palignrdi): Changed to
26718 define_insn_and_split to support SSE emulation.
26719
26720 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26721
26722 PR target/89021
26723 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26724
26725 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26726
26727 PR target/89021
26728 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26729 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26730 SSE emulation.
26731
26732 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26733
26734 PR target/89021
26735 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26736 or TARGET_MMX_WITH_SSE.
26737 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26738
26739 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26740
26741 PR target/89021
26742 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26743
26744 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26745
26746 PR target/89021
26747 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26748 Changed to define_insn_and_split to support SSE emulation.
26749
26750 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26751
26752 PR target/89021
26753 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26754 Changed to define_insn_and_split to support SSE emulation.
26755
26756 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26757
26758 PR target/89021
26759 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26760 (*mmx_<emms>): This.
26761 (mmx_<emms>): New expander.
26762
26763 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26764
26765 PR target/89021
26766 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26767 support.
26768 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26769
26770 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26771
26772 PR target/89021
26773 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26774
26775 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26776
26777 PR target/89021
26778 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26779
26780 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26781
26782 PR target/89021
26783 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26784 TARGET_MMX_WITH_SSE.
26785 (*mmx_uavgv4hi3): Add SSE emulation.
26786
26787 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26788
26789 PR target/89021
26790 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26791 and TARGET_MMX_WITH_SSE.
26792 (*mmx_uavgv8qi3): Add SSE emulation.
26793
26794 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26795
26796 PR target/89021
26797 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26798 maskmovdqu for __MMX_WITH_SSE__.
26799
26800 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26801
26802 PR target/89021
26803 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26804 TARGET_MMX and TARGET_MMX_WITH_SSE.
26805 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26806
26807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26808
26809 PR target/89021
26810 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26811 define_insn_and_split to support SSE emulation.
26812
26813 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26814
26815 PR target/89021
26816 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26817 and TARGET_MMX_WITH_SSE.
26818 (mmx_<code>v8qi3): Likewise.
26819 (smaxmin:<code>v4hi3): New.
26820 (umaxmin:<code>v8qi3): Likewise.
26821 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26822 (umaxmin:*mmx_<code>v8qi3): Likewise.
26823
26824 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26825
26826 PR target/89021
26827 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26828 TARGET_MMX_WITH_SSE.
26829 (*mmx_pinsrw): Add SSE emulation.
26830
26831 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26832
26833 PR target/89021
26834 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26835
26836 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26837
26838 PR target/89021
26839 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26840 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26841 SSE emulation.
26842
26843 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26844
26845 PR target/89021
26846 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26847 (sse_cvttps2pi): Likewise.
26848
26849 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26850
26851 PR target/89021
26852 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26853 TARGET_MMX_WITH_SSE.
26854 (mmx_pshufw_1): Add SSE emulation.
26855 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26856 TARGET_MMX_WITH_SSE to support SSE emulation.
26857
26858 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26859
26860 PR target/89021
26861 * config/i386/constraints.md (Yw): New constraint.
26862 * config/i386/mmx.md (*vec_dupv2si): Changed to
26863 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26864 support SSE emulation.
26865
26866 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26867
26868 PR target/89021
26869 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26870 TARGET_MMX_WITH_SSE.
26871 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26872 support.
26873 (mmx_gt<mode>3): Likewise.
26874
26875 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26876
26877 PR target/89021
26878 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26879 TARGET_MMX_WITH_SSE. Add SSE support.
26880
26881 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26882
26883 PR target/89021
26884 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26885 TARGET_MMX_WITH_SSE.
26886 (any_logic:<code><mode>3): New.
26887 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26888 Add SSE support.
26889
26890 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26891
26892 PR target/89021
26893 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26894 TARGET_MMX_WITH_SSE. Add SSE emulation.
26895 (mmx_<shift_insn><mode>3): Likewise.
26896 (ashr<mode>3): New.
26897 (<shift_insn><mode>3): Likewise.
26898
26899 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26900
26901 PR target/89021
26902 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26903 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26904
26905 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26906
26907 PR target/89021
26908 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26909 TARGET_MMX_WITH_SSE.
26910 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26911 SSE support.
26912
26913 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26914
26915 PR target/89021
26916 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26917 TARGET_MMX_WITH_SSE.
26918 (mulv4hi3): New.
26919 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26920 support.
26921
26922 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26923
26924 PR target/89021
26925 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26926 (plusminus:mmx_<plusminus_insn><mode>3): Check
26927 TARGET_MMX_WITH_SSE.
26928 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26929 (<plusminus_insn><mode>3): New.
26930 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26931 (*mmx_<plusminus_insn><mode>3): Likewise.
26932
26933 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26934
26935 PR target/89021
26936 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26937 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26938 prototype.
26939 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26940 define_insn_and_split to support SSE emulation.
26941 (mmx_punpcklbw): Likewise.
26942 (mmx_punpckhwd): Likewise.
26943 (mmx_punpcklwd): Likewise.
26944 (mmx_punpckhdq): Likewise.
26945 (mmx_punpckldq): Likewise.
26946
26947 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26948 Uros Bizjak <ubizjak@gmail.com>
26949
26950 PR target/89021
26951 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26952 New function.
26953 (ix86_split_mmx_pack): Likewise.
26954 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26955 New prototype.
26956 (ix86_split_mmx_pack): Likewise.
26957 * config/i386/i386.md (mmx_isa): New.
26958 (enabled): Also check mmx_isa.
26959 * config/i386/mmx.md (any_s_truncate): New code iterator.
26960 (s_trunsuffix): New code attr.
26961 (mmx_packsswb): Removed.
26962 (mmx_packssdw): Likewise.
26963 (mmx_packuswb): Likewise.
26964 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26965 MMX packsswb/packuswb with SSE2.
26966 (mmx_packssdw): Likewise.
26967 * config/i386/predicates.md (register_mmxmem_operand): New.
26968
26969 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26970
26971 PR target/89021
26972 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26973 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26974 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26975 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26976 (ix86_vector_mode_supported_p): Likewise.
26977 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26978
26979 2019-05-15 Martin Liska <mliska@suse.cz>
26980
26981 PR middle-end/90478
26982 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26983 Check for overflow.
26984
26985 2019-05-15 Richard Biener <rguenther@suse.de>
26986
26987 * tree-into-ssa.c (pass_build_ssa::execute): Run
26988 update_address_taken before going into SSA.
26989
26990 2019-05-15 Richard Biener <rguenther@suse.de>
26991
26992 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26993 as __BIT_FIELD_REF with type with -gimple.
26994
26995 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
26996
26997 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26998 semantically equivalent branches (left over after prior refactorings).
26999
27000 2019-05-15 Richard Biener <rguenther@suse.de>
27001
27002 PR tree-optimization/88828
27003 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27004 bogus check.
27005
27006 2019-05-14 Richard Biener <rguenther@suse.de>
27007
27008 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27009 as __VIEW_CONVERT with -gimple.
27010
27011 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27012
27013 PR target/82920
27014 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27015 Darwin.
27016
27017 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27018
27019 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27020 define_split to become a define_insn_and_split.
27021
27022 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27023
27024 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27025 arguments.
27026 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27027 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27028 (sibcall_epilogue): Adjust.
27029 (epilogue): Adjust.
27030
27031 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27032
27033 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27034 to unsupported ones.
27035 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27036 * config.host: Likewise.
27037 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27038 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27039 __svr4__]: Remove "brand" fallback.
27040 [!KSTAT_DATA_STRING]: Remove.
27041 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27042 to *-*-solaris2*.
27043 (comdat_group): Likewise.
27044 (set_have_as_tls): Likewise.
27045 (gcc_cv_target_dl_iterate_phdr): Likewise.
27046 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27047 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27048 * configure: Regenerate.
27049 * doc/install.texi: Simplify Solaris target triplets.
27050 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27051 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27052 Remove Solaris 10 references.
27053 Remove obsolete Solaris bug reference.
27054 (Specific, sparc-sun-solaris2.10): Remove.
27055
27056 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27057
27058 * config/i386/i386.md (any_div): New code iterator.
27059 (paired_mod): New code attribute.
27060 (sgnprefix): Handle DIV and UDIV RTXes.
27061 (u): Ditto.
27062 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27063 and udivmod<mode>4 patterns using any_div code iterator.
27064 (divmod splitters): Macroize splitters using any_div code iterator.
27065 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27066 (*udivmodsi4_pow2_zext_2): Ditto.
27067 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27068 and *udivmod<mode>4_noext patterns using any_div code iterator.
27069 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27070 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27071 patterns using any_div code iterator.
27072 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27073 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27074 patterns using any_div code iterator.
27075 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27076 udivmodhiqi3 patterns using any_extend code iterator.
27077
27078 2019-05-14 Richard Biener <rguenther@suse.de>
27079 H.J. Lu <hongjiu.lu@intel.com>
27080
27081 PR tree-optimization/88828
27082 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27083 permuting in a single non-constant element not extracted
27084 from a vector.
27085
27086 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27087
27088 * internal-fn.def (SIGNBIT): New.
27089 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27090 defined.
27091 (signbitv4sf2): Likewise.
27092
27093 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27094
27095 PR target/90357
27096 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27097 next insn when the SRC reg is dead.
27098
27099 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27100
27101 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27102 (alloc_cand_and_find_basis): Ditto.
27103 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27104 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27105 (create_add_imm_cand, slsr_process_cast): Ditto.
27106 (slsr_process_copy, replace_mult_candidate): Ditto.
27107 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27108 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27109 (pass_strength_reduction::execute): Init the first NULL element.
27110
27111 2019-05-13 Nathan Sidwell <nathan@acm.org>
27112
27113 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27114 (run_attempt): Reformat line break.
27115
27116 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27117
27118 PR target/90418
27119 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27120 data registers in sibcall epilogues.
27121 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27122
27123 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27124
27125 PR target/89221
27126 * configure.ac (--enable-frame-pointer):
27127 Disable by default for cygwin and mingw.
27128 * configure: Regenerate.
27129
27130 2019-05-13 Nathan Sidwell <nathan@acm.org>
27131
27132 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27133 piece of code.
27134 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27135 (gen_member_die): Move abstract origin check earlier. Only VARs
27136 can be static_inline_p. Simplify splicing control flow.
27137
27138 2019-05-13 Richard Biener <rguenther@suse.de>
27139
27140 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27141 VIEW_CONVERT_EXPR.
27142 (vect_build_slp_tree_1): Likewise.
27143
27144 2019-05-13 Richard Biener <rguenther@suse.de>
27145
27146 PR tree-optimization/90402
27147 * tree-if-conv.c (tree_if_conversion): Value number only
27148 the loop body by making the latch an exit of the region
27149 as well.
27150 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27151 processing PHIs.
27152 (do_rpo_vn): Deal with multiple edges into the entry block
27153 that are not backedges inside the region by skipping PHIs
27154 of the entry block.
27155
27156 2019-05-13 Richard Biener <rguenther@suse.de>
27157
27158 PR tree-optimization/90316
27159 * tree-ssa-pre.c (insert_aux): Fold into ...
27160 (insert): ... this function. Use a RPO walk to reduce the
27161 number of required iterations.
27162
27163 2019-05-13 Martin Liska <mliska@suse.cz>
27164
27165 PR tree-optimization/90416
27166 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27167 string instead of passing the second part as va_arg argument.
27168
27169 2019-05-13 Martin Liska <mliska@suse.cz>
27170
27171 PR gcov-profile/90380
27172 * gcov.c (handle_cycle): Do not support zero cycle count,
27173 it should not be possible.
27174 (path_contains_zero_cycle_arc): New function.
27175 (circuit): Ignore zero cycle arc counts.
27176
27177 2019-05-13 Martin Liska <mliska@suse.cz>
27178
27179 PR gcov-profile/90380
27180 * gcov.c (enum loop_type): Remove the enum and
27181 the operator.
27182 (handle_cycle): Assert that we should not reach
27183 a negative count.
27184 (circuit): Use loop_found instead of a tri-state loop_type.
27185 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27186 happen.
27187
27188 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27189
27190 PR target/82920
27191 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27192 (ix86_output_indirect_branch_via_reg): Use output mechanism
27193 accounting for __USER_LABEL_PREFIX__.
27194 (ix86_output_indirect_branch_via_push): Likewise.
27195 (ix86_output_function_return): Likewise.
27196 (ix86_output_indirect_function_return): Likewise.
27197
27198 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27199
27200 * doc/md.texi: Document use of code attributes in rtx patterns.
27201 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27202 * read-rtl.c (find_code): Split out search loops into...
27203 (maybe_find_code): ...this new function.
27204 (check_code_iterator): Make the error message more informative.
27205 (check_code_attribute): New function.
27206 (rtx_reader::rtx_alloc_for_name): Likewise.
27207 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27208 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27209 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27210 <max_opp> directly as an rtx code instead of via a match_operator.
27211 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27212 (<su>abd<mode>_3): Update accordingly.
27213
27214 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27215
27216 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27217 is given, print the state of the EH "save world" computation for
27218 Darwin.
27219
27220 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27221
27222 PR c++/59813
27223 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27224 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27225
27226 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27227
27228 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27229 Use pinsrd for TARGET_SSE4_1.
27230 * config/i386/sse.md (movdi_to_sse): Ditto.
27231
27232 2019-05-10 Richard Biener <rguenther@suse.de>
27233
27234 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27235 (do_rpo_vn): Initialize next_value_id.
27236
27237 2019-05-10 Martin Liska <mliska@suse.cz>
27238
27239 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27240 Fix plural form.
27241
27242 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27243
27244 PR tree-optimization/90385
27245 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27246 arguments of the exit phis.
27247
27248 PR c++/90383
27249 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27250 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27251 id->do_not_fold.
27252 (copy_tree_body_r): Likewise.
27253 (copy_fn): Set id.do_not_fold to true.
27254
27255 2019-05-10 Martin Liska <mliska@suse.cz>
27256
27257 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27258 Reapply changes from r269790.
27259
27260 2019-05-10 Martin Liska <mliska@suse.cz>
27261
27262 PR middle-end/90340
27263 * doc/invoke.texi: New params.
27264 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27265 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27266 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27267 Use it.
27268 * tree-switch-conversion.h (struct jump_table_cluster):
27269 Likewise.
27270
27271 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27272
27273 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27274
27275 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27276
27277 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27278
27279 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27280
27281 PR rtl-optimization/88879
27282 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27283
27284 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27285
27286 PR target/90405
27287 * config/arm/arm.c (callee_saved_reg_p): Move before
27288 thumb_find_work_register.
27289 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27290 thumb_find_work_register. Only call df_get_live_out once.
27291 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27292 (thumb_find_work_register): Use
27293 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27294 algorithms to locate a spare call clobbered reg.
27295
27296 2019-05-09 Martin Liska <mliska@suse.cz>
27297
27298 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27299 and MAX_EXPR in GIMPLE FE format.
27300
27301 2019-05-09 Martin Liska <mliska@suse.cz>
27302
27303 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27304 * gimple-pretty-print.c (dump_gimple_bb_header):
27305 Dump BB count.
27306 (pp_cfg_jump): Dump edge probability.
27307 * profile-count.c (profile_quality_as_string): Simplify
27308 with a static array.
27309 (parse_profile_quality): New function.
27310 (profile_count::dump): Simplify with a static array.
27311 (profile_count::from_gcov_type): Add new argument.
27312 * profile-count.h (parse_profile_quality): Likewise.
27313 * predict.h (set_hot_bb_threshold): New.
27314 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27315 New param.
27316 * predict.c (get_hot_bb_threshold): Set from the new param.
27317 (set_hot_bb_threshold): New.
27318
27319 2019-05-09 Richard Biener <rguenther@suse.de>
27320
27321 PR tree-optimization/90395
27322 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27323 rewrite vector stores that throw internally.
27324
27325 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27326
27327 * cif-code.def (CHKP): Remove.
27328
27329 PR target/89221
27330 * configure.ac (--enable-frame-pointer): Disable by default for
27331 GNU systems.
27332 * configure: Regenerate.
27333
27334 2019-05-09 Alan Modra <amodra@gmail.com>
27335
27336 PR target/89271
27337 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27338 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27339 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27340 cost for general <-> vsx when direct moves are available.
27341 Cost union classes at minimal cost for any reg in the class.
27342 Correct calculation for moves between vsx, float, and altivec.
27343 Don't return a low cost for moves between special regs. Don't
27344 use hard coded register numbers.
27345 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27346 (rs6000_ira_change_pseudo_allocno_class): New function.
27347 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27348 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27349 alternatives.
27350 (movsi_internal1): Don't disparage vector alternatives.
27351 (mov<mode>_internal): Likewise, excepting alternative that
27352 will be split.
27353 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27354 we <- b alternative.
27355
27356 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27357
27358 PR c++/59813
27359 PR tree-optimization/89060
27360 * tree-ssa-live.h (live_vars_map): New typedef.
27361 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27362 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27363 (struct compute_live_vars_data): New type.
27364 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27365 live_vars_at_stmt, destroy_live_vars): New functions.
27366 * tree-tailcall.c: Include tree-ssa-live.h.
27367 (live_vars, live_vars_vec): New global variables.
27368 (find_tail_calls): Perform variable life analysis before punting.
27369 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27370 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27371 member.
27372 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27373 Perform variable life analysis to select variables that really need
27374 clobbers added.
27375 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27376 instead set id->eh_landing_pad_dest and assert it is the same.
27377 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27378
27379 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27380 Richard Earnshaw <rearnsha@arm.com>
27381
27382 PR target/88167
27383 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27384 function.
27385 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27386 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27387 register if both the epilogue and prologue can use call-clobbered
27388 regs.
27389 (thumb1_unexpanded_epilogue): Use
27390 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27391 picking temporaries for restoring high regs to match that of the
27392 prologue where possible.
27393 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27394 the list of work registers. Detect if the return address is still live
27395 at the end of the prologue and avoid using it for a work register if so.
27396 If the return address is not live, add LR to the list of pushable regs
27397 after the first pass.
27398
27399 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27400
27401 PR tree-optimization/90078
27402 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27403 (INFTY): Increase the value for infinite cost.
27404 (struct comp_cost): Promote type of members to int64_t.
27405 (infinite_cost): Don't set complexity in initialization.
27406 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27407 overflows to infinite_cost.
27408 (adjust_setup_cost): Promote type of parameter and cost computation
27409 to int64_t.
27410 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27411 int64_t.
27412 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27413 cost computation to int64_t.
27414 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27415 int64_t's format specifier in dump.
27416
27417 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27418
27419 PR tree-optimization/90240
27420 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27421 with respect to scaling factor pre-computed for each basic block.
27422 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27423 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27424 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27425 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27426 live range for array of loop's basic blocks. Cleanup aux field of
27427 loop's basic blocks.
27428
27429 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27430
27431 PR tree-optimization/90356
27432 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27433
27434 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27435
27436 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27437 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27438 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27439 (ix86_handle_option): Handle -mavx512bf16.
27440 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27441 to extra_headers.
27442 * config/i386/avx512bf16vlintrin.h: New.
27443 * config/i386/avx512bf16intrin.h: New.
27444 * config/i386/cpuid.h (bit_AVX512BF16): New.
27445 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27446 * config/i386/i386-builtin-types.def: Add new types.
27447 * config/i386/i386-builtin.def: Add new builtins.
27448 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27449 __AVX512BF16__.
27450 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27451 (ix86_option_override_internal): Handle BF16.
27452 (ix86_valid_target_attribute_inner_p): Ditto.
27453 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27454 * config/i386/i386-builtin.c (enum processor_features): Add
27455 F_AVX512BF16.
27456 (static const _isa_names_table isa_names_table): Ditto.
27457 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27458 (PTA_AVX512BF16): Ditto.
27459 * config/i386/i386.opt: Add -mavx512bf16.
27460 * config/i386/immintrin.h: Include avx512bf16intrin.h
27461 and avx512bf16vlintrin.h.
27462 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27463 avx512f_cvtneps2bf16_<mode><mask_name>,
27464 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27465 * config/i386/subst.md (mask_half): Add new subst.
27466 * doc/invoke.texi: Document -mavx512bf16.
27467
27468 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27469
27470 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27471 Delete declaration.
27472 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27473 (rs6000_debug_legitimize_reload_address): Delete.
27474 (rs6000_legitimize_reload_address_ptr): Delete.
27475 (rs6000_option_override_internal): Adjust.
27476 (mem_operand_gpr): Adjust comment.
27477 (legitimate_lo_sum_address_p): Ditto.
27478 (rs6000_legitimize_reload_address): Delete.
27479 (rs6000_debug_legitimize_reload_address): Delete.
27480 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27481
27482 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27483
27484 PR target/89765
27485 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27486 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27487 to compute vector element selector for both constant and variable
27488 operands.
27489
27490 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27491
27492 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27493 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27494 ashrdi3_cvt using SWI48 mode iterator.
27495
27496 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27497
27498 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27499 (aarch64_<su>abd<mode>_3): Likewise.
27500 (*aarch64_<su>abd<mode>_3): New define_insn.
27501 (<sur>sad<vsi2qi>): New define_expand.
27502 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27503 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27504 (build_vect_cond_expr): Likewise.
27505
27506 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27507
27508 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27509 clobbers outside of accessible_reg_set.
27510 * config/i386/i386.c (ix86_conditional_register_usage):
27511 Disable register sets by clearing corresponding bits in
27512 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27513 call_used_regs and don't clear corresponding reg_names array members.
27514
27515 2019-05-07 Richard Biener <rguenther@suse.de>
27516
27517 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27518 not specified still compute a comp_vectype for invariant
27519 compares.
27520
27521 2019-05-07 Richard Biener <rguenther@suse.de>
27522
27523 PR tree-optimization/90316
27524 * tree-ssa-pre.c (translate_vuse_through_block): When
27525 same_valid is NULL do not bother to search for a virtual
27526 PHI continuation.
27527 (phi_translate_1): When operands changed we cannot keep
27528 the same value-number so do not bother to ask whether
27529 that's possible from translate_vuse_through_block.
27530
27531 2019-05-07 Martin Liska <mliska@suse.cz>
27532
27533 * bitmap.c (bitmap_register): Come up with
27534 alloc_descriptor_max_uid and assign it for
27535 a new bitmap.
27536 (register_overhead): Use get_descriptor as
27537 a descriptor.
27538 (release_overhead): New.
27539 (bitmap_elem_to_freelist): Call it.
27540 (bitmap_elt_clear_from): Likewise.
27541 (bitmap_obstack_free): Likewise.
27542 (bitmap_move): Sensitively release memory.
27543 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27544 (bitmap_initialize): Initialize alloc_descriptor to zero.
27545 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27546
27547 2019-05-07 Richard Biener <rguenther@suse.de>
27548
27549 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27550 we build a SLP node. Remove max_size and limiting.
27551 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27552
27553 2019-05-07 Richard Biener <rguenther@suse.de>
27554
27555 PR tree-optimization/90316
27556 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27557 limit by reference.
27558 (walk_non_aliased_vuses): Take walking limit argument.
27559 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27560 walking if it is reached instead of just counting.
27561 (get_continuation_for_phi): Likewise.
27562 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27563 limiting to the callback.
27564 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27565 (vn_reference_lookup_3): Likewise.
27566 (vn_reference_lookup_pieces): Likewise.
27567 (vn_reference_lookup): Likewise.
27568 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27569 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27570 (avail_exprs_stack::lookup_avail_expr): Likewise.
27571
27572 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27573
27574 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27575 for comparaible types in the second direction even if first one
27576 hits incomparable type.
27577
27578 2019-05-07 Richard Biener <rguenther@suse.de>
27579
27580 PR lto/90369
27581 * lto-wrapper.c (debug_objcopy): Use the original filename
27582 including archive offset for the filename used for -save-temps.
27583
27584 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27585
27586 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27587 detection.
27588
27589 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27590 Hongtao Liu <hongtao.liu@intel.com>
27591
27592 PR target/89750
27593 PR target/86444
27594 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27595 Modified, original implementation isn't correct.
27596
27597 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27598
27599 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27600 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27601 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27602 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27603 (FRAME_POINTER_REGNUM): Change numbering.
27604 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27605 (alt_reg_names): Adjust.
27606 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27607 fixed.
27608 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27609 (DWARF_FRAME_REGISTERS): Delete.
27610 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27611 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27612 Adjust.
27613 (REG_ALLOC_ORDER): Adjust.
27614 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27615 (REG_CLASS_CONTENTS): Adjust.
27616 (RETURN_ADDR_RTX): Change comment.
27617 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27618 instead of 67.
27619 (REGISTER_NAMES): Adjust.
27620 (ADDITIONAL_REGISTER_NAMES): Adjust.
27621 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27622
27623 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27624
27625 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27626 Delete.
27627 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27628 (DWARF_FRAME_REGISTERS): Adjust.
27629 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27630 Adjust.
27631 (REG_ALLOC_ORDER): Adjust.
27632 (enum reg_class): Delete SPR_REGS.
27633 (REG_CLASS_NAMES): Delete SPR_REGS.
27634 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27635 (REGISTER_NAMES): Adjust.
27636 (ADDITIONAL_REGISTER_NAMES): Adjust.
27637 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27638 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27639 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27640 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27641 (htm_spr_regno): Delete.
27642 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27643 argument.
27644 (rs6000_dbx_register_number): Adjust.
27645
27646 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27647
27648 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27649
27650 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27651
27652 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27653 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27654
27655 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27656
27657 PR tree-optimization/88709
27658 PR tree-optimization/90271
27659 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27660 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27661 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27662 variable.
27663 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27664 of the store merging group is larger than
27665 PARAM_STORE_MERGING_MAX_SIZE parameter.
27666 (split_group): Add bzero_first argument. If set, always emit first
27667 the first store which must be = {} of the whole area and then for the
27668 rest of the stores consider all zero bytes as paddings.
27669 (imm_store_chain_info::output_merged_store): Check if first store
27670 is = {} of the whole area and if yes, determine which setting of
27671 bzero_first for split_group gives smaller number of stores. Adjust
27672 split_group callers.
27673 (lhs_valid_for_store_merging_p): Allow decls.
27674 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27675 no elts.
27676 (pass_store_merging::process_store): Likewise.
27677
27678 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27679
27680 PR target/89424
27681 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27682 handling of V1TImode.
27683
27684 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27685
27686 PR target/89221
27687 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27688 and enable_frame_pointer ...
27689 * configure.ac: ... here. Update help strings for
27690 --enable-frame-pointer.
27691 * configure: Regenerate.
27692 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27693 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27694 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27695 (USE_X86_64_FRAME_POINTER): Ditto.
27696
27697 2019-05-06 Martin Liska <mliska@suse.cz>
27698
27699 * config.gcc: Append to target_gtfiles and fix indentation.
27700
27701 2019-05-06 Richard Biener <rguenther@suse.de>
27702
27703 PR tree-optimization/90358
27704 * tree-vect-stmts.c (get_group_load_store_type): Properly
27705 detect unused upper half of load.
27706 (vectorizable_load): Likewise.
27707
27708 2019-05-06 Richard Biener <rguenther@suse.de>
27709
27710 PR tree-optimization/88828
27711 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27712 (simplify_vector_constructor): ...here. Handle constants in
27713 the constructor.
27714
27715 2019-05-06 Richard Biener <rguenther@suse.de>
27716
27717 PR tree-optimization/90328
27718 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27719 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27720 is valid in the loop nest before using it.
27721 (initialize_data_dependence_relation): Adjust.
27722 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27723 loop as loop-nest to dr_may_alias_p.
27724
27725 2019-05-06 Richard Biener <rguenther@suse.de>
27726
27727 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27728
27729 2019-05-06 Richard Biener <rguenther@suse.de>
27730
27731 PR tree-optimization/90316
27732 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27733 compute target on demand.
27734 (get_continuation_for_phi): Remove code walking stmts to
27735 get to a target virtual operand which could end up being
27736 quadratic.
27737
27738 2019-05-06 Martin Liska <mliska@suse.cz>
27739
27740 PR sanitizer/90312
27741 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27742 when -mabi is selected to a non-default version.
27743
27744 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27745 Martin Liska <mliska@suse.cz>
27746
27747 * Makefile.in: Add lto-dump.texi.
27748 * cgraph.h: Add new functions get_visibility_string and
27749 get_symtab_type_string.
27750 * doc/gcc.texi: Include lto-dump section.
27751 * doc/lto-dump.texi: New file.
27752 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27753 (parse_dump_option): Factor out this function.
27754 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27755 (parse_dump_option): Export the function.
27756 * symtab.c (symtab_node::get_visibility_string): New function.
27757 (symtab_node::get_symtab_type_string): Likewise.
27758
27759 2019-05-06 Martin Liska <mliska@suse.cz>
27760
27761 * config/i386/i386-builtins.c: New file.
27762 * config/i386/i386-builtins.h: New file.
27763 * config/i386/i386-expand.c: New file.
27764 * config/i386/i386-expand.h: New file.
27765 * config/i386/i386-features.c: New file.
27766 * config/i386/i386-features.h: New file.
27767 * config/i386/i386-options.c: New file.
27768 * config/i386/i386-options.h: New file.
27769 * config.gcc: Add new files into extra_objs and
27770 target_gtfiles.
27771 * config/i386/i386.c: Split content of the file
27772 into newly introduced files.
27773 * config/i386/i386.h: Declare common variables
27774 and macros.
27775 * config/i386/t-i386: Define dependencies for new files.
27776
27777 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27778
27779 PR target/89400
27780 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27781 Restrict 'all' variant to 32-bit configurations.
27782 (unaligned_loadhiu): Likewise.
27783 (unaligned_storehi): Likewise.
27784 (unaligned_storesi): Likewise.
27785 (unaligned_loadhis): Disable when compiling for thumb1.
27786
27787 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27788
27789 PR tree-optimization/90269
27790 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27791 Ignore clobbers.
27792
27793 2019-05-03 Martin Liska <mliska@suse.cz>
27794
27795 * hash-map.h: Add is_empty function.
27796 * hash-set.h: Likewise.
27797 * hash-table.h: Likewise.
27798 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27799 elements () == 0 (and similar usages).
27800 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27801 * gimplify.c (gimplify_bind_expr): Likewise.
27802 (gimplify_switch_expr): Likewise.
27803 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27804 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27805 * postreload-gcse.c (dump_hash_table): Likewise.
27806 (gcse_after_reload_main): Likewise.
27807 * predict.c (combine_predictions_for_bb): Likewise.
27808 * tree-parloops.c (reduction_phi): Likewise.
27809 (separate_decls_in_region): Likewise.
27810 (transform_to_exit_first_loop): Likewise.
27811 (gen_parallel_loop): Likewise.
27812 (gather_scalar_reductions): Likewise.
27813 (try_create_reduction_list): Likewise.
27814 * var-tracking.c (dump_vars): Likewise.
27815 (emit_notes_for_changes): Likewise.
27816 (vt_emit_notes): Likewise.
27817
27818 2019-05-03 Richard Biener <rguenther@suse.de>
27819
27820 PR tree-optimization/90316
27821 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27822 before running VN.
27823
27824 2019-05-03 Richard Biener <rguenther@suse.de>
27825
27826 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27827 peeling for gaps by loading only lower halves of vectors
27828 if possible.
27829 (vectorizable_load): Likewise.
27830
27831 2019-05-03 Richard Biener <rguenther@suse.de>
27832
27833 PR middle-end/89518
27834 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27835
27836 2019-05-03 Richard Biener <rguenther@suse.de>
27837
27838 PR middle-end/87314
27839 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27840 Handle STRING_CST vs DECL or STRING_CST.
27841
27842 2019-05-03 Richard Biener <rguenther@suse.de>
27843
27844 PR tree-optimization/88963
27845 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27846 vector loads feeding only BIT_FIELD_REFs to component
27847 loads. Rewrite stores fed by CONSTRUCTORs to component
27848 stores.
27849
27850 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27851
27852 * opts.h (finish_options): Remove lang_mask argument.
27853 (print_help, help_option_argument): Declare.
27854 * opts.c (print_help): Remove forward declaration, no longer static.
27855 (finish_options): Remove lang_mask argument, don't call print_help
27856 here.
27857 * opts-global.c (decode_options): Adjust finish_option caller, call
27858 print_help here.
27859
27860 PR tree-optimization/90303
27861 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27862 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27863
27864 2019-05-03 Richard Biener <rguenther@suse.de>
27865
27866 PR tree-optimization/89698
27867 * gimple-fold.c (canonicalize_constructor_val): Early out
27868 for constants, handle unfolded INTEGER_CSTs as they appear in
27869 C++ virtual table ctors.
27870
27871 2019-05-03 Richard Biener <rguenther@suse.de>
27872
27873 * passes.c (execute_function_todo): Remove dead code.
27874
27875 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27876
27877 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27878 the internal register number, for any "real" register.
27879
27880 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27881
27882 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27883 correct numbers for TFHAR, TFIAR, TEXASR.
27884
27885 2019-05-02 Richard Biener <rguenther@suse.de>
27886
27887 PR tree-optimization/89653
27888 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27889 update-address-taken before the pass.
27890 * passes.def (pass_tree_loop_init): Put comment before it.
27891
27892 2019-05-02 Richard Biener <rguenther@suse.de>
27893
27894 PR tree-optimization/89509
27895 * tree-ssa-structalias.c (compute_dependence_clique): Look
27896 at the first subvar when determining whether it is restrict.
27897
27898 2019-05-02 Richard Biener <rguenther@suse.de>
27899
27900 PR tree-optimization/90273
27901 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27902 useless debug stmts.
27903
27904 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27905
27906 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27907 ACLE branch.
27908 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27909 SVE ACLE branch.
27910 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27911 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27912 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27913 (vectorizable_reduction): Use the functions above to vectorize in a
27914 fully masked loop codes that don't have a conditional internal
27915 function.
27916
27917 2019-05-02 Martin Liska <mliska@suse.cz>
27918
27919 * cgraphclones.c: Call valid_attribute_p with 1 for
27920 target_clone.
27921 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27922 it's for target attribute.
27923 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27924 Add new boolean argument.
27925 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27926 Likewise.
27927 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27928 to ix86_valid_target_attribute_inner_p.
27929 (ix86_valid_target_attribute_p): Pass flags argument to
27930 ix86_valid_target_attribute_inner_p.
27931 (get_builtin_code_for_version): Use 0 as it's target attribute.
27932
27933 2019-05-02 Martin Liska <mliska@suse.cz>
27934
27935 * gcc.c (process_command): Add dummy file only
27936 if n_infiles == 0.
27937 * opts-global.c (decode_options): Pass lang_mask.
27938 * opts.c (print_help): New function.
27939 (finish_options): Print --help if help_option_argument
27940 is set.
27941 (common_handle_option): Factor out content of OPT__help_
27942 into print_help.
27943 * opts.h (finish_options): Add new argument.
27944
27945 2019-05-02 Martin Liska <mliska@suse.cz>
27946
27947 PR target/88809
27948 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27949 With -minline-all-stringops use inline expansion using 4B loop.
27950 * doc/invoke.texi: Document the change of
27951 -minline-all-stringops.
27952
27953 2019-05-01 Jeff Law <law@redhat.com>
27954
27955 PR tree-optimization/88797
27956 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27957 PHI feeds a conditional on the RHS of an assignment.
27958
27959 2019-04-30 Andrew Waterman <andrew@sifive.com>
27960 Jim Wilson <jimw@sifive.com>
27961
27962 * config/riscv/constraints.md (L): New.
27963 * config/riscv/predicates.md (lui_operand): New.
27964 (sfb_alu_operand): New.
27965 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27966 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27967 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27968 * config/riscv/risc.md (type): Add sfb_alu.
27969 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
27970 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
27971 (branch_zero<mode>): Delete.
27972 (mov<mode>cc): New.
27973 (mov<GPR:mode><X:mode>cc): Likewise.
27974 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
27975
27976 2019-04-30 Nathan Sidwell <nathan@acm.org>
27977
27978 * tree.h (MARK_TS_EXP): New.
27979
27980 2019-04-30 Martin Liska <mliska@suse.cz>
27981
27982 * opts.c (enable_warning_as_error): Provide hints
27983 for unknown options.
27984
27985 2019-04-30 Martin Liska <mliska@suse.cz>
27986
27987 PR debug/90288
27988 * doc/invoke.texi: Add missing dash for gas-locview-support
27989 and gno-as-locview-support.
27990
27991 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27992
27993 PR target/89093
27994 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27995 whitespace at the start of target attribute string.
27996
27997 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27998
27999 PR target/86538
28000 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28001 Define __ARM_FEATURE_ATOMICS.
28002
28003 2019-04-30 Martin Liska <mliska@suse.cz>
28004
28005 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28006 into built_in_function enum. Remove code for endp == 2 and
28007 use BUILT_IN_* constants.
28008 (gimple_fold_builtin): Call the function with fcode.
28009
28010 2019-04-30 Martin Liska <mliska@suse.cz>
28011
28012 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28013 DECL_FUNCTION_CODE into ix86_builtins enum before
28014 the switch statement.
28015
28016 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28017
28018 PR tree-optimization/89475
28019 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28020 calls.
28021
28022 2019-04-30 Martin Liska <mliska@suse.cz>
28023
28024 PR translation/90274
28025 * opts.c (print_filtered_help): Wrap string in _(...).
28026
28027 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28028
28029 PR tree-optimization/90240
28030 Revert:
28031 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28032
28033 PR tree-optimization/90078
28034 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28035 checks for infinite_cost overflow.
28036
28037 2019-04-29 Jeff Law <law@redhat.com>
28038
28039 * passes.def: Move -Wrestrict pass after copy propagation.
28040
28041 2019-04-29 Maya Rashish <coypu@sdf.org>
28042
28043 * config.gcc (default_gnu_indirect_function): Default to yes
28044 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28045 sparc*-*-netbsd*, x86_64-*-netbsd*.
28046
28047 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28048
28049 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28050 where cond2 is NE_EXPR.
28051 (is_value_included_in): Update comment.
28052
28053 2019-04-29 Richard Biener <rguenther@suse.de>
28054
28055 PR tree-optimization/90278
28056 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28057 EH on comparison simplification.
28058
28059 2019-04-29 Jason Merrill <jason@redhat.com>
28060
28061 PR c++/82081 - tail call optimization breaks noexcept
28062 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28063 nothrow function to a might-throw function into a tail call.
28064
28065 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28066
28067 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28068 (DDR_INNER_LOOP): Likewise.
28069 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28070 (initialize_data_dependence_relation): Likewise.
28071 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28072
28073 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28074
28075 PR rtl-optimization/90257
28076 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28077 return value.
28078
28079 Revert the revert:
28080 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28081
28082 PR target/90178
28083 Revert:
28084 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28085
28086 Revert the revert:
28087 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28088
28089 Revert:
28090 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28091
28092 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28093
28094 2019-04-29 Richard Biener <rguenther@suse.de>
28095
28096 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28097 rhs issue a reset.
28098
28099 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28100
28101 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28102 varasm.h, and netbsd-protos.h.
28103
28104 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28105
28106 PR target/89261
28107 * config/i386/i386-protos.h (ix86_data_alignment): Change
28108 the second argument type to unsigned int.
28109 * config/i386/i386.c (ix86_data_alignment): Change "align"
28110 argument type to unsigned int.
28111
28112 2019-04-27 Martin Liska <mliska@suse.cz>
28113
28114 PR middle-end/90258
28115 * opt-suggestions.c (option_proposer::build_option_suggestions):
28116 When get_valid_option_values returns empty values, add the
28117 misspelling candidate.
28118
28119 2019-04-26 Jim Wilson <jimw@sifive.com>
28120
28121 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28122 parameter.
28123 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28124 Pass orig_mode to riscv_build_integer.
28125 (riscv_split_integer): Pass mode to riscv_move_integer.
28126 (riscv_legitimize_const_move): Likewise.
28127 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28128 promoted_mode. Replace force_reg call with code to load constant into
28129 promoted reg and then subreg it for the store.
28130 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28131 riscv_move_integer.
28132
28133 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28134
28135 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28136 corrupt codes.
28137
28138 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28139
28140 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28141 commentary about the encoding of precision.
28142
28143 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28144
28145 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28146 * config/i386/t-freebsd64: New file.
28147 * config.gcc: Add the t-freebsd64 for multilib support.
28148
28149 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28150
28151 * doc/extend.texi (vector_size): Add missing comma after @xref.
28152
28153 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28154
28155 * BASE-VER: Set to 10.0.0.
28156
28157 2019-04-25 Richard Biener <rguenther@suse.de>
28158
28159 PR middle-end/89765
28160 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28161 VIEW_CONVERT_EXPR into one operating on an rvalue.
28162
28163 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28164
28165 PR target/89929
28166 * config/i386/i386.c (feature_priority): Moved to file scope.
28167 (processor_features): Likewise.
28168 (processor_model): Likewise.
28169 (_arch_names_table): Likewise.
28170 (arch_names_table): Likewise.
28171 (_feature_list): Removed.
28172 (feature_list): Likewise.
28173 (_isa_names_table): Moved to file scope. Add priority.
28174 (isa_names_table): Likewise.
28175 (get_builtin_code_for_version): Replace feature_list with
28176 isa_names_table. Update error message for P_ZERO priority.
28177
28178 2019-04-25 Richard Biener <rguenther@suse.de>
28179
28180 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28181 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28182
28183 2019-04-24 Jeff Law <law@redhat.com>
28184
28185 PR tree-optimization/90037
28186 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28187 * passes.def: Replace all instance of phi-only cprop with the
28188 lattice propagator. Move propagation pass from after erroneous
28189 path isolation to before erroneous path isolation.
28190 * tree-ssa-phionlycprop.c: Remove.
28191
28192 2019-04-24 Richard Biener <rguenther@suse.de>
28193
28194 PR middle-end/90213
28195 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28196 by size and BITS_PER_UNIT on poly-wide-ints.
28197
28198 2019-04-25 Richard Biener <rguenther@suse.de>
28199
28200 PR middle-end/90194
28201 * match.pd: Add pattern to simplify view-conversion of an
28202 empty constructor.
28203
28204 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28205
28206 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28207 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28208 for Go on 32 bit AIX.
28209 * config/rs6000/aix72.h: Likewise.
28210
28211 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28212
28213 PR target/90193
28214 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28215 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28216
28217 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28218
28219 PR target/89952
28220 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28221 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28222 for restored hard frame pointer.
28223 (s390_sched_dependencies_evaluation): Implement new target hook.
28224 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28225
28226 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28227
28228 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28229 * config/arc/arc.c (arc_init): Cleanup warning message.
28230 (arc_override_options): Likewise.
28231
28232 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28233
28234 PR target/90187
28235 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28236 a register if both if_true and if_false are MEMs.
28237
28238 PR tree-optimization/90208
28239 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28240 after labels of new_bb, not before them.
28241
28242 PR tree-optimization/90211
28243 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28244 which are not SSA_NAMEs.
28245
28246 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28247
28248 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28249 AArch64.
28250 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28251
28252 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28253
28254 PR rtl-optimization/87979
28255 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28256 not equal zero.
28257
28258 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28259
28260 PR rtl-optimization/84032
28261 * modulo-sched.c (ps_insn_find_column): Change condition so that
28262 branch will always be the last insn in a row inside partial
28263 schedule.
28264
28265 2019-04-23 Richard Biener <rguenther@suse.de>
28266
28267 PR debug/90131
28268 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28269 dest_single_pred_p argument.
28270 (remove_forwarder_block): Adjust.
28271 (remove_forwarder_block_with_phi): Likewise.
28272
28273 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28274 Bernd Edlinger <bernd.edlinger@hotmail.de>
28275 Jakub Jelinek <jakub@redhat.com>
28276
28277 PR target/89093
28278 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28279 if used with general-regs-only.
28280 (arm_conditional_register_usage): Don't add non-general regs if
28281 general-regs-only.
28282 (arm_valid_target_attribute_rec): Handle general-regs-only.
28283 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28284 general-regs-only.
28285 (TARGET_HARD_FLOAT_SUB): Define.
28286 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28287 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28288 (TARGET_REALLY_IWMMXT2): Likewise.
28289 * config/arm/arm.opt: Add -mgeneral-regs-only.
28290 * doc/extend.texi: Document ARM general-regs-only target.
28291 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28292
28293 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28294
28295 PR tree-optimization/90078
28296 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28297 checks for infinite_cost overflow.
28298
28299 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28300
28301 PR tree-optimization/90021
28302 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28303 and check univariate against it.
28304 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28305 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28306
28307 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28308
28309 PR target/90178
28310 Revert:
28311 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28312
28313 Revert the revert:
28314 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28315
28316 Revert:
28317 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28318
28319 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28320
28321 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28322
28323 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28324 names using operand format, rather than hard-wired.
28325 (speculation_barrier): Likewise.
28326
28327 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28328
28329 PR tree-optimization/88055
28330 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28331 (gen_one_condition): Use it if !HONOR_NANS.
28332
28333 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28334
28335 PR middle-end/90139
28336 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28337 assign_temp instead of gen_reg_rtx.
28338
28339 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28340
28341 PR translation/90118
28342 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28343 Add missing space before %<.
28344
28345 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28346
28347 PR rtl-optimization/87871
28348 * ira-lives.c (make_object_dead): Don't add conflicts to
28349 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28350
28351 2019-04-18 Martin Sebor <msebor@redhat.com>
28352
28353 PR middle-end/89797
28354 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28355 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28356 assuming type size fits in SHWI.
28357
28358 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28359
28360 PR ipa/85051
28361 * ipa-inline.c (flatten_function): New parameter UPDATE.
28362 (ipa_inline, early_inliner): Use it.
28363
28364 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28365
28366 * fold-const.c (int_const_binop): Return early on failure.
28367
28368 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28369
28370 PR middle-end/85164
28371 * combine.c (force_int_to_mode): Cast the argument rather than
28372 the result of known_alignment.
28373 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28374
28375 2019-04-18 Richard Biener <rguenther@suse.de>
28376
28377 PR debug/90131
28378 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28379 out from ...
28380 (remove_forwarder_block): ... here.
28381 (remove_forwarder_block_with_phi): Also move debug stmts here.
28382
28383 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28384
28385 PR translation/79183
28386 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28387 inform where appropriate.
28388
28389 2019-04-18 Richard Biener <rguenther@suse.de>
28390
28391 * tree.c (get_qualified_type): Put found type variants at the
28392 head of the variant list.
28393
28394 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28395
28396 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28397
28398 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28399
28400 PR target/90125
28401 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28402 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28403 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28404 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28405 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28406
28407 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28408
28409 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28410 even for allocno's with no conflicts.
28411 (print_conflicts): Print an extra newline.
28412
28413 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28414
28415 * auto-inc-dec.c (attempt_change): Set the alignment of the
28416 temporary memory to that of the original.
28417
28418 2019-04-17 Joao Moreira <jmoreira@suse.de>
28419
28420 * targhooks.c (default_print_patchable_function_entry): Emit
28421 __patchable_function_entries section with writable flags to allow
28422 relocation resolution.
28423
28424 2019-04-17 Jonny Grant <jg@jguk.org>
28425
28426 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28427
28428 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28429
28430 PR middle-end/90095
28431 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28432 on lowpart SUBREGs.
28433
28434 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28435
28436 * config/arc/arc.c (arc_init): Format diagnostic string.
28437 (arc_override_options): Likewise.
28438 (check_if_valid_regno_const): Likewise.
28439 (arc_reorg): Likewise.
28440
28441 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28442
28443 PR target/17108
28444 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28445 name.
28446 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28447 name.
28448 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28449 (*movdi_update1): Use Pmode.
28450 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28451 (movdi_<mode>_update_stack): Rename to ...
28452 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28453 use Pmode.
28454 (*movsi_update1): Use Pmode.
28455 (*movsi_update2): Use Pmode.
28456 (movsi_update): Rename to ...
28457 (movsi_<mode>_update): ... this. Use Pmode.
28458 (movsi_update_stack): Fix condition.
28459 (*movhi_update1): Use Pmode. Fix argument to
28460 avoiding_indexed_address_p.
28461 (*movhi_update2): Ditto.
28462 (*movhi_update3): Ditto.
28463 (*movhi_update4): Ditto.
28464 (*movqi_update1): Ditto.
28465 (*movqi_update2): Ditto.
28466 (*movqi_update3): Ditto.
28467 (*movsf_update1, *movdf_update1): Merge, rename to...
28468 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28469 avoiding_indexed_address_p. Add "size" attribute.
28470 (*movsf_update2, *movdf_update2): Merge, rename to...
28471 (*mov<mode>_update2): This. Ditto.
28472 (*movsf_update3): Use Pmode. Fix argument to
28473 avoiding_indexed_address_p.
28474 (*movsf_update4): Ditto.
28475 (allocate_stack): Simplify condition. Adjust pattern names.
28476
28477 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28478
28479 PR target/89093
28480 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28481 whitespace at the start of target attribute string.
28482
28483 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28484
28485 PR target/84369
28486 * config/rs6000/power9.md: Add store forwarding bypass.
28487
28488 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28489
28490 PR debug/89528
28491 * valtrack.c (dead_debug_insert_temp): Reset debug references
28492 to the return value of a call being removed.
28493
28494 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28495
28496 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28497 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28498 implement target hook.
28499 (arc_memory_move_cost): New function.
28500 (TARGET_REGISTER_MOVE_COST): Define.
28501 (TARGET_MEMORY_MOVE_COST): Likewise.
28502 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28503 (MEMORY_MOVE_COST): Likewise.
28504
28505 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28506
28507 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28508 (sibcall_value_insn): Likewise.
28509 * config/arc/constraints.md (Rs5): Remove.
28510
28511 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28512
28513 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28514 for last two fake registers.
28515 (arc_conditional_register_usage): Make sure fake frame and arg
28516 pointer regs are in general regs class.
28517 (FRAME_POINTER_MASK): Remove.
28518 (RETURN_ADDR_MASK): Remove.
28519 (arc_must_save_register): Use hard frame regnum.
28520 (frame_restore_reg): Use hard_frame_pointer_rtx.
28521 (arc_save_callee_saves): Likewise.
28522 (arc_restore_callee_saves): Likewise.
28523 (arc_save_callee_enter): Likewise.
28524 (arc_restore_callee_leave): Likewise.
28525 (arc_save_callee_milli): Likewise.
28526 (arc_eh_return_address_location): Likewise.
28527 (arc_check_multi): Use hard frame regnum.
28528 (arc_can_eliminate): Likewise.
28529 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28530 for register allocator.
28531 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28532 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28533 (FRAME_POINTER_REGNUM): Change it to a fake register.
28534 (HARD_FRAME_POINTER_REGNUM): Defined.
28535 (ARG_POINTER_REGNUM): Change it to a new fake register.
28536 (ELIMINABLE_REGS): Update.
28537 (REGISTER_NAMES): Update names.
28538 * config/arc/arc.md (LP_START): Remove.
28539 (LP_END): Likewise.
28540 (shift_si3_loop): Update pattern.
28541
28542 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28543
28544 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28545 to avoid delay slot scheduling.
28546 (arc_must_save_register): Don't save SP.
28547 * config/arc/arc.md (stack_tie): Remove.
28548 (UNSPEC_ARC_STKTIE): Likewise.
28549
28550 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28551 Shiva Chen <shiva0217@gmail.com>
28552
28553 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28554 code gen with large shift amount.
28555
28556 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28557
28558 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28559 subreg.
28560
28561 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28562
28563 PR target/90096
28564 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28565 print -m64/-mx32/-m32 if it is true.
28566 (ix86_debug_options, ix86_function_specific_print): Pass true as
28567 ADD_ABI_P to ix86_target_string.
28568 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28569 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28570 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28571
28572 PR rtl-optimization/90082
28573 * dce.c (can_delete_call): New function.
28574 (deletable_insn_p, mark_insn): Use it.
28575
28576 PR tree-optimization/90090
28577 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28578 throw internally.
28579 (is_division_by_square): Likewise. Formatting fix.
28580
28581 2019-04-16 Richard Biener <rguenther@suse.de>
28582
28583 PR tree-optimization/56049
28584 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28585 equality check if alias-set zero will prevail.
28586
28587 2019-04-15 Jeff Law <law@redhat.com>
28588
28589 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28590 size and alignment as unsigned.
28591
28592 2019-04-15 Richard Biener <rguenther@suse.de>
28593
28594 PR debug/90074
28595 * tree-loop-distribution.c (destroy_loop): Preserve correct
28596 debug info.
28597
28598 2019-04-15 Richard Biener <rguenther@suse.de>
28599
28600 PR tree-optimization/90071
28601 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28602 abnormal operands from def stmts.
28603
28604 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28605
28606 PR rtl-optimization/89794
28607 * combine.c (count_auto_inc): New function.
28608 (try_combine): Count how many auto_inc expressions there were in the
28609 original instructions. Ensure we have the same number in the new
28610 instructions. Remove the code that tried to ensure auto_inc side
28611 effects on i1 and i0 are not lost.
28612
28613 2019-04-15 Richard Biener <rguenther@suse.de>
28614
28615 PR ipa/88936
28616 * tree.h (auto_var_p): Declare.
28617 * tree.c (auto_var_p): New function, split out from ...
28618 (auto_var_in_fn_p): ... here.
28619 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28620 member.
28621 (new_var_info): Initialize it.
28622 (set_uids_in_ptset): Also set the shadow variable uid if required.
28623 (ipa_pta_execute): Postprocess points-to solutions assigning
28624 shadow variable uids for locals that may reach their containing
28625 function recursively.
28626 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28627 assert but instead check whether the points-to solution is
28628 a singleton.
28629
28630 2019-04-15 Martin Jambor <mjambor@suse.cz>
28631
28632 PR ipa/pr89693
28633 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28634 the thunk chain.
28635
28636 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28637
28638 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28639
28640 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28641 Kito Cheng <kito.cheng@gmail.com>
28642 Shiva Chen <shiva0217@gmail.com>
28643
28644 * config/nds32/nds32-md-auxiliary.c
28645 (nds32_legitimize_pic_address): Use new PIC pattern.
28646 (nds32_legitimize_tls_address): Use new TLS pattern.
28647 (nds32_output_symrel): New.
28648 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28649 (nds32_alloc_relax_group_id): Ditto.
28650 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28651 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28652 relax_group_id.
28653 (nds32_group_tls_insn): Ditto.
28654 (nds32_group_float_insns): Ditto.
28655 * config/nds32/nds32.md (tls_le): New.
28656 (sym_got): Ditto.
28657
28658 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28659
28660 * configure: Add nds32 target for dwarf2 debug_line checking.
28661 * configure.ac: Regenerated.
28662
28663 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28664
28665 PR lto/89358
28666 * ipa-devirt.c (skip_in_fields_list_p): New.
28667 (odr_types_equivalent_p): Use it.
28668
28669 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28670
28671 PR target/89093
28672 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28673 instead of strncmp when checking for thumb and arm. Formatting fixes.
28674
28675 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28676
28677 * doc/install.texi: Document --with-target-system-zlib.
28678
28679 2019-04-12 Martin Sebor <msebor@redhat.com>
28680
28681 PR c/88383
28682 PR c/89288
28683 PR c/89798
28684 PR c/89797
28685 * targhooks.c (default_vector_alignment): Avoid assuming
28686 argument fits in SHWI.
28687 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28688 a shift expression.
28689 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28690
28691 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28692
28693 PR rtl-optimization/89965
28694 * dce.c: Include rtl-iter.h.
28695 (struct check_argument_load_data): New type.
28696 (check_argument_load): New function.
28697 (find_call_stack_args): Check for loads from stack slots still tracked
28698 in sp_bytes and punt if any is found.
28699
28700 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28701
28702 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28703
28704 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28705 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28706
28707 2019-04-12 Martin Liska <mliska@suse.cz>
28708
28709 PR middle-end/89970
28710 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28711 in error message.
28712 (separate_attrs): Handle multiple 'default's.
28713 (expand_target_clones): Rework error handling code.
28714
28715 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28716
28717 PR target/87532
28718 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28719 mode of vector rather than mode of destination for move instruction.
28720 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28721 Use QI inner mode with V16QI vector mode.
28722
28723 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28724
28725 PR target/52726
28726 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28727 "invalid %%t operand" in output_operand_lossage message.
28728
28729 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28730
28731 * config/s390/predicates.md (permute_pattern_operand): New
28732 predicate.
28733 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28734 operand for the permute pattern.
28735 ("*vec_perm<mode>"): New insn definition.
28736 ("bswap<mode>"): Generate the permute pattern operand in the
28737 expander and perform the operand reloads for pre arch13 level
28738 already.
28739 ("*bswap<mode>_emu"): Rename to ...
28740 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28741 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28742 Add the USE operand for the permute pattern.
28743 ("*vec_set_bswap_vec<mode>"): Likewise.
28744
28745 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28746
28747 PR c/89946
28748 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28749 and gcc_unreachable if it fails, just call tree_to_uhwi which
28750 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28751 Start warning message with a lower-case letter. Formatting fixes.
28752
28753 PR rtl-optimization/90026
28754 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28755 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28756 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28757 in cfglayout mode, use emit_barrier_after_bb.
28758
28759 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28760
28761 PR rtl-optimization/87763
28762 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28763 New Instruction.
28764
28765 2019-04-11 Tom de Vries <tdevries@suse.de>
28766
28767 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28768 max macro using statement expression.
28769
28770 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28771
28772 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28773 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28774 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28775 read_only_private_data_section using xcoff_private_rodata_section_name.
28776 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28777
28778 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28779
28780 PR target/90016
28781 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28782
28783 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28784
28785 PR rtl-optimization/89965
28786 * dce.c (sp_based_mem_offset): New function.
28787 (find_call_stack_args): Use sp_based_mem_offset.
28788
28789 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28790
28791 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28792
28793 2019-04-11 Richard Biener <rguenther@suse.de>
28794
28795 PR tree-optimization/90020
28796 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28797 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28798 * tree-ssa-pre.c (compute_avail): Use it to not put
28799 possibly trapping references after a call that might not
28800 return into EXP_GEN.
28801 * gcse.c (compute_hash_table_work): Do not elide
28802 marking a block containing a call if the call might not
28803 return.
28804
28805 2019-04-11 Richard Biener <rguenther@suse.de>
28806
28807 PR tree-optimization/90018
28808 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28809 Test both SLP and interleaving variants.
28810
28811 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28812
28813 * config/s390/8561.md: New file.
28814 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28815 Add arch13 cpu model.
28816 * config/s390/s390-opts.h (enum processor_type): Likewise.
28817 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28818 (s390_get_unit_mask): Likewise.
28819 (s390_is_fpd): Likewise.
28820 (s390_is_fxd): Likewise.
28821 * config/s390/s390.h (s390_tune_attr): Likewise.
28822 * config/s390/s390.md: Include arch13 pipeline description.
28823 * config/s390/s390.opt: Add arch13.
28824
28825 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28826
28827 PR rtl-optimization/87763
28828 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28829 New prototype.
28830 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28831 New function.
28832 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28833 New instruction.
28834 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28835 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28836 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28837 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28838
28839 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28840
28841 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28842 "Although" in -fipa-icf documentation.
28843
28844 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28845 of using multiple -g options.
28846
28847 2019-04-10 Martin Liska <mliska@suse.cz>
28848
28849 PR gcov-profile/89959
28850 * doc/gcov.texi: Make documentation of -x option
28851 more precise.
28852
28853 2019-04-10 Richard Biener <rguenther@suse.de>
28854
28855 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28856 member.
28857 (DR_GROUP_SAME_DR_STMT): Remove.
28858 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28859 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28860 replace with assert.
28861 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28862 (vect_record_grouped_load_vectors): Remove unreachable code.
28863
28864 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28865
28866 PR target/90016
28867 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28868 obsolete reference to N.
28869
28870 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28871
28872 PR middle-end/90025
28873 * expr.c (store_expr): Set properly size on the MEM passed to
28874 clear_storage.
28875
28876 PR c++/90010
28877 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28878 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28879 translation is needed, and when translation is needed, only append
28880 ... if the string length is hostsz or more bytes long. Avoid using
28881 strncpy or strcat.
28882
28883 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28884
28885 PR target/90024
28886 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28887 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28888 into three.
28889 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28890 differences directly.
28891 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28892
28893 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28894
28895 PR translation/90011
28896 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28897 from diagnostics.
28898 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28899 diagnostics.
28900 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28901 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28902 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28903 trailing space from -gsplit-dwarf diagnostics.
28904
28905 PR tree-optimization/89998
28906 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28907 instead of integer_type_node if possible, don't add ranges if return
28908 type is not compatible with int.
28909 * gimple-fold.c (gimple_fold_builtin_sprintf,
28910 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28911 integer_type_node.
28912
28913 2019-04-09 Martin Liska <mliska@suse.cz>
28914
28915 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28916 * doc/install.texi: Document the new config.
28917
28918 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28919
28920 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28921 use gimple_expr_type for load and store calls. Skip over the
28922 condition argument in a conditional internal function.
28923 Protect use of TREE_INT_CST_LOW.
28924
28925 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28926
28927 PR target/90015
28928 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28929 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28930 trailing period from it too.
28931
28932 2019-04-08 wu yuan <wuyuan5@huawei.com>
28933
28934 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28935 * config/aarch64/aarch64.md: Add "tsv110.md".
28936 * config/aarch64/tsv110.md: New file.
28937
28938 2019-04-08 Richard Biener <rguenther@suse.de>
28939
28940 PR tree-optimization/90006
28941 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28942 calls like lrint.
28943
28944 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28945
28946 PR target/83033
28947 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28948 construction.
28949 (fma_root_node): Likewise.
28950 (func_fma_steering): Likewise.
28951
28952 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28953
28954 PR rtl-optimization/89865
28955 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28956
28957 PR rtl-optimization/89865
28958 * config/i386/i386.md
28959 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28960 numbers not to clash with the additional operands[4].
28961 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28962 with extra register copy in the middle.
28963
28964 2019-04-08 Martin Liska <mliska@suse.cz>
28965
28966 PR gcov-profile/89961
28967 * doc/gcov.texi: Document data_file.
28968 * gcov.c (generate_results): Add data_info into JSON output.
28969
28970 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28971
28972 PR tree-optimization/89725
28973 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
28974 loop's chrec as invariant symbol.
28975 * tree-chrec.h (chrec_contains_symbols): New parameter.
28976 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28977 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28978 function of loops not in DDR's loop_nest.
28979 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28980
28981 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
28982
28983 PR target/89623
28984 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28985 Mask.
28986
28987 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
28988
28989 PR target/89945
28990 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28991 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28992
28993 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
28994
28995 * sched-deps.c (sched_macro_fuse_insns): Check return value of
28996 targetm.fixed_condition_code_regs.
28997
28998 2019-04-05 Richard Biener <rguenther@suse.de>
28999
29000 PR debug/89892
29001 PR debug/89905
29002 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29003 debug bind stmts but reset them if they are not valid at the
29004 destination.
29005
29006 2019-04-05 Martin Liska <mliska@suse.cz>
29007
29008 PR translation/89936
29009 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29010 order to wrap keywords or arguments.
29011 * collect2.c (main): Likewise.
29012 (scan_prog_file): Likewise.
29013 (scan_libraries): Likewise.
29014 * common/config/riscv/riscv-common.c
29015 (riscv_subset_list::parsing_subset_version): Likewise.
29016 (riscv_subset_list::parse_std_ext): Likewise.
29017 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29018 Likewise.
29019 * config/arm/arm.c (arm_option_override): Likewise.
29020 * config/cris/cris.c (cris_print_operand): Likewise.
29021 * config/darwin-c.c (darwin_pragma_options): Likewise.
29022 (darwin_pragma_unused): Likewise.
29023 (darwin_pragma_ms_struct): Likewise.
29024 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29025 * config/i386/i386.c (print_reg): Likewise.
29026 (ix86_print_operand): Likewise.
29027 * config/i386/xm-djgpp.h: Likewise.
29028 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29029 * config/m32c/m32c.c (m32c_option_override): Likewise.
29030 * config/msp430/msp430.c (msp430_option_override): Likewise.
29031 * config/nds32/nds32.c (nds32_option_override): Likewise.
29032 * config/nvptx/mkoffload.c (main): Likewise.
29033 * config/rx/rx.c (rx_print_operand): Likewise.
29034 (valid_psw_flag): Likewise.
29035 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29036 (vms_pragma_nomember_alignment): Likewise.
29037 (vms_pragma_extern_model): Likewise.
29038 * lto-wrapper.c (compile_offload_image): Likewise.
29039 * omp-offload.c (oacc_parse_default_dims): Likewise.
29040 * symtab.c (symtab_node::verify_base): Likewise.
29041 * tlink.c (recompile_files): Likewise.
29042 (start_tweaking): Likewise.
29043 * tree-profile.c (parse_profile_filter): Likewise.
29044
29045 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29046
29047 PR tree-optimization/89956
29048 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29049 multiple negates of the same value.
29050
29051 2019-04-04 Martin Sebor <msebor@redhat.com>
29052
29053 PR middle-end/89957
29054 PR middle-end/89911
29055 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29056 have the same precision since the function crashes otherwise.
29057 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29058 has non-zero arguments.
29059
29060 2019-04-04 Martin Sebor <msebor@redhat.com>
29061
29062 PR middle-end/89934
29063 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29064 out if the number of arguments is less than expected.
29065
29066 2019-04-04 Jeff Law <law@redhat.com>
29067
29068 PR rtl-optimization/89399
29069 * ree.c (combine_set_extension): Use single_set rather than
29070 digging into PATTERN for items on the candidate list.
29071 (combine_reaching_defs): Likewise.
29072
29073 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29074
29075 PR rtl-optimization/46590
29076 * loop-invariant.c (find_defs): Move df_remove_problem and
29077 df_process_deferred_rescans to move_invariants.
29078 Move df_live_add_problem and df_live_set_all_dirty calls
29079 to move_invariants.
29080 (move_invariants): Likewise.
29081 (move_loop_invariants): Likewise, making the df_live calls
29082 conditional on -O. Remove the problem again if we added it
29083 locally.
29084
29085 2019-04-03 qing zhao <qing.zhao@oracle.com>
29086
29087 PR tree-optimization/89730
29088 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29089 -flive-patching=inline-only-static.
29090 (can_inline_edge_by_limits_p): Add the checking for
29091 -flive-patching=inline-only-static and grant always_inline
29092 even when -flive-patching=inline-only-static is specified.
29093
29094 2019-04-03 Jeff Law <law@redhat.com>
29095
29096 PR rtl-optimization/81025
29097 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29098
29099 2019-04-03 Richard Biener <rguenther@suse.de>
29100
29101 PR tree-optimization/84101
29102 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29103 regs.h for hard_regno_nregs.
29104 (cfun_returns): New helper.
29105 (vect_model_store_cost): When vectorizing a store to a decl
29106 we return and the function ABI returns in a multi-reg location
29107 account for the possible spilling that will happen.
29108
29109 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29110
29111 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29112 displacement addresses for vector mode operands.
29113
29114 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29115
29116 * config/arc/arc.c (GMASK_LEN): Define.
29117 (arc_restore_callee_saves): Restore first blink when
29118 !optimize_size.
29119
29120 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29121
29122 * doc/extend.texi: Add deprecated comment on sign-return-address
29123 function attribute and add mbranch-protection.
29124 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29125
29126 2019-04-03 Richard Biener <rguenther@suse.de>
29127
29128 PR lto/89896
29129 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29130 the all target phony.
29131
29132 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29133
29134 PR target/89902
29135 PR target/89903
29136 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29137 Return false for variable DImode shifts.
29138 (dimode_scalar_chain::compute_convert_gain): Do not handle
29139 register count operand in variable DImode shifts.
29140 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29141 count argument of a variable shift instruction to a vector register.
29142 (dimode_scalar_chain::convert_reg): Remove support to convert
29143 count argument of a variable shift instruction.
29144
29145 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29146
29147 PR rtl-optimization/84206
29148 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29149 iterating over loop headers.
29150
29151 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29152
29153 PR rtl-optimization/85876
29154 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29155 beyond the original fence.
29156
29157 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29158
29159 * config.gcc: Mark spu* targets as deprecated/obsolete.
29160
29161 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29162
29163 * config/s390/s390-builtin-types.def: New builtin function type
29164 definitions. Remove unused types.
29165 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29166 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29167 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29168 overloaded builtins.
29169 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29170 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29171 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29172 (vec_double, vec_signed, vec_unsigned): Define to use the new
29173 overloaded builtins.
29174 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29175 Remove expanders.
29176
29177 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29178
29179 * config/s390/s390-builtin-types.def: New builtin function type
29180 definitions.
29181 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29182 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29183 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29184 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29185 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29186 constant definitions.
29187 * config/s390/vecintrin.h (vec_search_string_cc)
29188 (vec_search_string_until_zero_cc): New builtin name definitions.
29189 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29190 expanders.
29191 ("vec_vstrs<mode>"): New insn definition.
29192
29193 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29194
29195 * config/s390/s390-builtin-types.def: Add new builtin function
29196 types.
29197 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29198 New overloaded builtins.
29199 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29200 s390_vsrd.
29201 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29202 (UNSPEC_VEC_SLDBYTE): ... this.
29203 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29204 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29205 definitions.
29206 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29207 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29208 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29209
29210 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29211
29212 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29213 New insn definition.
29214 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29215 * config/s390/vector.md (V_HW_HSD): ... here.
29216
29217 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29218
29219 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29220 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29221 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29222 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29223 New insn definitions.
29224
29225 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29226
29227 * config/s390/s390-builtin-types.def: Add new builtin function type.
29228 * config/s390/s390-builtins.def: Add overloaded builtin
29229 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29230 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29231 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29232 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29233 ("eltswap<mode>"): New expander.
29234 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29235 insn definitions.
29236
29237 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29238
29239 * config/s390/s390-builtin-types.def: Add new builtin function types.
29240 * config/s390/s390-builtins.def: Add overloaded builtin
29241 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29242 instructions.
29243 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29244 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29245 ("bswap<mode>"): New expander.
29246 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29247
29248 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29249
29250 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29251 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29252 vector builtin version number in __VEC__.
29253
29254 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29255
29256 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29257 iterators.
29258 (SFSI): New mode attribute.
29259 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29260 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29261 rename to ...
29262 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29263 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29264 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29265 ("floatsi<mode>2"): Add wcefb instruction.
29266
29267 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29268
29269 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29270 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29271 mode iterators.
29272 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29273 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29274 support 32 bit fp-int conversions. Rename to ...
29275 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29276 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29277 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29278 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29279 ... to these.
29280
29281 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29282
29283 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29284 if-then-else constructs if we can use the select instruction.
29285 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29286
29287 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29288
29289 * config/s390/s390.md ("*popcountdi_arch13_cc")
29290 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29291 definition.
29292 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29293 Append _z196 to make it ...
29294 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29295 ("popcounthi2_z196"): ... this.
29296 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29297 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29298
29299 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29300
29301 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29302 certain compares for arch13 in order to make use of the condition
29303 code result produced by the new instructions.
29304 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29305 nxrk, and nxgrk instruction patterns.
29306 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29307 (inv_no): Add new code iterator together with some attributes.
29308 ("*andc_split_<mode>"): Disable splitter for arch13.
29309 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29310 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29311 ("*<ANDOR:bitops_name>c<GPR:mode>")
29312 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29313 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29314 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29315 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29316
29317 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29318
29319 * common/config/s390/s390-common.c (processor_flags_table): New
29320 entry for arch13.
29321 * config.gcc: Support arch13 with the --with-arch= configure flag.
29322 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29323 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29324 * config/s390/s390.c (s390_get_sched_attrmask)
29325 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29326 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29327 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29328 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29329 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29330 definitions.
29331 * config/s390/s390.opt: Support arch13 as processor type in
29332 command line options.
29333
29334 2019-04-02 Martin Liska <mliska@suse.cz>
29335
29336 PR translation/89912
29337 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29338 Fix param description of graphite-max-arrays-per-scop.
29339
29340 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29341
29342 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29343 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29344 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29345
29346 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29347
29348 PR rtl-optimization/85412
29349 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29350 sel_sched_region_1, not after.
29351
29352 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29353
29354 PR rtl-optimization/86928
29355 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29356 compute_live if necessary.
29357 (sel_redirect_edge_and_branch): Likewise.
29358
29359 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29360
29361 PR rtl-optimization/89865
29362 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29363 register if it is a part of small class.
29364
29365 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29366
29367 PR rtl-optimization/87273
29368 * sel-sched-ir.c (merge_fences): Remove assert.
29369
29370 2019-04-01 Richard Biener <rguenther@suse.de>
29371
29372 PR tree-optimization/46590
29373 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29374 (dom_walker::m_reachability): Add in place of...
29375 (dom_walker::m_skip_unreachable_blocks): ...this.
29376 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29377 Move complex initialization ...
29378 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29379 lazily and initialize edge flags on each invocation.
29380 (dom_walker::bb_reachable): Use m_reachability.
29381
29382 2019-04-01 Martin Liska <mliska@suse.cz>
29383
29384 PR driver/89861
29385 * opt-suggestions.c (option_proposer::build_option_suggestions):
29386 Add variant without any argument in order to provide better
29387 hints.
29388
29389 2019-04-01 Richard Biener <rguenther@suse.de>
29390
29391 PR c/71598
29392 * gimple.c: Include langhooks.h.
29393 (gimple_get_alias_set): Treat enumeral types as the underlying
29394 integer type.
29395
29396 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29397 Eric Botcazou <ebotcazou@adacore.com>
29398
29399 PR rtl-optimization/89862
29400 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29401 that operates on the full registers for WORD_REGISTER_OPERATIONS
29402 architectures.
29403
29404 2019-03-29 Jim Wilson <jimw@sifive.com>
29405
29406 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29407 Clear MASK_RVC and then set if C subset supported.
29408
29409 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29410
29411 PR c/89872
29412 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29413 non-addressable complit into its initializer if it is volatile.
29414
29415 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29416
29417 * opts-common.c (integral_argument): Set errno properly in one case.
29418
29419 2019-03-29 Martin Liska <mliska@suse.cz>
29420
29421 * doc/invoke.texi: Remove -Wchkp from documentation.
29422
29423 2019-03-29 Martin Liska <mliska@suse.cz>
29424
29425 * dbgcnt.c (print_limit_reach): New function.
29426 (dbg_cnt): Use it.
29427
29428 2019-03-29 Martin Liska <mliska@suse.cz>
29429
29430 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29431 (dbg_cnt_process_opt): Parse first tokens aas
29432 dbg_cnt_process_single_pair is also using strtok.
29433
29434 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29435
29436 PR rtl-optimization/87485
29437 * function.c (expand_function_end): Move stack_protect_epilogue
29438 before loading of return value into hard register(s).
29439
29440 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29441
29442 PR middle-end/89621
29443 * tree-inline.h (struct copy_body_data): Add
29444 dont_remap_vla_if_no_change flag.
29445 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29446 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29447 and remap_type_2 returns false.
29448 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29449 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29450 only from where it is copied to nested contexts.
29451
29452 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29453
29454 PR target/89865
29455 * config/i386/i386.md (RMW operation with LEA peephole):
29456 Use LEAMODE mode attribute instead of SWI mode iterator for
29457 LEA pattern.
29458
29459 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29460
29461 PR target/89848
29462 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29463 Also process XEXP (src, 0) of a shift insn.
29464
29465 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29466
29467 PR middle-end/89725
29468 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29469 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29470
29471 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29472
29473 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29474 test.
29475 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29476 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29477 immediately after first one with df_analyze in between, but rather
29478 process all bbs, queueing ones that need second pass in a worklist,
29479 df_analyze, process queued debug insn changes and if second pass is
29480 needed, process bbs from worklist, df_analyze, process queued debug
29481 insns again.
29482
29483 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29484 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29485 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29486
29487 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29488
29489 PR c/79022
29490 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29491 definition.
29492
29493 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29494
29495 PR target/85667
29496 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29497 function for 32-bit MS_ABI.
29498 (function_value_ms_32): New function.
29499
29500 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29501
29502 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29503 (movdi): Call gen_movdi_symbol_save_scc.
29504 (gen_movdi_symbol_save_scc): New insn and split.
29505
29506 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29507
29508 PR rtl-optimization/89313
29509 * function.c (matching_constraint_num): New static function.
29510 (match_asm_constraints_1): Use it. Fixup white space and comment.
29511 Don't replace inputs with non-matching constraints which conflict
29512 with early clobber outputs.
29513
29514 2019-03-27 Jeff Law <law@redhat.com>
29515
29516 PR rtl-optimization/87761
29517 PR rtl-optimization/89826
29518 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29519 slightly later.
29520 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29521 note problem to get REG_DEAD/REG_UNUSED notes updated.
29522
29523 2019-03-27 Richard Biener <rguenther@suse.de>
29524
29525 PR tree-optimization/89463
29526 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29527 queue edges to remove.
29528 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29529 dead stmts. Delay edge removal until PHIs are removed to
29530 make debug-stmt creation not confused by seemingly degenerate
29531 PHIs.
29532
29533 2019-03-27 Alan Modra <amodra@gmail.com>
29534
29535 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29536 throughout file.
29537 * config/rs6000/darwin.h: Likewise.
29538 * config/rs6000/rs6000.c: Likewise.
29539
29540 2019-03-27 Alan Modra <amodra@gmail.com>
29541
29542 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29543 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29544
29545 2019-03-26 Andrew Waterman <andrew@sifive.com>
29546 Jim Wilson <jimw@sifive.com>
29547
29548 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29549 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29550 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29551 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29552 (generic_alu): Add auipc to type list.
29553 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29554 (riscv_microarchitecture): Declare.
29555 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29556 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29557 field.
29558 (riscv_microarchitecture): New.
29559 (sifive_7_tune_info): New.
29560 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29561 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29562 entries.
29563 (riscv_store_data_bypass_p): New.
29564 (riscv_option_override): Set riscv_microarchitecture from
29565 cpu->microarchitecture.
29566 * config/riscv/riscv.md: Include sifive-7.md.
29567 (type): Add auipc.
29568 (tune): New.
29569 (auipc<mode>): Change type to auipc.
29570 (restore_stack_nonlocal): New.
29571 * config/riscv/sifive-7.md: New.
29572 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29573
29574 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29575
29576 PR target/89827
29577 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29578 Also process XEXP (src, 0) of a shift insn.
29579
29580 2019-03-26 Richard Biener <rguenther@suse.de>
29581
29582 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29583 (copy_debug_stmt): Likewise.
29584 (expand_call_inline): Likewise.
29585 (copy_bb): Avoid redundant lookup & set of gimple_block.
29586 * gimple-low.c (lower_gimple_return): Likewise.
29587 (lower_builtin_setjmp): Likewise.
29588
29589 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29590
29591 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29592 is constant 0, turn into static const data member initialized to false.
29593 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29594 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29595
29596 2019-03-26 Jason Merrill <jason@redhat.com>
29597 Jakub Jelinek <jakub@redhat.com>
29598
29599 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29600 method.
29601 (mem_alloc_description::release_object_overhead): Fix comment typos.
29602 * hash-table.h (hash_table::~hash_table): Call
29603 release_instance_overhead only if m_entries is non-NULL, otherwise
29604 call unregister_descriptor.
29605
29606 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29607
29608 PR tree-optimization/81740
29609 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29610 In case of outer loop vectorization, check for backward dependence
29611 at the inner loop if outer loop dependence is reversed.
29612
29613 2019-03-26 Alan Modra <amodra@gmail.com>
29614
29615 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29616 rs6000_vector_mem init. Correct wI and wJ comment.
29617
29618 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29619
29620 PR rtl-optimization/88347
29621 PR rtl-optimization/88423
29622 * sched-deps.c (sched_analyze_insn): Take into account that for
29623 tablejumps the barrier appears after a label and a jump_table_data.
29624
29625 2019-03-25 Martin Sebor <msebor@redhat.com>
29626
29627 PR c/89812
29628 * c-common.c (check_user_alignment): Rename local. Correct maximum
29629 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29630 convert it to UHWI when it fits.
29631
29632 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29633
29634 PR debug/86964
29635 * dwarf2out.c (premark_used_variables): New function.
29636 (prune_unused_types_walk): Do not mark not premarked external
29637 variables.
29638 (prune_unused_types): Call premark_used_variables.
29639
29640 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29641
29642 PR rtl-optimization/89676
29643 * lra-constraints.c (curr_insn_transform): Do match reload for
29644 early clobbers when the match was successful only for different
29645 registers.
29646
29647 2019-03-25 Martin Sebor <msebor@redhat.com>
29648
29649 * doc/extend.texi (Common Type Attributes): Document vector_size.
29650 (Common Variable Attributes): Mention size constraint. Correct
29651 quoting and typos.
29652 (Vector Extensions): Use @dfn when defining bas type. Clarify
29653 base type and size constraints.
29654
29655 2019-03-25 Richard Biener <rguenther@suse.de>
29656
29657 PR tree-optimization/89789
29658 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29659 changes from non-undefined back to undefined.
29660
29661 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29662
29663 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29664 heap string and a gc string, but since this variable is unknown to
29665 ggc the gc string might get reused and corrupted. Fixed by always
29666 using a heap string.
29667
29668 2019-03-25 Richard Biener <rguenther@suse.de>
29669
29670 PR tree-optimization/89779
29671 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29672 to remove IV defs, delay actual removal.
29673 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29674 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29675 very end, properly also reset loop control IV information.
29676
29677 2019-03-25 Richard Biener <rguenther@suse.de>
29678
29679 PR tree-optimization/89802
29680 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29681 move EH data to folded stmt.
29682
29683 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29684
29685 * config/s390/s390-builtin-types.def: Remove few unused types and
29686 fix sort order for others.
29687
29688 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29689
29690 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29691 expected and found types with -mdebug during builtin matching.
29692
29693 2019-03-25 Richard Biener <rguenther@suse.de>
29694
29695 PR middle-end/89790
29696 * fold-const.c (operand_equal_p): Revert last change with
29697 updated comment.
29698
29699 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29700
29701 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29702 notes for the result of the __tls_get_addr calls.
29703 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29704
29705 2019-03-24 Jeff Law <law@redhat.com>
29706
29707 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29708
29709 PR rtl-optimization/87761
29710 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29711 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29712 as needed.
29713 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29714 rescans. Reprocess blocks as needed, calling df_analyze before
29715 reprocessing. Always call df_analyze before fixing up debug bind
29716 insns.
29717
29718 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29719
29720 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29721 big endian.
29722
29723 2019-03-22 Andrew Pinski <apinski@marvell.com>
29724
29725 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29726 attrribute for uxtw.
29727
29728 2019-03-26 Jeff Law <law@redhat.com>
29729
29730 PR rtl-optimization/87761
29731 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29732 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29733 (mips_split_move): Accept new INSN argument. Try to forward SRC
29734 into the next instruction.
29735 (mips_split_move_insn): Pass INSN through to mips_split_move.
29736
29737 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29738
29739 PR rtl-optimization/89676
29740 * lra-constraints.c (curr_insn_transform): Do match reload for
29741 early clobbers even if the match was successful.
29742
29743 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29744
29745 PR c++/87481
29746 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29747
29748 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29749
29750 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29751
29752 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29753
29754 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29755 <avx512>_fmsub_<mode>_mask3<round_name>,
29756 <avx512>_fnmadd_<mode>_mask3<round_name>,
29757 <avx512>_fnmsub_<mode>_mask3<round_name>,
29758 avx512f_vmfmadd_<mode>_mask3<round_name>,
29759 avx512f_vmfmsub_<mode>_mask3<round_name>,
29760 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29761 instead of register_operand and %v instead of v for match_operand 1.
29762 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29763 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29764 <round_nimm_predicate> instead of register_operand and %v instead of v
29765 for match_operand 1.
29766
29767 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29768 <avx512>_fmadd_<mode>_mask3<round_name>,
29769 <avx512>_fmsub_<mode>_mask<round_name>,
29770 <avx512>_fmsub_<mode>_mask3<round_name>,
29771 <avx512>_fnmadd_<mode>_mask<round_name>,
29772 <avx512>_fnmadd_<mode>_mask3<round_name>,
29773 <avx512>_fnmsub_<mode>_mask<round_name>,
29774 <avx512>_fnmsub_<mode>_mask3<round_name>,
29775 <avx512>_fmaddsub_<mode>_mask<round_name>,
29776 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29777 <avx512>_fmsubadd_<mode>_mask<round_name>,
29778 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29779 <round_nimm_predicate> instead of nonimmediate_operand.
29780 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29781 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29782 Use register_operand instead of <round_nimm_predicate> for the
29783 operand that needs to match output.
29784 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29785 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29786 Likewise. Formatting fixes.
29787
29788 PR target/89784
29789 * config/i386/i386.c (enum ix86_builtins): Remove
29790 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29791 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29792 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29793 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29794 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29795 __builtin_ia32_vfmsubss3_mask3): New builtins.
29796 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29797 avx512f_vmfmadd_<mode>_mask3<round_name>,
29798 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29799 *avx512f_vmfmsub_<mode>_mask<round_name>,
29800 avx512f_vmfmsub_<mode>_mask3<round_name>,
29801 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29802 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29803 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29804 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29805 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29806 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29807 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29808 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29809 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29810 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29811 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29812 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29813 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29814 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29815 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29816 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29817 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29818 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29819 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29820 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29821 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29822 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29823 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29824 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29825 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29826 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29827 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29828 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29829
29830 2019-03-21 Martin Sebor <msebor@redhat.com>
29831
29832 PR tree-optimization/89350
29833 * builtins.c (compute_objsize): Also ignore offsets whose upper
29834 bound is negative.
29835 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29836 (builtin_memref::builtin_memref): Initialize new member.
29837 Allow EXPR to be null.
29838 (builtin_memref::extend_offset_range): Replace local with a member.
29839 Avoid assuming pointer offsets are unsigned.
29840 (builtin_memref::set_base_and_offset): Determine base object
29841 before computing offset range.
29842 (builtin_access::builtin_access): Handle memset.
29843 (builtin_access::generic_overlap): Replace local with a member.
29844 (builtin_access::strcat_overlap): Same.
29845 (builtin_access::overlap): Same.
29846 (maybe_diag_overlap): Same.
29847 (maybe_diag_access_bounds): Same.
29848 (wrestrict_dom_walker::check_call): Handle memset.
29849 (check_bounds_or_overlap): Same.
29850
29851 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29852 Jakub Jelinek <jakub@redhat.com>
29853
29854 PR lto/89692
29855 * tree.c (fld_type_variant, fld_incomplete_type_of,
29856 fld_process_array_type): Call fld->pset.add and don't call
29857 add_tree_to_fld_list if it returns true.
29858 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29859 non-marked types from TYPE_NEXT_VARIANT list.
29860 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29861
29862 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29863
29864 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29865 to false, if true, don't alloc_entries during construction, but defer
29866 it to the first method that needs m_entries allocated.
29867 (hash_table::hash_table, hash_table::~hash_table,
29868 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29869 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29870 hash_table::clear_slot, hash_table::traverse_noresize,
29871 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29872 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29873 false.
29874 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29875 NO_INSERT instead of find_with_hash.
29876 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29877 hash_set::m_table): Add Lazy to template params of hash_table.
29878 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29879 * attribs.c (test_attribute_exclusions): Likewise.
29880 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29881 hash_set. Add tests for hash_set with Lazy = true.
29882
29883 2019-03-21 Richard Biener <rguenther@suse.de>
29884
29885 PR tree-optimization/89779
29886 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29887 checks with respect to released SSA names now having error_mark_node
29888 type.
29889 * fold-const.c (operand_equal_p): Likewise.
29890
29891 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29892
29893 PR target/89775
29894 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29895 available to ...
29896 (s390_optimize_register_info): Use global_not_special_regno_p to
29897 check for global regs.
29898
29899 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29900
29901 PR target/89752
29902 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29903 update this_alternative nor this_alternative_set.
29904
29905 2019-03-19 Jim Wilson <jimw@sifive.com>
29906
29907 PR target/89411
29908 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29909 align, size, offset. Use them to handle a BLKmode reference. Update
29910 comment.
29911 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29912
29913 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29914
29915 PR rtl-optimization/89768
29916 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29917 instead of GEN_INT.
29918 (unroll_loop_runtime_iterations): Likewise.
29919
29920 2019-03-19 Martin Sebor <msebor@redhat.com>
29921
29922 PR tree-optimization/89644
29923 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29924 rather than endptr as an indicator of nul-termination.
29925
29926 PR tree-optimization/89644
29927 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29928 arrays in determining sequence sizes in strncpy and stpncpy.
29929
29930 2019-03-19 Martin Liska <mliska@suse.cz>
29931
29932 PR middle-end/89737
29933 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29934 unlikely_edges if there's an edge that belongs to both these sets.
29935
29936 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29937
29938 PR target/89746
29939 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29940 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29941 go via a stack temporary.
29942
29943 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29944
29945 PR target/89378
29946 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29947 instead of gen_rtx_SUBREG.
29948 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29949
29950 2019-03-19 Richard Biener <rguenther@suse.de>
29951
29952 PR debug/88389
29953 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29954
29955 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
29956
29957 PR lto/87809
29958 PR lto/89335
29959 * tree.c (free_lang_data_in_decl): Do not free context of C++
29960 destrutors.
29961
29962 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29963
29964 PR target/89506
29965 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29966 subs for the first alternative except when operands[3] is 1.
29967
29968 PR target/89752
29969 * gimplify.c (gimplify_asm_expr): For output argument with
29970 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29971 diagnose error.
29972
29973 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
29974
29975 PR rtl-optimization/89753
29976 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29977 explicit unrolling factor even more robust.
29978
29979 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29980
29981 PR target/89726
29982 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29983 compensation use x2 += 1 instead of x2 -= -1 and when honoring
29984 signed zeros, do another copysign after the compensation.
29985
29986 2019-03-18 Martin Sebor <msebor@redhat.com>
29987
29988 PR tree-optimization/89720
29989 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29990 more conservatively, the same as anti-range.
29991
29992 2019-03-18 Richard Biener <rguenther@suse.de>
29993
29994 PR middle-end/88945
29995 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29996 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29997 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
29998 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29999
30000 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30001
30002 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30003 Extend queue to 1024 entries.
30004 Add "consumed" field.
30005 (gomp_print_output): Remove print_index parameter.
30006 Add final parameter.
30007 Change limit to unsigned.
30008 Use consumed field to implement circular buffer.
30009 Detect interrupted print in final pass.
30010 Flush output at the end.
30011 (run): Update gomp_print_output usage.
30012 (main): Initialize kernargs->output_data.consumed.
30013
30014 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30015
30016 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30017 calculation of the minimum number of scalar iterations for
30018 fully-predicated loops.
30019
30020 2019-03-18 Martin Jambor <mjambor@suse.cz>
30021
30022 PR tree-optimization/89546
30023 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30024 any propagation to its children took place.
30025
30026 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30027
30028 PR target/89627
30029 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30030 parameter, and make use of it.
30031 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30032
30033 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30034
30035 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30036 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30037 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30038 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30039 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30040 match what the ops is doing.
30041 (push_multi_fp_blink): Likewise.
30042 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30043 compiling for size and elf target.
30044 (arc_save_callee_enter): Adjust note to match what enter/leave
30045 operation does.
30046
30047 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30048
30049 * config/arc/arc.md (tst_movb): Fix constraint.
30050
30051 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30052
30053 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30054
30055 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30056
30057 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30058 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30059 reg_alloc_order references.
30060 (size_alloc_order): Define.
30061 (arc_adjust_reg_alloc_order): New function.
30062 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30063 order.
30064 (ADJUST_REG_ALLOC_ORDER): Define.
30065 (HONOR_REG_ALLOC_ORDER): Likewise.
30066
30067 2019-03-18 Richard Biener <rguenther@suse.de>
30068
30069 PR target/87561
30070 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30071 loads and stores a bit more.
30072
30073 2019-03-18 Richard Biener <rguenther@suse.de>
30074
30075 PR target/87561
30076 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30077 load pessimization to stores as well.
30078
30079 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30080
30081 PR middle-end/86979
30082 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30083 successor, use NULL as its av set.
30084
30085 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30086
30087 PR rtl-optimization/89721
30088 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30089
30090 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30091
30092 PR target/87532
30093 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30094 When handling vec_extract, use modular arithmetic to allow
30095 constant selectors greater than vector length.
30096 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30097 V1TImode vectors to have constant selector values greater than 0.
30098 Use modular arithmetic to compute vector index.
30099 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30100 index for in-memory vectors. Correct code generation for
30101 in-register vectors.
30102 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30103 compute index.
30104
30105 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30106
30107 PR c++/88534
30108 PR c++/88537
30109 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30110 VAR_DECL args.
30111
30112 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30113
30114 PR c++/89709
30115 * tree.c (inchash::add_expr): Strip any location wrappers.
30116 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30117 after hash verification.
30118
30119 PR debug/89704
30120 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30121 SIGN_EXTEND and ZERO_EXTEND.
30122
30123 2019-03-14 Jason Merrill <jason@redhat.com>
30124 Jakub Jelinek <jakub@redhat.com>
30125
30126 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30127 than if is_empty (*slot).
30128 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30129 existing elt and for elt removal.
30130 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30131 of already removed elt.
30132
30133 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30134
30135 PR target/89650
30136 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30137 REG_EH_REGION note.
30138
30139 2019-03-14 Martin Liska <mliska@suse.cz>
30140
30141 PR other/89712
30142 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30143
30144 2019-03-14 Richard Biener <rguenther@suse.de>
30145
30146 PR target/89711
30147 * config/i386/i386.c (make_resolver_func): Properly set
30148 DECL_CONTEXT on the RESULT_DECL.
30149 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30150
30151 2019-03-14 Richard Biener <rguenther@suse.de>
30152
30153 * gimple-pretty-print.c: Include cfgloop.h.
30154 (dump_gimple_phi): Adjust.
30155 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30156 (pp_cfg_jump): Adjust.
30157 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30158 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30159 (lower_phi_internal_fn): Remove.
30160 (verify_gimple_call): Remove IFN_PHI special-casing.
30161 (dump_function_to_file): Dump IL state.
30162 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30163 done to deal with PHI nodes being present in non-SSA state.
30164
30165 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30166
30167 PR ipa/89684
30168 * multiple_target.c (create_dispatcher_calls): Change
30169 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30170 In the node->iterate_referring loop, push *ref rather than ref, call
30171 ref->remove_reference () and always pass 0 to iterate_referring.
30172
30173 PR rtl-optimization/89679
30174 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30175 would contain a paradoxical SUBREG.
30176
30177 2019-03-14 Richard Biener <rguenther@suse.de>
30178
30179 PR tree-optimization/89710
30180 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30181 safe_dyn_cast.
30182
30183 2019-03-14 Martin Liska <mliska@suse.cz>
30184
30185 * coverage.c (coverage_begin_function): Stream also
30186 end_column.
30187 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30188 documentation about function declaration location.
30189 * gcov-dump.c (tag_function): Print whole range
30190 of function declaration.
30191 * gcov.c (struct function_info): Add end_column field.
30192 (function_info::function_info): Initialize it.
30193 (output_json_intermediate_file): Output {start,end}_column
30194 fields.
30195 (read_graph_file): Read end_column.
30196
30197 2019-03-14 Richard Biener <rguenther@suse.de>
30198
30199 PR middle-end/89698
30200 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30201 that the access types are similar.
30202
30203 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30204
30205 PR tree-optimization/89703
30206 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30207 aren't compatible also with builtin_decl_explicit. Check pure
30208 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30209 and BUILT_IN_STPNCPY{,_CHK}.
30210
30211 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30212
30213 PR target/89523
30214 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30215 addr32 prefix to VSIB address for X32.
30216 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30217 "%M2" to opcode.
30218 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30219 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30220 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30221 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30222 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30223 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30224 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30225 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30226 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30227 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30228 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30229 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30230 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30231 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30232 (*avx512f_scatterdi<mode>): Likewise.
30233
30234 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30235
30236 PR target/85860
30237 * lra-constraints.c (inherit_in_ebb): Update
30238 potential_reload_hard_regs along with live_hard_regs.
30239
30240 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30241
30242 PR debug/89498
30243 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30244 DWARF_OFFSET_SIZE.
30245 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30246
30247 2019-03-13 Martin Sebor <msebor@redhat.com>
30248
30249 PR tree-optimization/89662
30250 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30251 has a size.
30252
30253 2019-03-13 Richard Biener <rguenther@suse.de>
30254
30255 PR middle-end/89677
30256 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30257 throw FP expressions at tree-affine.
30258
30259 2019-03-14 Richard Biener <rguenther@suse.de>
30260
30261 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30262 dump negative integer constants using _Literal (type) -num.
30263
30264 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30265
30266 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30267 nonlocal_value member.
30268
30269 PR middle-end/88588
30270 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30271 (ipa_simd_modify_function_body): Handle PHIs.
30272
30273 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30274
30275 * config/s390/s390.c (s390_option_override_internal): Use more
30276 aggressive inlining parameters.
30277
30278 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30279
30280 * config/s390/3906.md: New file.
30281 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30282 (LONGRUNNING_THRESHOLD): Remove.
30283 (MAX_SCHED_MIX_SCORE): Decrease.
30284 (MAX_SCHED_MIX_DISTANCE): Decrease.
30285 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30286 (struct s390_sched_state): New struct to hold scheduling state.
30287 (S390_SCHED_STATE_NORMAL): Remove.
30288 (S390_SCHED_STATE_CRACKED): Remove.
30289 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30290 (s390_get_sched_attrmask): Use new attribute.
30291 (s390_get_unit_mask): Use new units.
30292 (s390_is_fpd): New function.
30293 (s390_is_fxd): New function.
30294 (s390_is_longrunning): New function.
30295 (s390_sched_score): Use new functions.
30296 (s390_sched_reorder): Likewise.
30297 (s390_sched_variable_issue): Rework and use new functions.
30298 (s390_sched_init): Use new functions.
30299 * config/s390/s390.h (s390_tune_attr): Add z14.
30300 * config/s390/s390.md: Add z14.
30301
30302 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30303
30304 * config/s390/2964.md: Update pipeline description.
30305 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30306 (LONGRUNNING_THRESHOLD): Remove.
30307 (LATENCY_FACTOR): Remove.
30308 (s390_get_unit_mask): Add unit.
30309 (s390_sched_score): Use fxd/fpd.
30310 (s390_sched_variable_issue): Use fxd/fpd.
30311
30312 2019-03-12 Martin Liska <mliska@suse.cz>
30313
30314 * config/i386/i386.c: Reword an error message.
30315
30316 2019-03-12 Martin Jambor <mjambor@suse.cz>
30317
30318 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30319 terminate with newline.
30320
30321 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30322
30323 PR target/52726
30324 * config/s390/s390.md (tabort): Use %wd instead of
30325 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30326 letters and periods.
30327 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30328 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30329 's with %< and %>.
30330
30331 PR middle-end/89663
30332 * builtins.c (expand_builtin_int_roundingfn,
30333 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30334 gcc_unreachable if validate_arglist fails.
30335
30336 2019-03-12 Richard Biener <rguenther@suse.de>
30337
30338 PR tree-optimization/89664
30339 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30340 free the occurance tree after the early out.
30341
30342 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30343
30344 PR middle-end/89655
30345 PR bootstrap/89656
30346 * vr-values.c (vr_values::update_value_range): If
30347 old_vr->varying_p (), don't update it, make new_vr also VARYING
30348 and return false.
30349
30350 2019-03-11 Martin Liska <mliska@suse.cz>
30351
30352 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30353 Fix double string quoting.
30354
30355 2019-03-11 Martin Liska <mliska@suse.cz>
30356
30357 * collect-utils.c (collect_wait): Wrap apostrophes
30358 in gcc internal format with %'.
30359 * collect2.c (main): Likewise.
30360 (scan_prog_file): Likewise.
30361 (scan_libraries): Likewise.
30362 * config/i386/i386.c (ix86_expand_call): Likewise.
30363 (ix86_handle_interrupt_attribute): Likewise.
30364 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30365 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30366 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30367 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30368 * symtab.c (symtab_node::verify_base): Likewise.
30369 * tree-cfg.c (verify_gimple_label): Likewise.
30370 * tree.c (verify_type_variant): Likewise.
30371
30372 2019-03-11 Martin Liska <mliska@suse.cz>
30373
30374 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30375 in a string format message and fix GNU coding style.
30376 (expand_builtin_set_thread_pointer): Likewise.
30377 * common/config/aarch64/aarch64-common.c
30378 (aarch64_rewrite_selected_cpu): Likewise.
30379 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30380 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30381 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30382 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30383 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30384 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30385 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30386 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30387 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30388 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30389 Likewise.
30390 * common/config/riscv/riscv-common.c
30391 (riscv_subset_list::parsing_subset_version): Likewise.
30392 (riscv_subset_list::parse_std_ext): Likewise.
30393 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30394 (riscv_subset_list::parse): Likewise.
30395 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30396 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30397 (aarch64_override_options_internal): Likewise.
30398 (aarch64_validate_mcpu): Likewise.
30399 (aarch64_validate_march): Likewise.
30400 (aarch64_validate_mtune): Likewise.
30401 (aarch64_override_options): Likewise.
30402 * config/alpha/alpha.c (alpha_option_override): Likewise.
30403 * config/arc/arc.c (arc_init): Likewise.
30404 (parse_mrgf_banked_regs_option): Likewise.
30405 (arc_override_options): Likewise.
30406 (arc_expand_builtin_aligned): Likewise.
30407 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30408 (arm_expand_builtin): Likewise.
30409 * config/arm/arm.c (arm_option_check_internal): Likewise.
30410 (arm_configure_build_target): Likewise.
30411 (arm_option_override): Likewise.
30412 (arm_options_perform_arch_sanity_checks): Likewise.
30413 (arm_handle_cmse_nonsecure_entry): Likewise.
30414 (arm_handle_cmse_nonsecure_call): Likewise.
30415 (arm_tls_referenced_p): Likewise.
30416 (thumb1_expand_prologue): Likewise.
30417 * config/avr/avr.c (avr_option_override): Likewise.
30418 * config/bfin/bfin.c (bfin_option_override): Likewise.
30419 * config/c6x/c6x.c (c6x_option_override): Likewise.
30420 * config/cr16/cr16.c (cr16_override_options): Likewise.
30421 * config/cris/cris.c (cris_option_override): Likewise.
30422 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30423 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30424 * config/darwin.c (darwin_override_options): Likewise.
30425 * config/frv/frv.c (frv_expand_builtin): Likewise.
30426 * config/h8300/h8300.c (h8300_option_override): Likewise.
30427 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30428 (ix86_option_override_internal): Likewise.
30429 (warn_once_call_ms2sysv_xlogues): Likewise.
30430 (ix86_expand_prologue): Likewise.
30431 (split_stack_prologue_scratch_regno): Likewise.
30432 (ix86_warn_parameter_passing_abi): Likewise.
30433 * config/ia64/ia64.c (fix_range): Likewise.
30434 * config/m68k/m68k.c (m68k_option_override): Likewise.
30435 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30436 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30437 (mips_set_compression_mode): Likewise.
30438 * config/mmix/mmix.c (mmix_option_override): Likewise.
30439 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30440 * config/msp430/msp430.c (msp430_option_override): Likewise.
30441 * config/nds32/nds32.c (nds32_option_override): Likewise.
30442 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30443 (nios2_option_override): Likewise.
30444 (nios2_expand_custom_builtin): Likewise.
30445 * config/nvptx/mkoffload.c (main): Likewise.
30446 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30447 * config/pa/pa.c (fix_range): Likewise.
30448 (pa_option_override): Likewise.
30449 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30450 (riscv_option_override): Likewise.
30451 * config/rl78/rl78.c (rl78_option_override): Likewise.
30452 * config/rs6000/aix61.h: Likewise.
30453 * config/rs6000/aix71.h: Likewise.
30454 * config/rs6000/aix72.h: Likewise.
30455 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30456 * config/rs6000/freebsd64.h: Likewise.
30457 * config/rs6000/linux64.h: Likewise.
30458 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30459 (rs6000_expand_zeroop_builtin): Likewise.
30460 (rs6000_expand_mtfsb_builtin): Likewise.
30461 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30462 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30463 (rs6000_invalid_builtin): Likewise.
30464 (rs6000_expand_split_stack_prologue): Likewise.
30465 * config/rs6000/rtems.h: Likewise.
30466 * config/rx/rx.c (valid_psw_flag): Likewise.
30467 (rx_expand_builtin): Likewise.
30468 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30469 * config/s390/s390.c (s390_expand_builtin): Likewise.
30470 (s390_function_profiler): Likewise.
30471 (s390_option_override_internal): Likewise.
30472 (s390_option_override): Likewise.
30473 * config/sh/sh.c (sh_option_override): Likewise.
30474 (sh_builtin_saveregs): Likewise.
30475 (sh_fix_range): Likewise.
30476 * config/sh/vxworks.h: Likewise.
30477 * config/sparc/sparc.c (sparc_option_override): Likewise.
30478 * config/spu/spu.c (spu_option_override): Likewise.
30479 (fix_range): Likewise.
30480 * config/visium/visium.c (visium_option_override): Likewise.
30481 (visium_handle_interrupt_attr): Likewise.
30482 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30483 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30484 (dbg_cnt_process_opt): Likewise.
30485 * dwarf2out.c (output_dwarf_version): Likewise.
30486 * except.c (expand_eh_return): Likewise.
30487 * gcc.c (defined): Likewise.
30488 (driver_handle_option): Likewise.
30489 (process_command): Likewise.
30490 (compare_files): Likewise.
30491 (driver::prepare_infiles): Likewise.
30492 (driver::do_spec_on_infiles): Likewise.
30493 (driver::maybe_run_linker): Likewise.
30494 * omp-offload.c (oacc_parse_default_dims): Likewise.
30495 * opts-global.c (handle_common_deferred_options): Likewise.
30496 * opts.c (parse_sanitizer_options): Likewise.
30497 (common_handle_option): Likewise.
30498 (enable_warning_as_error): Likewise.
30499 * passes.c (enable_disable_pass): Likewise.
30500 * plugin.c (parse_plugin_arg_opt): Likewise.
30501 (default_plugin_dir_name): Likewise.
30502 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30503 (default_pch_valid_p): Likewise.
30504 * toplev.c (init_asm_output): Likewise.
30505 (process_options): Likewise.
30506 (toplev::run_self_tests): Likewise.
30507 * tree-cfg.c (verify_gimple_call): Likewise.
30508 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30509 (tree_inlinable_function_p): Likewise.
30510 * var-tracking.c (vt_find_locations): Likewise.
30511
30512 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30513
30514 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30515 only on the else branch.
30516
30517 2019-03-11 Martin Liska <mliska@suse.cz>
30518
30519 * gcov.c (output_intermediate_json_line): Print function
30520 name of each line.
30521 (output_json_intermediate_file): Add new argument.
30522 * doc/gcov.texi: Document the change.
30523
30524 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30525
30526 PR rtl-optimization/89588
30527 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30528 explicit unrolling factor more robust.
30529
30530 2019-03-11 Richard Biener <rguenther@suse.de>
30531
30532 PR tree-optimization/89649
30533 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30534 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30535 on the prolog and epilog loops.
30536 (vect_loop_versioning): Return copy of loop.
30537 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30538 on the non-vectorized version of the loop.
30539
30540 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30541
30542 PR target/68924
30543 * config/i386/sse.md (*vec_extractv2di_0_sse):
30544 Add (=r,x) alternative and corresponding splitter.
30545
30546 2019-03-10 Martin Jambor <mjambor@suse.cz>
30547
30548 PR tree-optimization/85762
30549 PR tree-optimization/87008
30550 PR tree-optimization/85459
30551 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30552 it points to if there is a type changing MEM_REF. Adjust all callers.
30553 (build_accesses_from_assign): Disable total scalarization if
30554 contains_vce_or_bfcref_p returns true through the new parameter, for
30555 both rhs and lhs.
30556
30557 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30558
30559 PR c/88568
30560 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30561 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30562
30563 PR target/79645
30564 * common.opt (fdiagnostics-show-labels,
30565 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30566 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30567 gas-locview-support, ginline-points, ginternal-reset-location-views):
30568 Terminate description text with a dot.
30569 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30570 * config/mcore/mcore.opt (m210, m340): Likewise.
30571 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30572 mnops=): Start description text with a capital letter.
30573 * config/arc/arc.opt (msize-level=): Likewise.
30574 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30575 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30576 mnewlib): Likewise.
30577 * config/ft32/ft32.opt (msim): Likewise.
30578 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30579 (mnodiv, mnopm): Terminate description text with a dot.
30580 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30581 a colon.
30582 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30583 Likewise.
30584 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30585 text.
30586
30587 PR rtl-optimization/89634
30588 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30589 are modified in BB_END (e->src) instruction.
30590
30591 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30592
30593 PR target/79926
30594 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30595 messages more amenable to translation, and improve wording.
30596
30597 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30598
30599 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30600 ud- and du-chains between phases.
30601
30602 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30603
30604 PR debug/89631
30605 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30606 instead of POLY_INT_CST.
30607
30608 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30609
30610 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30611 requirement.
30612
30613 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30614
30615 PR target/68924
30616 PR target/78782
30617 PR target/87558
30618 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30619 (_mm_storeu_si64): Ditto.
30620
30621 2019-03-08 Martin Liska <mliska@suse.cz>
30622
30623 PR target/86952
30624 * config/i386/i386.c (ix86_option_override_internal): Disable
30625 jump tables when retpolines are used.
30626
30627 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30628
30629 PR go/63560
30630 * ipa-split.c (execute_split_functions): Do not split
30631 'noinline' or 'section' function.
30632
30633 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30634
30635 PR target/79846
30636 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30637 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30638 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30639
30640 PR ipa/80000
30641 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30642 from diagnostics. Formatting fixes.
30643
30644 PR target/85665
30645 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30646 warn_odr diagnostics.
30647
30648 PR other/80058
30649 * lra-constraints.c (process_alt_operands): Avoid one space before
30650 " at the end of line and another after " on another line in a string
30651 literal.
30652 * attribs.c (handle_dll_attribute): Likewise.
30653 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30654
30655 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30656 warning_at or inform messages in G_() if there is no ?:.
30657
30658 PR tree-optimization/89550
30659 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30660 returned true. Formatting fixes.
30661 (expand_builtin_strnlen): Formatting fixes.
30662 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30663 if warning_at returned true.
30664 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30665
30666 2019-03-08 Richard Biener <rguenther@suse.de>
30667
30668 PR middle-end/89578
30669 * cfgloop.h (struct loop): Add owned_clique field.
30670 * cfgloopmanip.c (copy_loop_info): Copy it.
30671 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30672 cliques.
30673 * tree-inline.c (copy_loops): Remap owned_clique.
30674 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30675 * lto-streamer-out.c (output_cfg): Likewise.
30676
30677 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30678
30679 PR target/80190
30680 * config/darwin.c: Include intl.h.
30681 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30682 composing the message out of two separate parts.
30683
30684 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30685
30686 PR target/80003
30687 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30688 doesn't start with a capital letter and doesn't end with a dot.
30689 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30690 with a capital letter.
30691 (ix86_mangle_function_version_assembler_name): Likewise.
30692 (ix86_generate_version_dispatcher_body): Likewise.
30693 (fold_builtin_cpu): Likewise.
30694 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30695 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30696 translators, wrap full type name in %qs.
30697
30698 PR translation/79999
30699 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30700 depend clause with source (or sink) modifier.
30701 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30702
30703 PR target/89602
30704 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30705 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30706 (avx512f_load<mode>_mask): New define_expand.
30707 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30708 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30709 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30710 __builtin_ia32_movess_mask): New builtins.
30711 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30712 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30713 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30714 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30715
30716 2019-03-07 Martin Jambor <mjambor@suse.cz>
30717
30718 PR lto/87525
30719 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30720 for extern inline functions.
30721
30722 2019-03-07 Martin Jambor <mjambor@suse.cz>
30723
30724 PR ipa/88235
30725 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30726 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30727 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30728 have multiple callees. At the end check if declarations match as
30729 opposed to cgraph_nodes.
30730
30731 2019-03-07 Martin Liska <mliska@suse.cz>
30732
30733 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30734 which is equivalent to searching for this in clones chain.
30735 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30736 names with a neighbour and special case first node in a chain.
30737
30738 2019-01-25 Jason Merrill <jason@redhat.com>
30739
30740 PR c++/80916 - spurious "static but not defined" warning.
30741 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30742 for an internal symbol with DECL_EXTERNAL.
30743
30744 2019-04-07 Richard Biener <rguenther@suse.de>
30745
30746 PR middle-end/89618
30747 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30748 * tree-inline.c (copy_loops): Simplify.
30749
30750 2019-03-07 Martin Liska <mliska@suse.cz>
30751
30752 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30753
30754 2019-03-07 Richard Biener <rguenther@suse.de>
30755
30756 PR tree-optimization/89595
30757 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30758 stmt iterator as reference, take boolean output parameter to
30759 indicate whether the stmt was removed and thus the iterator
30760 already advanced.
30761 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30762 stmts created by folding.
30763
30764 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30765
30766 PR c++/89585
30767 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30768 at toplevel.
30769
30770 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30771
30772 PR rtl-optimization/88845
30773 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30774 LRA.
30775 * lra.c (remove_scratches_1): New function.
30776 (remove_scratches): Use it.
30777 (lra_emit_move): Likewise.
30778
30779 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30780
30781 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30782 unaligned_access variable.
30783 * config/arc/arc.c (arc_override_options): Set unaligned access
30784 default on for HS CPUs.
30785 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30786
30787 2019-03-06 Martin Liska <mliska@suse.cz>
30788
30789 PR gcov-profile/89577
30790 * doc/gcov.texi: Prefer to use --coverage.
30791 * doc/sourcebuild.texi: Likewise.
30792
30793 2019-03-02 Jason Merrill <jason@redhat.com>
30794
30795 PR c++/86485 - -Wmaybe-unused with empty class ?:
30796 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30797
30798 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30799
30800 PR target/89587
30801 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30802 if_multiarch.
30803
30804 PR middle-end/89590
30805 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30806 exactly one argument.
30807
30808 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30809 Richard Sandiford <richard.sandiford@arm.com>
30810
30811 PR tree-optimization/89570
30812 * match.pd (vec_cond into cond_op simplification): Don't use
30813 get_conditional_internal_fn, use as_internal_fn (cond_op).
30814
30815 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30816
30817 PR target/89222
30818 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30819 to decide when to split off a non-zero offset from a symbol.
30820 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30821 in function symbols.
30822
30823 2019-03-05 Richard Biener <rguenther@suse.de>
30824
30825 PR tree-optimization/89594
30826 * tree-if-conv.c (pass_if_conversion::execute): Handle
30827 case where .LOOP_VECTORIZED_FUNCTION was removed.
30828
30829 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30830
30831 PR bootstrap/89560
30832 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30833 instead alloca it only when needed with the needed size.
30834
30835 PR tree-optimization/89570
30836 * match.pd (vec_cond into cond_op simplification): Guard with
30837 vectorized_internal_fn_supported_p test and #if GIMPLE.
30838
30839 PR tree-optimization/89566
30840 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30841 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30842 Punt if get_user_idx_format succeeds, but idx_format argument is
30843 not provided or doesn't have pointer type, or if idx_args is above
30844 number of provided arguments.
30845
30846 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30847
30848 PR tree-optimization/89437
30849 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30850
30851 2019-03-04 Richard Biener <rguenther@suse.de>
30852
30853 PR middle-end/89572
30854 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30855 safe_dyn_cast.
30856
30857 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30858
30859 PR tree-optimization/89487
30860 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30861 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30862 (distribute_loop): Don't do runtime alias check if there is non-
30863 addressable data reference.
30864 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30865 is a register variable.
30866
30867 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30868
30869 PR target/89506
30870 * config/arm/arm.md (cmpsi2_addneg): Use
30871 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30872 If operands[2] is 0 or INT_MIN, force use of subs.
30873 (*compare_scc splitter): Use gen_int_mode.
30874 (*negscc): Likewise.
30875 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30876
30877 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30878 Monk Chiang <sh.chiang04@gmail.com>
30879
30880 * common/config/riscv/riscv-common.c: Include sstream.
30881 (riscv_subset_list::to_string): New.
30882 (riscv_arch_str): Likewise.
30883 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30884 * config.in: Regen.
30885 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30886 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30887 (riscv_emit_attribute): New.
30888 (riscv_file_start): Emit attribute if needed.
30889 (riscv_option_override): Init riscv_emit_attribute_p.
30890 * config/riscv/riscv.opt (mriscv-attribute): New option.
30891 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30892 * configure: Regen.
30893 * doc/install.texi: Document --with-riscv-attribute.
30894 * doc/invoke.texi: Document -mriscv-attribute.
30895
30896 * common/config/riscv/riscv-common.c:
30897 Include config/riscv/riscv-protos.h.
30898 (INCLUDE_STRING): Defined.
30899 (RISCV_DONT_CARE_VERSION): Defined.
30900 (riscv_subset_t): Declare.
30901 (riscv_subset_t::riscv_subset_t): New.
30902 (riscv_subset_list): Declare.
30903 (riscv_subset_list::riscv_subset_list): New.
30904 (riscv_subset_list::~riscv_subset_list): Likewise.
30905 (riscv_subset_list::parsing_subset_version): Likewise.
30906 (riscv_subset_list::parse_std_ext): Likewise.
30907 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30908 (riscv_subset_list::add): Likewise.
30909 (riscv_subset_list::lookup): Likewise.
30910 (riscv_subset_list::xlen): Likewise.
30911 (riscv_subset_list::parse): Likewise.
30912 (riscv_supported_std_ext): Likewise.
30913 (current_subset_list): Likewise.
30914 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30915 parse.
30916
30917 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30918
30919 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30920 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30921 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30922
30923 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30924
30925 PR rtl-optimization/85899
30926 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30927 fallthru edges leading to the exit block.
30928
30929 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30930
30931 PR target/89517
30932 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30933 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30934
30935 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30936
30937 PR tree-optimization/89535
30938 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30939 for each operand. Calculate the fallback choice for mask operands
30940 and pass it to vect_get_vec_def_for_operand.
30941
30942 2019-03-01 Richard Biener <rguenther@suse.de>
30943
30944 PR middle-end/89541
30945 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30946 get virtual operands.
30947 (get_expr_operands): Handle CONST_DECL like other decls.
30948
30949 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30950
30951 PR middle-end/89503
30952 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30953 on DECL_P and EXPR_P.
30954
30955 2019-03-01 Richard Biener <rguenther@suse.de>
30956
30957 PR middle-end/89497
30958 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30959 argument, defaulted to zero.
30960 * passes.c (execute_function_todo): Pass down SSA update flags
30961 to cleanup_tree_cfg.
30962 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30963 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30964 form if requested.
30965 (cleanup_tree_cfg): Get and pass down SSA update flags.
30966
30967 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30968
30969 PR bootstrap/89539
30970 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30971 early_lto_debug argument.
30972
30973 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
30974
30975 PR tree-optimization/89536
30976 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30977 only whether bit #0 of the value is 0 instead of the entire value.
30978
30979 2019-02-28 Marek Polacek <polacek@redhat.com>
30980
30981 PR c++/87068 - missing diagnostic with fallthrough statement.
30982 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30983 at the end of a seq, save its location to walk_stmt_info.
30984 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30985 a switch.
30986
30987 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
30988
30989 PR lto/88585
30990 * tree.c (find_atomic_core_type): Move ahead in file.
30991 (check_base_type): Correctly compare alignments of atomic types.
30992
30993 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
30994
30995 PR target/89455
30996 * config/i386/i386.c (get_builtin_code_for_version): Identify
30997 Westmere from PCLMUL, instead of AES.
30998
30999 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31000
31001 PR target/89434
31002 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31003 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31004 -UINTVAL (...).
31005
31006 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31007
31008 PR target/88530
31009 * config/aarch64/aarch64-option-extensions.def: Document it.
31010 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31011 if empty hwcaps.
31012
31013 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31014
31015 PR c/89520
31016 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31017 builtins if they don't have a single scalar floating point argument.
31018 Formatting fixes.
31019
31020 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31021
31022 PR rtl-optimization/89490
31023 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31024 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31025 block section is not mergeable.
31026
31027 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31028
31029 PR target/70341
31030 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31031 old define_insn to ...
31032 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31033 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31034 Rename old define_insn to ...
31035 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31036 (thumb2_casesi_internal_pic): New define_expand. Rename old
31037 define_insn to ...
31038 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31039 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31040 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31041
31042 2019-02-27 Richard Biener <rguenther@suse.de>
31043
31044 PR debug/88878
31045 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31046
31047 2019-02-27 Richard Biener <rguenther@suse.de>
31048
31049 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31050 building.
31051
31052 2019-02-27 Richard Biener <rguenther@suse.de>
31053
31054 PR debug/88878
31055 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31056 parameter, prefix section name with .gnu.debuglto_ if true.
31057 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31058 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31059
31060 2019-02-27 Richard Biener <rguenther@suse.de>
31061
31062 PR debug/89514
31063 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31064 rather than on use_debug_types, doing what output_die does.
31065 (value_format): Likewise.
31066
31067 2019-02-27 Martin Jambor <mjambor@suse.cz>
31068 Martin Sebor <msebor@redhat.com>
31069
31070 * doc/invoke.texi (Warning Options): Reword description of
31071 -Wno-absolute-value.
31072
31073 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31074
31075 PR tree-optimization/89280
31076 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31077 builtin_setjmp_setup_bb): New functions.
31078 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31079 When visiting __builtin_setjmp_setup block, queue in special
31080 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31081 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31082 from visited after the loop if they don't have any visited successor
31083 blocks.
31084
31085 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31086
31087 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31088 New function.
31089 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31090
31091 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31092
31093 PR c++/89507
31094 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31095 with types other than sizetype/ssizetype.
31096
31097 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31098
31099 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31100 (enum sparc_processor_type): ...this.
31101 (enum sparc_code_model_type): New enumeration type.
31102 (enum sparc_memory_model_type): Tweak comments.
31103 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31104 (mtune): Likewise.
31105 (mcmodel): Use sparc_code_model enumeration and variable.
31106 (sparc_code_model): New enumeration.
31107 (mdebug): Add Undocumented marker.
31108 * config/sparc/sparc.h (enum cmodel): Delete.
31109 (sparc_cmodel): Likewise.
31110 (TARGET_CM_MEDLOW): Adjust to above renaming.
31111 (TARGET_CM_MEDMID): Likewise.
31112 (TARGET_CM_MEDANY): Likewise.
31113 (TARGET_CM_EMBMEDANY): Likewise.
31114 * config/sparc/sparc.c (sparc_cmodel): Delete.
31115 (sparc_option_override): Remove string/value mapping support for the
31116 code model. Move code and memory model support to after the handling
31117 of target flags. Do private machine setup last.
31118 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31119 (sparc_legitimize_reload_address): Likewise.
31120 (sparc_output_mi_thunk): Likewise.
31121 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31122
31123 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31124
31125 PR tree-optimization/89500
31126 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31127 (handle_builtin_strlen): Remove noncst_bound variable. Always
31128 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31129 cst if the first cst bytes starting at x are known to be non-zero,
31130 even if the string is not zero terminated. Don't try to modify
31131 *si for strnlen. Update strlen_to_stridx only for strlen or if
31132 we can prove strnlen returns the same value as strlen would.
31133
31134 2019-02-26 Martin Liska <mliska@suse.cz>
31135
31136 * alloc-pool.h (struct pool_usage): Remove extra
31137 print_dash_line.
31138 * bitmap.h (struct bitmap_usage): Likewise.
31139 * ggc-common.c (struct ggc_usage): Likewise.
31140 * mem-stats.h (struct mem_usage): Likewise.
31141 (mem_alloc_description::dump): Print dash lines
31142 here and repeat header at the end of a table report.
31143 It's then more readable.
31144 * tree-phinodes.c (phinodes_print_statistics): Make
31145 horizontal alignment.
31146 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31147 * vec.c (struct vec_usage): Remove extra print_dash_line.
31148 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31149
31150 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31151
31152 * doc/extend.texi (__builtin_object_size):
31153 Use @pxref instead of @xref inside parenthesis.
31154 (__builtin_has_attribute): Add missing comma after @xref.
31155 (__builtin_object_size): Ditto.
31156 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31157
31158 2019-02-26 Jeff Law <law@redhat.com>
31159
31160 PR rtl-optimization/87761
31161 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31162 detect obviously dead insns and delete them.
31163
31164 2019-02-26 Richard Biener <rguenther@suse.de>
31165
31166 PR tree-optimization/89505
31167 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31168 to handle restrict pointed-to vars with multiple subvars
31169 correctly.
31170
31171 2019-02-26 Richard Biener <rguenther@suse.de>
31172
31173 PR tree-optimization/89489
31174 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31175
31176 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31177
31178 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31179 and move around comment.
31180 <BIT_AND_EXPR>: Likewise.
31181 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31182
31183 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31184
31185 PR target/89474
31186 * config/i386/i386.c (remove_partial_avx_dependency): Call
31187 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31188 after changing possibly many instructions to use that pseudo. Fix up
31189 insertion of v4sf_const0 setter at the start of bb.
31190
31191 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31192
31193 PR c/80409
31194 * doc/extend.texi (Variadic Pointer Args): New section.
31195
31196 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31197 Martin Sebor <msebor@gmail.com>
31198
31199 * common.opt (Wattribute-alias): Likewise.
31200 * doc/invoke.texi (Option Summary): List general form of
31201 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31202 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31203 Add cross-references.
31204 (-Wattribute-alias): Rewrite and correct default. Mention
31205 considered attributes (same as for -Wmissing-attributes).
31206
31207 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31208
31209 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31210 (_mm_cvtpd_ps): Likewise.
31211 (_mm_cvttpd_epi32): Likewise.
31212
31213 PR target/89338
31214 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31215 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31216
31217 PR target/89339
31218 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31219
31220 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31221
31222 PR target/88530
31223 * common/config/aarch64/aarch64-common.c
31224 (struct aarch64_option_extension): Add is_synthetic.
31225 (all_extensions): Use it.
31226 (TARGET_OPTION_INIT_STRUCT): Define hook.
31227 (struct gcc_targetm_common): Moved to end.
31228 (all_extensions_by_on): New.
31229 (opt_ext_cmp, typedef opt_ext): New.
31230 (aarch64_option_init_struct): New.
31231 (aarch64_contains_opt): New.
31232 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31233 * config/aarch64/aarch64-option-extensions.def
31234 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31235 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31236 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31237 Set is_synthetic to false.
31238 (crypto): Set is_synthetic to true.
31239 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31240 SYNTHETIC.
31241
31242 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31243
31244 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31245 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31246 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31247 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31248 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31249 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31250 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31251 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31252 Rename ...
31253 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31254 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31255 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31256 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31257 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31258 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31259 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31260 vfmlsl_laneq_high_f16): ... To this.
31261 * config/arm/neon.md: Update comments.
31262
31263 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31264
31265 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31266 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31267 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31268 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31269 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31270 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31271 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31272 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31273 Rename ...
31274 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31275 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31276 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31277 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31278 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31279 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31280 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31281 vfmlslq_laneq_high_f16): ... To this.
31282
31283 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31284
31285 PR rtl-optimization/86096
31286 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31287 comparing mw_order values.
31288
31289 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31290
31291 PR target/89434
31292 * config/arm/arm.md (*subsi3_carryin_const): Use
31293 arm_neg_immediate_operand predicate instead of
31294 arm_not_immediate_operand, "L" constraint instead of "K" and
31295 print it using %n2 instead of %B2.
31296 (*subsi3_carryin_const0): New define_insn.
31297 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31298 instead of arm_not_operand and "I" constraint instead of "K" and
31299 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31300 another match_operand and in the condition check that it is negation
31301 of operands[2].
31302 (*subsi3_carryin_compare_const0): New define_ins.
31303 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31304 *subsi3_carryin_const.
31305 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31306 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31307
31308 PR target/89438
31309 * config/arm.vfp.md (*negdf2_vfp): Use
31310 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31311 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31312
31313 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31314
31315 PR rtl-optimization/89445
31316 * simplify-rtx.c (simplify_ternary_operation): Don't use
31317 simplify_merge_mask on operands that may trap.
31318 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31319 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31320 second operand is CONST_VECTOR, check if any element could be zero.
31321 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31322 their operands can trap.
31323
31324 2019-02-23 Martin Sebor <msebor@redhat.com>
31325
31326 * gimple-ssa-sprintf.c (target_strtol): Rename...
31327 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31328 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31329 check for range error.
31330
31331 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31332
31333 PR driver/69471
31334 * opts-common.c (prune_options): Also prune joined switches
31335 with Negative and RejectNegative.
31336 * config/i386/i386.opt (march=): Add Negative(march=).
31337 (mtune=): Add Negative(mtune=).
31338 * doc/options.texi: Document Negative used together with Joined
31339 and RejectNegative.
31340
31341 2019-02-22 Martin Sebor <msebor@redhat.com>
31342
31343 * doc/extend.texi (Other Builtins): Add
31344 __builtin_is_constant_evaluated.
31345
31346 2019-02-22 Richard Biener <rguenther@suse.de>
31347
31348 PR tree-optimization/87609
31349 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31350
31351 2019-02-22 Jeff Law <law@redhat.com>
31352
31353 PR rtl-optimization/87761
31354 * config/mips/mips.md: Add new combiner pattern to recognize
31355 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31356
31357 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31358
31359 PR target/89324
31360 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31361 destination register in peepholes generating patterns for ADDS/SUBS.
31362 (add<mode>3_compare0,
31363 *addsi3_compare0_uxtw, add<mode>3_compareC,
31364 add<mode>3_compareV_imm, add<mode>3_compareV,
31365 *adds_<optab><ALLX:mode>_<GPI:mode>,
31366 *subs_<optab><ALLX:mode>_<GPI:mode>,
31367 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31368 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31369 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31370 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31371 sub<mode>3_compare1): Allow stack pointer for source register.
31372 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31373
31374 2019-02-22 Martin Sebor <msebor@redhat.com>
31375
31376 PR tree-optimization/88993
31377 PR tree-optimization/88853
31378 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31379 New helper.
31380 (sprintf_dom_walker::call_info::is_string_func): New helper.
31381 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31382 for formatted string functions.
31383 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31384
31385 2019-02-22 Martin Sebor <msebor@redhat.com>
31386
31387 PR c/89425
31388 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31389 unreachable subexpressions.
31390
31391 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31392 Hongtao Liu <hongtao.liu@intel.com>
31393 Sunil K Pandey <sunil.k.pandey@intel.com>
31394
31395 PR target/87007
31396 * config/i386/i386-passes.def: Add
31397 pass_remove_partial_avx_dependency.
31398 * config/i386/i386-protos.h
31399 (make_pass_remove_partial_avx_dependency): New.
31400 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31401 New function.
31402 (pass_data_remove_partial_avx_dependency): New.
31403 (pass_remove_partial_avx_dependency): Likewise.
31404 (make_pass_remove_partial_avx_dependency): Likewise.
31405 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31406 (*extendsfdf2): Add avx_partial_xmm_update.
31407 (truncdfsf2): Likewise.
31408 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31409 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31410
31411 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31412
31413 PR middle-end/85598
31414 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31415 analysis for pass.
31416
31417 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31418
31419 PR target/89444
31420 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31421 (PTA_SKYLAKE): Add PTA_AES.
31422 (PTA_GOLDMONT): Likewise.
31423
31424 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31425
31426 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31427 instruction if enabled.
31428 (aarch64_override_options): Remove reference to return address key.
31429
31430 2019-02-22 Richard Biener <rguenther@suse.de>
31431
31432 PR tree-optimization/89440
31433 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31434 not necessary assert.
31435
31436 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31437
31438 PR fortran/72741
31439 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31440 (oacc_replace_fn_attrib_attr): ... this new function.
31441 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31442 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31443
31444 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31445
31446 * config/arm/arm-cpus.in (ares): Rename to...
31447 (neoverse-n1): ... This. Add ares as alias.
31448 * config/arm/arm-tables.opt: Regenerate.
31449 * config/arm/arm-tune.md: Likewise.
31450 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31451
31452 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31453
31454 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31455 * config/aarch64/aarch64-tune.md: Regenerate.
31456 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31457
31458 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31459
31460 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31461 (neoversen1_tunings): ... This.
31462 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31463 (neoverse-n1): New CPU.
31464 * config/aarch64/aarch64-tune.md: Regenerate.
31465 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31466
31467 2019-02-22 Richard Biener <rguenther@suse.de>
31468
31469 PR middle-end/87609
31470 * cfghooks.h (dependence_hash): New typedef.
31471 (struct copy_bb_data): New type.
31472 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31473 (duplicate_block): Likewise.
31474 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31475 (copy_bbs): Create and pass down copy_bb_data.
31476 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31477 (rtl_duplicate_bb): Likewise.
31478 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31479 remap dependence info.
31480
31481 2019-02-22 Richard Biener <rguenther@suse.de>
31482
31483 PR tree-optimization/87609
31484 * tree-core.h (tree_base): Document special clique values.
31485 * tree-inline.c (remap_dependence_clique): Do not use the
31486 special clique value of one.
31487 (maybe_set_dependence_info): Use clique one.
31488 (clear_dependence_clique): New callback.
31489 (compute_dependence_clique): Clear clique one from all refs
31490 before assigning it (again).
31491
31492 2019-02-21 Martin Sebor <msebor@redhat.com>
31493
31494 * doc/extend.texi (__clear_cache): Correct signature.
31495
31496 2019-02-21 Ian Lance Taylor <iant@golang.org>
31497
31498 PR go/89170
31499 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31500 than output_constant_def.
31501 (add_constant_to_table): New static function.
31502 (output_constant_def): Call add_constant_to_table.
31503 (tree_output_constant_def): Likewise.
31504
31505 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31506
31507 PR c++/89285
31508 * builtins.c (fold_builtin_arith_overflow): If first two args are
31509 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31510 to ifn.
31511
31512 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31513
31514 PR target/87412
31515 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31516 error for -mindirect-branch/-mfunction-return with incompatible
31517 -fcf-protection.
31518
31519 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31520
31521 PR bootstrap/88714
31522 * constraints.md (q): Remove.
31523 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31524 instead of q.
31525
31526 2019-02-21 Martin Jambor <mjambor@suse.cz>
31527
31528 PR hsa/89302
31529 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31530 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31531 (omp_adjust_for_condition): ...here. Added necessary parameters.
31532 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31533 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31534 proper values to new parameters of omp_adjust_for_condition.
31535
31536 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31537
31538 PR middle-end/89412
31539 * expr.c (expand_assignment): If result is a MEM, use change_address
31540 instead of simplify_gen_subreg.
31541
31542 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31543 David Malcolm <dmalcolm@redhat.com>
31544
31545 PR middle-end/89091
31546 * fold-const.c (decode_field_reference): Return NULL_TREE if
31547 lang_hooks.types.type_for_size returns NULL. Check it before
31548 overwriting *exp_. Use return NULL_TREE instead of return 0.
31549
31550 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31551
31552 PR middle-end/88074
31553 PR middle-end/89415
31554 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31555 buggy mpc_norm.
31556
31557 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31558
31559 PR target/89397
31560 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31561 TARGET_SSE in addition to TARGET_SSE_MATH.
31562
31563 (ix86_excess_precision): Ditto.
31564 (ix86_float_exceptions_rounding_supported_p): Ditto.
31565 (use_rsqrt_p): Ditto.
31566 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31567
31568 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31569
31570 PR c/89410
31571 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31572 linenum_arith_t when determining if two adjacent line spans are
31573 close enough to merge.
31574 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31575 lines within each line_span.
31576
31577 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31578
31579 PR target/86487
31580 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31581 paradoxical SUBREGS.
31582
31583 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31584
31585 PR target/88100
31586 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31587 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31588 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31589 range checking it.
31590
31591 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31592
31593 * config/gcn/gcn.c (print_operand): Fix typo.
31594
31595 2019-02-19 Richard Biener <rguenther@suse.de>
31596
31597 PR middle-end/88074
31598 * toplev.c (do_compile): Initialize mpfr's exponent range
31599 based on available float modes.
31600
31601 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31602
31603 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31604 as long as the epilogue isn't completed.
31605
31606 2019-02-18 Martin Sebor <msebor@redhat.com>
31607
31608 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31609 __has_cpp_attribute, and __has_include.
31610
31611 2019-02-18 Martin Sebor <msebor@redhat.com>
31612
31613 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31614
31615 2019-02-18 Martin Sebor <msebor@redhat.com>
31616
31617 PR middle-end/89294
31618 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31619 expression.
31620 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31621
31622 2019-02-18 Richard Biener <rguenther@suse.de>
31623
31624 PR tree-optimization/89296
31625 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31626 of no-warning flag to cases that might emit the bogus warning.
31627
31628 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31629
31630 PR bootstrap/88714
31631 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31632 "q" constraint.
31633 * config/arm/vfp.md (*movdi_vfp): Likewise.
31634 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31635 "q" constraint for operands[0].
31636
31637 PR target/89369
31638 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31639 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31640 pattern in a temporary buffer.
31641 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31642 than 64-operands[2].
31643
31644 PR target/89361
31645 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31646 s390_indirect_branch_settings): Define unconditionally.
31647 (s390_set_current_function): Likewise, but guard the whole body except
31648 the s390_indirect_branch_settings call with
31649 #if S390_USE_TARGET_ATTRIBUTE.
31650 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31651
31652 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31653 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31654 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31655 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31656 HOST_WIDE_INT_1U instead of 1ULL.
31657 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31658 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31659 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31660 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31661 instead of 1UL.
31662 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31663 instead of 1ul.
31664
31665 2019-02-18 Martin Jambor <mjambor@suse.cz>
31666
31667 PR tree-optimization/89209
31668 * tree-sra.c (create_access_replacement): New optional parameter
31669 reg_tree. Use it as a type if non-NULL and access type is not of
31670 a register type.
31671 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31672 to create_access_replacement.
31673 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31674 Check lacc is non-NULL before attempting to re-create it on the RHS.
31675
31676 2019-02-18 Martin Liska <mliska@suse.cz>
31677
31678 PR ipa/89306
31679 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31680 by default.
31681 (symbol_table::free_edge): Recycle m_summary_id.
31682 * cgraph.h (get_summary_id): New.
31683 (symbol_table::release_symbol): Set m_summary_id to -1
31684 by default.
31685 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31686 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31687 function_summary to fast_function_summary.
31688 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31689 * ipa-pure-const.c (class funct_state_summary_t):
31690 Switch from function_summary to fast_function_summary.
31691 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31692 (class ipa_ref_opt_summary_t): Switch from function_summary
31693 to fast_function_summary.
31694 * symbol-summary.h (class function_summary_base): New class
31695 that is created from base of former function_summary.
31696 (function_summary_base::unregister_hooks): New.
31697 (class function_summary): Inherit from function_summary_base.
31698 (class call_summary_base): New class
31699 that is created from base of former call_summary.
31700 (class call_summary): Inherit from call_summary_base.
31701 (struct is_same): New.
31702 (class fast_function_summary): New summary class.
31703 (class fast_call_summary): New summary class.
31704 * vec.h (vec_safe_grow_cleared): New function.
31705
31706 2019-02-18 Martin Liska <mliska@suse.cz>
31707
31708 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31709 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31710 * doc/tm.texi: Document new target hook.
31711 * doc/tm.texi.in: Likewise.
31712 * target.def: Add new target macro.
31713 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31714 suffixes.
31715
31716 2019-02-17 Alan Modra <amodra@gmail.com>
31717
31718 PR target/89271
31719 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31720 output reg on add insn.
31721 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31722
31723 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31724
31725 PR target/89372
31726 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31727 (PMULHRSW): Likewise.
31728 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31729 TARGET_AVX2.
31730 (ssse3_pmulhrswv4hi3): New expander.
31731
31732 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31733
31734 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31735 MMX. Add isa attribute.
31736
31737 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31738
31739 PR rtl-optimization/66152
31740 * builtins.h (c_readstr): Declare.
31741 * builtins.c (c_readstr): Remove forward declaration. Add
31742 null_terminated_p argument, if false, read all bytes from the
31743 string instead of stopping after '\0'.
31744 * expr.c (string_cst_read_str): New function.
31745 (store_expr): Use string_cst_read_str instead of
31746 builtin_strncpy_read_str. Try to store by pieces the whole
31747 exp_len first, and only if that fails, split it up into
31748 store by pieces followed by clear_storage. Formatting fix.
31749
31750 * config/i386/i386.md (*movqi_internal): Remove static from
31751 buf variable. Use output_asm_insn (buf, operands); return "";
31752 instead of return buf;.
31753 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31754 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31755 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31756
31757 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31758
31759 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31760 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31761 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31762 (CC1_SPEC): Likewise.
31763 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31764
31765 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31766
31767 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31768 the base address on 64-bit strict-alignment platforms.
31769
31770 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31771
31772 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31773
31774 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31775
31776 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31777
31778 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31779
31780 PR rtl-optimization/88308
31781 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31782 on copied instruction.
31783
31784 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31785
31786 * final.c (insn_current_reference_address): Replace test on JUMP_P
31787 with test on jump_to_label_p.
31788 * config/visium/visium-passes.def: New file.
31789 * config/visium/t-visium (PASSES_EXTRA): Define.
31790 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31791 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31792 (TRAMPOLINE_ALIGNMENT): Define.
31793 * config/visium/visium.c (visium_option_override): Do not register
31794 the machine-specific reorg pass here.
31795 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31796 for the GR6.
31797 (output_branch): Adjust threshold for long branch instruction.
31798 * config/visium/visium.md (cpu): Move around.
31799 (length): Adjust for the GR6.
31800
31801 2019-02-15 Richard Biener <rguenther@suse.de>
31802 Jakub Jelinek <jakub@redhat.com>
31803
31804 PR tree-optimization/89278
31805 * tree-loop-distribution.c: Include tree-eh.h.
31806 (generate_memset_builtin, generate_memcpy_builtin): Call
31807 rewrite_to_non_trapping_overflow on builtin->size before passing it
31808 to force_gimple_operand_gsi.
31809
31810 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31811
31812 PR other/89342
31813 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31814 optimize_debug.
31815 * opth-gen.awk: Likewise.
31816
31817 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31818
31819 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31820 Enable MMX, SSE and SSE2 by default.
31821 * config/i386/i386.c (ix86_option_override_internal): Do not
31822 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31823
31824 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31825
31826 PR rtl-optimization/89354
31827 * combine.c (make_extraction): Punt if extraction_mode is narrower
31828 than len bits.
31829
31830 2019-02-14 Maya Rashish <coypu@sdf.org>
31831
31832 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31833 * config/netbsd-d.c: New file.
31834 * config/t-netbsd: Add netbsd-d.o
31835
31836 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31837
31838 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31839 affects_type_identity to true for aarch64_vector_pcs.
31840 (aarch64_comp_type_attributes): New function.
31841 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31842
31843 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31844
31845 PR target/88850
31846 * config/arm/iterators.md (ANY64): Add V4HF.
31847
31848 2019-02-14 Martin Liska <mliska@suse.cz>
31849
31850 PR rtl-optimization/89242
31851 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31852 process a transformation.
31853
31854 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31855
31856 PR tree-optimization/89314
31857 * fold-const.c (fold_binary_loc): Cast strlen argument to
31858 const char * before dereferencing it. Formatting fixes.
31859
31860 PR middle-end/89284
31861 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31862
31863 2019-02-13 Ian Lance Taylor <iant@golang.org>
31864
31865 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31866 and set current index for other optimizations.
31867
31868 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31869
31870 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31871 nonimmediate_operand as operand 2 predicate.
31872 (vec_set<VF2_512_256:mode>_0): Ditto.
31873 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31874 (*vec_concatv2si): Remove alternative 2.
31875 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31876 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31877 (vec_concatv2di): Split alternatives 4,5,6 to ...
31878 (*vec_concatv2di_0) ... new pattern.
31879
31880 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31881
31882 PR target/89190
31883 * config/arm/arm.c (ldm_stm_operation_p) Set
31884 addr_reg_in_reglist correctly for first register.
31885 (load_multiple_sequence): Remove dead base check.
31886 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31887
31888 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31889
31890 PR target/88847
31891 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31892 Expose as @aarch64_pred_mov.
31893 * config/aarch64/aarch64.c (aarch64_classify_address):
31894 Use expand_insn which legitimizes operands.
31895
31896 2019-02-13 Martin Liska <mliska@suse.cz>
31897
31898 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31899 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31900 and pointer_offset fields.
31901 (initialize_argument_information): Remove usage of dead
31902 fields.
31903 * cgraph.h (struct cgraph_thunk_info): Remove
31904 add_pointer_bounds_args.
31905 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31906 fields.
31907 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31908 fields.
31909 * config/i386/i386.c (ix86_function_arg_advance): Remove
31910 unrelated comment.
31911 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31912 (def_builtin): Remove usage of dead fields.
31913 (ix86_add_new_builtins): Likewise.
31914 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31915 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31916 (sem_function::init): Likewise.
31917 (sem_variable::merge): Likewise.
31918 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31919 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31920 * lto-cgraph.c (lto_output_node): Likewise.
31921 (lto_output_varpool_node): Likewise.
31922 (input_node): Likewise.
31923 (input_varpool_node): Likewise.
31924 * lto-streamer-out.c (lto_output): Likewise.
31925 * tree-inline.c (expand_call_inline): Remove usage of
31926 assign_stmts.
31927 * tree-inline.h (struct copy_body_data): Likewise.
31928 * varpool.c (varpool_node::dump): Likewise.
31929
31930 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31931
31932 PR middle-end/89303
31933 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31934 into pt->vars_contains_escaped_heap instead of setting
31935 pt->vars_contains_escaped_heap to it.
31936
31937 PR middle-end/89281
31938 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31939 INTVAL (size), compare it to GET_MODE_MASK instead of
31940 1 << GET_MODE_BITSIZE.
31941
31942 PR target/89290
31943 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31944 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31945 -mcmodel=large.
31946
31947 2019-02-13 Martin Liska <mliska@suse.cz>
31948
31949 PR lto/88858
31950 * cfgrtl.c (remove_barriers_from_footer): New function.
31951 (try_redirect_by_replacing_jump): Use it.
31952 (cfg_layout_redirect_edge_and_branch): Likewise.
31953
31954 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31955
31956 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31957 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31958 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31959 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31960 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31961 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31962 New BU_CRYPTO_2.
31963 * config/rs6000/rs6000.c (builtin_function_type)
31964 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31965 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31966 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31967 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31968 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31969
31970 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
31971
31972 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31973 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31974
31975 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
31976
31977 PR target/89229
31978 * config/i386/i386.md (*movoi_internal_avx): Revert revision
31979 268678 and revision 268657.
31980 (*movti_internal): Likewise.
31981
31982 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
31983
31984 PR target/89233
31985 * config/s390/s390.c (s390_decompose_address): Update comment.
31986 (s390_check_qrst_address): Reject invalid address forms after
31987 LRA.
31988
31989 2019-02-12 Martin Liska <mliska@suse.cz>
31990
31991 PR lto/88876
31992 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31993 we need default values of funct_state for a function that
31994 is not optimized.
31995
31996 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
31997
31998 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31999 the object to pick the size of stores on strict-alignment platforms.
32000
32001 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32002 (*movdi_insn_sp32): Likewise.
32003 (*movdi_insn_sp64): Likewise.
32004
32005 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32006
32007 PR lto/88677
32008 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32009 types that needs constructiong.
32010 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32011
32012 2019-02-12 Richard Biener <rguenther@suse.de>
32013
32014 PR tree-optimization/89253
32015 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32016 duplicate the loop.
32017
32018 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32019
32020 PR lto/88147
32021 * input.c (selftest::test_line_offset_overflow): New selftest.
32022 (selftest::input_c_tests): Call it.
32023
32024 2019-02-11 Martin Sebor <msebor@redhat.com>
32025
32026 PR tree-optimization/88771
32027 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32028 when -Wstringop-overflow is set.
32029 (builtin_memref::builtin_memref): Adjust excessive upper bound
32030 only when lower bound is not excessive.
32031 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32032 -Wstringop-ovefflow.
32033 (maybe_diag_offset_bounds): Rename...
32034 (maybe_diag_access_bounds): ...to this.
32035 (check_bounds_or_overlap): Adjust for name change above.
32036
32037 2019-02-11 Martin Sebor <msebor@redhat.com>
32038
32039 PR c++/87996
32040 * builtins.c (max_object_size): Move from here...
32041 * builtins.h (max_object_size): ...and here...
32042 * tree.c (max_object_size): ...to here...
32043 * tree.h (max_object_size): ...and here.
32044
32045 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32046
32047 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32048 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32049 for correct semantics.
32050
32051 2019-02-11 Alan Modra <amodra@gmail.com>
32052
32053 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32054 -mlongcall and -mpltseq.
32055 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32056 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32057 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32058 * config/rs6000/sysv4.opt (mpltseq): New option.
32059 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32060 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32061 support is lacking. Don't allow -mpltseq with -mbss-plt.
32062 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32063 -mpltseq given for ELFv1.
32064 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32065 Only use UNSPEC_PLTSEQ for inline PLT calls.
32066 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32067 use UNSPEC_PLTSEQ for inline PLT calls.
32068 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32069 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32070 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32071 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32072 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32073 (pltseq_mtctr_<mode>): Likewise.
32074
32075 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32076
32077 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32078 Solaris ld.
32079 * configure: Regenerate.
32080
32081 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32082
32083 PR bootstrap/88714
32084 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32085 instead of r.
32086
32087 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32088
32089 * function.c (assign_parm_setup_block): Use the stored
32090 size, not the passed size, when allocating stack-space,
32091 also for a parameter with alignment larger than
32092 MAX_SUPPORTED_STACK_ALIGNMENT.
32093
32094 2019-02-11 Martin Liska <mliska@suse.cz>
32095
32096 PR ipa/89009
32097 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32098 * ipa-inline.c (inline_small_functions): Likewise.
32099 * ipa-pure-const.c (propagate_pure_const): Likewise.
32100 (propagate_nothrow): Likewise.
32101 * ipa-reference.c (propagate): Likewise.
32102 * ipa-utils.c (struct searchc_env): Remove unused field.
32103 (searchc): Always search across AVAIL_INTERPOSABLE.
32104 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32105 the only called IPA pure const can properly not propagate
32106 across interposable boundary.
32107 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32108
32109 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32110
32111 * config/nds32/nds32.md (call_internal, call_value_internal,
32112 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32113
32114 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32115
32116 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32117 typo.
32118
32119 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32120
32121 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32122 in comments
32123
32124 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32125
32126 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32127
32128 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32129
32130 PR tree-optimization/89268
32131 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32132 if preds is non-NULL.
32133
32134 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32135
32136 PR lto/89272
32137 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32138 polymorphic types.
32139
32140 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32141
32142 * config/nds32/nds32.md (trap): New pattern.
32143
32144 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32145
32146 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32147 dwarf span.
32148
32149 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32150
32151 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32152 to split POST_INC.
32153
32154 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32155
32156 * ipa-visibility.c (localize_node): Also do not localize
32157 LDPR_PREVAILING_DEF_IRONLY_EXP.
32158
32159 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32160
32161 PR lto/87957
32162 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32163 instead of type_with_linkage.
32164
32165 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32166
32167 PR ipa/88755
32168 * params.def (uninlined-function-insns, uninlined-function-time,
32169 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32170 bound so we don't get overflows.
32171
32172 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32173
32174 * config/rs6000/rs6000-string.c (expand_compare_loop,
32175 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32176 memcmp/strncmp.
32177
32178 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32179
32180 PR middle-end/89246
32181 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32182 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32183 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32184
32185 2019-02-09 Alan Modra <amodra@gmail.com>
32186
32187 PR target/88343
32188 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32189 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32190 setup.
32191
32192 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32193
32194 PR middle-end/88560
32195 * lra-constraints.c (process_alt_operands): Don't increase reject
32196 for memory when offset memory is required.
32197
32198 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32199
32200 * config/s390/vector.md: Implement vector copysign.
32201
32202 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32203
32204 * expr.c (expand_constructor): Correct indentations.
32205
32206 2019-02-08 Richard Biener <rguenther@suse.de>
32207
32208 PR tree-optimization/89247
32209 * tree-if-conv.c: Include tree-cfgcleanup.h.
32210 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32211 (tree_if_conversion): Pass through predicate vector.
32212 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32213 inline, see if any if-converted loops we refrece in
32214 LOOP_VECTORIZED calls vanished and fixup.
32215 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32216
32217 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32218
32219 * config/s390/constraints.md (jdd): New constraint.
32220
32221 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32222
32223 PR target/89229
32224 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32225 upper 16 vector registers without TARGET_AVX512VL.
32226 (*movti_internal): Likewise.
32227
32228 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32229
32230 PR rtl-optimization/89234
32231 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32232 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32233 (copy_reg_eh_region_note_backward): Likewise.
32234
32235 2019-02-08 Richard Biener <rguenther@suse.de>
32236
32237 PR middle-end/89223
32238 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32239 doesn't fit in HWI.
32240 (analyze_subscript_affine_affine): Handle failure from
32241 initialize_matrix_A.
32242
32243 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32244
32245 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32246 cfun everywhere.
32247
32248 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32249
32250 PR tree-optimization/86637
32251 PR tree-optimization/89235
32252 * tree-vect-loop.c (optimize_mask_stores): Add an
32253 auto_purge_vect_location sentinel to ensure that vect_location is
32254 purged on exit.
32255 * tree-vectorizer.c
32256 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32257 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32258 to ensure that vect_location is purged on exit.
32259 (pass_slp_vectorize::execute): Likewise, replacing the manual
32260 reset.
32261 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32262
32263 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32264
32265 * config/aarch64/iterators.md (max_opp): New code_attr.
32266 (USMAX): New code iterator.
32267 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32268 (aarch64_smax): Likewise.
32269 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32270 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32271 MINUS (MAX MIN).
32272
32273 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32274
32275 PR target/89229
32276 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32277 for TARGET_AVX512VL.
32278 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32279
32280 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32281
32282 * config/s390/s390-builtin-types.def: Add new types.
32283 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32284 (s390_vec_xlw4): Make the memory operand into a const pointer.
32285 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32286 float.
32287 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32288 a new vector type with the alignment of the scalar memory operand.
32289
32290 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32291 Jakub Jelinek <jakub@redhat.com>
32292
32293 PR bootstrap/88714
32294 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32295 arm_count_ldrdstrd_insns): New declarations.
32296 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32297 MINUS.
32298 (valid_operands_ldrd_strd): New function.
32299 (arm_count_ldrdstrd_insns): New function.
32300 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32301 sets instead of single DImode set and define new insns to match this.
32302
32303 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32304
32305 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32306 Make it a C initializer.
32307
32308 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32309
32310 PR/target 88850
32311 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32312
32313 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32314
32315 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32316 Use neon_dot<q> for type.
32317 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32318
32319 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32320
32321 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32322 Use neon_dot<q> for type.
32323 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32324 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32325
32326 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32327
32328 PR rtl-optimization/89225
32329 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32330 sizes check.
32331
32332 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32333
32334 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32335 after restoring registers saved to allocate the frame on Windows.
32336
32337 2019-02-06 Richard Biener <rguenther@suse.de>
32338
32339 PR tree-optimization/89182
32340 * graphite.h (cached_scalar_evolution_in_region): Declare.
32341 * graphite.c (struct seir_cache_key): New.
32342 (struct sese_scev_hash): Likewise.
32343 (seir_cache): New global.
32344 (cached_scalar_evolution_in_region): New function.
32345 (graphite_transform_loops): Allocate and release seir_cache.
32346 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32347 cached_scalar_evolution_in_region.
32348 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32349 Simplify.
32350 (scop_detection::graphite_can_represent_expr: Use
32351 cached_scalar_evolution_in_region.
32352 (scop_detection::stmt_simple_for_scop_p): Likewise.
32353 (find_params_in_bb): Likewise.
32354 (gather_bbs::before_dom_children): Likewise.
32355 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32356 (add_loop_constraints): Likewise.
32357
32358 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32359
32360 PR middle-end/89210
32361 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32362 operand to new_unary_operation only if both element types are integral
32363 and it isn't a widening conversion. Return NULL_TREE if
32364 new_unary_operation failed.
32365
32366 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32367
32368 PR target/88856
32369 * config/s390/s390.md: Remove load and test FP splitter.
32370
32371 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32372
32373 PR target/89112
32374 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32375 expand_compare_loop, expand_block_compare_gpr,
32376 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32377 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32378 #include "profile-count.h" and "predict.h" for types and functions
32379 needed to work with REG_BR_PROB notes.
32380
32381 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32382
32383 PR target/89112
32384 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32385 for the long branch case.
32386
32387 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32388
32389 PR target/89188
32390 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32391 can throw, non-call exceptions are enabled and we can't delete
32392 dead exceptions or alter cfg. Set must_clean if
32393 delete_insn_and_edges returns true, don't set it blindly for calls.
32394 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32395
32396 PR rtl-optimization/89195
32397 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32398 of the original MEM.
32399
32400 2019-02-05 Martin Liska <mliska@suse.cz>
32401
32402 PR gcov-profile/89000
32403 * gcov.c (function_summary): Remove argument.
32404 (file_summary): New function.
32405 (print_usage): Replace tabs with spaces.
32406 (generate_results): Use new function file_summary.
32407
32408 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32409
32410 PR target/89186
32411 * optabs.c (prepare_cmp_insn): Pass x and y to
32412 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32413
32414 2019-02-05 Richard Biener <rguenther@suse.de>
32415
32416 PR middle-end/89150
32417 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32418 (struct bitmap_element): Drop chain_prev so we properly recurse on
32419 the prev member, supporting tree views.
32420 (struct bitmap_head): GTY skip the obstack member.
32421
32422 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32423
32424 PR c/88698
32425 * doc/extend.texi (Vector Extensions): Add an example of using vector
32426 types together with x86 intrinsics.
32427
32428 2019-02-04 Alan Modra <amodra@gmail.com>
32429
32430 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32431 str[] size to 160, and comment.
32432
32433 2019-02-04 Alan Modra <amodra@gmail.com>
32434
32435 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32436 (rs6000_pltseq_template): Guard output of TLS markers with
32437 TARGET_TLS_MARKERS.
32438 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32439 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32440 to use inline PLT sequences.
32441 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32442 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32443 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32444
32445 2019-02-04 Martin Liska <mliska@suse.cz>
32446
32447 PR ipa/88985
32448 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32449 out when ipa_fn_summaries does not contain entry for callee.
32450
32451 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32452
32453 * config/sparc/sparc.h: Remove superfluous blank lines.
32454 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32455 (got_register_rtx): ...this.
32456 (sparc_got): Adjust to above renaming.
32457 (sparc_tls_got): Likewise.
32458 (sparc_delegitimize_address): Likewise.
32459 (sparc_output_mi_thunk): Likewise.
32460 (sparc_init_pic_reg): Likewise.
32461 (save_local_or_in_reg_p): Fix test on the GOT register.
32462 (USE_HIDDEN_LINKONCE): Move around.
32463 (get_pc_thunk_name): Likewise.
32464 (gen_load_pcrel_sym): Likewise.
32465 (load_got_register): Likewise.
32466
32467 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32468
32469 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32470 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32471
32472 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32473
32474 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32475 into consideration.
32476
32477 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32478
32479 * config.gcc (with_nds32_lib, glibc):
32480 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32481 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32482 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32483
32484 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32485
32486 PR target/89071
32487 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32488 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32489 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32490 (*rcpsf2_sse): Ditto.
32491 (*rsqrtsf2_sse): Ditto.
32492 (sse4_1_round<mode<2): Ditto.
32493
32494 2019-02-03 Richard Biener <rguenther@suse.de>
32495
32496 PR debug/87295
32497 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32498 orig.
32499
32500 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32501
32502 PR middle-end/87887
32503 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32504 Punt with warning on aggregate return or argument types. Ignore
32505 type/mode checking for uniform arguments.
32506
32507 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32508
32509 * combine.c (try_combine): Do not print "Can't combine" messages unless
32510 printing failed combination attempts.
32511
32512 2019-02-01 Martin Jambor <mjambor@suse.cz>
32513
32514 PR hsa/87863
32515 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32516 segment and global segment variables before making them static.
32517
32518 2019-02-01 Martin Jambor <mjambor@suse.cz>
32519
32520 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32521 missed optimization dump with dump_enabled_p.
32522
32523 2019-02-01 Richard Biener <rguenther@suse.de>
32524
32525 PR middle-end/88597
32526 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32527 the instantiate cache.
32528 (instantiate_scev_binary): Elide second operand procesing
32529 if equal to the first.
32530 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32531 (chrec_contains_undetermined): Likewise.
32532 (tree_contains_chrecs): Likewise.
32533
32534 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32535
32536 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32537
32538 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32539
32540 PR tree-optimization/89143
32541 * wide-int-range.h (wide_int_range_absu): Declare.
32542 * wide-int-range.cc (wide_int_range_absu): New function.
32543 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32544
32545 PR tree-optimization/88107
32546 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32547 instead of assertion that eh_region_outermost is non-NULL, if it
32548 is NULL, set *ALL to true and return NULL.
32549 (move_sese_region_to_fn): Adjust caller, if all is set, call
32550 duplicate_eh_regions with NULL region.
32551
32552 2019-02-01 Richard Biener <rguenth@suse.de>
32553
32554 PR rtl-optimization/88593
32555 * mode-switching.c (optimize_mode_switching): Free dominators before
32556 calling cleanup_cfg.
32557
32558 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32559
32560 PR tree-optimization/88932
32561 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32562
32563 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32564
32565 PR middle-end/89137
32566 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32567 bogus clang warning.
32568
32569 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32570
32571 PR target/89071
32572 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32573 alternative to avoid partial SSE register stall for TARGET_AVX.
32574 (truncdfsf2): Ditto.
32575 (sse4_1_round<mode>2): Ditto.
32576
32577 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32578
32579 PR tree-optimization/89008
32580 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32581 process anything of the form X * 0.
32582
32583 2019-01-31 Richard Biener <rguenther@suse.de>
32584
32585 PR tree-optimization/89135
32586 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32587 with abnormal preds.
32588
32589 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32590
32591 PR sanitizer/89124
32592 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32593 always_inline callees into no_sanitize_address callers.
32594
32595 2019-01-31 Richard Biener <rguenther@suse.de>
32596
32597 PR rtl-optimization/89115
32598 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32599
32600 2019-01-30 Martin Sebor <msebor@redhat.com>
32601
32602 PR other/89106
32603 * doc/extend.texi (cast to a union): Correct and expand.
32604
32605 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32606
32607 PR rtl-optimization/87246
32608 * lra-constraints.c (simplify_operand_subreg): Reload memory
32609 in subreg if the address became invalid.
32610
32611 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32612
32613 PR target/87064
32614 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32615 Disable for little-endian.
32616
32617 2019-01-30 Richard Biener <rguenther@suse.de>
32618
32619 PR rtl-optimization/89115
32620 * opts.c (default_options_optimization): Reduce
32621 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32622 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32623 to the default.
32624
32625 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32626
32627 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32628 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32629 type of vector element when vec_extract is implemented by direct
32630 move.
32631
32632 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32633
32634 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32635
32636 2019-01-30 Richard Biener <rguenther@suse.de>
32637
32638 PR tree-optimization/89111
32639 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32640 canonicalization to appropriately sized access types.
32641
32642 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32643
32644 PR c++/89105
32645 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32646 for arguments to functions that are TU-local and shouldn't be
32647 referenced by assembly.
32648
32649 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32650
32651 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32652 after '='.
32653
32654 2019-01-29 Martin Sebor <msebor@redhat.com>
32655
32656 PR c/88956
32657 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32658
32659 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32660
32661 PR c++/66676
32662 PR ipa/89104
32663 * omp-simd-clone.c (simd_clone_clauses_extract)
32664 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32665 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32666
32667 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32668
32669 * config.gcc: Force .init_array for ARC.
32670
32671 2019-01-29 Richard Biener <rguenther@suse.de>
32672
32673 PR debug/87295
32674 * dwarf2out.c (collect_skeleton_dies): New helper.
32675 (copy_decls_for_unworthy_types): Call it.
32676 (build_abbrev_table): Assert we do not try to replace
32677 DW_AT_signature refs with local refs.
32678
32679 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32680
32681 PR middle-end/89002
32682 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32683 for lastprivate/linear IV, push gimplify context around gimplify_assign
32684 and, if it needed any temporaries, pop it into a gimple bind around the
32685 sequence.
32686
32687 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32688
32689 * common.opt (-Wattribute-alias): Remove "no-" from name.
32690 Make -Wattribute-alias command line option and
32691 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32692
32693 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32694
32695 PR target/89073
32696 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32697 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32698 x86 ISA options.
32699 (bmi2): Add missing @opindex.
32700 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32701 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32702 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32703 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32704 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32705 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32706 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32707 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32708 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32709 xsavec, xsaveopt and xsaves options.
32710
32711 2019-01-28 Richard Biener <rguenther@suse.de>
32712
32713 PR debug/89076
32714 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32715 support removal.
32716
32717 2019-01-28 Richard Biener <rguenther@suse.de>
32718
32719 PR tree-optimization/88739
32720 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32721 BIT_FIELD_REFs only are applied to mode-precision operands
32722 when they are integral.
32723 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32724 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32725 BIT_FIELD_REFs of non-mode-precision integral operands.
32726
32727 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32728
32729 PR target/87214
32730 * config/i386/sse.md
32731 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32732 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32733 first constants in pairs are multiples of 2. Formatting fixes.
32734 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32735 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32736 first constants in each quadruple are multiples of 4. Formatting fixes.
32737
32738 2019-01-26 Martin Jambor <mjambor@suse.cz>
32739
32740 PR ipa/88933
32741 * tree-inline.c: Include tree-cfgcleanup.h.
32742 (delete_unreachable_blocks_update_callgraph): Move...
32743 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32744 ...here, make externally visible, make second argument bool, adjust
32745 all callers.
32746 * tree-cfgcleanup.c: Include cgraph.h.
32747 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32748 Declare.
32749 * ipa-prop.c: Include tree-cfgcleanup.h.
32750 (ipcp_transform_function): Call
32751 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32752
32753 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32754
32755 PR rtl-optimization/88846
32756 * ira.c (process_set_for_memref_referenced_p): New.
32757 (memref_referenced_p): Add new param. Use
32758 process_set_for_memref_referenced_p. Add new switch cases.
32759 (memref_used_between_p): Pass new arg to memref_referenced_p.
32760
32761 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32762
32763 PR target/88469
32764 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32765 argument ABI_BREAK. Set to true if the calculated alignment has
32766 changed in gcc-9. Check bit-fields for their base type alignment.
32767 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32768 (aarch64_function_arg_boundary): Likewise.
32769 (aarch64_gimplify_va_arg_expr): Likewise.
32770
32771 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32772
32773 PR middle-end/89037
32774 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32775 instead of accessing TREE_INT_CST_ELT directly.
32776
32777 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32778
32779 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32780 fenv_exceptions description.
32781
32782 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32783
32784 PR rtl-optimization/87763
32785 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32786 Allow SUBREG when matching CC_NZmode compare.
32787
32788 2019-01-25 Richard Biener <rguenther@suse.de>
32789
32790 PR tree-optimization/89049
32791 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32792 Look at the pattern stmt to determine if the stmt is vectorized.
32793
32794 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32795
32796 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32797 (pred_mov<mode>): Handle all-register forms using both a new
32798 alternative and a split.
32799
32800 2019-01-25 Richard Biener <rguenther@suse.de>
32801
32802 PR tree-optimization/86865
32803 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32804 Reject non-do-while loops.
32805
32806 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32807
32808 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32809 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32810 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32811 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32812 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32813 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32814 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32815 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32816 vlogical_operand, gpc_reg_operand, int_reg_operand,
32817 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32818 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32819 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32820 (save_world_operation, restore_world_operation, lmw_operation,
32821 stmw_operation): Use MEM_P and REG_P.
32822 (tie_operand): Use MEM_P.
32823 (vrsave_operation, crsave_operation): Use REG_P.
32824 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32825 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32826 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32827 (call_operand): Use HARD_REGISTER_P.
32828 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32829 Use CONST_INT_P.
32830 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32831 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32832 quad_aligned_load_p, replace_swapped_aligned_store,
32833 recombine_lvx_pattern, replace_swapped_aligned_load,
32834 recombine_stvx_pattern): Use MEM_P.
32835 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32836 Use MEM_P and SYMBOL_REF_P.
32837 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32838 (insn_is_swappable_p): Use REG_P and MEM_P.
32839 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32840 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32841 Use CONST_INT_P.
32842 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32843 Use CONST_DOUBLE_P.
32844 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32845 CONST_WIDE_INT_P.
32846 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32847 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32848 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32849 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32850 reg_or_subregno:
32851 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32852 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32853 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32854 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32855 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32856 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32857 rs6000_split_logical_di): Use CONST_INT_P.
32858 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32859 REG_P and SYMBOL_REF_P.
32860 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32861 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32862 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32863 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32864 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32865 (small_data_operand, print_operand_address): Use CONST_INT_P and
32866 SYMBOL_REF_P.
32867 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32868 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32869 Use HARD_REGISTER_NUM_P.
32870 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32871 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32872 SUBREG_P and SYMBOL_REF_P.
32873 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32874 and HARD_REGISTER_NUM_P.
32875 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32876 reg_or_subregno.
32877 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32878 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32879 MEM_P and REG_P.
32880 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32881 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32882 find_addr_reg): Use REG_P.
32883 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32884 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32885 (offsettable_ok_by_alignment, constant_pool_expr_p,
32886 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32887 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32888 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32889 rs6000_assemble_integer, create_TOC_reference,
32890 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32891 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32892 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32893 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32894 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32895 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32896 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32897 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32898 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32899 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32900 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32901 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32902 and cbranch<mode>4): Use CONST_INT_P.
32903 (multiple define_splits): Use REG_P and SUBREG_P.
32904 (define_expands call, call_value): Use MEM_P.
32905 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32906 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32907 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32908 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32909 and HARD_REGISTER_NUM_P.
32910 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32911
32912 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32913
32914 PR rtl-optimization/88948
32915 * rtl.h (prepare_copy_insn): New prototype.
32916 * gcse.c (prepare_copy_insn): New function, split out from
32917 process_insert_insn.
32918 (process_insert_insn): Use prepare_copy_insn.
32919 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32920 instead of gen_move_insn.
32921
32922 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32923
32924 PR debug/89006
32925 * config/i386/i386.c (ix86_pic_register_p): Return true for
32926 UNSPEC_SET_GOT too.
32927
32928 PR tree-optimization/88964
32929 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32930 punt if HONOR_SNANS (chrec).
32931
32932 PR middle-end/89015
32933 * tree-nested.c (convert_nonlocal_reference_stmt,
32934 convert_local_reference_stmt, convert_tramp_reference_stmt,
32935 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32936 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32937 or GIMPLE_OMP_TASK.
32938
32939 PR tree-optimization/89027
32940 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32941 for "omp simd array" variables.
32942
32943 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32944
32945 PR target/88469
32946 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32947 force the alignment of m_val.
32948
32949 2019-01-24 Richard Biener <rguenther@suse.de>
32950
32951 PR lto/87187
32952 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32953 When in "legacy" debug mode make sure to reset self-origins.
32954
32955 2019-01-24 Martin Liska <mliska@suse.cz>
32956
32957 PR gcov-profile/88994
32958 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32959 result will be always smaller or equal to the original.
32960 * gcov.c (mangle_name): Fix else branch where we should
32961 also copy to PTR and shift the pointer.
32962
32963 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32964
32965 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32966 * vr-values.c (find_case_label_ranges): Fix a comment typo.
32967
32968 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
32969
32970 * common/config/i386/i386-common.c
32971 (OPTION_MASK_ISA_ENQCMD_SET,
32972 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32973 (ix86_handle_option): Handle -menqcmd.
32974 * config.gcc (enqcmdintrin.h): New header file.
32975 * config/i386/cpuid.h (bit_ENQCMD): New bit.
32976 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32977 -menqcmd.
32978 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32979 function type.
32980 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32981 __builtin_ia32_enqcmds): New builtins.
32982 * config/i386/i386-c.c (__ENQCMD__): New macro.
32983 * config/i386/i386-option.c (ix86_target_string): Add
32984 -menqcmd.
32985 (ix86_valid_target_attribute_inner_p): Likewise.
32986 * config/i386/i386-expand.c
32987 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32988 IX86_BUILTIN_ENQCMDS.
32989 * config/i386/i386.h (TARGET_ENQCMD): New.
32990 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32991 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32992 (movdir64b_<mode>): Parameterize to enable share expansion code
32993 with ENQCMD in function ix86_expand_builtin.
32994 * config/i386/i386.opt: Add -menqcmd.
32995 * config/i386/immintrin.h: Include enqcmdintrin.h.
32996 * config/i386/enqcmdintrin.h: New intrinsic file.
32997 * doc/invoke.texi: Add -menqcmd.
32998
32999 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33000 Steve Ellcey <sellcey@marvell.com>
33001
33002 PR target/85711
33003 * recog.c (address_operand): Return false on wrong mode for address.
33004 (constrain_operands): Check for mode with 'p' constraint.
33005
33006 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33007
33008 PR target/88998
33009 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33010 Disparage MMX alternative.
33011 (sse2_cvtpd2pi): Ditto.
33012 (sse2_cvttpd2pi): Ditto.
33013
33014 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33015
33016 PR driver/89014
33017 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33018 use-after-free of the result of
33019 aarch64_get_extension_string_for_isa_flags.
33020
33021 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33022
33023 PR c/44715
33024 * doc/extend.texi: Document break and continue behavior in
33025 statement expressions.
33026
33027 2019-01-23 Richard Biener <rguenther@suse.de>
33028
33029 PR tree-optimization/89008
33030 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33031 not leave another stray operand.
33032
33033 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33034
33035 * BASE-VER: Bump to 9.0.1.
33036
33037 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33038
33039 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33040 thunk that returns by reference, use the type of the return object
33041 of the thunk instead of that of the alias to build the dereference.
33042
33043 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33044
33045 * config/arc/atomic.md: Add operand to DMB instruction.
33046
33047 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33048
33049 PR tree-optimization/88964
33050 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33051 build_zero_cst instead of build_int_cst. Return false for loop
33052 invariants which honor signed zeros.
33053
33054 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33055
33056 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33057
33058 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33059
33060 PR target/88965
33061 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33062 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33063 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33064
33065 PR middle-end/88968
33066 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33067 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33068
33069 PR target/87064
33070 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33071 Disable for little endian.
33072
33073 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33074
33075 PR target/88469
33076 * config/arm/arm.c (arm_needs_double_word_align): Check
33077 DECL_BIT_FIELD_TYPE.
33078
33079 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33080 H.J. Lu <hongjiu.lu@intel.com>
33081
33082 PR target/88909
33083 * config/i386/i386-builtin.def: Add mask2 to all builtin
33084 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33085 SPECIAL_ARGS.
33086 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33087 (BDESC_FIRST): Likewise.
33088 (define_builtin): Add an argument for mask2. Updated to handle
33089 both ix86_isa_flags and ix86_isa_flags2.
33090 (define_builtin_const): Likewise.
33091 (define_builtin_pure): Likewise.
33092 (define_builtin2): Deleted.
33093 (define_builtin_const2): Likewise.
33094 (builtin_description): Add a member, mask2.
33095 (bdesc_*): Add mask2 to builtin initializations.
33096 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33097 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33098 support.
33099 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33100
33101 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33102
33103 PR target/88954
33104 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33105 noplt attribute.
33106
33107 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33108
33109 PR target/88469
33110 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33111 alignment is dominated by a bitfield with 64-bit aligned base type.
33112 (arm_function_arg): Emit a warning if the alignment has changed since
33113 earlier GCC releases.
33114 (arm_function_arg_boundary): Likewise.
33115 (arm_setup_incoming_varargs): Likewise.
33116
33117 2019-01-22 Richard Biener <rguenther@suse.de>
33118
33119 PR tree-optimization/88862
33120 * graphite-scop-detection.c
33121 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33122
33123 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33124
33125 * doc/extend.tex (AMD GCN Function Attributes): New section.
33126 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33127 * doc/invoke.texi (AMD GCN Options): New section.
33128 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33129
33130 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33131
33132 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33133 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33134
33135 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33136
33137 PR tree-optimization/88044
33138 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33139 is false in the first iteration, but !every_iteration, return false
33140 instead of true with niter->niter zero.
33141
33142 PR rtl-optimization/88904
33143 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33144 any nonequal registers before processing BB_END (b).
33145
33146 PR target/88905
33147 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33148 GET_MODE (op0).
33149 (expand_binop_directly, expand_doubleword_clz,
33150 expand_doubleword_popcount, expand_ctz, expand_ffs,
33151 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33152
33153 PR rtl-optimization/49429
33154 PR target/49454
33155 PR rtl-optimization/86334
33156 PR target/88906
33157 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33158 addressable from here...
33159 (emit_block_op_via_libcall): ... to here.
33160
33161 2019-01-22 Richard Biener <rguenther@suse.de>
33162
33163 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33164 auto_vec for cost vector to fix memleak.
33165 (vectorize_fold_left_reduction): Properly gather SLP defs.
33166 (vectorizable_comparison): Do not swap operands to properly
33167 gather SLP defs.
33168
33169 2019-01-22 Alan Modra <amodra@gmail.com>
33170
33171 PR target/88614
33172 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33173 stays a reg. Allow a const_int.
33174 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33175 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33176 (IS_NOMARK_TLSGETADDR): Define.
33177 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33178 (rs6000_output_tlsargs): New function.
33179 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33180 __tls_get_addr call takes an arg.
33181 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33182 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33183 delete split..
33184 (call_value_nonlocal_sysv): ..or here, delete split.
33185 (tls_gdld_nomark): Delete.
33186 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33187 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33188 (call_value_nonlocal_sysv): Likewise.
33189 (call_value_nonlocal_sysv_secure): Likewise.
33190 (call_value_nonlocal_aix): Likewise.
33191 (call_value_indirect_aix): Likewise.
33192 (call_value_indirect_elfv2): Likewise.
33193 (call_value_local32, call_value_local64): Disable for no-mark tls.
33194 (call_value_local_aix): Likewise.
33195
33196 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33197
33198 PR target/88938
33199 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33200 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33201
33202 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33203
33204 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33205 string contents as hash_map keys.
33206
33207 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33208
33209 PR c/88928
33210 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33211 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33212 instead of TYPE_ALIGN.
33213 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33214 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33215 pointer from TYPE_STUB_DECL.
33216
33217 2019-01-21 Richard Biener <rguenther@suse.de>
33218
33219 PR tree-optimization/88934
33220 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33221 at the possibly non-constant operand.
33222 (vect_get_constant_vectors): Adjust.
33223
33224 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33225
33226 PR target/71659
33227 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33228 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33229 instead of _X86INTRIN_H_INCLUDED.
33230 * onfig/i386/clwbintrin.h: Likewise.
33231 * config/i386/pkuintrin.h: Likewise.
33232 * config/i386/prfchwintrin.h: Likewise.
33233 * config/i386/rdseedintrin.h: Likewise.
33234 * config/i386/wbnoinvdintrin.h: Likewise.
33235 * config/i386/xsavecintrin.h: Likewise.
33236 * config/i386/xsavesintrin.h: Likewise.
33237 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33238 * config/i386/xsaveintrin.h: Likewise.
33239 * config/i386/xsaveoptintrin.h: Likewise.
33240 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33241 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33242 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33243 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33244 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33245 * config/i386/immintrin.h: Here.
33246
33247 2019-01-20 Martin Jambor <mjambor@suse.cz>
33248
33249 PR ipa/87615
33250 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33251 with aa_walk_budget.
33252 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33253 aa_walk_budget_p parameter.
33254 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33255 walk. Updated all callers.
33256 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33257 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33258 unmodified_parm.
33259 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33260 parameter info. Extract info from fbi. Pass fbi to recursive calls
33261 and to unmodified_parm.
33262 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33263 info, updated call to will_be_nonconstant_expr_predicate.
33264 (param_change_prob): New parameter fbi, limit AA walking.
33265 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33266 calls to various above functions.
33267 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33268 parameter. Use it to limit AA walking.
33269 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33270 fbi, limit AA walk.
33271 (detect_type_change): New parameter fbi, pass it on to
33272 detect_type_change_from_memory_writes.
33273 (detect_type_change_ssa): Likewise.
33274 (aa_overwalked): Removed.
33275 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33276 accordingly, adjust to the neew AA limiting scheme.
33277 (parm_ref_data_preserved_p): Likewise.
33278 (ipa_compute_jump_functions_for_edge): Adjust call to
33279 get_dynamic_type.
33280 (ipa_analyze_call_uses): Likewise.
33281 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33282 (ipa_analyze_node): Initialize aa_walk_budget.
33283 (ipcp_transform_function): Likewise.
33284 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33285 to get_dynamic_type.
33286
33287 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33288
33289 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33290 outside of #if CHECKING_P code.
33291
33292 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33293
33294 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33295 New function, split out from...
33296 (loop_versioning::analyze_stride): ...here.
33297 (loop_versioning::find_per_loop_multiplication): Use gassign.
33298 (loop_versioning::analyze_term_using_scevs): Return a success code.
33299 (loop_versioning::analyze_arbitrary_term): New function.
33300 (loop_versioning::analyze_address_fragment): Use
33301 analyze_arbitrary_term if all else fails.
33302
33303 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33304
33305 PR target/88892
33306 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33307 operands.
33308
33309 2019-01-18 Richard Biener <rguenther@suse.de>
33310
33311 PR tree-optimization/88903
33312 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33313 scalar stmts a SLP shift amount is composed of when detecting
33314 shifts by scalars.
33315
33316 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33317
33318 PR target/88799
33319 * config/arm/arm-cpus.in (mp): New feature.
33320 (sec): New feature.
33321 (fgroup ARMv7ve): Add mp and sec features.
33322 (arch armv7-a): Add options to allow mp and sec extensions.
33323 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33324 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33325 extenstions to the base architecture.
33326 (cpu cortex-a8): Add sec extension to the base architecture.
33327 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33328 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33329 variants down to the base v7-a varaint.
33330 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33331 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33332 of permitted extensions for -march=armv7-a and for
33333 -mcpu=generic-armv7-a.
33334
33335 2019-01-18 Martin Liska <mliska@suse.cz>
33336
33337 * params.def: Fix comment.
33338 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33339 name.
33340 (gimple_gen_ic_func_profiler): Likewise.
33341
33342 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33343
33344 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33345 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33346 and put in error checks for stack protector guard options.
33347 (aarch64_stack_protect_guard): New.
33348 (TARGET_STACK_PROTECT_GUARD): Define.
33349 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33350 (reg_stack_protect_address<mode>): New.
33351 (stack_protect_set): Adjust for SSP_GLOBAL.
33352 (stack_protect_test): Likewise.
33353 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33354 (-mstack-protector-guard): Likewise.
33355 (-mstack-protector-guard-offset): Likewise.
33356
33357 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33358
33359 PR tree-optimization/86214
33360 * tree-inline.h (struct copy_body_data): Add
33361 add_clobbers_to_eh_landing_pads member.
33362 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33363 (copy_edges_for_bb): Call it if EH edge destination is <
33364 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33365 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33366 if flag_stack_reuse != SR_NONE and clear it afterwards.
33367
33368 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33369
33370 PR target/85596
33371 * doc/install.texi (with-multilib-list): Document for aarch64.
33372
33373 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33374
33375 PR target/88734
33376 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33377 (("..."))) with ("...").
33378
33379 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33380
33381 * doc/extend.texi (Built-in Functions for Memory Model Aware
33382 Atomic Operations): Document atomic fetch and nand.
33383
33384 2019-01-18 Martin Liska <mliska@suse.cz>
33385 Richard Biener <rguenther@suse.de>
33386
33387 PR middle-end/88587
33388 * cgraph.h (create_version_clone_with_body): Add new argument
33389 with attributes.
33390 * cgraphclones.c (cgraph_node::create_version_clone): Add
33391 DECL_ATTRIBUTES to a newly created decl. And call
33392 valid_attribute_p so that proper cl_target_optimization_node
33393 is set for the newly created declaration.
33394 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33395 for declaration.
33396 (expand_target_clones): Do not call valid_attribute_p, it must
33397 be already done.
33398 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33399 vector types.
33400
33401 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33402
33403 PR target/88734
33404 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33405 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33406 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33407
33408 2019-01-17 Martin Sebor <msebor@redhat.com>
33409
33410 PR middle-end/88273
33411 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33412 Handle anti-ranges the same as no range at all.
33413
33414 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33415
33416 * config/aarch64/aarch64.c (cgraph.h): New include.
33417 (intl.h): New include.
33418 (supported_simd_type): New function.
33419 (currently_supported_simd_type): Ditto.
33420 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33421 (aarch64_simd_clone_adjust): Ditto.
33422 (aarch64_simd_clone_usable): Ditto.
33423 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33424 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33425 (TARGET_SIMD_CLONE_USABLE): Ditto.
33426 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33427 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33428 call.
33429
33430 2019-01-17 Martin Sebor <msebor@redhat.com>
33431
33432 PR tree-optimization/88800
33433 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33434 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33435 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33436 redundant argument. Add new argument and issue diagnostics under
33437 its control. Detect out-of-bounds access even with warnings
33438 disabled.
33439 (check_bounds_or_overlap): Change return type. Add argument.
33440 (wrestrict_dom_walker::check_call): Adjust.
33441 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33442 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33443 check_bounds_or_overlap's return value.
33444 (handle_builtin_stxncpy): Same.
33445 (handle_builtin_strcat): Same.
33446
33447 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33448 Kwok Cheung Yeung <kcy@codesourcery.com>
33449 Julian Brown <julian@codesourcery.com>
33450 Tom de Vries <tom@codesourcery.com>
33451
33452 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33453
33454 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33455
33456 * doc/sourcebuild.texi: Document dg-require-effective-target
33457 llvm_binutils and offload_gcn.
33458
33459 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33460 Kwok Cheung Yeung <kcy@codesourcery.com>
33461 Julian Brown <julian@codesourcery.com>
33462 Tom de Vries <tom@codesourcery.com>
33463
33464 * doc/sourcebuild.texi: Document dg-required-effective-target
33465 exceptions.
33466
33467 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33468 Kwok Cheung Yeung <kcy@codesourcery.com>
33469 Julian Brown <julian@codesourcery.com>
33470 Tom de Vries <tom@codesourcery.com>
33471 Jan Hubicka <hubicka@ucw.cz>
33472 Martin Jambor <mjambor@suse.cz>
33473
33474 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33475 * configure.ac: Check for dlopen.
33476 * configure: Regenerate.
33477
33478 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33479 Kwok Cheung Yeung <kcy@codesourcery.com>
33480 Julian Brown <julian@codesourcery.com>
33481 Tom de Vries <tom@codesourcery.com>
33482 Jan Hubicka <hubicka@ucw.cz>
33483 Martin Jambor <mjambor@suse.cz>
33484
33485 * common/config/gcn/gcn-common.c: New file.
33486 * config/gcn/driver-gcn.c: New file.
33487 * config/gcn/gcn-builtins.def: New file.
33488 * config/gcn/gcn-hsa.h: New file.
33489 * config/gcn/gcn-modes.def: New file.
33490 * config/gcn/gcn-opts.h: New file.
33491 * config/gcn/gcn-passes.def: New file.
33492 * config/gcn/gcn-protos.h: New file.
33493 * config/gcn/gcn-run.c: New file.
33494 * config/gcn/gcn-tree.c: New file.
33495 * config/gcn/gcn.c: New file.
33496 * config/gcn/gcn.h: New file.
33497 * config/gcn/gcn.opt: New file.
33498 * config/gcn/t-gcn-hsa: New file.
33499
33500 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33501 Kwok Cheung Yeung <kcy@codesourcery.com>
33502 Julian Brown <julian@codesourcery.com>
33503 Tom de Vries <tom@codesourcery.com>
33504 Jan Hubicka <hubicka@ucw.cz>
33505 Martin Jambor <mjambor@suse.cz>
33506
33507 * config/gcn/constraints.md: New file.
33508 * config/gcn/gcn-valu.md: New file.
33509 * config/gcn/gcn.md: New file.
33510 * config/gcn/predicates.md: New file.
33511
33512 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33513
33514 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33515 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33516 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33517 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33518
33519 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33520
33521 PR target/88851
33522 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33523 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33524 it and document registers.
33525
33526 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33527
33528 * config/aarch64/aarch64.c (ares_tunings): Define.
33529 * config/aarch64/aarch64-cores.def (ares): Use the above.
33530
33531 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33532
33533 PR target/88794
33534 Revert:
33535 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33536
33537 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33538 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33539 (_mm512_maskz_fixupimm_round_pd): Ditto.
33540 (_mm512_fixupimm_round_ps): Ditto.
33541 (_mm512_maskz_fixupimm_round_ps): Ditto.
33542 (_mm_fixupimm_round_sd): Ditto.
33543 (_mm_maskz_fixupimm_round_sd): Ditto.
33544 (_mm_fixupimm_round_ss): Ditto.
33545 (_mm_maskz_fixupimm_round_ss): Ditto.
33546 (_mm512_fixupimm_pd): Ditto.
33547 (_mm512_maskz_fixupimm_pd): Ditto.
33548 (_mm512_fixupimm_ps): Ditto.
33549 (_mm512_maskz_fixupimm_ps): Ditto.
33550 (_mm_fixupimm_sd): Ditto.
33551 (_mm_maskz_fixupimm_sd): Ditto.
33552 (_mm_fixupimm_ss): Ditto.
33553 (_mm_maskz_fixupimm_ss): Ditto.
33554 (_mm512_mask_fixupimm_round_pd): Update builtin.
33555 (_mm512_mask_fixupimm_round_ps): Ditto.
33556 (_mm_mask_fixupimm_round_sd): Ditto.
33557 (_mm_mask_fixupimm_round_ss): Ditto.
33558 (_mm512_mask_fixupimm_pd): Ditto.
33559 (_mm512_mask_fixupimm_ps): Ditto.
33560 (_mm_mask_fixupimm_sd): Ditto.
33561 (_mm_mask_fixupimm_ss): Ditto.
33562 * config/i386/avx512vlintrin.h:
33563 (_mm256_fixupimm_pd): Update parameters and builtin.
33564 (_mm256_maskz_fixupimm_pd): Ditto.
33565 (_mm256_fixupimm_ps): Ditto.
33566 (_mm256_maskz_fixupimm_ps): Ditto.
33567 (_mm_fixupimm_pd): Ditto.
33568 (_mm_maskz_fixupimm_pd): Ditto.
33569 (_mm_fixupimm_ps): Ditto.
33570 (_mm_maskz_fixupimm_ps): Ditto.
33571 (_mm256_mask_fixupimm_pd): Update builtin.
33572 (_mm256_mask_fixupimm_ps): Ditto.
33573 (_mm_mask_fixupimm_pd): Ditto.
33574 (_mm_mask_fixupimm_ps): Ditto.
33575 * config/i386/i386-builtin-types.def: Add new types and remove
33576 useless ones.
33577 * config/i386/i386-builtin.def: Update builtin definitions.
33578 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33579 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33580 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33581 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33582 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33583 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33584 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33585 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33586 * config/i386/subst.md:
33587 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33588 (round_saeonly_sd_mask_op4): Ditto.
33589 (round_saeonly_expand_operand5): Ditto.
33590 (round_saeonly_expand): Update.
33591
33592 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33593
33594 PR target/88794
33595 Revert:
33596 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33597
33598 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33599 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33600 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33601 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33602 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33603 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33604 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33605
33606 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33607
33608 PR target/88794
33609 Revert:
33610 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33611
33612 PR target/88489
33613 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33614 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33615 instead of UNSPEC_FIXUPIMM.
33616
33617 2019-01-17 Richard Biener <rguenther@suse.de>
33618
33619 PR lto/86736
33620 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33621 and friends for the LTO part of debug info.
33622
33623 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33624
33625 PR tree-optimization/86214
33626 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33627 if x == y.
33628
33629 PR rtl-optimization/88870
33630 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33631 throw if we can't alter the cfg or delete dead exceptions.
33632 (mark_insn): Don't call find_call_stack_args for such calls.
33633
33634 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33635
33636 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33637 prototypes for vec_st.
33638 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33639 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33640 mainly on signed/unsigned long long and double.
33641
33642 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33643
33644 PR target/88861
33645 * combine.c (delete_noop_moves): Convert to "bool" return,
33646 returning true if any edges are eliminated.
33647 (combine_instructions): Also return true if delete_noop_moves
33648 returns true.
33649
33650 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33651
33652 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33653 correct max nunits for endian swap.
33654 (aarch64_expand_fcmla_builtin): Correct subreg code.
33655 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33656 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33657 lane endianness.
33658
33659 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33660
33661 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33662 Handle split indirect COMPLEX_TYPE arguments.
33663
33664 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33665
33666 PR target/86891
33667 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33668 bit is set by add and compare.
33669 (CC_ADC): New CC_MODE.
33670 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33671 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33672 comparison. Add detection for CC_ADCmode.
33673 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33674 CC_ADCmode.
33675 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33676 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33677 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33678 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33679 to eliminate the need for zero-extending the operands.
33680 (add<mode>3_compareC_imm): Delete. Merge into ...
33681 (add<mode>3_compareC): ... this. Restructure the comparison to
33682 eliminate the need for zero-extending the operands.
33683 (add<mode>3_carryin): Use LTU for the overflow detection.
33684 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33685 Reexpress comparison for overflow.
33686 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33687 (add<mode>3_carryinC): Likewise.
33688 (add<mode>3_carryinV): Use LTU for carry between partials.
33689 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33690 handling of CC_Cmode and add CC_ADCmode.
33691 (aarch64_borrow_operation): Likewise.
33692
33693 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33694
33695 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33696 Remove patternmode.
33697 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33698 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33699 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33700 Remove endianness conversion.
33701
33702 2019-01-16 Martin Liska <mliska@suse.cz>
33703
33704 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33705 for GCC driver.
33706 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33707 a new argument.
33708 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33709 (path_prefix_reset): Move up in the source file.
33710 (find_fortran_preinclude_file): Make complex search for the
33711 fortran header files.
33712
33713 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33714
33715 * godump.c (go_output_typedef): When outputting a typedef, refer
33716 to the underlying type by its name and not its structure.
33717
33718 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33719
33720 PR c++/88795
33721 * tree.c (build_function_type): Assert that arg_types is not
33722 error_mark_node.
33723
33724 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33725
33726 PR inline-asm/52813
33727 * doc/extend.texi: Document that listing the stack pointer in the
33728 clobber list of an asm is a deprecated feature.
33729 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33730 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33731 warning instead of an error for clobbers of the stack pointer.
33732 Add a note explaining why.
33733
33734 2019-01-15 Richard Biener <rguenther@suse.de>
33735
33736 PR debug/88046
33737 * dwarf2out.c (gen_member_die): Do not generate inheritance
33738 DIEs late.
33739
33740 2019-01-15 Richard Biener <rguenther@suse.de>
33741
33742 PR tree-optimization/88855
33743 * tree-if-conv.c (combine_blocks): Collect
33744 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33745
33746 2019-01-15 Tom de Vries <tdevries@suse.de>
33747
33748 PR target/80547
33749 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33750 lhs == NULL_TREE for gang-level reduction.
33751
33752 2019-01-15 Richard Biener <rguenther@suse.de>
33753 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33754
33755 PR ipa/88788
33756 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33757 return true if SSA_NAME is already marked in visited bitmap.
33758 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33759
33760 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33761
33762 PR tree-optimization/88775
33763 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33764 equal == 0 equality pointer comparisons some more if compared in
33765 integral types and either one points to an automatic var and the
33766 other to a global, or we can prove at least one points to the middle
33767 or both point to start or both point to end.
33768
33769 2019-01-14 Andi Kleen <ak@linux.intel.com>
33770
33771 * Makefile.in: Lower autofdo sampling rate by 10x.
33772 * Makefile.tpl: Dito.
33773
33774 2019-01-14 Tom Honermann <tom@honermann.net>
33775
33776 * defaults.h: Define CHAR8_TYPE.
33777
33778 2019-01-14 Martin Sebor <msebor@redhat.com>
33779
33780 PR target/88638
33781 * doc/extend.texi (Darwin Format Checks): Clarify.
33782
33783 2019-01-14 Richard Biener <rguenther@suse.de>
33784
33785 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33786 whether we are in (simplify ...) or (match ...) context.
33787
33788 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33789
33790 PR rtl-optimization/88796
33791 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33792 * cfgexpand.c (stack_protect_prologue): Initialize
33793 crtl->stack_protect_guard_decl.
33794 * function.c (stack_protect_epilogue): Use it instead of calling
33795 targetm.stack_protect_guard again.
33796 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33797 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33798 crtl->stack_protect_guard_decl.
33799 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33800 on the returned MEM_EXPR.
33801
33802 2019-01-12 Tom de Vries <tdevries@suse.de>
33803
33804 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33805 vector length using -fopenacc-dim.
33806
33807 2019-01-12 Tom de Vries <tdevries@suse.de>
33808
33809 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33810 lengths into account.
33811
33812 2019-01-12 Svante Signell <svante.signell@gmail.com>
33813
33814 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33815 (TARGET_CAN_SPLIT_STACK): Define.
33816 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33817
33818 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33819
33820 * params.def (inline-unit-growth): Set to 40.
33821
33822 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33823
33824 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33825
33826 2019-01-12 Tom de Vries <tdevries@suse.de>
33827
33828 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33829 region calling vector-partitionable routine, set default_vector_length
33830 to WARP_SIZE.
33831
33832 2019-01-12 Tom de Vries <tdevries@suse.de>
33833
33834 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33835 variable default_vector_length.
33836
33837 2019-01-12 Tom de Vries <tdevries@suse.de>
33838
33839 PR middle-end/88703
33840 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33841 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33842 dimensions limits.
33843
33844 2019-01-12 Tom de Vries <tdevries@suse.de>
33845
33846 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33847 (nvptx_goacc_validate_dims): Add used parameter.
33848 * doc/tm.texi: Regenerate.
33849 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33850 argument to call to targetm.goacc.validate_dims.
33851 (default_goacc_validate_dims): Add used
33852 parameter.
33853 * target.def (validate_dims): Add used parameter in DEFHOOK.
33854 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33855
33856 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33857
33858 PR middle-end/85956
33859 PR lto/88733
33860 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33861 field.
33862 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33863 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33864 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33865 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33866
33867 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33868
33869 PR rtl-optimization/87305
33870 * lra-assigns.c
33871 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33872 for little endian pseudos used as paradoxical subreg.
33873
33874 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33875
33876 PR tree-optimization/88693
33877 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33878 for STRING_CSTs that don't contain any NUL characters in the first
33879 TREE_STRING_LENGTH bytes.
33880
33881 2019-01-11 Alan Modra <amodra@gmail.com>
33882
33883 PR 88777
33884 PR 88614
33885 * genattrtab.c (min_fn): Don't translate values.
33886 (min_attr_value): Return INT_MAX when the value can't be calculated.
33887 Return minimum among any values that can be calculated.
33888 (max_attr_value): Adjust.
33889
33890 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33891
33892 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33893
33894 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33895
33896 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33897 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33898 (aarch64_return_call_with_max_clobbers): New function.
33899 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33900 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33901 argument.
33902 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33903 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33904 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33905 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33906 * cselib.c (cselib_process_insn): Add argument to
33907 targetm.hard_regno_call_part_clobbered call.
33908 * ira-conflicts.c (ira_build_conflicts): Ditto.
33909 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33910 * lra-constraints.c (inherit_reload_reg): Ditto.
33911 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33912 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33913 argument. Call targetm.return_call_with_max_clobbers.
33914 Add argument to targetm.hard_regno_call_part_clobbered call.
33915 (calls_have_same_clobbers_p): New function.
33916 (process_bb_lives): Add call_insn and last_call_insn variables.
33917 Pass call_insn to check_pseudos_live_through_calls.
33918 Modify if stmt to check targetm.return_call_with_max_clobbers.
33919 Update setting of flush variable.
33920 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33921 to false.
33922 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33923 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33924 targetm.hard_regno_call_part_clobbered call.
33925 * reginfo.c (choose_hard_reg_mode): Ditto.
33926 * regrename.c (check_new_reg_p): Ditto.
33927 * reload.c (find_equiv_reg): Ditto.
33928 * reload1.c (emit_reload_insns): Ditto.
33929 * sched-deps.c (deps_analyze_insn): Ditto.
33930 * sel-sched.c (init_regs_for_mode): Ditto.
33931 (mark_unavailable_hard_regs): Ditto.
33932 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33933 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33934 (return_call_with_max_clobbers): New target function.
33935 * doc/tm.texi: Regenerate.
33936 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33937 * hooks.c (hook_bool_uint_mode_false): Change to
33938 hook_bool_insn_uint_mode_false.
33939 * hooks.h (hook_bool_uint_mode_false): Ditto.
33940
33941 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33942
33943 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33944 (aarch64_remove_extra_call_preserved_regs): New function.
33945 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33946 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33947 * doc/tm.texi: Regenerate.
33948 * final.c (get_call_reg_set_usage): Call new hook.
33949 * target.def (remove_extra_call_preserved_regs): New hook.
33950 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33951 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33952
33953 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33954
33955 PR bootstrap/88714
33956 * passes.c (finish_optimization_passes): Call print_combine_total_stats
33957 inside of pass_combine_1 dump rather than pass_profile_1.
33958
33959 2019-01-11 Tom de Vries <tdevries@suse.de>
33960
33961 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33962 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33963 (PTX_NUM_PER_WORKER_BARRIERS): Define.
33964 (nvptx_apply_dim_limits): Prevent vector_length 64 and
33965 num_workers 16.
33966
33967 2019-01-11 Tom de Vries <tdevries@suse.de>
33968
33969 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33970
33971 2019-01-11 Jan Beulich <jbeulich@suse.com>
33972
33973 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33974 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33975 sse2_cvtsi2sd): Add {l}.
33976 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33977 syntax.
33978
33979 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33980
33981 PR target/88785
33982 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33983 define_expand.
33984 (*float<floatunssuffix>v2div2sf2): New define_insn.
33985 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33986 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33987 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33988 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33989 match_operands with "const0_operand" "C".
33990
33991 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33992
33993 * config/aarch64/aarch64-builtins.c
33994 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33995 (aarch64_init_simd_builtins): ...Here
33996
33997 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
33998
33999 PR rtl-optimization/87305
34000 * lra-assigns.c
34001 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34002 allocation for big endian pseudos used as paradoxical subregs and
34003 spill them if it is wrong.
34004 * lra-constraints.c (lra_constraints): Add a comment.
34005
34006 2019-01-10 Richard Biener <rguenther@suse.de>
34007
34008 PR tree-optimization/88792
34009 * tree-ssa-pre.c (get_representative_for): Do not return a
34010 value-number here.
34011
34012 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34013
34014 PR middle-end/84877
34015 PR bootstrap/88450
34016 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34017 (assign_parm_setup_block): Do the argument slot realignment here
34018 instead.
34019
34020 2019-01-10 Stefan Agner <stefan@agner.ch>
34021
34022 PR target/88648
34023 * config/arm/arm.c (arm_option_override_internal): Force
34024 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34025
34026 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34027
34028 PR c/88568
34029 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34030 DECL_EXTERNAL.
34031
34032 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34033
34034 * config/arm/arm-builtins.c
34035 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34036 (MAC_LANE_PAIR_QUALIFIERS): New.
34037 (arm_expand_builtin_args): Use it.
34038 (arm_expand_builtin_1): Likewise.
34039 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34040 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34041 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34042 * config/arm/arm_neon.h:
34043 (vcadd_rot90_f16): New.
34044 (vcaddq_rot90_f16): New.
34045 (vcadd_rot270_f16): New.
34046 (vcaddq_rot270_f16): New.
34047 (vcmla_f16): New.
34048 (vcmlaq_f16): New.
34049 (vcmla_lane_f16): New.
34050 (vcmla_laneq_f16): New.
34051 (vcmlaq_lane_f16): New.
34052 (vcmlaq_laneq_f16): New.
34053 (vcmla_rot90_f16): New.
34054 (vcmlaq_rot90_f16): New.
34055 (vcmla_rot90_lane_f16): New.
34056 (vcmla_rot90_laneq_f16): New.
34057 (vcmlaq_rot90_lane_f16): New.
34058 (vcmlaq_rot90_laneq_f16): New.
34059 (vcmla_rot180_f16): New.
34060 (vcmlaq_rot180_f16): New.
34061 (vcmla_rot180_lane_f16): New.
34062 (vcmla_rot180_laneq_f16): New.
34063 (vcmlaq_rot180_lane_f16): New.
34064 (vcmlaq_rot180_laneq_f16): New.
34065 (vcmla_rot270_f16): New.
34066 (vcmlaq_rot270_f16): New.
34067 (vcmla_rot270_lane_f16): New.
34068 (vcmla_rot270_laneq_f16): New.
34069 (vcmlaq_rot270_lane_f16): New.
34070 (vcmlaq_rot270_laneq_f16): New.
34071 (vcadd_rot90_f32): New.
34072 (vcaddq_rot90_f32): New.
34073 (vcadd_rot270_f32): New.
34074 (vcaddq_rot270_f32): New.
34075 (vcmla_f32): New.
34076 (vcmlaq_f32): New.
34077 (vcmla_lane_f32): New.
34078 (vcmla_laneq_f32): New.
34079 (vcmlaq_lane_f32): New.
34080 (vcmlaq_laneq_f32): New.
34081 (vcmla_rot90_f32): New.
34082 (vcmlaq_rot90_f32): New.
34083 (vcmla_rot90_lane_f32): New.
34084 (vcmla_rot90_laneq_f32): New.
34085 (vcmlaq_rot90_lane_f32): New.
34086 (vcmlaq_rot90_laneq_f32): New.
34087 (vcmla_rot180_f32): New.
34088 (vcmlaq_rot180_f32): New.
34089 (vcmla_rot180_lane_f32): New.
34090 (vcmla_rot180_laneq_f32): New.
34091 (vcmlaq_rot180_lane_f32): New.
34092 (vcmlaq_rot180_laneq_f32): New.
34093 (vcmla_rot270_f32): New.
34094 (vcmlaq_rot270_f32): New.
34095 (vcmla_rot270_lane_f32): New.
34096 (vcmla_rot270_laneq_f32): New.
34097 (vcmlaq_rot270_lane_f32): New.
34098 (vcmlaq_rot270_laneq_f32): New.
34099 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34100 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34101 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34102 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34103 vcmlaq_lane270): New.
34104 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34105 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34106 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34107 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34108 (arm_option_reconfigure_globals): Use them.
34109 * config/arm/iterators.md (VDF, VQ_HSF): New.
34110 (VCADD, VCMLA): New.
34111 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34112 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34113 New.
34114 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34115 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34116
34117 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34118
34119 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34120 Add qualifier_lane_pair_index.
34121 (emit-rtl.h): Include.
34122 (TYPES_QUADOP_LANE_PAIR): New.
34123 (aarch64_simd_expand_args): Use it.
34124 (aarch64_simd_expand_builtin): Likewise.
34125 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34126 New.
34127 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34128 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34129 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34130 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34131 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34132 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34133 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34134 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34135 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34136 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34137 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34138 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34139 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34140 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34141 Add __ARM_FEATURE_COMPLEX.
34142 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34143 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34144 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34145 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34146 fcmlaq_lane270): New.
34147 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34148 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34149 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34150 * config/aarch64/arm_neon.h:
34151 (vcadd_rot90_f16): New.
34152 (vcaddq_rot90_f16): New.
34153 (vcadd_rot270_f16): New.
34154 (vcaddq_rot270_f16): New.
34155 (vcmla_f16): New.
34156 (vcmlaq_f16): New.
34157 (vcmla_lane_f16): New.
34158 (vcmla_laneq_f16): New.
34159 (vcmlaq_lane_f16): New.
34160 (vcmlaq_rot90_lane_f16): New.
34161 (vcmla_rot90_laneq_f16): New.
34162 (vcmla_rot90_lane_f16): New.
34163 (vcmlaq_rot90_f16): New.
34164 (vcmla_rot90_f16): New.
34165 (vcmlaq_laneq_f16): New.
34166 (vcmla_rot180_laneq_f16): New.
34167 (vcmla_rot180_lane_f16): New.
34168 (vcmlaq_rot180_f16): New.
34169 (vcmla_rot180_f16): New.
34170 (vcmlaq_rot90_laneq_f16): New.
34171 (vcmlaq_rot270_laneq_f16): New.
34172 (vcmlaq_rot270_lane_f16): New.
34173 (vcmla_rot270_laneq_f16): New.
34174 (vcmlaq_rot270_f16): New.
34175 (vcmla_rot270_f16): New.
34176 (vcmlaq_rot180_laneq_f16): New.
34177 (vcmlaq_rot180_lane_f16): New.
34178 (vcmla_rot270_lane_f16): New.
34179 (vcadd_rot90_f32): New.
34180 (vcaddq_rot90_f32): New.
34181 (vcaddq_rot90_f64): New.
34182 (vcadd_rot270_f32): New.
34183 (vcaddq_rot270_f32): New.
34184 (vcaddq_rot270_f64): New.
34185 (vcmla_f32): New.
34186 (vcmlaq_f32): New.
34187 (vcmlaq_f64): New.
34188 (vcmla_lane_f32): New.
34189 (vcmla_laneq_f32): New.
34190 (vcmlaq_lane_f32): New.
34191 (vcmlaq_laneq_f32): New.
34192 (vcmla_rot90_f32): New.
34193 (vcmlaq_rot90_f32): New.
34194 (vcmlaq_rot90_f64): New.
34195 (vcmla_rot90_lane_f32): New.
34196 (vcmla_rot90_laneq_f32): New.
34197 (vcmlaq_rot90_lane_f32): New.
34198 (vcmlaq_rot90_laneq_f32): New.
34199 (vcmla_rot180_f32): New.
34200 (vcmlaq_rot180_f32): New.
34201 (vcmlaq_rot180_f64): New.
34202 (vcmla_rot180_lane_f32): New.
34203 (vcmla_rot180_laneq_f32): New.
34204 (vcmlaq_rot180_lane_f32): New.
34205 (vcmlaq_rot180_laneq_f32): New.
34206 (vcmla_rot270_f32): New.
34207 (vcmlaq_rot270_f32): New.
34208 (vcmlaq_rot270_f64): New.
34209 (vcmla_rot270_lane_f32): New.
34210 (vcmla_rot270_laneq_f32): New.
34211 (vcmlaq_rot270_lane_f32): New.
34212 (vcmlaq_rot270_laneq_f32): New.
34213 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34214 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34215 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34216 (FCADD, FCMLA): New.
34217 (rot): New.
34218 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34219
34220 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34221
34222 PR other/16615
34223
34224 * config/pa/pa.c: Change "can not" to "cannot".
34225 * gimple-ssa-evrp-analyze.c: Likewise.
34226 * ipa-icf.c: Likewise.
34227 * ipa-polymorphic-call.c: Likewise.
34228 * ipa-pure-const.c: Likewise.
34229 * lra-constraints.c: Likewise.
34230 * lra-remat.c: Likewise.
34231 * reload1.c: Likewise.
34232 * reorg.c: Likewise.
34233 * tree-ssa-uninit.c: Likewise.
34234
34235 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34236
34237 PR other/16615
34238
34239 * Makefile.in: Mechanically replace "can not" with "cannot".
34240 * alias.c: Likewise.
34241 * builtins.c: Likewise.
34242 * calls.c: Likewise.
34243 * cgraph.c: Likewise.
34244 * cgraph.h: Likewise.
34245 * cgraphclones.c: Likewise.
34246 * cgraphunit.c: Likewise.
34247 * combine-stack-adj.c: Likewise.
34248 * combine.c: Likewise.
34249 * common/config/i386/i386-common.c: Likewise.
34250 * config/aarch64/aarch64.c: Likewise.
34251 * config/alpha/sync.md: Likewise.
34252 * config/arc/arc.c: Likewise.
34253 * config/arc/predicates.md: Likewise.
34254 * config/arm/arm-c.c: Likewise.
34255 * config/arm/arm.c: Likewise.
34256 * config/arm/arm.h: Likewise.
34257 * config/arm/arm.md: Likewise.
34258 * config/arm/cortex-r4f.md: Likewise.
34259 * config/csky/csky.c: Likewise.
34260 * config/csky/csky.h: Likewise.
34261 * config/darwin-f.c: Likewise.
34262 * config/epiphany/epiphany.md: Likewise.
34263 * config/i386/i386.c: Likewise.
34264 * config/i386/sol2.h: Likewise.
34265 * config/m68k/m68k.c: Likewise.
34266 * config/mcore/mcore.h: Likewise.
34267 * config/microblaze/microblaze.md: Likewise.
34268 * config/mips/20kc.md: Likewise.
34269 * config/mips/sb1.md: Likewise.
34270 * config/nds32/nds32.c: Likewise.
34271 * config/nds32/predicates.md: Likewise.
34272 * config/pa/pa.c: Likewise.
34273 * config/rs6000/e300c2c3.md: Likewise.
34274 * config/rs6000/rs6000.c: Likewise.
34275 * config/s390/s390.h: Likewise.
34276 * config/sh/sh.c: Likewise.
34277 * config/sh/sh.md: Likewise.
34278 * config/spu/vmx2spu.h: Likewise.
34279 * cprop.c: Likewise.
34280 * dbxout.c: Likewise.
34281 * df-scan.c: Likewise.
34282 * doc/cfg.texi: Likewise.
34283 * doc/extend.texi: Likewise.
34284 * doc/fragments.texi: Likewise.
34285 * doc/gty.texi: Likewise.
34286 * doc/invoke.texi: Likewise.
34287 * doc/lto.texi: Likewise.
34288 * doc/md.texi: Likewise.
34289 * doc/objc.texi: Likewise.
34290 * doc/rtl.texi: Likewise.
34291 * doc/tm.texi: Likewise.
34292 * dse.c: Likewise.
34293 * emit-rtl.c: Likewise.
34294 * emit-rtl.h: Likewise.
34295 * except.c: Likewise.
34296 * expmed.c: Likewise.
34297 * expr.c: Likewise.
34298 * fold-const.c: Likewise.
34299 * genautomata.c: Likewise.
34300 * gimple-fold.c: Likewise.
34301 * hard-reg-set.h: Likewise.
34302 * ifcvt.c: Likewise.
34303 * ipa-comdats.c: Likewise.
34304 * ipa-cp.c: Likewise.
34305 * ipa-devirt.c: Likewise.
34306 * ipa-fnsummary.c: Likewise.
34307 * ipa-icf.c: Likewise.
34308 * ipa-inline-transform.c: Likewise.
34309 * ipa-inline.c: Likewise.
34310 * ipa-polymorphic-call.c: Likewise.
34311 * ipa-profile.c: Likewise.
34312 * ipa-prop.c: Likewise.
34313 * ipa-pure-const.c: Likewise.
34314 * ipa-reference.c: Likewise.
34315 * ipa-split.c: Likewise.
34316 * ipa-visibility.c: Likewise.
34317 * ipa.c: Likewise.
34318 * ira-build.c: Likewise.
34319 * ira-color.c: Likewise.
34320 * ira-conflicts.c: Likewise.
34321 * ira-costs.c: Likewise.
34322 * ira-int.h: Likewise.
34323 * ira-lives.c: Likewise.
34324 * ira.c: Likewise.
34325 * ira.h: Likewise.
34326 * loop-invariant.c: Likewise.
34327 * loop-unroll.c: Likewise.
34328 * lower-subreg.c: Likewise.
34329 * lra-assigns.c: Likewise.
34330 * lra-constraints.c: Likewise.
34331 * lra-eliminations.c: Likewise.
34332 * lra-lives.c: Likewise.
34333 * lra-remat.c: Likewise.
34334 * lra-spills.c: Likewise.
34335 * lra.c: Likewise.
34336 * lto-cgraph.c: Likewise.
34337 * lto-streamer-out.c: Likewise.
34338 * postreload-gcse.c: Likewise.
34339 * predict.c: Likewise.
34340 * profile-count.h: Likewise.
34341 * profile.c: Likewise.
34342 * recog.c: Likewise.
34343 * ree.c: Likewise.
34344 * reload.c: Likewise.
34345 * reload1.c: Likewise.
34346 * reorg.c: Likewise.
34347 * resource.c: Likewise.
34348 * rtl.def: Likewise.
34349 * rtl.h: Likewise.
34350 * rtlanal.c: Likewise.
34351 * sched-deps.c: Likewise.
34352 * sched-ebb.c: Likewise.
34353 * sched-rgn.c: Likewise.
34354 * sel-sched-ir.c: Likewise.
34355 * sel-sched.c: Likewise.
34356 * shrink-wrap.c: Likewise.
34357 * simplify-rtx.c: Likewise.
34358 * symtab.c: Likewise.
34359 * target.def: Likewise.
34360 * toplev.c: Likewise.
34361 * tree-call-cdce.c: Likewise.
34362 * tree-cfg.c: Likewise.
34363 * tree-complex.c: Likewise.
34364 * tree-core.h: Likewise.
34365 * tree-eh.c: Likewise.
34366 * tree-inline.c: Likewise.
34367 * tree-loop-distribution.c: Likewise.
34368 * tree-nrv.c: Likewise.
34369 * tree-profile.c: Likewise.
34370 * tree-sra.c: Likewise.
34371 * tree-ssa-alias.c: Likewise.
34372 * tree-ssa-dce.c: Likewise.
34373 * tree-ssa-dom.c: Likewise.
34374 * tree-ssa-forwprop.c: Likewise.
34375 * tree-ssa-loop-im.c: Likewise.
34376 * tree-ssa-loop-ivcanon.c: Likewise.
34377 * tree-ssa-loop-ivopts.c: Likewise.
34378 * tree-ssa-loop-niter.c: Likewise.
34379 * tree-ssa-phionlycprop.c: Likewise.
34380 * tree-ssa-phiopt.c: Likewise.
34381 * tree-ssa-propagate.c: Likewise.
34382 * tree-ssa-threadedge.c: Likewise.
34383 * tree-ssa-threadupdate.c: Likewise.
34384 * tree-ssa-uninit.c: Likewise.
34385 * tree-ssanames.c: Likewise.
34386 * tree-streamer-out.c: Likewise.
34387 * tree.c: Likewise.
34388 * tree.h: Likewise.
34389 * vr-values.c: Likewise.
34390
34391 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34392
34393 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34394 (ix86_split_xorsign): Ditto.
34395 * config/i386/i386.c (ix86_expand_xorsign): New function.
34396 (ix86_split_xorsign): Ditto.
34397 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34398 (xorsign<mode>3): New expander.
34399 (xorsign<mode>3_1): New insn_and_split pattern.
34400 * config/i386/sse.md (xorsign<mode>3): New expander.
34401
34402 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34403
34404 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34405 (*tablejump_sp64): Likewise.
34406 (*tablejump<P:mode>): ...this.
34407 (*call_address_sp32): Merge into...
34408 (*call_address_sp64): Likewise.
34409 (*call_address<P:mode>): ...this.
34410 (*call_symbolic_sp32): Merge into...
34411 (*call_symbolic_sp64): Likewise.
34412 (*call_symbolic<P:mode>): ...this.
34413 (call_value): Remove constraint and add predicate.
34414 (*call_value_address_sp32): Merge into...
34415 (*call_value_address_sp64): Likewise.
34416 (*call_value_address<P:mode>): ...this.
34417 (*call_value_symbolic_sp32): Merge into...
34418 (*call_value_symbolic_sp64): Likewise.
34419 (*call_value_symbolic<P:mode>): ...this.
34420 (*sibcall_symbolic_sp32): Merge into...
34421 (*sibcall_symbolic_sp64): Likewise.
34422 (*sibcall_symbolic<P:mode>): ...this.
34423 (sibcall_value): Remove constraint and add predicate.
34424 (*sibcall_value_symbolic_sp32): Merge into...
34425 (*sibcall_value_symbolic_sp64): Likewise.
34426 (*sibcall_value_symbolic<P:mode>): ...this.
34427 (window_save): Minor tweak.
34428 (*branch_sp32): Merge into...
34429 (*branch_sp64): Likewise.
34430 (*branch<P:mode>): ...this.
34431
34432 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34433 James Clarke <jrtc27@jrtc27.com>
34434
34435 PR target/84010
34436 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34437 consistently in TLS address generation and adjust code to the renaming
34438 of patterns. Mark calls to __tls_get_addr as const.
34439 * config/sparc/sparc.md (tgd_hi22): Turn into...
34440 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34441 (tgd_lo10): Turn into...
34442 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34443 (tgd_add32): Merge into...
34444 (tgd_add64): Likewise.
34445 (tgd_add<P:mode>): ...this and use Pmode throughout.
34446 (tldm_hi22): Turn into...
34447 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34448 (tldm_lo10): Turn into...
34449 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34450 (tldm_add32): Merge into...
34451 (tldm_add64): Likewise.
34452 (tldm_add<P:mode>): ...this and use Pmode throughout.
34453 (tldm_call32): Merge into...
34454 (tldm_call64): Likewise.
34455 (tldm_call<P:mode>): ...this and use Pmode throughout.
34456 (tldo_hix22): Turn into...
34457 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34458 (tldo_lox10): Turn into...
34459 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34460 (tldo_add32): Merge into...
34461 (tldo_add64): Likewise.
34462 (tldo_add<P:mode>): ...this and use Pmode throughout.
34463 (tie_hi22): Turn into...
34464 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34465 (tie_lo10): Turn into...
34466 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34467 (tie_ld64): Use DImode throughout.
34468 (tie_add32): Merge into...
34469 (tie_add64): Likewise.
34470 (tie_add<P:mode>): ...this and use Pmode throughout.
34471 (tle_hix22_sp32): Merge into...
34472 (tle_hix22_sp64): Likewise.
34473 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34474 (tle_lox22_sp32): Merge into...
34475 (tle_lox22_sp64): Likewise.
34476 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34477 (*tldo_ldub_sp32): Merge into...
34478 (*tldo_ldub_sp64): Likewise.
34479 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34480 (*tldo_ldub1_sp32): Merge into...
34481 (*tldo_ldub1_sp64): Likewise.
34482 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34483 (*tldo_ldub2_sp32): Merge into...
34484 (*tldo_ldub2_sp64): Likewise.
34485 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34486 (*tldo_ldsb1_sp32): Merge into...
34487 (*tldo_ldsb1_sp64): Likewise.
34488 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34489 (*tldo_ldsb2_sp32): Merge into...
34490 (*tldo_ldsb2_sp64): Likewise.
34491 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34492 (*tldo_ldub3_sp64): Use DImode throughout.
34493 (*tldo_ldsb3_sp64): Likewise.
34494 (*tldo_lduh_sp32): Merge into...
34495 (*tldo_lduh_sp64): Likewise.
34496 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34497 (*tldo_lduh1_sp32): Merge into...
34498 (*tldo_lduh1_sp64): Likewise.
34499 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34500 (*tldo_ldsh1_sp32): Merge into...
34501 (*tldo_ldsh1_sp64): Likewise.
34502 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34503 (*tldo_lduh2_sp64): Use DImode throughout.
34504 (*tldo_ldsh2_sp64): Likewise.
34505 (*tldo_lduw_sp32): Merge into...
34506 (*tldo_lduw_sp64): Likewise.
34507 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34508 (*tldo_lduw1_sp64): Use DImode throughout.
34509 (*tldo_ldsw1_sp64): Likewise.
34510 (*tldo_ldx_sp64): Likewise.
34511 (*tldo_stb_sp32): Merge into...
34512 (*tldo_stb_sp64): Likewise.
34513 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34514 (*tldo_sth_sp32): Merge into...
34515 (*tldo_sth_sp64): Likewise.
34516 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34517 (*tldo_stw_sp32): Merge into...
34518 (*tldo_stw_sp64): Likewise.
34519 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34520 (*tldo_stx_sp64): Use DImode throughout.
34521
34522 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34523
34524 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34525 check configure option to set BTI and Return Address Signing.
34526 * configure.ac: Add --enable-standard-branch-protection and
34527 --disable-standard-branch-protection.
34528 * configure: Regenerated.
34529 * doc/install.texi: Document the same.
34530
34531 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34532 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34533
34534 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34535 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34536 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34537 if bti is enabled.
34538 * config/aarch64/aarch64-bti-insert.c: New file.
34539 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34540 pass.
34541 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34542 new bti pass.
34543 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34544 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34545 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34546 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34547
34548 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34549
34550 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34551 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34552 Disable bti for -mbranch-protection=none.
34553 (aarch64_handle_standard_branch_protection): Enable bti for
34554 -mbranch-protection=standard.
34555 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34556 -mbranch-protection.
34557 (aarch64_bti_enabled): Check if bti is enabled.
34558 * config/aarch64/aarch64.opt: Declare target variable.
34559 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34560
34561 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34562
34563 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34564 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34565 (aarch64_expand_epilogue): Likewise.
34566 (aarch64_output_mi_thunk): Likewise.
34567 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34568 TAILCALL_ADDR_REGS to x16 and x17.
34569 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34570
34571 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34572
34573 * config/aarch64/aarch64-option-extensions.def: Define
34574 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34575 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34576 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34577 (AARCH64_FL_PREDRES): New.
34578 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34579 AARCH64_FL_PREDRES by default.
34580 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34581
34582 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34583
34584 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34585 ARMv8.5-A.
34586 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34587 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34588 * doc/invoke.texi: Document ARMv8.5-A.
34589
34590 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34591
34592 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34593 (xorsign<mode>3): Likewise.
34594
34595 2019-01-09 Jelinek <jakub@redhat.com>
34596
34597 PR middle-end/88758
34598 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34599 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34600
34601 PR rtl-optimization/88331
34602 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34603 not currently_expanding_to_rtl.
34604
34605 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34606
34607 * doc/invoke.texi (-Os): Remove trailing spaces.
34608 (-finline-functions): Remove reference to -O2.
34609
34610 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34611
34612 PR rtl-optimization/79593
34613 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34614
34615 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34616 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34617
34618 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34619
34620 PR bootstrap/88721
34621 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34622 to -1 on entry.
34623
34624 PR debug/88723
34625 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34626 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34627
34628 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34629
34630 PR target/88717
34631 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34632 ix86_avx_u128_mode_entry.
34633
34634 2019-01-08 Martin Liska <mliska@suse.cz>
34635
34636 PR tree-optimization/88753
34637 * tree-switch-conversion.c (switch_conversion::build_one_array):
34638 Come up with local variable constructor. Convert first to
34639 type of constructor values.
34640
34641 2019-01-08 Richard Biener <rguenther@suse.de>
34642
34643 PR tree-optimization/86554
34644 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34645 rpo_avail): Move earlier.
34646 (visit_nary_op): When value-numbering to expressions
34647 with different overflow behavior make sure there's an
34648 available expression on the path.
34649
34650 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34651
34652 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34653 aarch64_parse_branch_protection,
34654 struct aarch64_branch_protect_type,
34655 aarch64_handle_no_branch_protection,
34656 aarch64_handle_standard_branch_protection,
34657 aarch64_validate_mbranch_protection,
34658 aarch64_handle_pac_ret_protection,
34659 aarch64_handle_attr_branch_protection,
34660 accepted_branch_protection_string,
34661 aarch64_pac_ret_subtypes,
34662 aarch64_branch_protect_types,
34663 aarch64_handle_pac_ret_leaf): Define.
34664 (aarch64_override_options_after_change_1, aarch64_override_options):
34665 Add check for accepted_branch_protection_string.
34666 (aarch64_option_save): Save accepted_branch_protection_string.
34667 (aarch64_option_restore): Save accepted_branch_protection_string.
34668 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34669 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34670 msign-return-address.
34671 * doc/invoke.texi: Add mbranch-protection.
34672
34673 2019-01-08 Alan Modra <amodra@gmail.com>
34674
34675 PR target/88614
34676 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34677 Delete "unknownp" parameter. Adjust callers. Handle
34678 CONST_INT, PLUS, MINUS, and MULT.
34679 (attr_value_aligned): Renamed from or_attr_value.
34680 (min_attr_value): Return INT_MIN for unhandled rtl case..
34681 (min_fn): ..and translate to INT_MAX here.
34682 (write_length_unit_log): Modify to cope without "unknown".
34683 (write_attr_value): Handle IF_THEN_ELSE.
34684
34685 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34686
34687 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34688 optimization for masked stores.
34689
34690 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34691
34692 PR middle-end/88567
34693 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34694 output vector directly to duplicate_and_interleave instead of
34695 going through a temporary. Postpone insertion of ctor_seq to
34696 the end of the loop.
34697
34698 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34699
34700 PR target/86891
34701 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34702 unsigned_p. Handle signed and unsigned overflow correction as
34703 required.
34704 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34705 prototype.
34706 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34707 for operand 2.
34708 (add<mode>3_compareV_imm): Make this callable for expanding.
34709 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34710 aarch64_plus_operand for operand 2.
34711 (subv<GPI:mode>_insn): New insn pattern.
34712 (subv<GPI:mode>_imm): Likewise.
34713 (negv<GPI:mode>3): New expand pattern.
34714 (negv<GPI:mode>_insn): New insn pattern.
34715 (negv<GPI:mode>_cmp_only): Likewise.
34716 (cmpv<GPI:mode>_insn): Likewise.
34717 (subvti4): Use register_operand for operand 1. Update call to
34718 aarch64_expand_subvti.
34719 (usubvti4): Likewise.
34720 (negvti3): New expand pattern.
34721 (negdi_carryout): New insn pattern.
34722 (negvdi_carryinV): New insn pattern.
34723 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34724 version the named version.
34725 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34726 operands.
34727 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34728 patterns.
34729 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34730 patterns.
34731 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34732 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34733 (sub<mode>3_carryinCV): Delete.
34734 (sub<GPI:mode>3_carryinV): New expand pattern.
34735 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34736
34737 2019-01-07 Richard Biener <rguenther@suse.de>
34738
34739 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34740 of tree_operand_hash.
34741
34742 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34743
34744 PR tree-optimization/88598
34745 * tree.h (single_nonzero_element): Declare.
34746 * tree.c (single_nonzero_element): New function.
34747 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34748 if I is the only nonzero element of CST.
34749
34750 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34751
34752 PR tree-optimization/88598
34753 * tree.h (initializer_each_zero_or_onep): Declare.
34754 * tree.c (initializer_each_zero_or_onep): New function.
34755 (signed_or_unsigned_type_for): Handle float types too.
34756 (unsigned_type_for, signed_type_for): Update comments accordingly.
34757 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34758 x & { 0 or -1, 0 or -1, ... }.
34759
34760 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34761
34762 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34763 with x86_64-pc-linux-gnu.
34764
34765 2019-01-07 Tom de Vries <tdevries@suse.de>
34766
34767 PR target/85486
34768 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34769 function.
34770 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34771 routines.
34772
34773 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34774
34775 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34776 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34777 TARGET_AVX512F as condition.
34778
34779 PR debug/88723
34780 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34781 const_not_ok_for_debug_p target hook.
34782 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34783 on UNSPEC and subexpressions thereof if all subexpressions of the
34784 UNSPEC are CONSTANT_P.
34785
34786 PR tree-optimization/88676
34787 * tree-ssa-phiopt.c (two_value_replacement): New function.
34788 (tree_ssa_phiopt_worker): Call it.
34789
34790 PR sanitizer/88619
34791 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34792 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34793
34794 PR c++/85052
34795 * tree-vect-generic.c: Include insn-config.h and recog.h.
34796 (expand_vector_piecewise): Add defaulted ret_type argument,
34797 if non-NULL, use that in preference to type for the result type.
34798 (expand_vector_parallel): Formatting fix.
34799 (do_vec_conversion, do_vec_narrowing_conversion,
34800 expand_vector_conversion): New functions.
34801 (expand_vector_operations_1): Call expand_vector_conversion
34802 for VEC_CONVERT ifn calls.
34803 * internal-fn.def (VEC_CONVERT): New internal function.
34804 * internal-fn.c (expand_VEC_CONVERT): New function.
34805 * fold-const-call.c (fold_const_vec_convert): New function.
34806 (fold_const_call): Use it for CFN_VEC_CONVERT.
34807 * doc/extend.texi (__builtin_convertvector): Document.
34808
34809 2019-01-07 Tom de Vries <tdevries@suse.de>
34810
34811 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34812 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34813 vector_red_partition, vector_red_sym): New global variables.
34814 (nvptx_option_override): Initialize vector_red_sym.
34815 (nvptx_declare_function_name): Restore red_partition register.
34816 (nvptx_file_end): Emit code to declare the vector reduction variables.
34817 (nvptx_output_red_partition): New function.
34818 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34819 large vector reductions.
34820 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34821 (nvptx_init_builtins): Add VECTOR_ADDR.
34822 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34823 Handle nvptx_expand_shared_addr.
34824 (nvptx_get_shared_red_addr): Add vector argument and handle large
34825 vectors.
34826 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34827 large vectors.
34828 (nvptx_goacc_reduction_init): Likewise.
34829 (nvptx_goacc_reduction_fini): Likewise.
34830 (nvptx_goacc_reduction_teardown): Likewise.
34831 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34832 init,fini,teardown}.
34833 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34834 (nvptx_set_current_function): Init vector_red_partition.
34835 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34836 (nvptx_red_partition): New insn.
34837 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34838
34839 2019-01-07 Tom de Vries <tdevries@suse.de>
34840
34841 PR target/85381
34842 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34843 empty loops.
34844
34845 2019-01-07 Tom de Vries <tdevries@suse.de>
34846
34847 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34848 (nvptx_option_override): Init oacc_bcast_partition.
34849 (nvptx_init_oacc_workers): New function.
34850 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34851 (nvptx_needs_shared_bcast): New function.
34852 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34853 to propagate state.
34854 (nvptx_shared_propagate): Initialize vector bcast partition and
34855 synchronization state.
34856 (nvptx_single): Generalize to enable vectors to use shared-memory
34857 to propagate state.
34858 (nvptx_process_pars): Likewise.
34859 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34860 * config/nvptx/nvptx.h (struct machine_function): Add
34861 bcast_partition and sync_bar members.
34862
34863 2019-01-07 Tom de Vries <tdevries@suse.de>
34864
34865 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34866 (nvptx_apply_dim_limits): New function.
34867 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34868 PTX_WARP_SIZE.
34869
34870 2019-01-07 Tom de Vries <tdevries@suse.de>
34871
34872 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34873 as late as possible.
34874
34875 2019-01-07 Tom de Vries <tdevries@suse.de>
34876
34877 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34878 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34879 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34880 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34881 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34882
34883 2019-01-07 Tom de Vries <tdevries@suse.de>
34884
34885 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34886
34887 2019-01-07 Tom de Vries <tdevries@suse.de>
34888
34889 * omp-offload.c (oacc_get_min_dim): New function.
34890 * omp-offload.h (oacc_get_min_dim): Declare.
34891
34892 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34893
34894 PR target/88521
34895 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34896 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34897
34898 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34899
34900 PR tree-opt/86020
34901 Revert:
34902 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34903
34904 * ipa-inline.c (edge_badness): Use inlined_time instead of
34905 inline_summaries->get.
34906
34907 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34908
34909 * opts.c (enable_fdo_optimizations): Enable
34910 version-loops-for-strides, loop-interchange, unrol-and-jam
34911 and tree-loop-distribution.
34912 * invoke.texi: Document newly enabled options.
34913
34914 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34915
34916 * doc/invoke.texi (max-inline-insns-small): New parameters.
34917 * ipa-inline.c (want_early_inline_function_p): simplify.
34918 (want_inline_small_function_p): Fix pasto from previous patch;
34919 use max-inline-insns-small bound.
34920 * params.def (max-inline-insns-small): New param.
34921 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34922 variables correctly.
34923
34924 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34925
34926 * doc/invoke.texi: Document max-inline-insns-size,
34927 uninlined-function-insns, uninlined-function-time,
34928 uninlined-thunk-insns and uninlined-thunk-time.
34929 * params.def: Add max-inline-insns-size,
34930 uninlined-function-insns, uninlined-function-time,
34931 uninlined-thunk-insns and uninlined-thunk-time.
34932 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34933 new parameters.
34934 * ipa-inline.c (can_inline_edge_by_limits_p,
34935 want_inline_small_function_p): Use new parameters.
34936
34937 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34938
34939 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34940
34941 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34942
34943 PR middle-end/82564
34944 PR target/88620
34945 * expr.c (expand_assignment): For calls returning VLA structures
34946 if to_rtx is not a MEM, force it into a stack temporary.
34947
34948 PR debug/88635
34949 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34950 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34951 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34952 subexpressions of both operands.
34953 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34954 subrtxes are CONSTANT_P.
34955 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34956 2018-11-09 changes.
34957
34958 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
34959
34960 * params.def (hot-bb-count-ws-permille): Set to 990.
34961
34962 2019-01-04 Martin Sebor <msebor@redhat.com>
34963
34964 PR c/88546
34965 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34966 leaf.
34967
34968 2019-01-04 Martin Sebor <msebor@redhat.com>
34969
34970 PR c/88363
34971 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34972
34973 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34974
34975 * gdbinit.in: Turn off pagination for the skip commands, restore
34976 it to previous state afterwards.
34977
34978 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34979
34980 PR target/88594
34981 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34982 of GET_MODE (opN) as modes of the libcall arguments.
34983
34984 2019-01-04 Jan Beulich <jbeulich@suse.com>
34985
34986 * config/i386/sse.md
34987 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34988 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34989 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34990 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34991 avx512f_vmcmp<mode>3<round_saeonly_name>,
34992 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34993 avx512f_maskcmp<mode>3,
34994 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34995 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34996 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34997 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34998 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34999 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35000 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35001 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35002 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35003 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35004 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35005 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35006 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35007 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35008 avx512cd_maskb_vec_dup<mode>,
35009 avx512cd_maskw_vec_dup<mode>,
35010 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35011 avx512dq_vmfpclass<mode>,
35012 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35013 instead of =Yk.
35014
35015 2019-01-03 Martin Sebor <msebor@redhat.com>
35016
35017 PR tree-optimization/88659
35018 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35019
35020 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35021
35022 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35023 unaligned vsx and avoid lxvd2x/stxvd2x.
35024 (gen_lvx_v4si_move): New function.
35025
35026 2019-01-03 Tom de Vries <tdevries@suse.de>
35027
35028 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35029 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35030 function.
35031 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35032
35033 2019-01-03 Tom de Vries <tdevries@suse.de>
35034
35035 * config/nvptx/nvptx.c (struct offload_attrs): New.
35036 (populate_offload_attrs): New function. Factor mask extraction out of
35037 nvptx_reorg. Add extraction of dimensions.
35038 (nvptx_reorg): Use populate_offload_attrs.
35039
35040 2019-01-03 Tom de Vries <tdevries@suse.de>
35041
35042 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35043 cases for oacc_min_dims_p and routine_p. Add asserts for
35044 oacc_default_dims_p and offload_region_p.
35045
35046 2019-01-03 Tom de Vries <tdevries@suse.de>
35047
35048 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35049 factored out of ...
35050 (nvptx_goacc_validate_dims): ... here.
35051
35052 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35053
35054 PR tree-optimization/85574
35055 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35056 structure.
35057 (struct ssa_equip_hash_traits): Declare.
35058 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35059
35060 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35061
35062 PR debug/88644
35063 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35064 change it to qualified_type.
35065
35066 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35067
35068 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35069 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35070
35071 2019-01-02 Martin Sebor <msebor@redhat.com>
35072 Jeff Law <law@redhat.com>
35073
35074 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35075 (get_range_strlen_tree): Update appropriately.
35076 (get_range_strlen)
35077 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35078
35079 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35080 rather than set_range_info.
35081 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35082 maybe_set_strlen_range. Handle potentially boundary crossing
35083 cases more conservatively.
35084 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35085 Call set_strlen_range.
35086 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35087
35088 PR middle-end/88663
35089 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35090 need the flexp argument.
35091 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35092 from calls to get_range_strlen. Update comments. Just update
35093 VAL for an unterminated const char array and let the reset of the
35094 code handle it normally. No longer try to set *flexp. Adjust
35095 return value.
35096 (get_range_strlen): Update for the new get_range_strlen API.
35097 (get_maxval_strlen): Similarly.
35098 (gimple_fold_builtin_strlen): Handle update meaning of return value
35099 from get_range_strlen.
35100 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35101 get_range_strlen API.
35102
35103 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35104
35105 PR lto/88130
35106 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35107 false at WPA time when body was removed.
35108
35109 2019-01-02 Martin Liska <mliska@suse.cz>
35110
35111 PR tree-optimization/88650
35112 * predict.c (set_even_probabilities): Calculate probability
35113 remainer only when really used.
35114
35115 2019-01-02 Richard Biener <rguenther@suse.de>
35116
35117 PR middle-end/88651
35118 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35119 widest_ints when mangling max_stmt_execution results.
35120
35121 2019-01-02 Richard Biener <rguenther@suse.de>
35122
35123 PR tree-optimization/88621
35124 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35125 bitfields when canoncalizing.
35126
35127 2019-01-02 Richard Biener <rguenther@suse.de>
35128
35129 PR target/87545
35130 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35131 cost of cheap SSE instruction.
35132
35133 2019-01-02 Richard Biener <rguenther@suse.de>
35134
35135 PR ipa/85574
35136 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35137 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35138 function.
35139 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35140 set after UIDs before splitting them.
35141
35142 2019-01-01 Martin Sebor <msebor@redhat.com>
35143 Jeff Law <law@redhat.com>
35144
35145 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35146 length is optimistic. If it is, then arrange to compute the
35147 conservative length as well.
35148
35149 * gimple-fold.h (get_range_strlen): Update prototype.
35150 * builtins.c (check_access): Update call to get_range_strlen to use
35151 c_strlen_data pointer. Change various variable accesses to instead
35152 pull data from the c_strlen_data structure.
35153 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35154 * calls.c (maybe_warn_nonstring_arg): Likewise.
35155 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35156 minimum length if maximum lengh is unknown.
35157 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35158 that used c_strlen, it's no longer needed. Restructure slightly.
35159 (format_string): Set unlikely range appropriately.
35160 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35161 formatting issues.
35162 (get_range_strlen): Accept c_strlen_data pointer for external
35163 call sites as well. Pass through to call to internal get_range_strlen.
35164 Adjust minlen, maxlen and maxbound as needed.
35165 (get_maxval_strlen): Update comments.
35166 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35167 to use c_strlen_data pointer. Change variable accesses to instead
35168 use c_strlen_data data members.
35169
35170 * gimple-fold.c (get_range_strlen): Update prototype.
35171 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35172 local variables. Use pdata to return information to caller.
35173 Update calls to get_range_strlen. Update pdata->maxbound.
35174 (get_range_strlen -- static version): Similarly.
35175 (get_range_strlen -- extern version): Update for internal
35176 get_range_strlen API change. Convert to external data format.
35177 (get_maxval_strlen): Similarly.
35178
35179 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35180
35181 * coverage.c (get_coverage_counts): Use current_function_decl.
35182 * profile.c (read_thunk_profile): New function.
35183 (branch_prob): Add THUNK parameter.
35184 * tree-profile.c (tree_profiling): Handle thunks.
35185 * value-prof.c (init_node_map): Handle thunks.
35186 * value-prof.h (branch_prob): Upate prototype.
35187 (read_thunk_profile): Declare.
35188
35189 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35190
35191 Update copyright years.
35192
35193 * gcc.c (process_command): Update copyright notice dates.
35194 * gcov-dump.c (print_version): Ditto.
35195 * gcov.c (print_version): Ditto.
35196 * gcov-tool.c (print_version): Ditto.
35197 * gengtype.c (create_file): Ditto.
35198 * doc/cpp.texi: Bump @copying's copyright year.
35199 * doc/cppinternals.texi: Ditto.
35200 * doc/gcc.texi: Ditto.
35201 * doc/gccint.texi: Ditto.
35202 * doc/gcov.texi: Ditto.
35203 * doc/install.texi: Ditto.
35204 * doc/invoke.texi: Ditto.
35205 \f
35206 Copyright (C) 2019 Free Software Foundation, Inc.
35207
35208 Copying and distribution of this file, with or without modification,
35209 are permitted in any medium without royalty provided the copyright
35210 notice and this notice are preserved.