Fix VIEW_CONVERT_EXPRs for VECTOR_BOOLEAN_TYPE_Ps
[gcc.git] / gcc / ChangeLog
1 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
2
3 * fold-const.c (native_encode_vector_part): Handle
4 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
5 (native_decode_vector_tree): Delete, moving the bulk of the code to...
6 (native_interpret_vector_part): ...this new function. Use a pointer
7 and length instead of a vec<> and start index.
8 (native_interpret_vector): Use native_interpret_vector_part.
9 (fold_view_convert_vector_encoding): Likewise.
10
11 2019-12-04 Richard Biener <rguenther@suse.de>
12
13 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
14 non-constant defs in the most trivial way.
15 (vn_reference_lookup_3): Also push down SSA partial defs.
16
17 2019-12-04 Martin Liska <mliska@suse.cz>
18
19 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
20 Initialize count of newly created BB.
21
22 2019-12-04 Jakub Jelinek <jakub@redhat.com>
23
24 PR tree-optimization/92734
25 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
26 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
27
28 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
29
30 PR target/92760
31 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
32 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
33
34 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
35
36 * ipa-fnsummary.c: Include tree-into-ssa.h.
37 (compute_fn_summary): Call update_ssa.
38
39 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
40
41 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
42 is set only for symbol in comdat group.
43 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
44
45 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
46
47 * cgraph.c: Include tree-into-ssa.h
48 (cgraph_node::get_body): Call update_ssa.
49 * cgraphunit.c (cgraph_node::expand): Likewise.
50 * lto-streamer-in.c (input_function): Do not call update_ssa.
51
52 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
53
54 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
55 an array element size if array_element_size is already an invariant.
56 Similarly don't gimplify and install a field offset if
57 component_ref_field_offset is already an invariant.
58
59 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
60
61 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
62 with POLY_INT_CST size is made to a fixed-size object, force the
63 object to live in memory.
64
65 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
66
67 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
68 for the data mode.
69
70 2019-12-03 Richard Biener <rguenther@suse.de>
71
72 PR tree-optimization/92758
73 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
74 operation on uniform vectors.
75
76 2019-12-03 Richard Biener <rguenther@suse.de>
77
78 PR tree-optimization/92645
79 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
80 from or to a properly aligned register variable.
81
82 2019-12-03 Matthias Klose <doko@ubuntu.com>
83
84 * Makefile.in (SOURCES): Add doc/lto-dump.1.
85 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
86 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
87
88 2019-12-03 Richard Biener <rguenther@suse.de>
89
90 PR tree-optimization/92751
91 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
92 when a clobber ends up in the partial-def vector.
93 (vn_reference_lookup_3): Let clobbers be handled by the
94 assignment from CTOR handling.
95
96 2019-12-03 Jakub Jelinek <jakub@redhat.com>
97
98 PR tree-optimization/92734
99 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
100 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
101 inner subtraction.
102
103 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
104 Jakub Jelinek <jakub@redhat.com>
105
106 PR target/92744
107 * config/i386/i386.md (peephole2 for *swap<mode>): Use
108 general_reg_operand predicates instead of register_operand.
109
110 2019-12-03 Richard Biener <rguenther@suse.de>
111
112 PR tree-optimization/92645
113 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
114 a full def of a vector via a BIT_INSERT_EXPR.
115
116 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
117
118 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
119 static.
120 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
121 decl.
122
123 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
124
125 PR middle-end/92741
126 * fold-const.c (fold_convertible_p): Check vector types more
127 thoroughly.
128
129 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
130
131 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
132 (aarch64_expand_mov_immediate): Use it when attempting to measure
133 the length of an SVE vector.
134 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
135 SVE is enabled.
136
137 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
138
139 * config/aarch64/aarch64-sve-builtins.h
140 (gimple_folder::force_vector): Declare.
141 * config/aarch64/aarch64-sve-builtins.cc
142 (gimple_folder::force_vector): New function.
143 * config/aarch64/aarch64-sve-builtins-base.cc
144 (svcmp_impl::fold): Likewise.
145 (svdup_impl::fold): Handle svdup_z too.
146
147 2019-12-02 Martin Liska <mliska@suse.cz>
148
149 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
150 function.
151 (debug_tree_odr_name): New.
152 * ipa-utils.h (get_odr_name_for_type): New.
153
154 2019-12-02 Richard Biener <rguenther@suse.de>
155
156 PR tree-optimization/92742
157 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
158 touch the def-type but verify it is consistent with the
159 original stmts.
160
161 2019-12-02 Jakub Jelinek <jakub@redhat.com>
162
163 PR tree-optimization/92712
164 * match.pd ((A * B) +- A -> (B +- 1) * A,
165 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
166 even when we don't know anything about range of A, but do know
167 something about range of B and the simplification won't introduce
168 new UB.
169
170 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
171
172 PR ipa/92133
173 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
174 (ipa-cp-min-recursive-probability): Likewise.
175 * params.opt (ipa-cp-max-recursive-depth): New.
176 (ipa-cp-min-recursive-probability): Likewise.
177 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
178 val_p and unlimited.
179 (self_recursively_generated_p): New function.
180 (get_val_across_arith_op): Likewise.
181 (propagate_vals_across_arith_jfunc): Add constant propagation for
182 self-recursive function.
183 (incorporate_penalties): Do not penalize pure self-recursive function.
184 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
185 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
186 (get_info_about_necessary_edges): Relax hotness check for edge to
187 self-recursive function.
188 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
189
190 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
191
192 PR target/92499
193
194 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
195 objects of flexible types to be small if they have internal linkage
196 or are declared extern.
197 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
198 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
199 instead of the size of the object initializer.
200 * tree.c (flexible_array_type_p): Move from C front end, and
201 generalize to handle fields in non-C structures.
202 * tree.h (flexible_array_type_p): Declare.
203
204 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
205
206 * profile-count.h (profile_count::operator<): Use IPA value for
207 comparsion.
208 (profile_count::operator>): Likewise.
209 (profile_count::operator<=): Likewise.
210 (profile_count::operator>=): Likewise.
211 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
212
213 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
214
215 * ipa-inline.c (compute_max_insns): Return int64_t.
216 (inline_small_functions): Simplify.
217
218 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
219
220 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
221 scaling happen.
222
223 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
224
225 * cgraph.h (symtab_node): Add symver flag.
226 * cgraphunit.c (process_symver_attribute): New.
227 (process_common_attributes): Use process_symver_attribute.
228 * lto-cgraph.c (lto_output_node): Stream symver.
229 (lto_output_varpool_node): Stream symver.
230 (input_overwrite_node): Stream symver.
231 (input_varpool_node): Stream symver.
232 * output.h (do_assemble_symver): Decalre.
233 * symtab.c (symtab_node::dump_base): Dump symver.
234 (symtab_node::verify_base): Verify symver.
235 (symtab_node::resolve_alias): Handle symver.
236 * varasm.c (do_assemble_symver): New function.
237 * varpool.c (varpool_node::assemble_aliases): Use it.
238 * doc/extend.texi: (symver attribute): Document.
239 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
240
241 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
242
243 * target.h (type_context_kind): New enum.
244 (verify_type_context): Declare.
245 * target.def (verify_type_context): New target hook.
246 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
247 * doc/tm.texi: Regenerate.
248 * tree.c (verify_type_context): New function.
249 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
250 Declare.
251 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
252 New function.
253 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
254 (TARGET_VERIFY_TYPE_CONTEXT): Define.
255
256 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
257
258 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
259 * cgraph.h (cgraph_node): Add unit_id and
260 merged_extern_inline.
261 (symbol_table): Add max_unit.
262 (symbol_table::symbol_table): Initialize it.
263 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
264 merged_comdat, merged_extern_inline.
265 (cgraph_node::create_clone): Likewise.
266 (cgraph_node::create_version_clone): Likewise.
267 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
268 calls.
269 * ipa-fnsummary.h (cross_module_call_p): New inline function.
270 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
271 * ipa-inline.c (inline_small_functions): Likewise.
272 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
273 copy merged_comdat and merged_extern_inline.
274 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
275 merged_extern_inline and unit_id.
276 (input_overwrite_node): Stream in these.
277 (input_cgraph_1): Set unit_base.
278 * lto-streamer.h (lto_file_decl_data): Add unit_base.
279 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
280
281 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
282
283 * gcc.c (process_command): Only warn about an ineffective `-x'
284 option if any input files have actually been supplied.
285
286 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
287
288 * doc/install.texi (Options specification): Remove the list of
289 target library subdirectories supporting
290 `--enable-version-specific-runtime-libs'. Document defaults for
291 the option.
292
293 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
294
295 PR rtl-optimization/92283
296 * lra.c (lra): Update reg notes after inheritance sub-pass and
297 before constraint sub-pass.
298
299 2019-11-29 Richard Biener <rguenther@suse.de>
300
301 PR tree-optimization/91003
302 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
303 operand number, avoid handling the non-condition operands of
304 COND_EXPRs as comparisons.
305 (vect_get_constant_vectors): Pass down the operand number.
306 (vect_get_slp_defs): Likewise.
307
308 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
309
310 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
311 generic_expr_could_trap_p to check if the condition of COND_EXPR or
312 VEC_COND_EXPR can trap.
313
314 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
315
316 PR tree-optimization/92677
317 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
318 to zero when dissolving a group of strided accesses.
319
320 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
321
322 PR tree-optimization/92596
323 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
324 operations.
325 (vectorizable_operation): Likewise, instead of relying on
326 vect_get_mask_type_for_stmt to do this.
327 (vect_get_vector_types_for_stmt): Always return a vector type
328 immediately, rather than deferring the choice for boolean results.
329 Use a vector mask type instead of a normal vector if
330 vect_use_mask_type_p.
331 (vect_get_mask_type_for_stmt): Delete.
332 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
333 mask_producers argument and special boolean_type_node handling.
334 (vect_determine_vf_for_stmt): Remove mask_producers argument and
335 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
336 (vect_determine_vectorization_factor): Update call accordingly.
337 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
338 boolean_type_node handling.
339 (vect_slp_analyze_node_operations_1): Likewise.
340
341 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
342
343 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
344 (vect_use_mask_type_p): New function.
345 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
346 mask precision to the pattern statement.
347 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
348 and use it to initialize the new stmt's mask precision.
349 (search_type_for_mask_1): Delete.
350 (search_type_for_mask): Replace with...
351 (integer_type_for_mask): ...this new function. Use the information
352 cached in the stmt_vec_info.
353 (vect_recog_bool_pattern): Update accordingly.
354 (build_mask_conversion): Pass the scalar type associated with the
355 mask type to append_pattern_def_seq.
356 (vect_recog_mask_conversion_pattern): Likewise. Call
357 integer_type_for_mask instead of search_type_for_mask.
358 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
359 of search_type_for_mask.
360 (possible_vector_mask_operation_p): New function.
361 (vect_determine_mask_precision): Likewise.
362 (vect_determine_stmt_precisions): Call it.
363
364 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
365
366 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
367 the slp_tree parameter with a group size parameter.
368 (vect_get_mask_type_for_stmt): Likewise.
369 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
370 (vect_get_mask_type_for_stmt): Likewise.
371 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
372 call accordingly.
373
374 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
375
376 * tree-vect-stmts.c (vectorizable_operation): Punt early
377 on codes that are handled elsewhere.
378
379 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
380
381 * doc/sourcebuild.texi (vect_bool_cmp): Document.
382 * tree-vect-patterns.c (search_type_for_mask_1): If neither
383 operand to a boolean comparison is a natural vector mask,
384 handle both operands like normal integers instead.
385
386 2019-11-29 Richard Biener <rguenther@suse.de>
387
388 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
389 out early for too large objects.
390
391 2019-11-29 Martin Jambor <mjambor@suse.cz>
392
393 PR ipa/92476
394 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
395 the summary only if the summary exists.
396 (find_more_scalar_values_for_callers_subset): Check node_dead in
397 the summary only if the summary exists.
398 (ipcp_store_bits_results): Ignore nodes without lattices.
399 (ipcp_store_vr_results): Likewise.
400 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
401 header files required by them.
402 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
403
404 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
405
406 PR tree-optimization/92710
407 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
408 vector mask arguments.
409
410 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
411
412 * profile-count.c (profile_count::to_cgraph_frequency,
413 profile_count::to_sreal_scale): Check for compaibility of counts.
414 * profile-count.h (compatible_p): Make public; add checking for
415 global0 versus global types.
416 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
417
418 2019-11-29 Richard Biener <rguenther@suse.de>
419
420 PR tree-optimization/92715
421 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
422 out for uniform vectors and source vectors with less elements
423 than the destination.
424
425 2019-11-29 Martin Liska <mliska@suse.cz>
426
427 PR lto/91574
428 * ipa-devirt.c (types_same_for_odr): Check for existence
429 of TYPE_NAMEs first.
430
431 2019-11-29 Richard Biener <rguenther@suse.de>
432
433 PR tree-optimization/92704
434 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
435 in loops performing only loads.
436
437 2019-11-29 Julian Brown <julian@codesourcery.com>
438
439 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
440 BT_DFLOAT128_PTR) Remove.
441 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
442 TI_DFLOAT128_PTR_TYPE): Remove.
443 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
444 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
445 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
446 dfloat128_ptr_type_node): Remove macros.
447
448 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
449
450 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
451 formatting.
452 (*movdi_internal64): Ditto.
453
454 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
455
456 PR target/92602
457 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
458 indexed_or_indirect_operand to be memory_operand.
459 (bswap<mode>2_store for HSI): Ditto.
460 (bswapdi2_load): Ditto.
461 (bswapdi2_store): Ditto.
462
463 2019-11-28 Martin Liska <mliska@suse.cz>
464
465 PR debug/46558
466 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
467 headers for translation.
468
469 2019-11-28 Martin Liska <mliska@suse.cz>
470
471 PR lto/92609
472 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
473 consistently.
474
475 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
476
477 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
478 checks.
479
480 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
481
482 * profile-count.c (profile_count::combine_with_ipa_count): Return
483 uninitialized count if called on ininitialized count.
484
485 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
486
487 * ipa-inline-transform.c (inline_transform): Scale profile before
488 redirecting.
489
490 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
491
492 * profile-count.h (profile_count::max): Work on profiles of different
493 type.
494 (profile_count::apply_scale): Be sure that ret is not local or global0
495 type if num is global.
496
497 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
498
499 * profile-count.h (profile_count::max): Work on profiles of different
500 type.
501 (profile_count::apply_scale): Be sure that ret is not local or global0
502 type if num is global.
503
504 2019-11-28 Martin Jambor <mjambor@suse.cz>
505
506 PR ipa/92697
507 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
508 ifunc_resolvers.
509 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
510 Removed trailig whitespace.
511
512 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
513
514 * profile-count.h (profile_count::combine_with_ipa_count_within):
515 Declare.
516 * profile-count.c (profile_count::combine_with_ipa_count_within):
517 New.
518 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
519 it.
520
521 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
522
523 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
524 of counters are done same way.
525
526 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
527
528 * ipa-cp.c (update_profiling_info): Fix scaling.
529
530 2019-11-28 Richard Biener <rguenther@suse.de>
531
532 PR tree-optimization/92645
533 * tree-inline.c (remap_gimple_stmt): When the return value
534 is not wanted, elide GIMPLE_RETURN.
535
536 2019-11-28 Richard Biener <rguenther@suse.de>
537
538 PR tree-optimization/92645
539 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
540 conversions inside a mode class. Remove restriction on
541 preserving the element size.
542 (simplify_vector_constructor): Deal with the above and for
543 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
544 and VEC_PACK_TRUNC_EXPR.
545
546 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
547
548 Must use push insn to pass varargs arguments of DFmode because
549 otherwise the middle-end generates wrong code.
550
551 PR target/92055
552 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
553
554 2019-11-28 Jakub Jelinek <jakub@redhat.com>
555
556 PR tree-optimization/92691
557 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
558 in function comment.
559 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
560 calls, return !handle_printf_call rather than always returning true.
561 (check_and_optimize_stmt): Describe return value meaning in function
562 comment. Formatting fix.
563
564 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
565
566 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
567 combination of globa0 and global counters..
568
569 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
570
571 PR target/92566
572 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
573 by VECTOR_UNIT_NONE_P instead.
574
575 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
576
577 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
578 Refine VF to VF_AVX512VL.
579
580 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
581
582 * config/rs6000/rs6000.md (movsi_internal): Reformat.
583 (movdi_internal64): Reformat.
584
585 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
586
587 PR bootstrap/92661
588 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
589 builtin if we don't have an actual type.
590 (builtin_function_type): If the builtin function uses a DFP type
591 and decimal float has been disabled, then return NULL_TREE.
592
593 2019-11-27 Jakub Jelinek <jakub@redhat.com>
594
595 PR rtl-optimization/92510
596 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
597 of comparison into a comparison with different mode if both imode and
598 omode are scalar integral modes.
599
600 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
601
602 PR rtl-optimization/90007
603 * recog.c (constrain_operands): Permit hard registers too for
604 memory when LRA is used.
605
606 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
607
608 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
609 between Coldfire and regular m68k.
610 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
611
612 2019-11-27 Richard Biener <rguenther@suse.de>
613
614 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
615 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
616 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
617 * optabs-tree.c (supportable_convert_operation): Do not call
618 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
619 * optabs-tree.h (supportable_convert_operation): Adjust.
620 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
621 * doc/tm.texi: Regenerate.
622 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
623 * tree-vect-generic.c (expand_vector_conversion): Likewise.
624 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
625 unused decl parameter and adjust.
626 (vect_create_vectorized_promotion_stmts): Likewise.
627 (vectorizable_conversion): Adjust.
628
629 2019-11-27 Richard Biener <rguenther@suse.de>
630
631 PR tree-optimization/92690
632 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
633 converting elements not originally converted.
634
635 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
636
637 PR middle-end/92463
638 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
639 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
640 mpfr_rnd_t instead of mp_rnd_t.
641 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
642 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
643 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
644 Use mpfr_exp_t instead of mp_exp_t.
645 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
646 MPFR_RNDx instead of GMP_RNDx.
647 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
648 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
649 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
650 of mp_rnd_t and remove MPFR_RNDx poisoning.
651 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
652
653 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
654
655 PR tree-optimization/91790
656 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
657 DR for vect_setup_realignment when first_stmt_info is different
658 from first_stmt_info_for_drptr.
659
660 2019-11-27 Richard Biener <rguenther@suse.de>
661
662 PR tree-optimization/92645
663 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
664 CTORs with just a subset of the original vectors.
665
666 2019-11-27 Richard Biener <rguenther@suse.de>
667
668 PR middle-end/92674
669 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
670 edges and instead record blocks in bitmap.
671 (gimple_expand_calls_inline): Adjust.
672 (fold_marked_statements): Delay EH cleanup until all folding is
673 done.
674 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
675 inlining finished.
676
677 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
678
679 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
680 LRA is enabled.
681 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
682 disabled.
683
684 2019-11-27 Jakub Jelinek <jakub@redhat.com>
685
686 PR debug/92664
687 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
688
689 2019-11-26 Martin Sebor <msebor@redhat.com>
690
691 PR tree-optimization/92683
692 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
693 inadvertently removed in a previous change. Rename local variable
694 for clarity.
695
696 2019-11-26 Richard Biener <rguenther@suse.de>
697
698 PR middle-end/92669
699 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
700 NULL pre_order.
701
702 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
703
704 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
705
706 2019-11-26 Jakub Jelinek <jakub@redhat.com>
707
708 PR tree-optimization/92644
709 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
710 next to INTEGER_CST checks.
711
712 2019-11-26 Richard Biener <rguenther@suse.de>
713
714 PR tree-optimization/92645
715 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
716 do not build the operation from scalars if the operand is.
717
718 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
719
720 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
721 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
722 definitions.
723
724 2019-11-25 Martin Liska <mliska@suse.cz>
725
726 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
727 up used dump message.
728
729 2019-11-25 Martin Liska <mliska@suse.cz>
730
731 PR bootstrap/92653
732 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
733 too strict checking assert.
734
735 2019-11-25 Joseph Myers <joseph@codesourcery.com>
736
737 PR c/91985
738 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
739 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
740 error_mark_node if corresponding global tree node is NULL.
741 * tree.c (build_common_tree_nodes): Do not initialize
742 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
743 decimal floating-point not supported.
744
745 2019-11-25 Joseph Myers <joseph@codesourcery.com>
746
747 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
748 types.
749
750 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
751
752 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
753 Replace code for non-CONST_INT constants with gcc_unreachable.
754 * config/m68k/m68k.md (cbranchdi): Don't generate individual
755 compare and test.
756 (CMPMODE): New mode_iterator.
757 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
758 cbranch<mode>4.
759 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
760 cstore<mode>4.
761 (cmp<mode>_68881): Remove 'F' constraint from first comparison
762 operand.
763 (bit test insns patterns): Use nonimmediate_operand, not
764 register_operand, for source operands that allow memory in
765 their constraints.
766 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
767 Use register_operand, not nonimmediate_operand, for the
768 destinations.
769 (DBCC): New mode_iterator.
770 (dbcc peepholes): Use it to reduce duplication.
771 (trap): Use const_true_rtx, not const1_rtx.
772 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
773 from m68k_subword_comparison_operand and changed to handle
774 SImode.
775
776 PR target/91851
777 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
778 declaration.
779 (m68k_init_cc): New declaration.
780 (m68k_output_compare_di, m68k_output_compare_si)
781 (m68k_output_compare_hi, m68k_output_compare_qi)
782 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
783 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
784 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
785 m68k_output_branch_float, m68k_output_branch_float_rev):
786 Likewise.
787 (valid_dbcc_comparison_p_2, flags_in_68881)
788 (output_btst): Remove declaration.
789 * config/m68k/m68k.c (INCLDUE_STRING): Define.
790 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
791 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
792 (flags_compare_op0, flags_compare_op1, flags_operand1,
793 flags_operand2, flags_valid): New static variables.
794 (m68k_find_flags_value, m68k_init_cc): New functions.
795 (handle_flags_for_move, m68k_asm_final_postscan_insn,
796 remember_compare_flags): New static functions.
797 (output_dbcc_and_branch): New argument CODE. Use it, and add
798 PLUS and MINUS to the possible codes. All callers changed.
799 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
800 and INSN arguments, add CODE arg. Return the comparison code
801 to use. All callers changed. Use CODE instead of
802 next_insn_tests_no_inequality, and replace cc_status management
803 with changing the return code.
804 (m68k_rtx_costs): Instead of testing for COMPARE, test for
805 RTX_COMPARE or RTX_COMM_COMPARE.
806 (output_move_simode, output_move_qimode): Call
807 handle_flags_for_move.
808 (notice_update_cc): Delete function.
809 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
810 m68k_output_compare_hi, m68k_output_compare_qi,
811 m68k_output_compare_fp, m68k_output_branch_integer,
812 m68k_output_branch_integer_rev, m68k_output_scc,
813 m68k_output_branch_float, m68k_output_branch_float_rev,
814 m68k_output_scc_float): New functions.
815 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
816 once at the start, and set flags_valid and flags_operand1 if the
817 flags are usable.
818 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
819 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
820 definitions.
821 (CC_STATUS_INIT): Define.
822 * config/m68k/m68k.md (flags_valid): New define_attr.
823 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
824 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
825 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
826 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
827 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
828 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
829 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
830 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
831 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
832 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
833 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
834 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
835 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
836 ctrapqi4, conditional_trap): Delete patterns.
837 (cbranchdi4_insn): New pattern.
838 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
839 test high part only. When testing EQ or NE, generate beq0_di
840 and bne0_di patterns directly.
841 (cstoredi4): When testing LT or GE, test high part only.
842 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
843 patterns.
844 (scc0_constraints, cmp1_constraints, cmp2_constraints,
845 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
846 cmp2_cf_predicate): New define_mode_attrs.
847 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
848 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
849 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
850 New patterns.
851 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
852 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
853 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
854 New patterns.
855 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
856 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
857 Likewise.
858 (BTST): New define_mode_iterator.
859 (btst_predicate, btst_constraint, btst_range): New
860 define_mode_attrs.
861 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
862 patterns.
863 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
864 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
865 patterns): Set attr "flags_valid".
866 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
867 management. Set attr "flags_valid".
868 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
869 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
870 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
871 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
872 manual CC_STATUS management.
873 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
874 unnamed strict_lowpart subhi and subqi patterns): Set attr
875 "flags_valid".
876 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
877 Remove code to operate on address regs and assert the case
878 does not occur.
879 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
880 manual CC_STATUS_INIT.
881 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
882 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
883 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
884 one_cmplqi2, unnamed strict_lowpart patterns
885 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
886 one_cmplhi and one_cmplqi): Set attr "flags_valid".
887 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
888 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
889 CC_STATUS_INIT.
890 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
891 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
892 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
893 unnamed strict_low_part patterns for HI and
894 QI versions): Set attr "flags_valid".
895 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
896 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
897 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
898 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
899 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
900 (various unnamed peepholes): Adjust compare/branch sequences
901 for new cbranch patterns.
902 (dbcc peepholes): Likewise, and output the comparison here
903 as well.
904 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
905 (fp_src_operand): Allow constant zero.
906 (address_reg_operand): New predicate.
907
908 * rtl.h (inequality_comparisons_p): Remove declaration.
909 * recog.h (next_insn_tests_no_inequality): Likewise.
910 * rtlanal.c (inequality_comparisons_p): Delete function.
911 * recog.c (next_insn_tests_no_inequality): Likewise.
912
913 2019-11-25 Richard Biener <rguenther@suse.de>
914
915 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
916 (vect_detect_hybrid_slp): Swap lane and instance iteration,
917 properly re-building the visited hash-map for each lane.
918
919 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
920
921 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
922 gcn_md_reorg): Remove unused variables.
923 (gcn_emutls_var_init): Add missing (but unreachable) return
924 to silence warning.
925 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
926 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
927 an uninitialized variable.
928
929 2019-11-25 Martin Jambor <mjambor@suse.cz>
930
931 PR ipa/92109
932 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
933 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
934 (cgraph_materialize_clone): Move removel from clone tree to the
935 the new method and use it instead.
936 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
937 bodies of clones, also remove it from the clone tree.
938
939 2019-11-25 Martin Jambor <mjambor@suse.cz>
940
941 PR ipa/91956
942 * ipa-sra.c (process_isra_node_results): Put the new node to the
943 same comdat group as the original node.
944
945 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
946
947 Build double32 / long-double32 multilibs if needed.
948
949 PR target/92055
950 * config/avr/t-avr:
951 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
952 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
953 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
954 tm_defines and pass to genmultilib.awk.
955 * config/avr/genmultilib.awk: Use these variables to add double32
956 and / or long-double32 multilib(s) as needed.
957 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
958
959 2019-11-25 Richard Biener <rguenther@suse.de>
960
961 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
962 loop body, defaulted to NULL.
963 (single_likely_exit): Add exit vector argument
964 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
965 (number_of_iterations_exit): Likewise.
966 (number_of_iterations_exit_assumptions): Likewise.
967 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
968 if not NULL.
969 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
970 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
971 Compute exit vector around call to single_likely_exit.
972 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
973 loop body to loop_only_exit_p.
974 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
975 caller.
976 (number_of_iterations_exit_assumptions): Get loop body from caller
977 if not NULL.
978 (number_of_iterations_exit): Pass through new loop body arg.
979 (infer_loop_bounds_from_undefined): Get loop body from caller.
980 (estimate_numbers_of_iterations): Compute loop body once.
981
982 2019-11-25 Richard Biener <rguenther@suse.de>
983
984 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
985 auto_bb_flag instead of an sbitmap for visited handling.
986
987 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
988
989 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
990 iterator.
991 (vector_fp_comparison_complex): Likewise.
992 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
993 define_and_split.
994 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
995 Likewise.
996 (vector_lt<mode> for VEC_F): Refactor with
997 vector_fp_comparison_simple.
998 (vector_le<mode> for VEC_F): Likewise.
999 (vector_unge<mode> for VEC_F): Likewise.
1000 (vector_unle<mode> for VEC_F): Likewise.
1001 (vector_ne<mode> for VEC_F): Likewise.
1002 (vector_ungt<mode> for VEC_F): Likewise.
1003 (vector_unlt<mode> for VEC_F): Likewise.
1004 (vector_ltgt<mode> for VEC_F): Refactor with
1005 vector_fp_comparison_complex.
1006 (vector_ordered<mode> for VEC_F): Likewise.
1007 (vector_uneq<mode> for VEC_F): Likewise.
1008 (vector_unordered<mode> for VEC_F): Likewise.
1009
1010 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1011
1012 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1013 COMPARE, representing an overflow detection.
1014
1015 * combine.c (combine_instructions): Record costs for jumps.
1016
1017 * combine.c (can_combine_p): Allow autoinc in jumps.
1018
1019 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1020
1021 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1022 * doc/invoke.texi (max-inline-insns-single-O2,
1023 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1024 early-inlining-insns-O2): Remove documentation.
1025 * ipa-fnsummary.c (analyze_function_body,
1026 compute_fn_summary): Use opt_for_fn when accessing parameters.
1027 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1028 inline_insns_auto, can_inline_edge_by_limits_p,
1029 want_early_inline_function_p, big_speedup_p,
1030 want_inline_small_function_p, want_inline_self_recursive_call_p,
1031 recursive_inlining, compute_max_insns, inline_small_functions):
1032 Likewise.
1033 * opts.c (default_options): Add -O3 defaults for
1034 OPT__param_early_inlining_insns_,
1035 OPT__param_inline_heuristics_hint_percent_,
1036 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1037 * params.opt (-param=early-inlining-insns-O2=,
1038 -param=inline-heuristics-hint-percent-O2=,
1039 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1040 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1041 -param=inline-min-speedup=, -param=inline-unit-growth=,
1042 -param=large-function-growth=, -param=large-stack-frame=,
1043 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1044 -param=max-inline-insns-recursive=,
1045 -param=max-inline-insns-recursive-auto=,
1046 -param=max-inline-insns-single=,
1047 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1048 -param=max-inline-recursive-depth=,
1049 -param=max-inline-recursive-depth-auto=,
1050 -param=min-inline-recursive-probability=,
1051 -param=partial-inlining-entry-probability=,
1052 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1053 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1054 Optimization.
1055
1056 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1057
1058 * ipa-fnsummary.c: Fix comment typos.
1059 * ipa-ref.h: Likewise.
1060 * ipa-predicate.h: Likewise.
1061 * ipa-split.c: Likewise.
1062 * ipa-inline-analysis.c: Likewise.
1063 * ipa-predicate.c: Likewise.
1064 * ipa-devirt.c: Likewise.
1065 * ipa-icf.h: Likewise.
1066 * profile-count.c: Likewise.
1067 * ipa-icf.c: Likewise.
1068 (sem_function::equals_wpa): Fix typos in dump messages.
1069 * ipa-icf-gimple.h: Fix comment typos.
1070 * ipa-inline-transform.c: Likewise.
1071 * ipa-polymorphic-call.c: Likewise.
1072 * ipa-fnsummary.h: Likewise.
1073 * ipa-inline.c: Likewise.
1074 (dump_inline_stats): Fix typo in debug dump message.
1075 * profile-count.h: Fix comment typos.
1076
1077 PR target/92615
1078 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1079 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1080 register_operand, force x into register before storing it into dest.
1081 Formatting fix.
1082
1083 PR middle-end/83859
1084 * doc/extend.texi (attribute access): Fix a typo.
1085
1086 PR rtl-optimization/92610
1087 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1088 cse_cfg_altered is set, even when tem is 0.
1089 (rest_of_handle_cse_after_global_opts): Likewise.
1090
1091 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1092
1093 PR c++/92458
1094 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1095 tree_hash): Move to ...
1096 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1097 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1098 types.
1099 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1100
1101 PR tree-optimization/92618
1102 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1103 containing the auto_vec and a tree.
1104 (undistribute_bitref_for_vector): Handle the case when element type
1105 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1106 fixes.
1107
1108 2019-11-22 Martin Sebor <msebor@redhat.com>
1109
1110 PR middle-end/83859
1111 * attribs.h (struct attr_access): New.
1112 * attribs.c (decl_attributes): Add an informational note.
1113 * builtins.c (check_access): Make extern. Consistently set no-warning
1114 after issuing a warning. Handle calls through function pointers. Set
1115 no-warning.
1116 * builtins.h (check_access): Declare.
1117 * calls.c (rdwr_access_hash): New type.
1118 (rdwr_map): Same.
1119 (init_attr_rdwr_indices): New function.
1120 (maybe_warn_rdwr_sizes): Same.
1121 (initialize_argument_information): Call init_attr_rdwr_indices.
1122 Call maybe_warn_rdwr_sizes.
1123 (get_size_range): Avoid null argument.
1124 * doc/extend.texi (attribute access): Document new attribute.
1125
1126 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1127
1128 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1129 (ACC_LDS_SIZE): Define.
1130 (OTHER_LDS_SIZE): Define.
1131 (LDS_SIZE): Redefine using above.
1132 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1133
1134 2019-11-22 Martin Sebor <msebor@redhat.com>
1135
1136 PR middle-end/88226
1137 * builtins.c (check_nul_terminated_array): New function.
1138 (fold_builtin_0): Remove declaration.
1139 (fold_builtin_1): Same.
1140 (fold_builtin_2): Same.
1141 (fold_builtin_3): Same.
1142 (fold_builtin_strpbrk): Add argument.
1143 (fold_builtin_strspn): Same.
1144 (fold_builtin_strcspn): Same.
1145 (expand_builtin_strcat): Call it. Remove unused argument.
1146 (expand_builtin_stpncpy): Same.
1147 (expand_builtin_strncat): Same.
1148 (expand_builtin_strncpy): Same. Adjust indentation.
1149 (expand_builtin_strcmp): Same.
1150 (expand_builtin_strncmp): Same.
1151 (expand_builtin_fork_or_exec): Same.
1152 (expand_builtin): Handle more built-ins.
1153 (fold_builtin_2): Add argument.
1154 (fold_builtin_n): Make static. Add argument.
1155 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1156 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1157 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1158 (fold_call_stmt): Pass new argument to fold_builtin_n.
1159 * builtins.h: Correct a comment.
1160 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1161 check_nul_terminated_array.
1162 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1163 check_nul_terminated_array.
1164 (handle_builtin_strchr): Same.
1165 (handle_builtin_string_cmp): Same.
1166
1167 2019-11-22 Martin Sebor <msebor@redhat.com>
1168
1169 PR tree-optimization/92501
1170 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1171 handle unterminated arrays. Rename local variables for clarity.
1172
1173 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1174
1175 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1176 granulated_sgprs according to architecture.
1177
1178 2019-11-22 Jan Hubicka <jh@suse.cz>
1179
1180 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1181 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1182 (memory_block_pool::reduce_free_list): ... this one.
1183 (memory_block_pool::trim): New static function.
1184 * memory-block.h (memory_block_pool::freelist_size): New constant
1185 (memory_block_pool::clear_free_list): Rename to ...
1186 (memory_block_pool::reduce_free_list): ... this one.
1187 (memory_block_pool::trim): Declare.
1188
1189 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1190
1191 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1192 vect_cost_for_stmt.
1193 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1194 here rather than...
1195 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1196
1197 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1198
1199 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1200 (bic_cmp0_noout): New pattern.
1201 (bic_cmp0): Likewise.
1202 (neg_scc_insn): Remove pattern.
1203 (not_scc_insn): Likewise.
1204
1205 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1206
1207 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1208
1209 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1210
1211 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1212 pedwarn instead of warning_at for fallthrough not preceding a case
1213 or default label.
1214
1215 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1216
1217 PR tree-optimization/92608
1218 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1219 of dyn_cast.
1220
1221 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1222
1223 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1224 New predicate.
1225 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1226 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1227 special for FP comparisons that need a cror instruction eventually.
1228 (rs6000_emit_fp_cror): New function.
1229 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1230 instruction, for normal FP modes, with HONOR_NANS.
1231 (rs6000_emit_cbranch): Reformat.
1232 * config/rs6000/rs6000.md (fp_rev): New iterator.
1233 (fp_two): New iterator.
1234 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1235 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1236 *cbranch_2insn: New define_insn_and_split.
1237
1238 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1239
1240 PR tree-optimization/92526
1241 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1242 versioning for alignment if the accesses do not have a consistent
1243 mask, rather than asserting that the masks are consistent.
1244
1245 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1246
1247 PR tree-optimization/92595
1248 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1249 check.
1250 (vectorizable_store, vectorizable_load): Likewise.
1251
1252 2019-11-21 Jan Hubicka <jh@suse.cz>
1253
1254 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1255 (resolve_noninline_speculation, inline_small_functions): Avoid
1256 redundant updates.
1257
1258 2019-11-21 Richard Biener <rguenther@suse.de>
1259
1260 * lra.c (lra_insn_recog_data_pool): New.
1261 (free_insn_recog_data): Adjust.
1262 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1263 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1264
1265 2019-11-21 Richard Biener <rguenther@suse.de>
1266
1267 PR tree-optimization/92596
1268 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1269
1270 2019-11-21 Jan Hubicka <jh@suse.cz>
1271
1272 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1273 ready for some vectors to not be allocated.
1274 (evaluate_properties_for_edge): Document better; make
1275 known_vals and known_aggs caller allocated; avoid determining
1276 values of parameters which are not used.
1277 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1278 known_aggs.
1279 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1280 (do_estimate_edge_size): Likewise.
1281 (do_estimate_edge_hints): Likewise.
1282 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1283 values are not known.
1284 (ipa_release_agg_values): Add option to not release vector itself.
1285 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1286
1287 2019-11-21 Richard Biener <rguenther@suse.de>
1288
1289 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1290 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1291 (loop_iterator::loop_iterator): Adjust.
1292 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1293 (compute_dominance_frontiers): ... this. Hoist invariant
1294 get_immediate_dominator call.
1295 (compute_idf): Use a work-set instead of a work-list for more
1296 optimal iteration order and duplicate avoidance.
1297 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1298 the vector all the time, instead pre-allocate the vector only
1299 once.
1300 (delete_update_ssa): Simplify.
1301 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1302
1303 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1304
1305 PR tree-optimization/91355
1306 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1307 for early_bb scaled count with best_bb count comparison.
1308
1309 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1310 preffer -> prefer.
1311 * ipa-inline.c (edge_badness): Likewise.
1312 * lto-streamer.h (class lto_location_cache): Likewise.
1313 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1314 gratutious -> gratuitous.
1315
1316 2019-11-21 Richard Biener <rguenther@suse.de>
1317
1318 Revert
1319 2019-09-17 Richard Biener <rguenther@suse.de>
1320
1321 PR tree-optimization/91790
1322 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1323 use the correct DR for setting up realignment.
1324
1325 2019-11-21 Richard Biener <rguenther@suse.de>
1326
1327 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1328 (equiv_class_obstack): New.
1329 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1330 (perform_var_substitution): Initialize equiv_class_obstack.
1331 (free_var_substitution_info): Free equiv_class_obstack.
1332
1333 2019-11-20 Jan Hubicka <jh@suse.cz>
1334
1335 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1336 edge growth when callee function is very large.
1337 * ipa-inline.h (estimate_min_edge_growth): New.
1338
1339 2019-11-20 Jan Hubicka <jh@suse.cz>
1340
1341 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1342 negative time in calls summary; correct roundoff errors
1343 leading to negative times.
1344 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1345 if present.
1346 (ipa_update_overall_fn_summary): Add RESET parameter.
1347 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1348 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1349
1350 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1351
1352 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1353 def types for two-operation SLP.
1354
1355 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1356
1357 PR testsuite/92366
1358 * doc/sourcebuild.texi (vect_char_add): Document.
1359
1360 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1361
1362 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1363 * function.c (record_final_call): Record even calls that might
1364 have been in the cgraph.
1365 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1366 callees.
1367
1368 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1369
1370 * configure.ac: Use https for gcc.gnu.org
1371 * configure: Regenerated.
1372 * doc/install.texi: Use https for gcc.gnu.org.
1373 * doc/sourcebuild.texi: Likewise.
1374
1375 2019-11-20 Julian Brown <julian@codesourcery.com>
1376
1377 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1378
1379 2019-11-20 Jan Hubicka <jh@suse.cz>
1380
1381 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1382 parameter and update call_size_time_table.
1383 (ipa_fn_summary::max_size_time_table_size): New constant.
1384 (estimate_calls_size_and_time_1): Break out from ...
1385 (estimate_calls_size_and_time): ... here; implement summary production.
1386 (summarize_calls_size_and_time): New function.
1387 (ipa_call_context::estimate_size_and_time): Bypass
1388 estimate_calls_size_and_time for leaf functions.
1389 (ipa_update_overall_fn_summary): Likewise.
1390 * ipa-fnsummary.h (call_size_time_table): New.
1391 (ipa_fn_summary::account_size_time): Update prototype.
1392
1393 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1394
1395 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1396
1397 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1398
1399 PR85678
1400 * common.opt (fcommon): Change init to 1.
1401 * doc/invoke.texi (-fcommon): Update documentation.
1402
1403 2019-11-20 Jan Hubicka <jh@suse.cz>
1404
1405 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1406 to ordinary array.
1407
1408 2019-11-20 Jan Hubicka <jh@suse.cz>
1409
1410 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1411 Add allocator parameter.
1412 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1413 (fibonacci_heap<K,V>::m_allocator): New.
1414 (fibonacci_heap<K,V>::m_own_allocator): New.
1415 (fibonacci_heap<K,V>::insert): Use allocator.
1416 (fibonacci_heap<K,V>::extract_min): Likewise.
1417 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1418 allocator.
1419 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1420 on stack.
1421 * fibonacci_heap.c: Include alloc-pool
1422 (test_empty_heap): Initialize allocator.
1423 (test_union): Likewise.
1424 * bb-reorder.c: Include alloc-pool.h.
1425 * tracer.c: Inlclude alloc-pool.h.
1426
1427 2019-11-20 Jan Hubicka <jh@suse.cz>
1428
1429 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1430 Preallocate for 32 entries.
1431 (DFS::worklist): Likewise.
1432 (DFS::DFS): Do not initialize sccstack and worklist.
1433 (DFS::~DFS): Do not release sccstack.
1434
1435 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1436
1437 PR target/92573
1438 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1439 Handle UNORDERED if !HONOR_NANS.
1440
1441 2019-11-20 Jan Hubicka <jh@suse.cz>
1442
1443 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1444 (edge_badness): ... here.
1445 (inline_small_functions): Use monotonicity of badness calculation
1446 to avoid redundant updates.
1447
1448 2019-11-20 Richard Biener <rguenther@suse.de>
1449
1450 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1451 constructors we are actually analyzing.
1452 (vect_slp_check_for_constructors): Do not vectorize uniform
1453 constuctors, do not dump here.
1454
1455 2019-11-20 Richard Biener <rguenther@suse.de>
1456
1457 PR tree-optimization/92537
1458 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1459 vectorization validity check...
1460 (vect_slp_analyze_operations): ... here.
1461
1462 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1463
1464 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1465 (make_pass_arc_predicate_delay_insns): Likewise.
1466 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1467 method, remove clone.
1468 (class pass_arc_predicate_delay_insns): Likewise.
1469 (arc_init): Remove registering of ARC specific passes.
1470 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1471 * config/arc/arc-passes.def: New file.
1472
1473 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1474
1475 PR middle-end/90840
1476 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1477 and has a mode that doesn't have corresponding integral type.
1478
1479 PR target/90867
1480 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1481 clear opts->x_ix86_isa_flags{,2} here...
1482 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1483 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1484
1485 PR c/90898
1486 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1487 assertion.
1488 (insert_clobbers_for_var): Fix a typo in function comment.
1489
1490 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1491 Jakub Jelinek <jakub@redhat.com>
1492
1493 PR middle-end/91195
1494 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1495 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1496 load.
1497
1498 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1499
1500 Make 0-series device specs work with older versions of avr-gcc.
1501
1502 PR target/92545
1503 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1504 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1505 <*link_pm_base_address>: Don't write spec.
1506 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1507
1508 2019-11-20 Richard Biener <rguenther@suse.de>
1509
1510 PR c/92088
1511 * builtins.c (compute_objsize): Deal with VLAs.
1512
1513 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1514
1515 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1516 from common code.
1517 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1518 call new function.
1519 (power9_sched_reorder2): Call new function.
1520 (rs6000_sched_reorder2): Likewise.
1521
1522 2019-11-18 Jan Hubicka <jh@suse.cz>
1523
1524 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1525 (estimate_calls_size_and_time): Update.
1526
1527 2019-11-18 Jan Hubicka <jh@suse.cz>
1528
1529 * ipa-inline.c (inlining_speedup): New function.
1530 (edge_badness): Use it.
1531
1532 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1533 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1534
1535 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1536 Mark as not having "likely" version.
1537 * config/mips/mips.md (insn_count): The simd_div instruction with
1538 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1539 (can_delay): Exclude simd_branch.
1540 (defile_delay *): Add simd_branch instructions.
1541 They have one regular delay slot.
1542
1543 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1544
1545 Revert:
1546 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1547
1548 * cse.c (cse_insn): Delete no-op register moves too.
1549 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1550 Take a second comparison to control the value for NE.
1551 (mask_to_comparison): Handle unsigned comparisons.
1552 (simplify_logical_relational_operation): Likewise. Update call
1553 to comparison_to_mask. Handle AND if !HONOR_NANs.
1554 (simplify_binary_operation_1): Call the above for AND too.
1555
1556 2019-11-19 Martin Liska <mliska@suse.cz>
1557
1558 * toplev.c (general_init): Move the call...
1559 (toplev::main): ... here as we need init_options_struct
1560 being called.
1561
1562 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1563
1564 PR target/79262
1565 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1566 vec_to_scalar_cost.
1567
1568 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1569
1570 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1571 (armv7-a): Likewise.
1572 (armv7ve): Likewise.
1573
1574 2019-11-19 Richard Biener <rguenther@suse.de>
1575
1576 PR tree-optimization/92581
1577 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1578 condition reduction chains gather all conditions involved
1579 for computing the index reduction vector.
1580
1581 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1582
1583 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1584 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1585 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1586 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1587 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1588 (aarch64_init_memtag_builtins): New.
1589 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1590 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1591 (aarch64_expand_builtin_memtag): New.
1592 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1593 (AARCH64_BUILTIN_SUBCODE): New macro.
1594 (aarch64_resolve_overloaded_memtag): New.
1595 (aarch64_resolve_overloaded_builtin_general): New. Call
1596 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1597 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1598 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1599 (aarch64_resolve_overloaded_builtin): Call
1600 aarch64_resolve_overloaded_builtin_general.
1601 * config/aarch64/aarch64-protos.h
1602 (aarch64_resolve_overloaded_builtin_general): New declaration.
1603 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1604 (TARGET_MEMTAG): Likewise.
1605 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1606 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1607 (irg, gmi, subp, addg, ldg, stg): New instructions.
1608 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1609 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1610 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1611 (__arm_mte_get_tag): Likewise.
1612 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1613 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1614 * config/arm/types.md (memtag): New.
1615 * doc/invoke.texi (-memtag): Update description.
1616
1617 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1618
1619 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1620 to define __GCC_ASM_FLAG_OUTPUTS__.
1621 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1622 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1623 depending on TARGET_THUMB1.
1624 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1625
1626 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1627
1628 PR target/92549
1629 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1630
1631 PR middle-end/91450
1632 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1633 operand is negative and one non-negative, compare the non-negative
1634 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1635 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1636 and s2 == 0, unless one of them is known to be negative. Remove
1637 tem2 variable, use tem where tem2 has been used before.
1638
1639 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1640
1641 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1642
1643 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1644
1645 PR tree-optimization/92557
1646 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1647 vmode rather than asserting it always is.
1648
1649 2019-11-19 Richard Biener <rguenther@suse.de>
1650
1651 PR tree-optimization/92554
1652 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1653 for the actual condition stmt and deal with sign-changes.
1654
1655 2019-11-19 Richard Biener <rguenther@suse.de>
1656
1657 PR tree-optimization/92555
1658 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1659 for non-SLP stmts.
1660
1661 2019-11-19 Martin Liska <mliska@suse.cz>
1662
1663 PR bootstrap/92540
1664 * config/riscv/riscv.c (riscv_address_insns): Initialize
1665 addr in order to remove boostrap -Wmaybe-uninitialized
1666 error.
1667
1668 2019-11-18 Martin Sebor <msebor@redhat.com>
1669
1670 PR tree-optimization/92493
1671 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1672 assignment.
1673
1674 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1675
1676 * cfgloop.c (get_loop_body_in_custom_order): New.
1677 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1678 * tree-loop-distribution.c (class loop_distribution): New.
1679 (bb_top_order_cmp): Remove.
1680 (bb_top_order_cmp_r): New.
1681 (create_rdg_vertices): Move into class loop_distribution.
1682 (stmts_from_loop): Same as above.
1683 (update_for_merge): Same as above.
1684 (partition_merge_into): Same as above.
1685 (get_data_dependence): Same as above.
1686 (data_dep_in_cycle_p): Same as above.
1687 (update_type_for_merge): Same as above.
1688 (build_rdg_partition_for-vertex): Same as above.
1689 (classify_builtin_ldst): Same as above.
1690 (classify_partition): Same as above.
1691 (share_memory_accesses): Same as above.
1692 (rdg_build_partitions): Same as above.
1693 (pg_add_dependence_edges): Same as above.
1694 (build_partition_graph): Same as above.
1695 (merge_dep_scc_partitions): Same as above.
1696 (break_alias_scc_partitions): Same as above.
1697 (finalize_partitions): Same as above.
1698 (distribute_loop): Same as above.
1699 (bb_top_order_init): New method
1700 (bb_top_order_destroy): New method.
1701 (get_bb_top_order_index_size): New method.
1702 (get_bb_top_order_index_index): New method.
1703 (get_bb_top_order_index_index): New method.
1704 (loop_distribution::execute): New method.
1705 (pass_loop_distribution::execute): Instantiate loop_distribution.
1706
1707 2019-11-18 Jan Hubicka <jh@suse.cz>
1708
1709 PR ipa/92508
1710 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1711 caches.
1712 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1713
1714 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1715
1716 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1717 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1718 * doc/md.texi: Document them.
1719 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1720 internal functions.
1721 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1722 * internal-fn.c (check_ptrs_direct): New macro.
1723 (expand_check_ptrs_optab_fn): Likewise.
1724 (direct_check_ptrs_optab_supported_p): Likewise.
1725 (internal_check_ptrs_fn_supported_p): New fuction.
1726 * tree-data-ref.c: Include internal-fn.h.
1727 (create_ifn_alias_checks): New function.
1728 (create_intersect_range_checks): Use it.
1729 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1730 (optab, cmp_op): Handle it.
1731 (raw_war, unspec): New int attributes.
1732 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1733 constants.
1734 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1735 New predicate.
1736 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1737 expander.
1738 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1739 pattern.
1740
1741 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1742
1743 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1744 empty constructors.
1745
1746 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1747
1748 * cse.c (cse_insn): Delete no-op register moves too.
1749 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1750 Take a second comparison to control the value for NE.
1751 (mask_to_comparison): Handle unsigned comparisons.
1752 (simplify_logical_relational_operation): Likewise. Update call
1753 to comparison_to_mask. Handle AND if !HONOR_NANs.
1754 (simplify_binary_operation_1): Call the above for AND too.
1755
1756 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1757
1758 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1759 splitting the main code out into...
1760 (native_encode_vector_part): ...this new function.
1761 (native_decode_vector_tree): New function.
1762 (fold_view_convert_vector_encoding): Likewise.
1763 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1764 to VECTOR_TYPEs.
1765
1766 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1767
1768 * tree-data-ref.c (create_intersect_range_checks_index): If the
1769 alias pair describes simple WAW and WAR dependencies, just check
1770 whether the first B access overlaps later A accesses.
1771 (create_waw_or_war_checks): New function that performs the same
1772 optimization on addresses.
1773 (create_intersect_range_checks): Call it.
1774
1775 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1776
1777 * lra-constraints.c (valid_address_p): Take the operand and a
1778 constraint as argument. If the operand is a MEM and the constraint
1779 is a memory constraint, check whether the eliminated form of the
1780 MEM already satisfies the constraint.
1781 (process_address_1): Update calls accordingly.
1782
1783 2019-11-18 Tom Tromey <tromey@adacore.com>
1784
1785 * doc/tm.texi: Rebuild.
1786 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1787 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1788
1789 2019-11-18 Richard Biener <rguenther@suse.de>
1790
1791 PR tree-optimization/92516
1792 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1793 argument, hoist bst_map creation/destruction to ...
1794 (vect_analyze_slp): ... here, forming a true graph with
1795 SLP instances being the entries.
1796 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1797 (vect_detect_hybrid_slp): Use one visited set for all
1798 graph entries.
1799 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1800 to hash-sets of slp_tree.
1801 (vect_slp_analyze_operations): Likewise.
1802 (vect_bb_slp_scalar_cost): Remove wrapper.
1803 (vect_bb_vectorization_profitable_p): Use one visited set for
1804 all graph entries.
1805 (vect_schedule_slp_instance): Elide bst_map use.
1806 (vect_schedule_slp): Likewise.
1807
1808 2019-11-18 Richard Biener <rguenther@suse.de>
1809
1810 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1811 was vectorized with just external refs fail.
1812
1813 2019-11-18 Martin Liska <mliska@suse.cz>
1814
1815 PR ipa/92525
1816 * ipa-icf.c (sem_function::init): Unset m_checker
1817 at the end of the function.
1818
1819 2019-11-18 Richard Biener <rguenther@suse.de>
1820
1821 PR tree-optimization/92558
1822 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1823 reducting the width of a reduction vector def update new_phis.
1824
1825 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1826
1827 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1828 and s390*-*-linux-musl* targets.
1829 * configure: Regenerate.
1830
1831 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1832
1833 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1834 (MUSL_DYNAMIC_LINKER64): Define.
1835
1836 2019-11-18 Martin Liska <mliska@suse.cz>
1837
1838 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1839 message for an unknown counter.
1840 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1841 (dbg_cnt_process_opt): Remove unreachable code.
1842
1843 2019-11-18 Martin Liska <mliska@suse.cz>
1844
1845 PR ipa/92529
1846 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1847 Compare LHS types of NOP_EXPR.
1848
1849 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1850
1851 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1852 "initial_pass_name" argument -- by running "*clean_state" pass.
1853 Also free the "initial_pass_name" when done.
1854
1855 2019-11-18 Richard Biener <rguenther@suse.de>
1856
1857 PR rtl-optimization/92462
1858 * alias.c (find_base_term): Restrict the look through ANDs.
1859 (find_base_value): Likewise.
1860
1861 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1862
1863 Add support for AVR devices from the 0-series.
1864
1865 PR target/92545
1866 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1867 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1868 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1869 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1870 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1871 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1872 for spec definitions.
1873 * doc/avr-mmcu.texi: Regenerate.
1874
1875 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1876
1877 PR target/92448
1878 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1879 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1880 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1881 (ix86_reassociation_width): Ditto.
1882 * config/i386/i386-options.c (ix86_option_override_internal):
1883 Replace TARGET_AVX128_OPTIAML with
1884 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1885 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1886 (TARGET_AVX128_OPTIMAL): Deleted.
1887 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1888 DEF_TUNE.
1889
1890 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1891
1892 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1893 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1894 just SI.
1895 (cceq_rev_compare): Rename to...
1896 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1897 just SI.
1898 (define_split for <bd>tf_<mode>): Add SImode first argument to
1899 gen_cceq_ior_compare.
1900
1901 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1902
1903 * common/config/powerpcspe: Delete.
1904
1905 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1906
1907 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1908 output in UNSPEC_WRFFR.
1909
1910 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1911
1912 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1913 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1914
1915 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1916
1917 * tree-data-ref.c (create_intersect_range_checks_index)
1918 (create_intersect_range_checks): Print dump messages.
1919
1920 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1921
1922 * tree-data-ref.c (dump_alias_pair): New function.
1923 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1924
1925 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1926
1927 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1928 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1929 merging data references with different steps.
1930 (create_intersect_range_checks_index): Take a
1931 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1932 Bail out if DR_ALIAS_MIXED_STEPS is set.
1933 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1934 instead of two dr_with_seg_lens. Update call to
1935 create_intersect_range_checks_index.
1936 (create_runtime_alias_checks): Update call accordingly.
1937
1938 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1939
1940 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1941 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1942 (dr_with_seg_len_pair_t::sequencing): New enum.
1943 (dr_with_seg_len_pair_t::flags): New member variable.
1944 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1945 parameter and initialize the flags member variable.
1946 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1947 call accordingly.
1948 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1949 Ensure the two data references in an alias pair are in statement
1950 order, if there is a defined order.
1951 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1952 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1953 swapped the references in a dr_with_seg_len_pair_t. OR together
1954 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1955 try to restore the original dr_with_seg_len order, updating the
1956 flags if that fails.
1957
1958 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1959
1960 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1961 swapping the dr_as based on init values until we've decided
1962 whether to merge them.
1963
1964 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1965
1966 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1967 two accesses in each dr_with_seg_len_pair_t before trying to
1968 combine separate dr_with_seg_len_pair_ts.
1969 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1970 that here.
1971 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1972
1973 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1974
1975 * config/aarch64/aarch64-sve.md
1976 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1977 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1978 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1979 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1980 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1981 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1982 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1983 pattern.
1984 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1985 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1986 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1987 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1988
1989 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1990
1991 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1992 (SVE_4HSI): New mode iterators.
1993 (ANY_EXTEND2): New code iterator.
1994 * config/aarch64/aarch64-sve.md
1995 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1996 Extend to...
1997 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1998 ...this, handling extension to partial modes as well as full modes.
1999 Describe the extension as a predicated rather than unpredicated
2000 extension.
2001 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2002 Likewise extend to...
2003 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2004 ...this, making the same adjustments.
2005 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2006 Likewise extend to...
2007 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2008 ...this, making the same adjustments.
2009 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2010 Likewise extend to...
2011 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2012 ...this, making the same adjustments.
2013 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2014 New pattern.
2015 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2016 extension predicate.
2017 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2018 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2019 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2020 Describe the extension as a predicated rather than unpredicated
2021 extension.
2022 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2023 Likewise. Canonicalize to a constant extension predicate.
2024 * config/aarch64/aarch64-sve-builtins-base.cc
2025 (svld1_gather_extend_impl::expand): Add an extra predicate for
2026 the extension.
2027 (svldff1_gather_extend_impl::expand): Likewise.
2028
2029 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2032 iterators.
2033 * config/aarch64/aarch64-sve.md
2034 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2035 (gather_load<SVE_24:mode><v_int_container>): ...this.
2036 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2037 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2038 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2039 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2040 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2041 New pattern.
2042 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2043 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2044 Allow the nominal extension predicate to be different from the
2045 load predicate.
2046 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2047 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2048
2049 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2050
2051 * config/aarch64/aarch64-sve.md
2052 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2053 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2054 function.
2055 (aarch64_sve_adjust_stmt_cost): Call it.
2056
2057 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2058
2059 * config/aarch64/aarch64-sve.md
2060 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2061 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2062 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2063 Combine into...
2064 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2065 ...this new pattern, handling extension to partial modes as well
2066 as full modes. Describe the extension as a predicated rather than
2067 unpredicated extension.
2068 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2069 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2070 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2071 Combine into...
2072 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2073 ...this new pattern, handling extension to partial modes as well
2074 as full modes. Describe the extension as a predicated rather than
2075 unpredicated extension.
2076 * config/aarch64/aarch64-sve-builtins.cc
2077 (function_expander::use_contiguous_load_insn): Add an extra
2078 predicate for extending loads.
2079 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2080 (aarch64_sve_adjust_stmt_cost): Likewise.
2081 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2082 the cost of SVE vector stmts.
2083
2084 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2085
2086 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2087 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2088 * config/aarch64/aarch64-sve.md
2089 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2090 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2091 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2092 comment. Avoid new narrower_mask ambiguity.
2093 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2094 (*cond_uxt<mode>_2): Update comment.
2095 (*cond_uxt<mode>_any): Likewise.
2096
2097 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2098
2099 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2100 float modes.
2101 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2102 function.
2103 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2104 new vector float modes.
2105 (aarch64_sve_container_bits): New function.
2106 (aarch64_sve_pred_mode): Likewise.
2107 (aarch64_get_mask_mode): Use it.
2108 (aarch64_sve_element_int_mode): Handle structure modes and partial
2109 modes.
2110 (aarch64_sve_container_int_mode): New function.
2111 (aarch64_vectorize_related_mode): Return SVE modes when given
2112 SVE modes. Handle partial modes, taking the preferred number
2113 of units from the size of the given mode.
2114 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2115 in registers.
2116 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2117 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2118 (aarch64_split_sve_subreg_move): Use the mode form of
2119 aarch64_sve_pred_mode.
2120 (aarch64_secondary_reload): Handle partial modes in the same way
2121 as full big-endian vectors.
2122 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2123 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2124 merging with the Advanced SIMD modes. If two modes have the
2125 same size, try the Advanced SIMD mode first.
2126 (aarch64_simd_valid_immediate): Use the container rather than
2127 the element mode for INDEX constants.
2128 (aarch64_simd_vector_alignment): Make the alignment of partial
2129 SVE vector modes the same as their minimum size.
2130 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2131 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2132 (mov<SVE_ALL:mode>): ...this.
2133 (movmisalign<SVE_FULL:mode>): Extend to...
2134 (movmisalign<SVE_ALL:mode>): ...this.
2135 (*aarch64_sve_mov<mode>_le): Rename to...
2136 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2137 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2138 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2139 partial modes regardless of endianness.
2140 (aarch64_sve_reload_be): Rename to...
2141 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2142 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2143 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2144 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2145 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2146 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2147 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2148 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2149 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2150 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2151 (maskload<SVE_FULL:mode><vpred>): Extend to...
2152 (maskload<SVE_ALL:mode><vpred>): ...this.
2153 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2154 (maskstore<SVE_ALL:mode><vpred>): ...this.
2155 (vec_duplicate<SVE_FULL:mode>): Extend to...
2156 (vec_duplicate<SVE_ALL:mode>): ...this.
2157 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2158 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2159 (sve_ld1r<SVE_FULL:mode>): Extend to...
2160 (sve_ld1r<SVE_ALL:mode>): ...this.
2161 (vec_series<SVE_FULL_I:mode>): Extend to...
2162 (vec_series<SVE_I:mode>): ...this.
2163 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2164 (*vec_series<SVE_I:mode>_plus): ...this.
2165 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2166 new VPRED ambiguity.
2167 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2168 (add<SVE_FULL_I:mode>3): Extend to...
2169 (add<SVE_I:mode>3): ...this.
2170 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2171 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2172 (VPRED, vpred): Likewise.
2173 (Vctype): New iterator.
2174 (vw): Remove SVE modes.
2175
2176 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2177
2178 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2179 (SVE_PARTIAL_I): ...this.
2180 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2181
2182 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2183
2184 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2185 (SVE_FULL): ...this.
2186 (SVE_I): Rename to...
2187 (SVE_FULL_I): ...this.
2188 (SVE_F): Rename to...
2189 (SVE_FULL_F): ...this.
2190 (SVE_BHSI): Rename to...
2191 (SVE_FULL_BHSI): ...this.
2192 (SVE_HSD): Rename to...
2193 (SVE_FULL_HSD): ...this.
2194 (SVE_HSDI): Rename to...
2195 (SVE_FULL_HSDI): ...this.
2196 (SVE_HSF): Rename to...
2197 (SVE_FULL_HSF): ...this.
2198 (SVE_SD): Rename to...
2199 (SVE_FULL_SD): ...this.
2200 (SVE_SDI): Rename to...
2201 (SVE_FULL_SDI): ...this.
2202 (SVE_SDF): Rename to...
2203 (SVE_FULL_SDF): ...this.
2204 (SVE_S): Rename to...
2205 (SVE_FULL_S): ...this.
2206 (SVE_D): Rename to...
2207 (SVE_FULL_D): ...this.
2208 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2209 * config/aarch64/aarch64-sve2.md: Likewise.
2210
2211 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2212
2213 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2214 New option.
2215 * doc/invoke.texi: Document it.
2216 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2217 By default, return VECT_COMPARE_COSTS for SVE.
2218
2219 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2220
2221 * target.h (VECT_COMPARE_COSTS): New constant.
2222 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2223 * doc/tm.texi: Regenerate.
2224 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2225 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2226 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2227 Likewise.
2228 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2229 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2230 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2231 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2232 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2233 (_loop_vec_info::vec_inside_cost): New member variables.
2234 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2235 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2236 (vect_analyze_loop): When autovectorize_vector_modes returns
2237 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2238 vector mode and picking the one with the lowest cost.
2239 (vect_estimate_min_profitable_iters): Record the computed costs
2240 in the loop_vec_info.
2241
2242 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2243
2244 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2245 element type rather than an element mode.
2246 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2247 Use get_vectype_for_scalar_type to query the natural types
2248 for a given element type rather than basing everything on
2249 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2250 query to MAX_FIXED_MODE_SIZE.
2251 (duplicate_and_interleave): Update call accordingly.
2252 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2253
2254 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2255
2256 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2257 optional maximum nunits.
2258 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2259 takes an slp_tree.
2260 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2261 (vect_get_mask_type_for_stmt): Likewise.
2262 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2263 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2264 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2265 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2266 to get an assumed vector type for data references.
2267 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2268 (vect_update_all_shared_vectypes): Likewise.
2269 (vect_build_slp_tree_1): Pass the group size to
2270 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2271 for BB vectorization.
2272 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2273 before building the vectof from scalars.
2274 (vect_analyze_slp_instance): Pass the group size to
2275 get_vectype_for_scalar_type.
2276 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2277 types for BB vectorization here; just handle the case in which
2278 we deferred the choice for booleans.
2279 (vect_get_constant_vectors): Pass the slp_tree to
2280 get_vectype_for_scalar_type.
2281 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2282 (vectorizable_call): Likewise.
2283 (vectorizable_simd_clone_call): Likewise.
2284 (vectorizable_conversion): Likewise.
2285 (vectorizable_shift): Likewise.
2286 (vectorizable_operation): Likewise.
2287 (vectorizable_comparison): Likewise.
2288 (vect_is_simple_cond): Take the slp_tree as argument and
2289 pass it to get_vectype_for_scalar_type.
2290 (vectorizable_condition): Update call accordingly.
2291 (get_vectype_for_scalar_type): Take a group_size argument.
2292 For BB vectorization, limit the the vector to that number
2293 of elements. Also define an overload that takes an slp_tree.
2294 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2295 pass it to get_vectype_for_scalar_type.
2296 (vect_get_vector_types_for_stmt): Add a group_size argument
2297 and pass it to get_vectype_for_scalar_type. Don't use the
2298 cached vector type for BB vectorization if a group size is given.
2299 Handle data references in that case.
2300 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2301 pass it to get_mask_type_for_scalar_type.
2302
2303 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2304
2305 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2306 parameter.
2307 (estimate_edge_time): Use it.
2308 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2309 ret_nonspec_time parameter.
2310
2311 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2312
2313 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2314
2315 2019-11-15 Nick Clifton <nickc@redhat.com>
2316 Szabolcs Nagy <szabolcs.nagy@arm.com>
2317
2318 PR target/65649
2319 * config/microblaze/microblaze.c (print_operand): Print value as long.
2320
2321 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2322
2323 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2324 accidental commit.
2325
2326 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2327
2328 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2329 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2330
2331 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2332
2333 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2334 (gcn_conditional_register_usage): Use constants in place of hard-coded
2335 values.
2336 (gcn_hsa_declare_function_name): Set lower bound for number of
2337 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2338 MAX_NORMAL_VGPR_COUNT.
2339
2340 2019-11-15 Martin Jambor <mjambor@suse.cz>
2341
2342 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2343 declaration.
2344
2345 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2346
2347 * config/gcn/gcn.c (default_requested_args): New.
2348 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2349 set with default_requested_args.
2350 (gcn_conditional_register_usage): Limit register usage of non-kernel
2351 functions. Reassign fixed registers if a non-standard set of args is
2352 requested.
2353 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2354
2355 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2356
2357 PR ipa/92528
2358 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2359 aggregate jump function when inlined-to caller has no edge summary.
2360
2361 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2362
2363 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2364
2365 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2366
2367 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2368 prologue use of v0.
2369 (print_operand_address): Use v1 for zero vector offset.
2370
2371 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2372
2373 PR tree-optimization/92515
2374 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2375 types when converting a vector/scalar shift into a vector/vector one,
2376 using tree_nop_conversion_p instead of useless_type_conversion_p.
2377 Move the conversion code to the transform block.
2378
2379 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2380
2381 * read-rtl-function.c
2382 (function_reader::add_fixup_source_location): Take additional
2383 parameter of a column.
2384 (function_reader::maybe_read_location): Optionally parse column
2385 information and pass to add_fixup_source_location.
2386
2387 2019-11-15 Richard Biener <rguenther@suse.de>
2388
2389 PR tree-optimization/92512
2390 * tree-vect-loop.c (check_reduction_path): Fix operand index
2391 computability check. Add check for second use in COND_EXPRs.
2392
2393 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2394
2395 PR target/92515
2396 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2397 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2398
2399 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2400
2401 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2402 register class for VCC_LO and VCC_HI.
2403 (gcn_spill_class): Use SGPR_REGS to spill registers in
2404 VCC_CONDITIONAL_REG.
2405
2406 2019-11-15 Richard Biener <rguenther@suse.de>
2407
2408 PR tree-optimization/92324
2409 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2410 singedness of SLP reduction epilouge operations. Also reduce
2411 the vector width for SLP reductions before doing elementwise
2412 operations if possible.
2413
2414 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2415
2416 * passes.c (skip_pass): Set epilogue_completed if skipping the
2417 pro_and_epilogue pass.
2418
2419 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2420
2421 * passes.c (should_skip_pass_p): Always run "dfinish".
2422
2423 2019-11-15 Richard Biener <rguenther@suse.de>
2424
2425 * ipa-inline.c (inline_small_functions): Move assignment
2426 to next before call destroying edge.
2427
2428 2019-11-15 Richard Biener <rguenther@suse.de>
2429
2430 PR tree-optimization/92039
2431 PR tree-optimization/91975
2432 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2433 previous change, treat invariants consistently as non-constant.
2434 (tree_estimate_loop_size): Ternary ops with just the first op
2435 constant are not optimized away.
2436
2437 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2438
2439 * gimplify.c (gimplify_call_expr): Don't call
2440 omp_resolve_declare_variant after gimplification.
2441 * omp-general.c (omp_context_selector_matches): For isa that might
2442 match in some other function, defer if in declare simd function.
2443 (omp_context_compute_score): Don't look for " score" in construct
2444 trait set. Set *score to -1 if it can't ever match.
2445 (omp_resolve_declare_variant): If any variants need to be deferred,
2446 don't punt immediately, but compute scores of all variants and if
2447 ther eis a score winner that doesn't need to be deferred, return that.
2448
2449 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2450
2451 * ipa-comdats.c: Fix comments typo.
2452 * ipa-profile.c: Fix comments typo.
2453 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2454 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2455 (gimple_gen_ic_func_profiler): Likewise.
2456 (pass_ipa_tree_profile::gate): Fix comments typo.
2457
2458 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2459
2460 * ipa-inline.c (inline_small_functions): Update iterator of next.
2461
2462 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2463
2464 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2465 register is suitable for the mode.
2466
2467 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2468
2469 * range-op.h (range_operator::fold_range): Return a bool.
2470 * range-op.cc (range_operator::wi_fold): Assert supported type.
2471 (range_operator::fold_range): Assert supported type and return true.
2472 (operator_equal::fold_range): Return true.
2473 (operator_not_equal::fold_range): Same.
2474 (operator_lt::fold_range): Same.
2475 (operator_le::fold_range): Same.
2476 (operator_gt::fold_range): Same.
2477 (operator_ge::fold_range): Same.
2478 (operator_plus::op1_range): Adjust call to fold_range.
2479 (operator_plus::op2_range): Same.
2480 (operator_minus::op1_range): Same.
2481 (operator_minus::op2_range): Same.
2482 (operator_exact_divide::op1_range): Same.
2483 (operator_lshift::fold_range): Return true and adjust fold_range call.
2484 (operator_rshift::fold_range): Same.
2485 (operator_cast::fold_range): Return true.
2486 (operator_logical_and::fold_range): Same.
2487 (operator_logical_or::fold_range): Same.
2488 (operator_logical_not::fold_range): Same.
2489 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2490 (operator_bitwise_not::op1_range): Same.
2491 (operator_cst::fold_range): Return true.
2492 (operator_identity::fold_range): Return true.
2493 (operator_negate::fold_range): Return true and adjust fold_range call.
2494 (operator_addr_expr::fold_range): Return true.
2495 (operator_addr_expr::op1_range): Adjust call to fold_range.
2496 (range_cast): Same.
2497 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2498 (range_fold_unary_symbolics_p): Same.
2499
2500 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2501
2502 PR tree-optimization/92506
2503 * range-op.cc (range_operator::fold_range): Start with range undefined.
2504 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2505 overflow is varying.
2506
2507 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2508
2509 * range-op.cc (*operator*::*range): Remove calls to
2510 range_intersect, range_invert, and range_union in favor of calling
2511 the in-place API methods.
2512 (range_tests): Same.
2513 * range.cc (range_intersect): Remove.
2514 (range_union): Remove.
2515 (range_invert): Remove.
2516 * range.h (range_intersect): Remove.
2517 (range_union): Remove.
2518 (range_intersect): Remove.
2519
2520 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2521
2522 PR rtl-optimization/92430
2523 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2524 (pass_jump_after_combine::execute): Perform jump threading
2525 unconditionally.
2526
2527 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2528 Doug Rupp <rupp@adacore.com>
2529 Olivier Hainque <hainque@adacore.com>
2530
2531 * config.gcc: Collapse the arm-vxworks entries into
2532 a single arm-wrs-vxworks7* one, bpabi based. Update
2533 the default cpu from arm8 to armv7-a
2534 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2535 we always use ARM_UNWIND_INFO.
2536 (DWARF2_UNWIND_INFO): Remove redefinition.
2537 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2538 (VXWORKS_PERSONALITY): Define, to "llvm".
2539 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2540
2541 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2542
2543 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2544 _VX_CPU instead of CPU and handle arm_arch8.
2545
2546 2019-11-14 Doug Rupp <rupp@adacore.com>
2547 Olivier Hainque <hainque@adacore.com>
2548 Jerome Lambourg <lambourg@adacore.com>
2549
2550 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2551 * config/aarch64/aarch64-vxworks.h: New file.
2552 * config/aarch64/t-aarch64-vxworks: New file.
2553
2554 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2555 Olivier Hainque <hainque@adacore.com>
2556
2557 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2558 definition, pointless with a VxWorks specific version
2559 of crtstuff.
2560 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2561 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2562 New local macros, controlling the addition of vxworks specific
2563 crtstuff objects depending on the EH mechanism and kind of
2564 module being linked.
2565 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2566
2567 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2568 Jerome Lambourg <lambourg@adacore.com>
2569 Olivier Hainque <hainque@adacore.com>
2570
2571 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2572 common macro definitions, conveying VXWORKS7 or 64bit general
2573 variations. Add a block to set gcc_cv_initfini_array
2574 unconditionally to "yes" for VxWorks7.
2575 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2576 by default. Update some comments.
2577 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2578 default, to be added the end of VXWORKS_LIBS_RTP.
2579 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2580 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2581 redefine.
2582 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2583 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2584 to account for the now available TLS abilities.
2585 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2586 (VXWORKS_HAVE_TLS): Likewise.
2587
2588 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2589
2590 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2591 (vect_slp_convert_to_external): Likewise.
2592 (vect_slp_analyze_node_operations): If analysis fails, try building
2593 the node from scalars instead.
2594
2595 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2596
2597 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2598 between vector types.
2599 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2600 non-widening and non-narrowing path to handle standard
2601 conversion codes, if the target supports them.
2602 * expr.c (convert_move): Try using the extend and truncate optabs
2603 for vectors.
2604 * optabs-tree.c (supportable_convert_operation): Likewise.
2605 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2606 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2607 (trunc<mode><Vnarrowq>2): New patterns.
2608
2609 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2610
2611 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2612 require vectype and nunits_vectype to have the same size;
2613 instead assert that nunits_vectype has at least as many
2614 elements as vectype. Don't compute a separate nunits_vectype
2615 if the scalar type is obviously the same as vectype's.
2616 Tweak dump messages.
2617
2618 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2619
2620 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2621 function.
2622 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2623 (TARGET_VECTORIZE_RELATED_MODE): Define.
2624
2625 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2626
2627 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2628 (vec_info::used_vector_mode): New member variable.
2629 (vect_chooses_same_modes_p): Declare.
2630 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2631 chosen vector mode in vec_info::used_vector_mode.
2632 (vect_chooses_same_modes_p): New function.
2633 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2634 the same vector statements multiple times.
2635 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2636
2637 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2638
2639 * machmode.h (opt_machine_mode::operator==): New function.
2640 (opt_machine_mode::operator!=): Likewise.
2641 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2642 (get_related_vectype_for_scalar_type): Delete.
2643 (get_vectype_for_scalar_type_and_size): Declare.
2644 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2645 whether analysis passed or failed, and with what vector modes.
2646 Use related_vector_mode to check whether trying a particular
2647 vector mode would be redundant with the autodetected mode,
2648 and print a dump message if we decide to skip it.
2649 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2650 (vect_create_epilog_for_reduction): Use
2651 get_related_vectype_for_scalar_type instead of
2652 get_vectype_for_scalar_type_and_size.
2653 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2654 with...
2655 (get_related_vectype_for_scalar_type): ...this new function.
2656 Take a starting/"prevailing" vector mode rather than a vector size.
2657 Take an optional nunits argument, with the same meaning as for
2658 related_vector_mode. Use related_vector_mode when not
2659 auto-detecting a mode, falling back to mode_for_vector if no
2660 target mode exists.
2661 (get_vectype_for_scalar_type): Update accordingly.
2662 (get_same_sized_vectype): Likewise.
2663 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2664
2665 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2666
2667 * tree-vect-stmts.c (vectorizable_call): Require the types
2668 to have the same size.
2669
2670 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2671
2672 * tree-vect-stmts.c (vectorizable_call): If an operand is
2673 constant or external, use get_vectype_for_scalar_type
2674 rather than get_same_sized_vectype to get its vector type.
2675 (vectorizable_conversion, vectorizable_shift): Likewise.
2676 (vectorizable_operation): Likewise.
2677
2678 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2679
2680 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2681 (vec_info::vector_mode): ...this new field.
2682 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2683 (vect_analyze_loop, vect_transform_loop): Likewise.
2684 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2685 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2686 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2687 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2688 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2689
2690 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2691
2692 * target.h (vector_sizes, auto_vector_sizes): Delete.
2693 (vector_modes, auto_vector_modes): New typedefs.
2694 * target.def (autovectorize_vector_sizes): Replace with...
2695 (autovectorize_vector_modes): ...this new hook.
2696 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2697 Replace with...
2698 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2699 * doc/tm.texi: Regenerate.
2700 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2701 (default_autovectorize_vector_modes): New function.
2702 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2703 (default_autovectorize_vector_modes): New function.
2704 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2705 of autovectorize_vector_sizes. Use the number of units in the mode
2706 to calculate the maximum VF.
2707 * omp-low.c (omp_clause_aligned_alignment): Use
2708 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2709 Use a loop based on related_mode to iterate through all supported
2710 vector modes for a given scalar mode.
2711 * optabs-query.c (can_vec_mask_load_store_p): Use
2712 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2713 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2714 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2715 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2716 Replace with...
2717 (aarch64_autovectorize_vector_modes): ...this new function.
2718 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2719 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2720 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2721 (arc_autovectorize_vector_modes): ...this new function.
2722 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2723 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2724 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2725 (arm_autovectorize_vector_modes): ...this new function.
2726 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2727 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2728 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2729 (ix86_autovectorize_vector_modes): ...this new function.
2730 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2731 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2732 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2733 (mips_autovectorize_vector_modes): ...this new function.
2734 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2735 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2736
2737 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2738
2739 * tree-vect-stmts.c (vectorizable_shift): Check the number
2740 of vector elements as well as the type mode when deciding
2741 whether an op1_vectype is compatible. Reuse the result of
2742 this check when generating vector statements.
2743
2744 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2745
2746 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2747 targetm.vectorize.preferred_simd_mode returns an integer mode,
2748 use mode_for_vector to decide what the vector type's mode
2749 should actually be. Use build_vector_type_for_mode instead
2750 of build_vector_type.
2751
2752 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2753
2754 * target.def (get_mask_mode): Take a vector mode itself as argument,
2755 instead of properties about the vector mode.
2756 * doc/tm.texi: Regenerate.
2757 * targhooks.h (default_get_mask_mode): Update to reflect new
2758 get_mode_mask interface.
2759 * targhooks.c (default_get_mask_mode): Likewise. Use
2760 related_int_vector_mode.
2761 * optabs-query.c (can_vec_mask_load_store_p): Update call
2762 to get_mask_mode.
2763 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2764 first that the original mode really is a vector.
2765 * tree.c (build_truth_vector_type_for): Likewise.
2766 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2767 get_mode_mask interface.
2768 (aarch64_expand_sve_vcond): Update call accordingly.
2769 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2770 get_mode_mask interface.
2771 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2772
2773 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2774
2775 * tree.h (build_truth_vector_type): Delete.
2776 (build_same_sized_truth_vector_type): Likewise.
2777 * tree.c (build_truth_vector_type): Rename to...
2778 (build_truth_vector_type_for): ...this. Make static and take
2779 a vector type as argument.
2780 (truth_type_for): Update accordingly.
2781 (build_same_sized_truth_vector_type): Delete.
2782 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2783 instead of build_same_sized_truth_vector_type.
2784 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2785 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2786 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2787 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2788 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2789 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2790 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2791 (vectorizable_store, vectorizable_condition): Likewise.
2792 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2793 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2794 build_truth_vector_type.
2795 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2796 Use truth_type_for instead of build_same_sized_truth_vector_type.
2797 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2798
2799 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2800
2801 * tree.h (build_truth_vector_type_for_mode): Declare.
2802 * tree.c (build_truth_vector_type_for_mode): New function,
2803 split out from...
2804 (build_truth_vector_type): ...here.
2805 (build_opaque_vector_type): Fix head comment.
2806 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2807 vec_info parameter.
2808 (vect_halve_mask_nunits): Replace vec_info parameter with the
2809 mode of the new vector.
2810 (vect_double_mask_nunits): Likewise.
2811 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2812 (vect_double_mask_nunits): Likewise.
2813 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2814 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2815 to vect_halve_mask_nunits, getting the required mode from the unpack
2816 patterns.
2817 (vect_set_loop_condition_masked): Update call accordingly.
2818 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2819 parameter and update call to vect_double_mask_nunits.
2820 (vectorizable_conversion): Update call accordingly.
2821 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2822 (vectorizable_call): Update call accordingly.
2823 (supportable_widening_operation): Update call to
2824 vect_halve_mask_nunits.
2825 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2826 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2827
2828 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2829
2830 * machmode.h (mode_for_int_vector): Delete.
2831 (related_int_vector_mode): Declare.
2832 * stor-layout.c (mode_for_int_vector): Delete.
2833 (related_int_vector_mode): New function.
2834 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2835 instead of mode_for_int_vector.
2836 (expand_vec_perm_const): Likewise.
2837 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2838 (aarch64_evpc_sve_tbl): Likewise.
2839 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2840 (s390_expand_vcond): Likewise.
2841
2842 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2843
2844 * target.def (related_mode): New hook.
2845 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2846 * doc/tm.texi: Regenerate.
2847 * targhooks.h (default_vectorize_related_mode): Declare.
2848 * targhooks.c (default_vectorize_related_mode): New function.
2849 * machmode.h (related_vector_mode): Declare.
2850 * stor-layout.c (related_vector_mode): New function.
2851 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2852 * optabs-query.c (qimode_for_vec_perm): Likewise.
2853 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2854 (vectorizable_store, vectorizable_load): Likewise
2855
2856 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2857
2858 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2859 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2860 * config/arm/arm-c.c (arm_cpu_builtins): Define
2861 __GCC_ASM_FLAG_OUTPUTS__.
2862 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2863 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2864 Define __GCC_ASM_FLAG_OUTPUTS__.
2865 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2866 * doc/extend.texi (FlagOutputOperands): Add documentation
2867 for ARM and AArch64.
2868
2869 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2870 * config/arm/predicates.md (nz_comparison_operator): Rename
2871 from noov_comparison_operator.
2872 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2873 (arm_gen_dicompare_reg): Likewise.
2874 (maybe_get_arm_condition_code): Likewise.
2875 (thumb1_final_prescan_insn): Likewise.
2876 (arm_emit_coreregs_64bit_shift): Likewise.
2877 * config/arm/arm.md (addsi3_compare0): Likewise.
2878 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2879 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2880 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2881 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2882 (*mulsi3addsi_compare0_scratch): Likewise.
2883 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2884 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2885 (*zeroextractsi_compare0_scratch): Likewise.
2886 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2887 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2888 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2889 (andsi_not_shiftsi_si_scc): Likewise.
2890 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2891 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2892 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2893 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2894 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2895 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2896 (return_addr_mask, *check_arch2): Likewise.
2897 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2898 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2899 (compare_scc splitters): Likewise.
2900 (movcond_addsi): Likewise.
2901 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2902 (*thumb2_addsi3_compare0_scratch): Likewise.
2903 (*thumb2_mulsi_short_compare0): Likewise.
2904 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2905 (compare peephole2s): Likewise.
2906 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2907 nz_comparison_operator names.
2908 (cbranchsi4_insn): Likewise.
2909
2910 * config/arm/constraints.md (c): Use cc_register predicate.
2911
2912 * config/aarch64/constraints.md (c): New constraint.
2913
2914 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2915
2916 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2917 ipa_merge_fn_summary_after_inlining): Micro optimize.
2918
2919 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2920
2921 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2922
2923 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2924
2925 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2926 (ipa_value_range_from_jfunc): New function.
2927 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2928 known_value_ranges parameter; use it to evalulate conditions.
2929 (evaluate_properties_for_edge): Compute known value ranges.
2930 (ipa_fn_summary_t::duplicate): Update use of
2931 evaluate_conditions_for_known_args.
2932 (estimate_ipcp_clone_size_and_time): Likewise.
2933 (ipa_merge_fn_summary_after_inlining): Likewise.
2934 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2935
2936 2019-11-14 Martin Liska <mliska@suse.cz>
2937
2938 * ipa-inline.c (want_inline_small_function_p): Use
2939 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2940 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2941
2942 2019-11-14 Martin Liska <mliska@suse.cz>
2943
2944 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2945 of a callee to get value of the param.
2946 * ipa-inline.c (inline_insns_auto): Use proper
2947 opt_for_fn.
2948 * opts.c (maybe_default_option): Do not overwrite param
2949 value if optimization level does not match. Note that
2950 params usually have default value set via Init() keyword.
2951 * params.opt: Remove -param=max-inline-insns-auto-O2.
2952 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2953 * doc/invoke.texi: Remove documentation of
2954 max-inline-insns-auto-O2.
2955
2956 2019-11-14 Martin Liska <mliska@suse.cz>
2957
2958 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2959 Do not initialize m_other_count.
2960 (switch_conversion::collect): Do not count m_default_count and
2961 m_other_count as we use frequencies for edges.
2962 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2963
2964 2019-11-14 Martin Liska <mliska@suse.cz>
2965
2966 PR other/92329
2967 * doc/invoke.texi: Document -fallocation-dce.
2968
2969 2019-11-14 Martin Liska <mliska@suse.cz>
2970
2971 PR target/92389
2972 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2973 PTA_ICELAKE_CLIENT which is later interited by
2974 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2975
2976 2019-11-14 Martin Liska <mliska@suse.cz>
2977
2978 * ipa-icf.c (sem_item_optimizer::execute): Save
2979 loaded_symbols.
2980 (sem_item_optimizer::parse_nonsingleton_classes):
2981 Return number of loaded symbols.
2982 (sem_item_optimizer::merge_classes): Print
2983 statistics about totally needed symbols.
2984 * ipa-icf.h (parse_nonsingleton_classes): Change return
2985 type.
2986 (merge_classes): Add one argument.
2987
2988 2019-11-14 Martin Liska <mliska@suse.cz>
2989
2990 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2991 func_checker::hash_operand by handling of FIELD_DECLs.
2992
2993 2019-11-14 Martin Liska <mliska@suse.cz>
2994
2995 * ipa-icf-gimple.h (func_checker::func_checker): Add
2996 default constructor.
2997 * ipa-icf.c (sem_function::init): Make operand_equal_p
2998 and hash_operand public.
2999 (sem_item::add_expr): Remove.
3000 (sem_item::add_type): Remove.
3001 (sem_function::hash_stmt): Use m_checker for hashing
3002 of GIMPLE statements.
3003 (sem_function::parse): Init with checker.
3004 (sem_variable::parse): Pass NULL as checker.
3005 (sem_item_optimizer::parse_funcs_and_vars):
3006 Pass checker to ::parse function.
3007 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3008 (sem_variable::parse): New function.
3009 (sem_variable::get_hash): Only return computed hash value.
3010 (sem_variable::init): Initialize hash of a variable.
3011 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3012 to couple of functions as a new argument.
3013
3014 2019-11-14 Martin Liska <mliska@suse.cz>
3015
3016 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3017 bail out reason.
3018 (func_checker::compare_gimple_assign): Likewise.
3019
3020 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3021
3022 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3023 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3024 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3025
3026 * omp-general.c (omp_context_name_list_prop): New function.
3027 (omp_context_selector_matches): Use it. Return 0 if it returns
3028 NULL.
3029 (omp_context_selector_props_compare): Allow equivalency of an
3030 identifier and a string literal containing no embedded zeros.
3031
3032 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3033
3034 * range-op.cc (RANGE3): Remove.
3035 (range_tests): Remove all selftest that check for multi-ranges.
3036 Put tests in namespace selftest.
3037 * selftest.h: Move range_tests into namespace selftest.
3038 * value-range.h (class value_range): Unfriend range_tests.
3039
3040 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3041
3042 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3043 normalize_symbolics and normalize_addresses working in place.
3044 (range_fold_unary_symbolics_p): Same.
3045 (range_fold_unary_symbolics_p): Same.
3046 * value-range.cc (num_pairs): Same.
3047 (lower_bound): Same.
3048 (upper_bound): Same.
3049 (contains_p): Same.
3050 (normalize_addresses): Same.
3051 (normalize_symbolics): Same.
3052 * value-range.h (normalize_symbolics): Same.
3053 (normalize_addresses): Same.
3054
3055 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3056
3057 PR ipa/91682
3058 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3059 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3060 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3061 (ipa_agg_jump_function): Remove member function equal_to.
3062 (ipa_agg_jump_function_p): Remove typedef.
3063 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3064 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3065 information for aggregate jump function.
3066 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3067 record last definition statement.
3068 (load_from_unmodified_param_or_agg): New function.
3069 (ipa_known_agg_contents_list): Add new field type and value, remove
3070 field constant.
3071 (build_agg_jump_func_from_list): Rename parameter const_count to
3072 value_count, build aggregate jump function from ipa_load_agg_data.
3073 (analyze_agg_content_value): New function.
3074 (extract_mem_content): Analyze memory store assignment to prepare
3075 information for aggregate jump function generation.
3076 (determine_known_aggregate_parts): Add new parameter fbi, remove
3077 parameter aa_walk_budeget_p.
3078 (update_jump_functions_after_inlining): Update aggregate jump function.
3079 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3080 (try_make_edge_direct_simple_call): Add new parameter new_root.
3081 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3082 new_root_info.
3083 (update_indirect_edges_after_inlining): Pass new argument to
3084 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3085 (ipa_write_jump_function): Write aggregate jump function to file.
3086 (ipa_read_jump_function): Read aggregate jump function from file.
3087 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3088 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3089 (ipa_agg_value_from_node): Likewise.
3090 (ipa_agg_value_set_from_jfunc): Likewise.
3091 (propagate_vals_across_arith_jfunc): Likewise.
3092 (propagate_aggregate_lattice): Likewise.
3093 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3094 (propagate_vals_across_pass_through): Call
3095 propagate_vals_across_arith_jfunc.
3096 (get_clone_agg_value): Move forward.
3097 (propagate_aggs_across_jump_function): Handle value propagation for
3098 aggregate jump function.
3099 (agg_jmp_p_vec_for_t_vec): Remove.
3100 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3101 with vec<ipa_agg_value>.
3102 (copy_plats_to_inter, intersect_with_plats): Likewise.
3103 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3104 (intersect_aggregate_with_edge): Likewise.
3105 (find_aggregate_values_for_callers_subset): Likewise.
3106 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3107 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3108 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3109 (gather_context_independent_values): Likewise.
3110 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3111 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3112 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3113 (evaluate_properties_for_edge): Likewise.
3114 (estimate_edge_devirt_benefit): Likewise.
3115 (estimate_edge_size_and_time): Likewise.
3116 (estimate_calls_size_and_time): Likewise.
3117 (ipa_call_context::ipa_call_context): Likewise.
3118 (estimate_ipcp_clone_size_and_time): Likewise.
3119 * ipa-fnsummary.h (ipa_call_context): Replace
3120 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3121 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3122 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3123 (do_estimate_edge_size): Likewise.
3124 (do_estimate_edge_hints): Likewise.
3125
3126 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3127
3128 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3129 binary operations.
3130
3131 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3132
3133 * ipa-profile.c (check_argument_count): Check properly that e_info
3134 is non-NULL; do not check descriptors.
3135
3136 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3137
3138 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3139 check for ipa profiles.
3140
3141 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3142
3143 PR c++/92421
3144 * ipa-prop.c (update_indirect_edges_after_inlining):
3145 Mark parameter as used.
3146 * ipa-inline.c (recursive_inlining): Reset node cache
3147 after inlining.
3148 (inline_small_functions): Remove checking ifdef.
3149 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3150 cache consistency.
3151
3152 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3153
3154 PR ipa/92498
3155 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3156 is NULL.
3157 (ipa_profile): Fix reversed test.
3158
3159 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3160
3161 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3162 (propagate_constants_topo): Fix typo.
3163
3164 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3165
3166 * Makefile.in (OBJS): Add value-range.o.
3167 (GTFILES): Add value-range.h.
3168 * gengtype.c (open_base_files): Add value-range.h to list of
3169 header files.
3170 * tree-vrp.c: Move the following value_range related functions:
3171 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3172 constant_p, set_undefined, set_varying, may_contain_p,
3173 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3174 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3175 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3176 value_inside_range, ranges_from_anti_range, union_ranges,
3177 intersect_ranges, intersect_helper, union_helper, union_,
3178 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3179 upper_bound, contains_p, invert, intersect...
3180 * value-range.cc: ...to here.
3181 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3182 associated inline methods from here...
3183 * value-range.h: ...to here.
3184
3185 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3186
3187 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3188 instead of asserting its value.
3189
3190 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3191
3192 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3193 constructors and set methods so value_range_kind is the last
3194 argument and defaults to VR_RANGE.
3195 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3196 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3197 * ipa-prop.c (ipa_get_value_range): Same.
3198 (ipa_compute_jump_functions_for_edge): Same.
3199 * range-op.cc (value_range_from_overflowed_bounds): Same.
3200 (operator_cast::op1_range): Same.
3201 (range_tests): Same.
3202 * range.cc (range_nonzero): Same.
3203 * tree-ssanames.c (get_range_info): Same.
3204 * tree-vrp.c (value_range_equiv::set): Same.
3205 (value_range::value_range): Same.
3206 (value_range_equiv::value_range_equiv): Same.
3207 (value_range_equiv::update): Same.
3208 (value_range_equiv::deep_copy): Same.
3209 (value_range_equiv::move): Same.
3210 (value_range_equiv::set_undefined): Same.
3211 (value_range::set): Same.
3212 (value_range::set_nonzero): Same.
3213 (ranges_from_anti_range): Same.
3214 (extract_range_from_plus_minus_expr): Same.
3215 (value_range::intersect_helper): Same.
3216 (value_range_equiv::intersect): Same.
3217 (value_range::union_helper): Same.
3218 (value_range_equiv::union_): Same.
3219 (value_range::normalize_symbolics): Same.
3220 (value_range::invert): Same.
3221 (determine_value_range_1): Same.
3222 * tree-vrp.h (class value_range): Same.
3223 (class value_range_equiv): Same.
3224 * vr-values.c (set_value_range_to_nonnegative): Same.
3225 (set_value_range_to_truthvalue): Same.
3226 (vr_values::update_value_range): Same.
3227 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3228 (vr_values::extract_range_from_binary_expr): Same.
3229 (vr_values::extract_range_from_comparison): Same.
3230 (vr_values::extract_range_basic): Same.
3231 (vr_values::adjust_range_with_scev): Same.
3232 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3233 (vr_values::extract_range_from_phi_node): Same.
3234
3235 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3236
3237 * tree-dump.c (dequeue_and_dump): Print first tree operand
3238 for VIEW_CONVERT_EXPR.
3239
3240 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3241
3242 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3243 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3244 * real.c (get_max_float): Add norm_max argument.
3245 * real.h (get_max_float): Update prototype.
3246 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3247 get_max_float.
3248
3249 2019-11-13 Martin Liska <mliska@suse.cz>
3250
3251 * dbgcnt.c (test_sorted_dbg_counters): New.
3252 (dbgcnt_c_tests): Likewise.
3253 * selftest-run-tests.c (selftest::run_tests): Likewise.
3254 * selftest.h (dbgcnt_c_tests): Likewise.
3255
3256 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3257 Martin Jambor <mjambor@suse.cz>
3258
3259 PR ipa/92454
3260 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3261 (identify_dead_nodes): Likewise.
3262
3263 2019-11-13 Martin Liska <mliska@suse.cz>
3264
3265 * ipa-icf.c (sem_function::equals_private): Do not overuse
3266 push/pop_cfun functions.
3267
3268 2019-11-13 Martin Liska <mliska@suse.cz>
3269
3270 * common.opt: Document change of -fdbg-cnt option.
3271 * dbgcnt.c (DEBUG_COUNTER): Remove.
3272 (dbg_cnt_is_enabled): Remove.
3273 (dbg_cnt): Work with new intervals.
3274 (dbg_cnt_set_limit_by_index): Set to new
3275 list of intervals.
3276 (dbg_cnt_set_limit_by_name): Likewise.
3277 (dbg_cnt_process_single_pair): Process new format.
3278 (dbg_cnt_process_opt): Likewise.
3279 (dbg_cnt_list_all_counters): Likewise.
3280 * doc/invoke.texi: Document change of -fdbg-cnt option.
3281 (cmp_tuples): New.
3282
3283 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3284
3285 * ipa-inline.c (ipa_inline): Check that function is defined before
3286 flattening.
3287
3288 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3289 Julian Brown <julian@codesourcery.com>
3290
3291 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3292 flag_worker_partitioning is not set.
3293 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3294 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3295
3296 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3297
3298 * config/gcn/gcn-run.c (heap_region): New global variable.
3299 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3300 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3301 (get_kernarg_region): Move contents to ....
3302 (get_memory_region): .... here.
3303 (get_heap_region): New function.
3304 (init_device): Initialize the heap_region.
3305 (device_malloc): Add region parameter.
3306 (struct kernargs): Move heap ....
3307 (heap): ... to global scope.
3308 (main): Allocate heap separate to kernargs.
3309
3310 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3311
3312 * ipa-prop.c (ipa_print_node_jump_functions,
3313 ipa_print_node_params): Print info about missing summaries.
3314
3315 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3316
3317 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3318 the cost of generating loop masks.
3319
3320 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3321
3322 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3323 New function.
3324 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3325 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3326 (vect_transform_loop): Likewise.
3327 (vect_analyze_loop_costing): Don't take the cost of versioning
3328 into account for the static profitability threshold if it turns
3329 out that no versioning is needed.
3330
3331 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3332
3333 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3334 and target_option_default_node to get -fprofile-generate ctors working
3335 right with LTO.
3336
3337 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3338
3339 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3340 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3341 (vectorizable_assignment): Don't add a cost for nop conversions.
3342 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3343 Likewise.
3344 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3345
3346 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3347
3348 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3349 number of ncopies as an additional argument.
3350 (vectorizable_conversion): Update call accordingly. Use "modifier"
3351 to check whether a conversion is between vectors with the same
3352 numbers of units.
3353
3354 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3355
3356 * config/aarch64/aarch64-sve-builtins-functions.h
3357 (unary_count::expand): Use aarch64_sve_int_mode instead of
3358 mode_for_int_vector.
3359
3360 2019-11-13 Martin Liska <mliska@suse.cz>
3361
3362 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3363
3364 2019-11-13 Martin Liska <mliska@suse.cz>
3365
3366 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3367 Remove call to finalize_options_struct.
3368
3369 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3370
3371 PR target/92055
3372 * config/avr/t-avr (avr-mcus): Do not depend on
3373 $(srcdir)/config/avr/t-multilib.
3374
3375 2019-11-13 Richard Biener <rguenther@suse.de>
3376
3377 PR tree-optimization/92473
3378 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3379 direct optab reduction in the correct type.
3380
3381 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3382
3383 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3384 hexadecimal literal.
3385
3386 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3387
3388 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3389 UNORDERED if !HONOR_NANS (DFmode).
3390 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3391 if !HONOR_NANS (<MODE>mode).
3392
3393 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3394
3395 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3396 (ipcp_verify_propagated_values): Likewise.
3397 (propagate_constants_across_call): Likewise.
3398 (propagate_constants_topo): Likewise.
3399 (ipcp_propagate_stage): Likewise.
3400
3401 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3402
3403 PR ipa/92471
3404 * ipa-profile.c (check_argument_count): Break out from ...;
3405 watch for missing summaries.
3406 (ipa_profile): Here.
3407
3408 2019-11-12 Martin Sebor <msebor@redhat.com>
3409
3410 PR tree-optimization/92412
3411 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3412 extern variables.
3413
3414 2019-11-12 Martin Sebor <msebor@redhat.com>
3415
3416 PR middle-end/83688
3417 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3418 (directive::argno): New member.
3419 (format_result::aliases, format_result::alias_count): New data members.
3420 (format_result::append_alias): New member function.
3421 (fmtresult::dst_offset): New data member.
3422 (pass_sprintf_length::call_info::dst_origin): New data member.
3423 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3424 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3425 (get_origin_and_offset): Same.
3426 (format_string): Call it.
3427 (format_directive): Call append_alias and set directive argument
3428 number.
3429 (maybe_warn_overlap): New function.
3430 (pass_sprintf_length::compute_format_length): Call it.
3431 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3432 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3433
3434 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3435
3436 PR rtl-optimization/92430
3437 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3438 dominance info at the beginning.
3439
3440 2019-11-12 Richard Biener <rguenther@suse.de>
3441
3442 PR tree-optimization/92460
3443 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3444 expression before gimplifying.
3445
3446 2019-11-12 Richard Biener <rguenther@suse.de>
3447
3448 PR tree-optimization/92461
3449 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3450 stmt after propagation.
3451
3452 2019-11-12 Martin Liska <mliska@suse.cz>
3453
3454 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3455 Use SET_OPTION_IF_UNSET.
3456 (ix86_option_override_internal): Likewise.
3457 * opts.c (default_options_optimization): Likewise.
3458 (finish_options): Likewise.
3459 (enable_fdo_optimizations): Likewise.
3460 (common_handle_option): Likewise.
3461
3462 2019-11-12 Martin Liska <mliska@suse.cz>
3463
3464 * common/common-target.def: Remove option_validate_param and
3465 option_default_params.
3466 * common/common-targhooks.c (default_option_validate_param):
3467 Remove.
3468 * common/common-targhooks.h (default_option_validate_param):
3469 Remove.
3470 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3471 Remove usage of this.
3472 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3473 (aarch64_option_validate_param): Likewise.
3474 (aarch64_option_default_params): Likewise
3475 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3476 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3477 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3478 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3479 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3480 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3481 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3482 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3483 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3484 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3485 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3486 guard_size here.
3487 * doc/tm.texi: Remove option_default_params and option_validate_param.
3488 * doc/tm.texi.in: Likewise.
3489
3490 2019-11-12 Martin Liska <mliska@suse.cz>
3491
3492 * common/common-target.def:
3493 Do not mention set_default_param_value
3494 and set_param_value.
3495 * doc/tm.texi: Likewise.
3496
3497 2019-11-12 Martin Liska <mliska@suse.cz>
3498
3499 * common.opt: Remove param_values.
3500 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3501 Remove finalize_options_struct.
3502 * gcc.c (driver::decode_argv): Do not call global_init_params
3503 and finish_params.
3504 (driver::finalize): Do not call params_c_finalize
3505 and finalize_options_struct.
3506 * opt-suggestions.c (option_proposer::get_completions): Remove
3507 special casing of params.
3508 (option_proposer::find_param_completions): Remove.
3509 (test_completion_partial_match): Update expected output.
3510 * opt-suggestions.h: Remove find_param_completions.
3511 * opts-common.c (add_misspelling_candidates): Add
3512 --param with a space.
3513 * opts.c (handle_param): Remove.
3514 (init_options_struct):. Remove init_options_struct and
3515 similar calls.
3516 (finalize_options_struct): Remove.
3517 (common_handle_option): Use SET_OPTION_IF_UNSET.
3518 * opts.h (finalize_options_struct): Remove.
3519 * toplev.c (general_init): Do not call global_init_params.
3520 (toplev::finalize): Do not call params_c_finalize and
3521 finalize_options_struct.
3522
3523 2019-11-12 Martin Liska <mliska@suse.cz>
3524
3525 * Makefile.in: Remove PARAMS_H and params.list
3526 and params.options.
3527 * params-enum.h: Remove.
3528 * params-list.h: Remove.
3529 * params-options.h: Remove.
3530 * params.c: Remove.
3531 * params.def: Remove.
3532 * params.h: Remove.
3533 * asan.c: Do not include params.h.
3534 * auto-profile.c: Likewise.
3535 * bb-reorder.c: Likewise.
3536 * builtins.c: Likewise.
3537 * cfgcleanup.c: Likewise.
3538 * cfgexpand.c: Likewise.
3539 * cfgloopanal.c: Likewise.
3540 * cgraph.c: Likewise.
3541 * combine.c: Likewise.
3542 * common/config/aarch64/aarch64-common.c: Likewise.
3543 * common/config/gcn/gcn-common.c: Likewise.
3544 * common/config/ia64/ia64-common.c: Likewise.
3545 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3546 * common/config/rs6000/rs6000-common.c: Likewise.
3547 * common/config/sh/sh-common.c: Likewise.
3548 * config/aarch64/aarch64.c: Likewise.
3549 * config/alpha/alpha.c: Likewise.
3550 * config/arm/arm.c: Likewise.
3551 * config/avr/avr.c: Likewise.
3552 * config/csky/csky.c: Likewise.
3553 * config/i386/i386-builtins.c: Likewise.
3554 * config/i386/i386-expand.c: Likewise.
3555 * config/i386/i386-features.c: Likewise.
3556 * config/i386/i386-options.c: Likewise.
3557 * config/i386/i386.c: Likewise.
3558 * config/ia64/ia64.c: Likewise.
3559 * config/rs6000/rs6000-logue.c: Likewise.
3560 * config/rs6000/rs6000.c: Likewise.
3561 * config/s390/s390.c: Likewise.
3562 * config/sparc/sparc.c: Likewise.
3563 * config/visium/visium.c: Likewise.
3564 * coverage.c: Likewise.
3565 * cprop.c: Likewise.
3566 * cse.c: Likewise.
3567 * cselib.c: Likewise.
3568 * dse.c: Likewise.
3569 * emit-rtl.c: Likewise.
3570 * explow.c: Likewise.
3571 * final.c: Likewise.
3572 * fold-const.c: Likewise.
3573 * gcc.c: Likewise.
3574 * gcse.c: Likewise.
3575 * ggc-common.c: Likewise.
3576 * ggc-page.c: Likewise.
3577 * gimple-loop-interchange.cc: Likewise.
3578 * gimple-loop-jam.c: Likewise.
3579 * gimple-loop-versioning.cc: Likewise.
3580 * gimple-ssa-split-paths.c: Likewise.
3581 * gimple-ssa-sprintf.c: Likewise.
3582 * gimple-ssa-store-merging.c: Likewise.
3583 * gimple-ssa-strength-reduction.c: Likewise.
3584 * gimple-ssa-warn-alloca.c: Likewise.
3585 * gimple-ssa-warn-restrict.c: Likewise.
3586 * graphite-isl-ast-to-gimple.c: Likewise.
3587 * graphite-optimize-isl.c: Likewise.
3588 * graphite-scop-detection.c: Likewise.
3589 * graphite-sese-to-poly.c: Likewise.
3590 * graphite.c: Likewise.
3591 * haifa-sched.c: Likewise.
3592 * hsa-gen.c: Likewise.
3593 * ifcvt.c: Likewise.
3594 * ipa-cp.c: Likewise.
3595 * ipa-fnsummary.c: Likewise.
3596 * ipa-inline-analysis.c: Likewise.
3597 * ipa-inline.c: Likewise.
3598 * ipa-polymorphic-call.c: Likewise.
3599 * ipa-profile.c: Likewise.
3600 * ipa-prop.c: Likewise.
3601 * ipa-split.c: Likewise.
3602 * ipa-sra.c: Likewise.
3603 * ira-build.c: Likewise.
3604 * ira-conflicts.c: Likewise.
3605 * loop-doloop.c: Likewise.
3606 * loop-invariant.c: Likewise.
3607 * loop-unroll.c: Likewise.
3608 * lra-assigns.c: Likewise.
3609 * lra-constraints.c: Likewise.
3610 * modulo-sched.c: Likewise.
3611 * opt-suggestions.c: Likewise.
3612 * opts.c: Likewise.
3613 * postreload-gcse.c: Likewise.
3614 * predict.c: Likewise.
3615 * reload.c: Likewise.
3616 * reorg.c: Likewise.
3617 * resource.c: Likewise.
3618 * sanopt.c: Likewise.
3619 * sched-deps.c: Likewise.
3620 * sched-ebb.c: Likewise.
3621 * sched-rgn.c: Likewise.
3622 * sel-sched-ir.c: Likewise.
3623 * sel-sched.c: Likewise.
3624 * shrink-wrap.c: Likewise.
3625 * stmt.c: Likewise.
3626 * targhooks.c: Likewise.
3627 * toplev.c: Likewise.
3628 * tracer.c: Likewise.
3629 * trans-mem.c: Likewise.
3630 * tree-chrec.c: Likewise.
3631 * tree-data-ref.c: Likewise.
3632 * tree-if-conv.c: Likewise.
3633 * tree-inline.c: Likewise.
3634 * tree-loop-distribution.c: Likewise.
3635 * tree-parloops.c: Likewise.
3636 * tree-predcom.c: Likewise.
3637 * tree-profile.c: Likewise.
3638 * tree-scalar-evolution.c: Likewise.
3639 * tree-sra.c: Likewise.
3640 * tree-ssa-ccp.c: Likewise.
3641 * tree-ssa-dom.c: Likewise.
3642 * tree-ssa-dse.c: Likewise.
3643 * tree-ssa-ifcombine.c: Likewise.
3644 * tree-ssa-loop-ch.c: Likewise.
3645 * tree-ssa-loop-im.c: Likewise.
3646 * tree-ssa-loop-ivcanon.c: Likewise.
3647 * tree-ssa-loop-ivopts.c: Likewise.
3648 * tree-ssa-loop-manip.c: Likewise.
3649 * tree-ssa-loop-niter.c: Likewise.
3650 * tree-ssa-loop-prefetch.c: Likewise.
3651 * tree-ssa-loop-unswitch.c: Likewise.
3652 * tree-ssa-math-opts.c: Likewise.
3653 * tree-ssa-phiopt.c: Likewise.
3654 * tree-ssa-pre.c: Likewise.
3655 * tree-ssa-reassoc.c: Likewise.
3656 * tree-ssa-sccvn.c: Likewise.
3657 * tree-ssa-scopedtables.c: Likewise.
3658 * tree-ssa-sink.c: Likewise.
3659 * tree-ssa-strlen.c: Likewise.
3660 * tree-ssa-structalias.c: Likewise.
3661 * tree-ssa-tail-merge.c: Likewise.
3662 * tree-ssa-threadbackward.c: Likewise.
3663 * tree-ssa-threadedge.c: Likewise.
3664 * tree-ssa-uninit.c: Likewise.
3665 * tree-switch-conversion.c: Likewise.
3666 * tree-vect-data-refs.c: Likewise.
3667 * tree-vect-loop.c: Likewise.
3668 * tree-vect-slp.c: Likewise.
3669 * tree-vrp.c: Likewise.
3670 * tree.c: Likewise.
3671 * value-prof.c: Likewise.
3672 * var-tracking.c: Likewise.
3673
3674 2019-11-12 Martin Liska <mliska@suse.cz>
3675
3676 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3677 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3678 macro.
3679 (asan_sanitize_allocas_p): Likewise.
3680 (asan_emit_stack_protection): Likewise.
3681 (asan_protect_global): Likewise.
3682 (instrument_derefs): Likewise.
3683 (instrument_builtin_call): Likewise.
3684 (asan_expand_mark_ifn): Likewise.
3685 * auto-profile.c (auto_profile): Likewise.
3686 * bb-reorder.c (copy_bb_p): Likewise.
3687 (duplicate_computed_gotos): Likewise.
3688 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3689 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3690 (try_crossjump_bb): Likewise.
3691 * cfgexpand.c (defer_stack_allocation): Likewise.
3692 (stack_protect_classify_type): Likewise.
3693 (pass_expand::execute): Likewise.
3694 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3695 (estimate_reg_pressure_cost): Likewise.
3696 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3697 * combine.c (combine_instructions): Likewise.
3698 (record_value_for_reg): Likewise.
3699 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3700 (aarch64_option_default_params): Likewise.
3701 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3702 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3703 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3704 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3705 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3706 (aarch64_allocate_and_probe_stack_space): Likewise.
3707 (aarch64_expand_epilogue): Likewise.
3708 (aarch64_override_options_internal): Likewise.
3709 * config/alpha/alpha.c (alpha_option_override): Likewise.
3710 * config/arm/arm.c (arm_option_override): Likewise.
3711 (arm_valid_target_attribute_p): Likewise.
3712 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3713 * config/i386/i386.c (get_probe_interval): Likewise.
3714 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3715 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3716 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3717 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3718 (get_stack_clash_protection_guard_size): Likewise.
3719 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3720 * config/s390/s390.c (allocate_stack_space): Likewise.
3721 (s390_emit_prologue): Likewise.
3722 (s390_option_override_internal): Likewise.
3723 * config/sparc/sparc.c (sparc_option_override): Likewise.
3724 * config/visium/visium.c (visium_option_override): Likewise.
3725 * coverage.c (get_coverage_counts): Likewise.
3726 (coverage_compute_profile_id): Likewise.
3727 (coverage_begin_function): Likewise.
3728 (coverage_end_function): Likewise.
3729 * cse.c (cse_find_path): Likewise.
3730 (cse_extended_basic_block): Likewise.
3731 (cse_main): Likewise.
3732 * cselib.c (cselib_invalidate_mem): Likewise.
3733 * dse.c (dse_step1): Likewise.
3734 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3735 (get_max_insn_count): Likewise.
3736 (make_debug_insn_raw): Likewise.
3737 (init_emit): Likewise.
3738 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3739 * final.c (compute_alignments): Likewise.
3740 * fold-const.c (fold_range_test): Likewise.
3741 (fold_truth_andor): Likewise.
3742 (tree_single_nonnegative_warnv_p): Likewise.
3743 (integer_valued_real_single_p): Likewise.
3744 * gcse.c (want_to_gcse_p): Likewise.
3745 (prune_insertions_deletions): Likewise.
3746 (hoist_code): Likewise.
3747 (gcse_or_cprop_is_too_expensive): Likewise.
3748 * ggc-common.c: Likewise.
3749 * ggc-page.c (ggc_collect): Likewise.
3750 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3751 (MAX_DATAREFS): Likewise.
3752 (OUTER_STRIDE_RATIO): Likewise.
3753 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3754 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3755 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3756 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3757 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3758 (imm_store_chain_info::output_merged_store): Likewise.
3759 (pass_store_merging::process_store): Likewise.
3760 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3761 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3762 (scop_to_isl_ast): Likewise.
3763 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3764 (optimize_isl): Likewise.
3765 * graphite-scop-detection.c (build_scops): Likewise.
3766 * haifa-sched.c (set_modulo_params): Likewise.
3767 (rank_for_schedule): Likewise.
3768 (model_add_to_worklist): Likewise.
3769 (model_promote_insn): Likewise.
3770 (model_choose_insn): Likewise.
3771 (queue_to_ready): Likewise.
3772 (autopref_multipass_dfa_lookahead_guard): Likewise.
3773 (schedule_block): Likewise.
3774 (sched_init): Likewise.
3775 * hsa-gen.c (init_prologue): Likewise.
3776 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3777 (cond_move_process_if_block): Likewise.
3778 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3779 (merge_agg_lats_step): Likewise.
3780 (devirtualization_time_bonus): Likewise.
3781 (hint_time_bonus): Likewise.
3782 (incorporate_penalties): Likewise.
3783 (good_cloning_opportunity_p): Likewise.
3784 (ipcp_propagate_stage): Likewise.
3785 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3786 (set_switch_stmt_execution_predicate): Likewise.
3787 (analyze_function_body): Likewise.
3788 (compute_fn_summary): Likewise.
3789 * ipa-inline-analysis.c (estimate_growth): Likewise.
3790 * ipa-inline.c (caller_growth_limits): Likewise.
3791 (inline_insns_single): Likewise.
3792 (inline_insns_auto): Likewise.
3793 (can_inline_edge_by_limits_p): Likewise.
3794 (want_early_inline_function_p): Likewise.
3795 (big_speedup_p): Likewise.
3796 (want_inline_small_function_p): Likewise.
3797 (want_inline_self_recursive_call_p): Likewise.
3798 (edge_badness): Likewise.
3799 (recursive_inlining): Likewise.
3800 (compute_max_insns): Likewise.
3801 (early_inliner): Likewise.
3802 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3803 * ipa-profile.c (ipa_profile): Likewise.
3804 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3805 (ipa_analyze_node): Likewise.
3806 (ipcp_transform_function): Likewise.
3807 * ipa-split.c (consider_split): Likewise.
3808 * ipa-sra.c (allocate_access): Likewise.
3809 (process_scan_results): Likewise.
3810 (ipa_sra_summarize_function): Likewise.
3811 (pull_accesses_from_callee): Likewise.
3812 * ira-build.c (loop_compare_func): Likewise.
3813 (mark_loops_for_removal): Likewise.
3814 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3815 * loop-doloop.c (doloop_optimize): Likewise.
3816 * loop-invariant.c (gain_for_invariant): Likewise.
3817 (move_loop_invariants): Likewise.
3818 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3819 (decide_unroll_runtime_iterations): Likewise.
3820 (decide_unroll_stupid): Likewise.
3821 (expand_var_during_unrolling): Likewise.
3822 * lra-assigns.c (spill_for): Likewise.
3823 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3824 * modulo-sched.c (sms_schedule): Likewise.
3825 (DFA_HISTORY): Likewise.
3826 * opts.c (default_options_optimization): Likewise.
3827 (finish_options): Likewise.
3828 (common_handle_option): Likewise.
3829 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3830 (if): Likewise.
3831 * predict.c (get_hot_bb_threshold): Likewise.
3832 (maybe_hot_count_p): Likewise.
3833 (probably_never_executed): Likewise.
3834 (predictable_edge_p): Likewise.
3835 (predict_loops): Likewise.
3836 (expr_expected_value_1): Likewise.
3837 (tree_predict_by_opcode): Likewise.
3838 (handle_missing_profiles): Likewise.
3839 * reload.c (find_equiv_reg): Likewise.
3840 * reorg.c (redundant_insn): Likewise.
3841 * resource.c (mark_target_live_regs): Likewise.
3842 (incr_ticks_for_insn): Likewise.
3843 * sanopt.c (pass_sanopt::execute): Likewise.
3844 * sched-deps.c (sched_analyze_1): Likewise.
3845 (sched_analyze_2): Likewise.
3846 (sched_analyze_insn): Likewise.
3847 (deps_analyze_insn): Likewise.
3848 * sched-ebb.c (schedule_ebbs): Likewise.
3849 * sched-rgn.c (find_single_block_region): Likewise.
3850 (too_large): Likewise.
3851 (haifa_find_rgns): Likewise.
3852 (extend_rgns): Likewise.
3853 (new_ready): Likewise.
3854 (schedule_region): Likewise.
3855 (sched_rgn_init): Likewise.
3856 * sel-sched-ir.c (make_region_from_loop): Likewise.
3857 * sel-sched-ir.h (MAX_WS): Likewise.
3858 * sel-sched.c (process_pipelined_exprs): Likewise.
3859 (sel_setup_region_sched_flags): Likewise.
3860 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3861 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3862 * toplev.c (print_version): Likewise.
3863 (process_options): Likewise.
3864 * tracer.c (tail_duplicate): Likewise.
3865 * trans-mem.c (tm_log_add): Likewise.
3866 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3867 * tree-data-ref.c (split_constant_offset): Likewise.
3868 (compute_all_dependences): Likewise.
3869 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3870 * tree-inline.c (remap_gimple_stmt): Likewise.
3871 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3872 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3873 (create_parallel_loop): Likewise.
3874 * tree-predcom.c (determine_unroll_factor): Likewise.
3875 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3876 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3877 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3878 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3879 (dse_optimize_redundant_stores): Likewise.
3880 (dse_classify_store): Likewise.
3881 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3882 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3883 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3884 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3885 (try_peel_loop): Likewise.
3886 (tree_unroll_loops_completely): Likewise.
3887 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3888 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3889 (MAX_CONSIDERED_GROUPS): Likewise.
3890 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3891 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3892 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3893 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3894 (L1_CACHE_SIZE_BYTES): Likewise.
3895 (L2_CACHE_SIZE_BYTES): Likewise.
3896 (should_issue_prefetch_p): Likewise.
3897 (schedule_prefetches): Likewise.
3898 (determine_unroll_factor): Likewise.
3899 (volume_of_references): Likewise.
3900 (add_subscript_strides): Likewise.
3901 (self_reuse_distance): Likewise.
3902 (mem_ref_count_reasonable_p): Likewise.
3903 (insn_to_prefetch_ratio_too_small_p): Likewise.
3904 (loop_prefetch_arrays): Likewise.
3905 (tree_ssa_prefetch_arrays): Likewise.
3906 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3907 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3908 (convert_mult_to_fma): Likewise.
3909 (math_opts_dom_walker::after_dom_children): Likewise.
3910 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3911 (hoist_adjacent_loads): Likewise.
3912 (gate_hoist_loads): Likewise.
3913 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3914 (compute_partial_antic_aux): Likewise.
3915 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3916 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3917 (vn_reference_lookup): Likewise.
3918 (do_rpo_vn): Likewise.
3919 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3920 * tree-ssa-sink.c (select_best_block): Likewise.
3921 * tree-ssa-strlen.c (new_stridx): Likewise.
3922 (new_addr_stridx): Likewise.
3923 (get_range_strlen_dynamic): Likewise.
3924 (class ssa_name_limit_t): Likewise.
3925 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3926 (create_variable_info_for_1): Likewise.
3927 (init_alias_vars): Likewise.
3928 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3929 (tail_merge_optimize): Likewise.
3930 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3931 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3932 (thread_jumps::find_jump_threads_backwards): Likewise.
3933 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3934 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3935 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3936 (jump_table_cluster::can_be_handled): Likewise.
3937 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3938 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3939 (param_switch_conversion_branch_ratio): Likewise.
3940 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3941 (vect_enhance_data_refs_alignment): Likewise.
3942 (vect_prune_runtime_alias_test_list): Likewise.
3943 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3944 (vect_get_datarefs_in_loop): Likewise.
3945 (vect_analyze_loop): Likewise.
3946 * tree-vect-slp.c (vect_slp_bb): Likewise.
3947 * tree-vectorizer.h: Likewise.
3948 * tree-vrp.c (find_switch_asserts): Likewise.
3949 (vrp_prop::check_mem_ref): Likewise.
3950 * tree.c (wide_int_to_tree_1): Likewise.
3951 (cache_integer_cst): Likewise.
3952 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3953 (reverse_op): Likewise.
3954 (vt_find_locations): Likewise.
3955
3956 2019-11-12 Martin Liska <mliska@suse.cz>
3957
3958 * Makefile.in: Include params.opt.
3959 * flag-types.h (enum parloops_schedule_type): Add
3960 parloops_schedule_type used in params.opt.
3961 * params.opt: New file.
3962
3963 2019-11-12 Martin Liska <mliska@suse.cz>
3964
3965 * common.opt: Remove --param and --param= options.
3966 * opt-functions.awk: Mark CL_PARAMS for options
3967 that have Param keyword.
3968 * opts-common.c (decode_cmdline_options_to_array):
3969 Replace --param key=value with --param=key=value.
3970 * opts.c (print_filtered_help): Remove special
3971 printing of params.
3972 (print_specific_help): Update title for params.
3973 (common_handle_option): Do not handle OPT__param.
3974 opts.h (SET_OPTION_IF_UNSET): New macro.
3975 * doc/options.texi: Document Param keyword.
3976
3977 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3978 Frederik Harwath <frederik@codesourcery.com>
3979 Thomas Schwinge <thomas@codesourcery.com>
3980
3981 gcc/
3982 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3983 enumeration constant.
3984 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3985 (is_gimple_omp_offloaded): Likewise.
3986 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3987 constant. Adjust the value of ORT_NONE accordingly.
3988 (is_gimple_stmt): Handle OACC_SERIAL.
3989 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3990 (gomp_needs_data_present): Likewise.
3991 (gimplify_adjust_omp_clauses): Likewise.
3992 (gimplify_omp_workshare): Handle OACC_SERIAL.
3993 (gimplify_expr): Likewise.
3994 * omp-expand.c (expand_omp_target):
3995 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3996 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3997 * omp-low.c (is_oacc_parallel): Rename function to...
3998 (is_oacc_parallel_or_serial): ... this.
3999 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4000 (scan_sharing_clauses): Adjust accordingly.
4001 (scan_omp_for): Likewise.
4002 (lower_oacc_head_mark): Likewise.
4003 (convert_from_firstprivate_int): Likewise.
4004 (lower_omp_target): Likewise.
4005 (check_omp_nesting_restrictions): Handle
4006 GF_OMP_TARGET_KIND_OACC_SERIAL.
4007 (lower_oacc_reductions): Likewise.
4008 (lower_omp_target): Likewise.
4009 * tree.def (OACC_SERIAL): New tree code.
4010 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4011
4012 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4013
4014 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4015
4016 PR target/92449
4017 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4018 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4019
4020 PR tree-optimization/92452
4021 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4022 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4023 MINUS_EXPR on it.
4024
4025 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4026
4027 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4028 safelen with 0.
4029
4030 2019-11-12 Alan Modra <amodra@gmail.com>
4031
4032 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4033 element of unspec vec.
4034 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4035 PC-relative TLS.
4036 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4037 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4038 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4039 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4040
4041 2019-11-12 Alan Modra <amodra@gmail.com>
4042
4043 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4044 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4045 (IS_NOMARK_TLSGETADDR): Likewise.
4046 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4047 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4048 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4049 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4050 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4051 (rs6000_indirect_call_template_1): Likewise.
4052 (rs6000_pltseq_template): Likewise.
4053 (rs6000_opt_vars): Remove "tls-markers" entry.
4054 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4055 with TARGET_ELF.
4056 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4057 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4058 (pltseq_plt_pcrel<mode>): Likewise.
4059 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4060 (call_value_local64): Likewise.
4061 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4062 output and length attribute sub-expression.
4063 (call_value_nonlocal_sysv<mode>),
4064 (call_value_nonlocal_sysv_secure<mode>),
4065 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4066 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4067 (call_value_indirect_pcrel<mode>): Likewise.
4068 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4069 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4070 * configure: Regenerate.
4071 * config.in: Regenerate.
4072
4073 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4074
4075 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4076 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4077 address being a prefixed load/store.
4078 (stack_protect_testdi): Deal with either address being a prefixed
4079 load.
4080
4081 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4082
4083 PR bootstrap/92433
4084 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4085 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4086 std::swap.
4087
4088 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4089
4090 PR tree-optimization/92420
4091 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4092 up file.
4093 (get_group_load_store_type): Use it for reversed SLP accesses.
4094
4095 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4096
4097 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4098 summary.
4099 (ipcp_transformation_t::duplicate): Break out from ...
4100 (ipa_node_params_t::duplicate): ... here; add copying of agg
4101 replacements.
4102 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4103 (ipcp_transformation_t): Add duplicate.
4104
4105 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4106
4107 PR fortran/91828
4108 * doc/install.texi: Document that the minimum MPFR version is
4109 3.1.0.
4110
4111 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4112
4113 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4114 use new register constraint letters.
4115
4116 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4117
4118 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4119 as well, if interesting recover the symbol and re-legitimize the
4120 pic address.
4121
4122 2019-11-11 Martin Liska <mliska@suse.cz>
4123
4124 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4125 alphabetically.
4126
4127 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4128
4129 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4130 account when checking if there are enough iterations to vectorize
4131 epilogue.
4132
4133 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4134 Kwok Cheung Yeung <kcy@codesourcery.com>
4135
4136 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4137 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4138 (LANG_HOOKS_DECLS): Rename also here.
4139 * langhooks.h (lang_hooks_for_decls): Rename
4140 omp_is_optional_argument to omp_check_optional_argument; take
4141 additional bool argument.
4142 * omp-general.h (omp_check_optional_argument): Likewise.
4143 * omp-general.h (omp_check_optional_argument): Likewise.
4144 * omp-low.c (lower_omp_target): Update calls; handle absent
4145 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4146
4147 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4148
4149 PR target/87833
4150 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4151 -fPIC and -shared the last to create offload image.
4152
4153 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4154
4155 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4156 of 'offset'.
4157
4158 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4159 (config.status): Use/depend on it.
4160 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4161 * configure: Regenerate.
4162
4163 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4164
4165 PR tree-optimization/88760
4166 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4167 * gcc/common/config/rs6000/rs6000-common.c
4168 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4169 Turn on -funroll-loops and -munroll-only-small-loops.
4170 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4171 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4172 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4173 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4174 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4175 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4176
4177 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4178
4179 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4180 Make scalar_load, vector_load, unaligned_load and
4181 vector_gather_load cost more to conform hardware latency and
4182 insn cost settings.
4183
4184 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4185
4186 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4187 (MACHO_SYMBOL_LINKER_VIS_P): New.
4188
4189 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4190
4191 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4192 registers in eliminable_regset.
4193
4194 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4195
4196 * ipa-inline.c (compute_uninlined_call_time,
4197 compute_inlined_call_time): Take edge frequency as
4198 parameter rather than computing it by itself.
4199 (big_speedup_p, edge_badness): Manually CSE sreal
4200 frequency calculations.
4201
4202 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4203
4204 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4205 case where profiles are same.
4206
4207 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4208
4209 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4210
4211 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4212
4213 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4214 args summaries of inlined edge unless it holds info about
4215 described reference.
4216
4217 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4218
4219 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4220 (*movcc_internal1): Rename to...
4221 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4222
4223 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4224
4225 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4226 (cgraph_node::create_virtual_clone): Copy it.
4227 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4228 summaries.
4229 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4230 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4231 is disabled.
4232 (propagate_constants_across_call): If callee is not analyzed, give up.
4233 (propagate_constants_topo): Lower to bottom latties of all callees of
4234 functions with ipa-cp disabled.
4235 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4236 (cgraph_edge_brings_value_p): Check for availability first.
4237 (create_specialized_node): Set ipcp_clone.
4238 (ipcp_store_bits_results): Check that info is present.
4239 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4240 thunks.
4241 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4242 conservative when callee summary is missing.
4243 (remap_edge_summaries): Lookup call summary only when needed.
4244 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4245 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4246 Use get_create.
4247 (ipa_analyze_node): Use get_create.
4248 (propagate_controlled_uses): Do not propagate when function is not
4249 analyzed.
4250 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4251 (ipa_read_node_info): Use get_create.
4252 * ipa-prop.h (IPA_NODE_REF): Use get.
4253 (IPA_NODE_REF_GET_CREATE): New.
4254
4255 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4256
4257 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4258 on function symbol.
4259
4260 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4261
4262 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4263 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4264 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4265 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4266
4267 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4268
4269 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4270 capping the growth cumulated.
4271 (offline_size): Break out from ...
4272 (estimate_growth): ... here.
4273 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4274 parameters.
4275 (growth_likely_positive): Turn to ...
4276 (growth_positive_p): Re-implement.
4277 * ipa-inline.h (growth_likely_positive): Remove.
4278 (growth_positive_p): Declare.
4279 * ipa-inline.c (want_inline_small_function_p): Use
4280 growth_positive_p.
4281 (want_inline_function_to_all_callers_p): Likewise.
4282
4283 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4284
4285 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4286 calculation of min_size.
4287 (ipa_update_overall_fn_summary): Likewise.
4288
4289 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4290
4291 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4292 estimate_edge_devirt_benefit when not computing hints;
4293 do not compute time when not asked for.
4294 (estimate_calls_size_and_time): Pass NULL hints and time when
4295 these are not computed; do not evaluate hint predicates when these are
4296 not computed.
4297 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4298 frequency.
4299
4300 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4301
4302 PR tree-optimization/92401
4303 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4304 if res_op->code is an expression with code length 1.
4305 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4306 if res_op->code is an expression with code length 2.
4307 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4308 if res_op->code is an expression with code length 3.
4309
4310 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4311
4312 * config/darwin.c (machopic_mcount_stub_name): Validate the
4313 symbol stub name when it is created.
4314 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4315 stub validation.
4316
4317 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4318
4319 * symtab.c: Fix comment typos.
4320 * cgraphunit.c: Likewise.
4321 * cgraph.h: Likewise.
4322 * cgraphclones.c: Likewise.
4323 * cgraph.c: Likewise.
4324 * varpool.c: Likewise.
4325 * tree-ssa-strlen.c: Likewise.
4326 * ipa-sra.c: Likewise.
4327 (scan_expr_access, check_all_callers_for_issues): Fix typo
4328 in a dump message.
4329
4330 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4331
4332 * config/darwin-protos.h: Add include quard.
4333
4334 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4335
4336 * range-op.h (range_operator::fold_range): Return result in a
4337 reference parameter instead of by value.
4338 (range_operator::wi_fold): Same.
4339 * range-op.cc (range_operator::wi_fold): Return result in a reference
4340 parameter instead of by value.
4341 (range_operator::fold_range): Same.
4342 (value_range_from_overflowed_bounds): Same.
4343 (value_range_with_overflow): Same
4344 (create_possibly_reversed_range): Same.
4345 (operator_equal::fold_range): Same.
4346 (operator_not_equal::fold_range): Same.
4347 (operator_lt::fold_range): Same.
4348 (operator_le::fold_range): Same.
4349 (operator_gt::fold_range): Same.
4350 (operator_ge::fold_range): Same.
4351 (operator_plus::wi_fold): Same.
4352 (operator_plus::op1_range): Change call to fold_range.
4353 (operator_plus::op2_range): Change call to fold_range.
4354 (operator_minus::wi_fold): Return result via reference parameter.
4355 (operator_minus::op1_range): Change call to fold_range.
4356 (operator_minus::op2_range): Change call to fold_range.
4357 (operator_min::wi_fold): Return result via reference parameter.
4358 (operator_max::wi_fold): Same.
4359 (cross_product_operator::wi_cross_product): Same.
4360 (operator_mult::wi_fold): Same.
4361 (operator_div::wi_fold): Same.
4362 (operator_div op_floor_div): Fix whitespace.
4363 (operator_exact_divide::op1_range): Change call to fold_range.
4364 (operator_lshift::fold_range): Return result via reference parameter.
4365 (operator_lshift::wi_fold): Same.
4366 (operator_rshift::fold_range): Same.
4367 (operator_rshift::wi_fold): Same.
4368 (operator_cast::fold_range): Same.
4369 (operator_cast::op1_range): Change calls to fold_range.
4370 (operator_logical_and::fold_range): Return result via reference.
4371 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4372 (operator_bitwise_and::wi_fold): Return result via reference.
4373 (operator_logical_or::fold_range): Same.
4374 (operator_bitwise_or::wi_fold): Same.
4375 (operator_bitwise_xor::wi_fold): Same.
4376 (operator_trunc_mod::wi_fold): Same.
4377 (operator_logical_not::fold_range): Same.
4378 (operator_bitwise_not::fold_range): Same.
4379 (operator_bitwise_not::op1_range): Change call to fold_range.
4380 (operator_cst::fold_range): Return result via reference.
4381 (operator_identity::fold_range): Same.
4382 (operator_abs::wi_fold): Same.
4383 (operator_absu::wi_fold): Same.
4384 (operator_negate::fold_range): Same.
4385 (operator_negate::op1_range): Change call to fold_range.
4386 (operator_addr_expr::fold_range): Return result via reference.
4387 (operator_addr_expr::op1_range): Change call to fold_range.
4388 (operator_pointer_plus::wi_fold): Return result via reference.
4389 (operator_pointer_min_max::wi_fold): Same.
4390 (operator_pointer_and::wi_fold): Same.
4391 (operator_pointer_or::wi_fold): Same.
4392 (range_op_handler): Change call to fold_range.
4393 (range_cast): Same.
4394 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4395 fold_range.
4396 (range_fold_unary_symbolics_p): Same.
4397 (range_fold_binary_expr): Same.
4398 (range_fold_unary_expr): Same.
4399
4400 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4401
4402 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4403 vector type as an argument rather than reading it from the
4404 stmt_vec_info.
4405 (vect_create_epilog_for_reduction): Update accordingly.
4406 (vectorizable_reduction): Likewise.
4407 (vect_transform_cycle_phi): Likewise.
4408
4409 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4410
4411 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4412 the comparison codes that make sense for the mode used, and only the
4413 codes that can be done with a single branch instruction.
4414
4415 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4416
4417 PR tree-optimization/92351
4418 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4419 peeling the main loop for alignment, make sure to set the misalignment
4420 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4421
4422 2019-11-08 Richard Biener <rguenther@suse.de>
4423
4424 * dbgcnt.def (ivopts_loop): Add.
4425 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4426 ivopts_loop before optimizing a loop.
4427
4428 2019-11-08 Richard Biener <rguenther@suse.de>
4429
4430 PR ipa/92409
4431 * tree-inline.c (declare_return_variable): Properly handle
4432 type mismatches for the return slot.
4433
4434 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4435
4436 PR target/92095
4437 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4438 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4439 change.
4440 (got_helper_needed): New static variable.
4441 (output_load_pcrel_sym): New function.
4442 (get_pc_thunk_name): Remove after inlining...
4443 (load_got_register): ...here. Rework the initialization of the GOT
4444 register and of the GOT helper.
4445 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4446 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4447 helper must be emitted. Use output_asm_insn instead of fprintf.
4448 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4449 if optimization is enabled.
4450 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4451 by calling output_load_pcrel_sym.
4452
4453 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4454
4455 * tree-sra.c (create_access): Delay disqualifying the base
4456 for poly_int values until we know we have a base.
4457
4458 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4459
4460 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4461 for loops with SIMDUID set. Enable epilogue vectorization for loops
4462 with SIMDLEN set after finding a main loop with a VF that matches it.
4463
4464 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4465
4466 PR target/92038
4467 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4468 value only, return non-NULL if there is a single non-clobber
4469 constituent store even if there are constituent clobbers and return
4470 one of clobber constituent stores if all constituent stores are
4471 clobbers.
4472 (split_group): Handle clobbers.
4473 (imm_store_chain_info::output_merged_store): When computing
4474 bzero_first, look after all clobbers at the start. Don't count
4475 clobber stmts in orig_num_stmts, except if the first orig store is
4476 a clobber covering the whole area and split_stores cover the whole
4477 area, consider equal number of stmts ok. Punt if split_stores
4478 contains only ->orig stores and their number plus number of original
4479 clobbers is equal to original number of stmts. For ->orig, look past
4480 clobbers in the constituent stores.
4481 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4482 stmts.
4483 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4484 rhs.
4485 (store_valid_for_store_merging_p): Allow clobber stmts.
4486 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4487
4488 PR c++/92384
4489 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4490 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4491 slot.
4492 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4493 force creation of a unique data.stack_parm slot.
4494
4495 2019-11-08 Richard Biener <rguenther@suse.de>
4496
4497 * genmatch.c (expr::gen_transform): Use the resimplify
4498 member function instead of hard-coding the gimple_resimplifyN variant.
4499 (dt_simplify::gen_1): Likewise.
4500
4501 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4502
4503 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4504 POLY_INT_CST.
4505
4506 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4507
4508 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4509 instead of INTEGER_CST.
4510
4511 2019-11-08 Richard Biener <rguenther@suse.de>
4512
4513 PR tree-optimization/92324
4514 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4515 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4516 sign-conversions as necessary.
4517 (vectorizable_reduction): Reject conversions in the chain
4518 that are not sign-conversions, base analysis on a non-converting
4519 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4520 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4521 for debug stmts.
4522 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4523 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4524
4525 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4526
4527 PR target/92055
4528 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4529 Fix a missing '-' when displaying these options in the
4530 help screen.
4531
4532 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4533
4534 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4535
4536 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4537
4538 * config/aarch64/aarch64-builtins.c
4539 (aarch64_builtin_vectorized_function): Remove bswap handling.
4540
4541 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4542
4543 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4544 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4545 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4546 Treat the vector types as indivisible.
4547
4548 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4549
4550 * optabs.def (gather_load_optab, mask_gather_load_optab)
4551 (scatter_store_optab, mask_scatter_store_optab): Turn into
4552 conversion optabs, with the offset mode given explicitly.
4553 * doc/md.texi: Update accordingly.
4554 * config/aarch64/aarch64-sve-builtins-base.cc
4555 (svld1_gather_impl::expand): Likewise.
4556 (svst1_scatter_impl::expand): Likewise.
4557 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4558 (expand_scatter_store_optab_fn): Likewise.
4559 (direct_gather_load_optab_supported_p): Likewise.
4560 (direct_scatter_store_optab_supported_p): Likewise.
4561 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4562 to be argument 4.
4563 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4564 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4565 argument with the offset vector type. Require the two vector
4566 types to have the same number of elements but allow their element
4567 sizes to be different. Treat the optabs as conversion optabs.
4568 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4569 prototype accordingly.
4570 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4571 (supports_vec_convert_optab_p): ...this new function.
4572 (supports_vec_gather_load_p): Update accordingly.
4573 (supports_vec_scatter_store_p): Likewise.
4574 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4575 Replace the offset sign and bits parameters with a scalar type tree.
4576 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4577 Pass back the offset vector type instead of the scalar element type.
4578 Allow the offset to be wider than the memory elements. Search for
4579 an offset type that the target supports, stopping once we've
4580 reached the maximum of the element size and pointer size.
4581 Update call to internal_gather_scatter_fn_supported_p.
4582 (vect_check_gather_scatter): Update calls accordingly.
4583 When testing a new scale before knowing the final offset type,
4584 check whether the scale is supported for any signed or unsigned
4585 offset type. Check whether the target supports the source and
4586 target types of a conversion before deciding whether to look
4587 through the conversion. Record the chosen offset_vectype.
4588 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4589 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4590 directly from the gs_info's offset_vectype instead. Pass a zero
4591 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4592 * tree-vect-stmts.c (check_load_store_masking): Update call to
4593 internal_gather_scatter_fn_supported_p, passing the offset vector
4594 type recorded in the gs_info.
4595 (vect_truncate_gather_scatter_offset): Update call to
4596 vect_check_gather_scatter, leaving it to search for a valid
4597 offset vector type.
4598 (vect_use_strided_gather_scatters_p): Convert the offset to the
4599 element type of the gs_info's offset_vectype.
4600 (vect_get_gather_scatter_ops): Get the offset vector type directly
4601 from the gs_info.
4602 (vect_get_strided_load_store_ops): Likewise.
4603 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4604 and IFN_MASK_GATHER_LOAD.
4605 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4606 (gather_load<mode><v_int_equiv>): ...this.
4607 (mask_gather_load<mode>): Rename to...
4608 (mask_gather_load<mode><v_int_equiv>): ...this.
4609 (scatter_store<mode>): Rename to...
4610 (scatter_store<mode><v_int_equiv>): ...this.
4611 (mask_scatter_store<mode>): Rename to...
4612 (mask_scatter_store<mode><v_int_equiv>): ...this.
4613
4614 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4615
4616 PR target/92132
4617 * config/rs6000/predicates.md
4618 (signed_or_equality_comparison_operator): New predicate.
4619 (unsigned_or_equality_comparison_operator): Likewise.
4620 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4621 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4622 * config/rs6000/vector.md
4623 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4624 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4625 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4626 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4627 vector modes and same-size integer vector modes.
4628 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4629 (vector_lt<mode> for VEC_F): New expand.
4630 (vector_le<mode> for VEC_F): Likewise.
4631 (vector_ne<mode> for VEC_F): Likewise.
4632 (vector_unge<mode> for VEC_F): Likewise.
4633 (vector_ungt<mode> for VEC_F): Likewise.
4634 (vector_unle<mode> for VEC_F): Likewise.
4635 (vector_unlt<mode> for VEC_F): Likewise.
4636 (vector_uneq<mode>): Expose name.
4637 (vector_ltgt<mode>): Likewise.
4638 (vector_unordered<mode>): Likewise.
4639 (vector_ordered<mode>): Likewise.
4640
4641 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4642
4643 PR target/92295
4644 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4645 Enhance ix86_expand_vector_init_concat.
4646
4647 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4648
4649 * doc/invoke.texi (-Wold-style-definition): Document () not being
4650 considered an old-style definition for C2x.
4651
4652 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4653
4654 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4655 Enhance comment.
4656 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4657 insn patterns using ldcw instruction.
4658 (memory_barrier): Remove insn pattern using sync instruction.
4659 * config/pa/pa.opt (coherent-ldcw): New option.
4660 (ordered): New option.
4661
4662 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4663
4664 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4665 valid conditions.
4666
4667 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4668
4669 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4670 typo - mistmatch -> mismatch.
4671 * ipa-profile.c (ipa_profile): Likewise.
4672 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4673 - mistmatch -> mismatch.
4674
4675 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4676
4677 * simplify-rtx.c (comparison_to_mask): New function.
4678 (mask_to_comparison): New function.
4679 (simplify_logical_relational_operation): New function.
4680 (simplify_binary_operation_1): Call
4681 simplify_logical_relational_operation.
4682
4683 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4684
4685 PR other/92090
4686 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4687 modes for integer constants.
4688
4689 2019-11-07 Jan Hubicka <jh@suse.cz>
4690
4691 PR ipa/92406
4692 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4693 summary.
4694
4695 2019-11-07 Jan Hubicka <jh@suse.cz>
4696
4697 * optc-save-gen.awk: Generate cl_target_option_free
4698 and cl_optimization_option_free.
4699 * opth-en.awk: Declare cl_target_option_free
4700 and cl_optimization_option_free.
4701 * tree.c (free_node): Use it.
4702
4703 2019-11-06 Jan Hubicka <jh@suse.cz>
4704
4705 * lto-streamer-in.c: Include alloc-pool.h.
4706 (freeing_string_slot_hasher): Remove.
4707 (string_slot_allocator): New object allocator.
4708 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4709 (file_name_obstack): New obstack.
4710 (canon_file_name): Allocate in obstack and allocator.
4711 (lto_reader_init): Initialize obstack and allocator.
4712 (lto_free_file_name_hash): New function.
4713 * lto-streamer.h (lto_free_file_name_hash): New.
4714
4715 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4716
4717 PR tree-optimization/89134
4718 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4719 * params.def: Add min-loop-cond-split-prob.
4720 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4721 outside checks on loop into the function.
4722 (split_info): New class.
4723 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4724 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4725 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4726 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4727 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4728 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4729 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4730 (split_loop_on_cond): Likewise.
4731 (tree_ssa_split_loops): Add loop split on conditional statement.
4732
4733 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4734
4735 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4736 pattern.
4737
4738 2019-11-07 Richard Biener <rguenther@suse.de>
4739
4740 PR tree-optimization/92405
4741 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4742 restrict lane-reducing ops to single stmt chains.
4743
4744 2019-11-07 Martin Jambor <mjambor@suse.cz>
4745
4746 PR lto/70929
4747 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4748 * cgraph.h (gimple_check_call_matching_types): Remove
4749 * cgraph.c (gimple_check_call_args): Likewise.
4750 (gimple_check_call_matching_types): Likewise.
4751 (symbol_table::create_edge): Do not call
4752 gimple_check_call_matching_types.
4753 (cgraph_edge::make_direct): Likewise.
4754 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4755 * value-prof.h (check_ic_target): Remove.
4756 * value-prof.c (check_ic_target): Remove.
4757 (gimple_ic_transform): Do nat call check_ic_target.
4758 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4759 (afdo_indirect_call): Likewise.
4760 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4761 gimple_check_call_matching_types.
4762 * ipa-inline.c (early_inliner): Likewise.
4763
4764 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4765
4766 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4767 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4768 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4769 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4770 * config/arm/iterators.md (USSAT16): New int_iterator.
4771 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4772 (sup): Likewise.
4773 * config/arm/predicates.md (ssat16_imm): New predicate.
4774 (usat16_imm): Likewise.
4775 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4776
4777 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4778
4779 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4780 New define_insns.
4781 (arm_<simd32_op>): New define_expands.
4782 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4783 __smuad, __smuadx): Define.
4784 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4785 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4786 (SIMD32_BINOP_Q): Likewise.
4787 (simd32_op): Handle the above.
4788 * config/arm/unspecs.md: Define unspecs for the above.
4789
4790 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4791
4792 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4793 * config/arm/arm.md (APSRGE_REGNUM): Define.
4794 (arm_<simd32_op>): New define_insn.
4795 (arm_sel): Likewise.
4796 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4797 (CALL_USED_REGISTERS): Likewise.
4798 (REG_ALLOC_ORDER): Likewise.
4799 (FIRST_PSEUDO_REGISTER): Update value.
4800 (ARM_GE_BITS_READ): Define.
4801 * config/arm/arm.c (arm_conditional_register_usage): Clear
4802 APSRGE_REGNUM from operand_reg_set.
4803 (arm_ge_bits_access): Define.
4804 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4805 ARM_BUIILTIN_sel.
4806 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4807 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4808 FAIL if ARM_GE_BITS_READ.
4809 (*arm_add<mode>3): New define_insn.
4810 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4811 (*arm_sub<mode>3): New define_insn.
4812 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4813 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4814 __usub16): Define.
4815 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4816 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4817 (simd32_op): Handle the above.
4818 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4819 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4820 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4821 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4822
4823 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4824
4825 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4826 (arm_smlabb): New define_expand.
4827 (*maddhisi4tb): Rename to...
4828 (maddhisi4tb): ... This.
4829 (*maddhisi4tt): Rename to...
4830 (maddhisi4tt): ... This.
4831 (arm_smlatb_setq): New define_insn.
4832 (arm_smlatb): New define_expand.
4833 (arm_smlatt_setq): New define_insn.
4834 (arm_smlatt): New define_expand.
4835 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4836 (arm_<smlaw_op>): New define_expand.
4837 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4838 __smlawb, __smlawt): Define.
4839 * config/arm_acle_builtins.def: Define builtins for the above.
4840 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4841 (slaw_op): New int_attribute.
4842 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4843
4844 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4845
4846 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4847 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4848 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4849 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4850 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4851 (ss_op): New code_attr.
4852
4853 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4854
4855 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4856 * config/arm/arm.md (APSRQ_REGNUM): Define.
4857 (add_setq): New define_subst.
4858 (add_clobber_q_name): New define_subst_attr.
4859 (add_clobber_q_pred): Likewise.
4860 (maddhisi4): Change to define_expand. Split into mult and add if
4861 ARM_Q_BIT_READ.
4862 (arm_maddhisi4): New define_insn.
4863 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4864 (*maddhisi4tt): Likewise.
4865 (arm_ssat): New define_expand.
4866 (arm_usat): Likewise.
4867 (arm_get_apsr): New define_insn.
4868 (arm_set_apsr): Likewise.
4869 (arm_saturation_occurred): New define_expand.
4870 (arm_set_saturation): Likewise.
4871 (*satsi_<SAT:code>): Rename to...
4872 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4873 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4874 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4875 (CALL_USED_REGISTERS): Mark apsrq.
4876 (FIRST_PSEUDO_REGISTER): Update value.
4877 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4878 (machine_function): Add q_bit_access.
4879 (ARM_Q_BIT_READ): Define.
4880 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4881 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4882 operand_reg_set.
4883 (arm_q_bit_access): Define.
4884 * config/arm/arm-builtins.c: Include stringpool.h.
4885 (arm_sat_binop_imm_qualifiers,
4886 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4887 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4888 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4889 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4890 SET_SAT_QUALIFIERS): Likewise.
4891 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4892 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4893 Handle 0 argument expander.
4894 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4895 (arm_check_builtin_call): Define.
4896 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4897 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4898 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4899 (arm_q_bit_access): Likewise.
4900 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4901 __saturation_occurred, __set_saturation_occurred): Define.
4902 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4903 saturation_occurred, set_saturation_occurred.
4904 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4905 (UNSPEC_APSR_READ): Likewise.
4906 (VUNSPEC_APSR_WRITE): Likewise.
4907 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4908 (*arm_ssadd<mode>3): New define_insn.
4909 (sssub<mode>3): Convert to define_expand.
4910 (*arm_sssub<mode>3): New define_insn.
4911 (ssmulsa3): Convert to define_expand.
4912 (*arm_ssmulsa3): New define_insn.
4913 (usmulusa3): Convert to define_expand.
4914 (*arm_usmulusa3): New define_insn.
4915 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4916 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4917 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4918
4919 2019-11-07 Martin Liska <mliska@suse.cz>
4920
4921 PR c++/92354
4922 * cgraph.c (delete_function_version): Clear global
4923 variable version_info_node if equal to deleted
4924 function.
4925
4926 2019-11-07 Martin Liska <mliska@suse.cz>
4927
4928 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4929 of CONSTRUCTOR_NO_CLEARING.
4930 (operand_compare::hash_operand): Likewise.
4931
4932 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4933
4934 Support 64-bit double and 64-bit long double configurations.
4935
4936 PR target/92055
4937 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4938 --with-long-double=.
4939 * config/avr/t-multilib: Remove.
4940 * config/avr/t-avr: Output of genmultilib.awk is now fully
4941 dynamically generated and no more part of the repo.
4942 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4943 Pass them down to...
4944 * config/avr/genmultilib.awk: ...here and handle them.
4945 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4946 (-mlong-double=, avr_long_double). New option and var.
4947 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4948 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4949 Set default as requested by --with-double=
4950 (TARGET_HANDLE_OPTION): Define to this...
4951 (avr_handle_option): ...new hook worker.
4952 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4953 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4954 (avr_double_lib): New proto for spec function.
4955 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4956 (DRIVER_SELF_SPECS): Call %:double-lib.
4957 * config/avr/avr.c (avr_option_override): Assert
4958 sizeof(long double) >= sizeof(double) for the target.
4959 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4960 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4961 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4962 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4963 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4964 New built-in define depending on --with-double=, --with-long-double=.
4965 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4966 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4967 * doc/install.texi (Cross-Compiler-Specific Options)
4968 <--with-double=, --with-long-double=>: Doc.
4969
4970 2019-11-07 Richard Biener <rguenther@suse.de>
4971
4972 * dbgcnt.def (gimple_unroll): New.
4973 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4974 gimple_unroll debug counter before applying transform.
4975 (try_peel_loop): Likewise.
4976
4977 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4978
4979 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4980 frame pointer in multiple registers.
4981 (ira_setup_eliminable_regset): Setup eliminable_regset,
4982 ira_no_alloc_regs and regs_ever_live for frame pointer in
4983 multiple registers.
4984
4985 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4986
4987 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4988 V2DI modes.
4989
4990 2019-11-06 Jan Hubicka <jh@suse.cz>
4991
4992 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4993 allocations.
4994 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4995 Do not silently ignore summary corruptions.
4996
4997 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4998
4999 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5000 the epilogue if there are peeled iterations for it to handle.
5001
5002 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5003
5004 * config/arc/arc.c (arc_split_ior): Add asserts.
5005 (arc_split_mov_const): Likewise.
5006 (arc_check_ior_const): Do not match known short immediate values.
5007 * config/arc/arc.md (movsi): Don't split predicated instructions
5008 (iorsi): Likewise.
5009
5010 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5011
5012 * config/arc/arc.opt (mea): Update help string.
5013 * doc/invoke.texi(ARC): Update mea option info.
5014
5015 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5016
5017 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5018 (zero_extendqisi2_ac): Likewise.
5019 (zero_extendhisi2_i): Likewise.
5020 (extendqihi2_i): Likewise.
5021 (extendqisi2_ac): Likewise.
5022 (extendhisi2_i): Likewise.
5023
5024 2019-11-06 Richard Biener <rguenther@suse.de>
5025
5026 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5027 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5028 Simplify single_defuse_cycle condition.
5029
5030 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5031
5032 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5033 epilogue loop, make sure that the VF is small enough or that
5034 the epilogue loop can be fully-masked.
5035
5036 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5037
5038 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5039 loop when we've finished, rather than returning directly from
5040 the loop. Use a local variable to track whether we're still
5041 searching for the preferred simdlen. Make vect_epilogues
5042 record whether the next iteration should try to treat the
5043 loop as an epilogue.
5044
5045 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5046
5047 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5048 __arc_hard_float__, __ARC_HARD_FLOAT__,
5049 __arc_soft_float__, __ARC_SOFT_FLOAT__
5050
5051 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5052
5053 PR tree-optimization/92317
5054 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5055 update phi's with constant phi arguments.
5056
5057 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5058 Alexandre Oliva <oliva@adacore.com>
5059
5060 * common.opt (-fcallgraph-info[=]): New option.
5061 * doc/invoke.texi (Developer options): Document it.
5062 * opts.c (common_handle_option): Handle it.
5063 * builtins.c (expand_builtin_alloca): Record allocation if
5064 -fcallgraph-info=da.
5065 * calls.c (expand_call): If -fcallgraph-info, record the call.
5066 (emit_library_call_value_1): Likewise.
5067 * flag-types.h (enum callgraph_info_type): New type.
5068 * explow.c: Include stringpool.h.
5069 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5070 * function.c (allocate_stack_usage_info): New.
5071 (allocate_struct_function): Call it for -fcallgraph-info.
5072 (prepare_function_start): Call it otherwise.
5073 (record_final_call, record_dynamic_alloc): New.
5074 * function.h (struct callinfo_callee): New.
5075 (CALLEE_FROM_CGRAPH_P): New.
5076 (struct callinfo_dalloc): New.
5077 (struct stack_usage): Add callees and dallocs.
5078 (record_final_call, record_dynamic_alloc): Declare.
5079 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5080 object if -fcallgraph-info=da.
5081 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5082 * print-tree.h (print_decl_identifier): Declare.
5083 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5084 * print-tree.c: Include print-tree.h.
5085 (print_decl_identifier): New function.
5086 * toplev.c: Include print-tree.h.
5087 (callgraph_info_file): New global variable.
5088 (callgraph_info_external_printed): Likewise.
5089 (output_stack_usage): Rename to...
5090 (output_stack_usage_1): ... this. Make it static, add cf
5091 parameter. If -fcallgraph-info=su, print stack usage to cf.
5092 If -fstack-usage, use print_decl_identifier for
5093 pretty-printing.
5094 (INDIRECT_CALL_NAME): New.
5095 (dump_final_node_vcg_start): New.
5096 (dump_final_callee_vcg, dump_final_node_vcg): New.
5097 (output_stack_usage): New.
5098 (lang_dependent_init): Open and start file if
5099 -fcallgraph-info. Allocated callgraph_info_external_printed.
5100 (finalize): If callgraph_info_file is not null, finish it,
5101 close it, and release callgraph_info_external_printed.
5102
5103 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5104 Frederik Harwath <frederik@codesourcery.com>
5105 Thomas Schwinge <thomas@codesourcery.com>
5106
5107 * omp-low.c (struct omp_context): New fields
5108 local_reduction_clauses, outer_reduction_clauses.
5109 (new_omp_context): Initialize these.
5110 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5111 (scan_omp_for): Check reduction clauses for incorrect nesting.
5112
5113 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5114
5115 PR inline-asm/92352
5116 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5117 operands with non-memory constraints.
5118
5119 2019-11-05 Martin Sebor <msebor@redhat.com>
5120
5121 PR tree-optimization/92373
5122 * tree.c (component_ref_size): Only consider initializers of objects
5123 of matching struct types.
5124 Return null for instances of interior zero-length arrays.
5125
5126 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5127
5128 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5129
5130 2019-11-05 Jason Merrill <jason@redhat.com>
5131
5132 PR tree-optimization/91825
5133 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5134
5135 2019-11-05 Jim Wilson <jimw@sifive.com>
5136
5137 PR middle-end/92263
5138 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5139 optimize_insn_for_speed_p is true.
5140
5141 2019-11-05 Martin Sebor <msebor@redhat.com>
5142
5143 PR middle-end/92333
5144 PR middle-end/82608
5145 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5146 size.
5147 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5148 name and location for a temporary variable.
5149
5150 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5151
5152 * tree-vrp.c (value_range::value_range): Fix whitespace.
5153 (defined_ranges_p): Same.
5154 (range_fold_binary_symbolics_p): Same.
5155 (value_range::intersect_helper): Same.
5156 (value_range::union_helper): Same.
5157 * tree-vrp.h (range_fold_binary_expr): Same.
5158
5159 2019-11-04 Martin Sebor <msebor@redhat.com>
5160
5161 PR middle-end/92341
5162 PR middle-end/82612
5163 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5164 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5165 of message printed in a warning for empty arrays.
5166 (vrp_prop::check_mem_ref): Also handle function parameters and
5167 empty arrays.
5168
5169 2019-11-05 Richard Biener <rguenther@suse.de>
5170
5171 PR tree-optimization/92371
5172 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5173 on the original stmt of live stmts in the chain.
5174 (vectorizable_live_operation): Look at the original stmt when
5175 checking STMT_VINFO_REDUC_DEF.
5176
5177 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5178
5179 * gimple-fold.c, gimple-loop-versioning.cc,
5180 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5181 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5182 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5183 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5184 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5185 value_range_equiv, and value_range_base to value_range.
5186
5187 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5188
5189 * expr.c (build_personality_function): Fix generated type to
5190 match actual personality functions.
5191
5192 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5193
5194 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5195 enough bytes for the NULL character.
5196
5197 2019-11-05 Richard Biener <rguenther@suse.de>
5198
5199 PR tree-optimization/92280
5200 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5201 had a single use do not create a new CTOR.
5202 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5203 BIT_FIELD_REF of a CTOR via GENERIC.
5204
5205 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5206
5207 * config/s390/s390.c (s390_vector_alignment): Check if the value
5208 fits into uhwi before using it.
5209
5210 2019-11-05 Martin Liska <mliska@suse.cz>
5211
5212 * symbol-summary.h: Use ggc_delete.
5213
5214 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5215
5216 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5217 Change vec_perm field to 10.
5218
5219 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5220
5221 * doc/install.texi: Further fix syntax for html generation.
5222
5223 2019-11-05 Martin Liska <mliska@suse.cz>
5224
5225 * symbol-summary.h: Rename allocator to m_allocator and
5226 add comment.
5227
5228 2019-11-05 Richard Biener <rguenther@suse.de>
5229
5230 PR tree-optimization/92324
5231 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5232 all signed or unsigned operations.
5233
5234 2019-11-05 Jan Hubicka <jh@suse.cz>
5235
5236 * hsa-brig.c: Include alloc-pool.h
5237 * hsa-dump.c: Likewise.
5238 * hsa-gen.c: Likewise.
5239 * hse-regalloc.c: Likewise.
5240 * ipa-hsa.c: Likewise.
5241 * ipa-predicate.c: Likewise.
5242 * ipa-reference.c: Likewise.
5243 * ipa-sra.c: Likewise.
5244 * omp-expand.c: Likewise.
5245 * omp-general.c: Likewise.
5246 * omp-low.c: Likewise.
5247 * sumbol-summary.h (function_summary_base): Add allocator.
5248 (function_summary<T *>::function_summary): Update construction.
5249 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5250 (call_summary_base): Add allcator.
5251 (call_summary<T *>::call_summary): Update construction.
5252 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5253
5254 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5255
5256 PR tree-optimization/91945
5257 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5258 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5259 Formatting fix.
5260
5261 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5262
5263 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5264 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5265 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5266 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5267 (vrp_set_zero_nonzero_bits): Move to...
5268 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5269 (vr_values::simplify_bit_ops_using_ranges): Rename
5270 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5271
5272 2019-11-05 Martin Liska <mliska@suse.cz>
5273
5274 PR c++/92339
5275 * fold-const.c (operand_compare::hash_operand): Remove
5276 FIELD_DECL handling.
5277
5278 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5279
5280 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5281 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5282 static.
5283
5284 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5285
5286 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5287 properly handle symbolics.
5288 (range_compatible_p): Remove.
5289
5290 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5291
5292 * common.opt (-fabi-version): Document =14.
5293 * doc/invoke.texi (C++ Dialect Options): Likewise.
5294
5295 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5296
5297 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5298
5299 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5300
5301 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5302 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5303 gcn_omp_device_kind_arch_isa.
5304 * config/gcn/t-omp-device: New file.
5305 * configure.ac: Support gcn for omp_device_property.
5306 * configure: Regenerate.
5307
5308 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5309
5310 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5311 (vrp_val_max): Same.
5312 (vrp_val_is_min): Same.
5313 (vrp_val_is_max): Same.
5314 (value_range_base::nonzero_p): Remove last argument to
5315 vrp_val_is_max.
5316 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5317 (vrp_val_max): Same.
5318 (vrp_val_is_min): Same.
5319 (vrp_val_is_max): Same.
5320 (value_range_base::set_varying): Remove last argument to vrp_val*.
5321 (value_range_base::dump): Same.
5322 (value_range_base::set): Same.
5323 (value_range_base::normalize_symbolics): Same.
5324 (value_range_base::num_pairs): Same.
5325 (value_range_base::lower_bound): Same.
5326 (value_range_base::upper_bound): Same.
5327 (ranges_from_anti_range): Remove handle_pointers argument.
5328 (value_range_base::singleton_p): Remove last argument to
5329 ranges_from_anti_range.
5330
5331 2019-11-04 Jan Hubicka <jh@suse.cz>
5332
5333 * ipa-reference.c (init_function_info): Initialize
5334 info->global.statics_read.
5335
5336 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5337
5338 * tree-vrp.c (value_range_base::invert): Use constructors to build
5339 range.
5340
5341 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5342
5343 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5344 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5345
5346 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5347
5348 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5349 VR_UNDEFINED.
5350
5351 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5352
5353 * tree-vrp.c (dump_assert_info): New.
5354 (dump_asserts_info): New.
5355
5356 2019-11-04 Jan Hubicka <jh@suse.cz>
5357
5358 * ipa-inline-transform.c: Include ipa-utils.h
5359 (inline_call): Set thunk_expansion flag.
5360 * ipa-utils.h (thunk_expansion): Declare.
5361 * ipa-devirt.c (thunk_expansion): New global var.
5362 (devirt_node_removal_hook): Do not invalidate cache while
5363 doing thunk expansion.
5364
5365 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5366
5367 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5368
5369 2019-11-04 Martin Sebor <msebor@redhat.com>
5370
5371 PR tree-optimization/92349
5372 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5373 memebers have constant sizes.
5374
5375 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5376
5377 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5378 parameter.
5379 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5380 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5381 vect_analyze_loop.
5382
5383 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5384
5385 * expr.c (store_constructor): Modify to handle single element vectors.
5386 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5387 constructors.
5388 (vect_slp_check_for_constructors): New function.
5389 (vect_slp_analyze_bb_1): Call new function to check for vector
5390 constructors.
5391 (vectorize_slp_instance_root_stmt): New function.
5392 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5393 constructors.
5394 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5395
5396 2019-11-04 Richard Biener <rguenther@suse.de>
5397
5398 PR tree-optimization/92345
5399 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5400 we produced a reduction chain.
5401 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5402 LOOP_VINFO_REDUCTIONS.
5403
5404 2019-11-04 Jan Hubicka <jh@suse.cz>
5405
5406 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5407 duplicate summaries.
5408 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5409 first.
5410 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5411 access call summaries.
5412 (dump_ipa_call_summary): Be ready for missing edge summaries.
5413 (analyze_function_body): Use get instead of get_create to access
5414 edge summary.
5415 (estimate_calls_size_and_time): Do not access summaries of
5416 inlined edges; sanity check they are missing.
5417 (ipa_call_context::estimate_size_and_time): Use get instead
5418 of get_create to access node summary.
5419 (inline_update_callee_summaries): Do not update depth of
5420 inlined edge.
5421 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5422 growth caches.
5423 (ipa_merge_fn_summary_after_inlining): Use get instead
5424 of get_create.
5425 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5426 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5427 fast summary.
5428 (initialize_growth_caches): Update.
5429 (do_estimate_edge_time): Remove redundant copy of context.
5430 (ipa_remove_from_growth_caches): New function.
5431 * ipa-inline.c (flatten_function): Update overall summary
5432 only when optimizing.
5433 (inline_to_all_callers): Update overall summary of function
5434 inlined to.
5435 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5436 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5437 to false.
5438
5439 2019-11-04 Richard Biener <rguenther@suse.de>
5440
5441 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5442 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5443
5444 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5445
5446 * ggc-common.c: Include system.h before malloc.h.
5447
5448 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5449
5450 * configure.ac: Pass --enable-obsolete=* and
5451 --enable-option-checking=* down to build configure, and fail
5452 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5453 * configure: Rebuild.
5454 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5455 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5456
5457 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5458
5459 * config.in: Regenerate.
5460 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5461 -mtiny-printf is used without GCC being configured with
5462 --enable-newlib-nano-formatted-io.
5463 * config/msp430/msp430.h (LINK_SPEC): Pass
5464 "--wrap puts --wrap printf" when -mtiny-printf is used.
5465 * config/msp430/msp430.opt: Document -mtiny-printf.
5466 * configure: Regenerate.
5467 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5468 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5469 --enable-newlib-nano-formatted-io is passed.
5470 * doc/invoke.texi: Document -mtiny-printf.
5471
5472 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5473
5474 * configure: Regenerate.
5475
5476 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5477
5478 * config/msp430/driver-msp430.c
5479 (msp430_get_linker_devices_include_path): New spec function.
5480 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5481 (extract_devices_dir_from_exec_prefix): New function.
5482 (extract_devices_dir_from_collect_gcc): New function.
5483 (msp430_check_env_var_for_devices): New function.
5484 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5485 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5486 devices.csv was not found using other methods.
5487 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5488 New prototype.
5489 (msp430_dirname): Likewise.
5490 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5491 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5492 msp430_get_linker_devices_include_path.
5493 (TARGET_EXTRA_PRE_INCLUDES): Define.
5494 * doc/invoke.texi: Document new ways of searching for support files.
5495
5496 2019-11-04 Richard Biener <rguenther@suse.de>
5497
5498 PR tree-optimization/92301
5499 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5500 as required by epilogue generation
5501
5502 2019-11-04 Martin Liska <mliska@suse.cz>
5503
5504 PR ipa/92304
5505 * fold-const.c (operand_compare::hash_operand): Fix field
5506 hashing of CONSTRUCTOR.
5507
5508 2019-11-04 Martin Liska <mliska@suse.cz>
5509
5510 * ggc.h (ggc_delete): New function.
5511 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5512 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5513 (ipa_free_all_node_params): Likewise.
5514 * ipa-sra.c (ipa_sra_analysis): Likewise.
5515
5516 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5517
5518 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5519 set_switch_stmt_execution_predicate, compute_bb_predicates,
5520 will_be_nonconstant_expr_predicate,
5521 phi_result_unknown_predicate,
5522 analyze_function_body): Pass arround params summary.
5523 (ipa_call_context::duplicate_from): New comment;
5524 only duplicate useful values.
5525 (ipa_call_context::equal_to): Only compare useful values.
5526 (remap_edge_summaries): Pass params_summary.
5527 (remap_hint_predicate): Likewise.
5528 (ipa_merge_fn_summary_after_inlining): Likewise.
5529 (inline_read_section): Initialize params summary used flags.
5530 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5531 around param_summary.
5532 (add_condition): Initialized used params summary flags.
5533 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5534 (inline_param_summary::useless_p): New predicate.
5535 (remap_after_inlining, add_condition): Update prototype
5536 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5537 move_cost.
5538 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5539 summaries.
5540 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5541 (ipa_analyze_virtual_call_uses): Likewise.
5542 (update_indirect_edges_after_inlining): Update param summaries.
5543 (ipa_print_node_params): Print used flags.
5544 (ipa_read_indirect_edge_info): Update param summareis.
5545 * ipa-prop.h (ipa_param_descriptor): Add
5546 used_by_ipa_predicates, used_by_indirect_call
5547 and used_by_polymorphic_call.
5548 (ipa_set_param_used_by_ipa_predicates,
5549 ipa_set_param_used_by_indirect_call,
5550 ipa_set_param_used_by_polymorphic_call,
5551 ipa_is_param_used_by_ipa_predicates,
5552 ipa_is_param_used_by_indirect_call,
5553 ipa_is_param_used_by_polymorphic_call): New inline functions.
5554
5555 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5556
5557 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5558 member function.
5559 (ipa_call_context::release): Add ALL parameter.
5560 (ipa_call_context::equal_to): New member function.
5561 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5562 duplicate_form, release, equal_to and exists_p member functoins.
5563 * ipa-inline-analysis.c (node_context_cache_entry): New
5564 class.
5565 (node_context_summary): Likewise.
5566 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5567 node_context_clear): New static vars.
5568 (initialize_growth_caches): New function.
5569 (free_growth_caches): Also delete node_context_cache; output stats.
5570 (do_estimate_edge_time): Cache contexts.
5571 (reset_node_cache): New function.
5572 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5573 (inline_small_functions): Initialize growth caches.
5574 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5575 Declare.
5576 * ipa-predicate.h (inline_param_summary::equal_to): New.
5577 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5578 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5579 (ipa_agg_jump_function): Implement equal_to member function.
5580
5581 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5582
5583 * ipa-fnsummary.c (inline_read_section): Set vector size
5584 ahead of time.
5585
5586 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5587
5588 * ipa-fnsummary.c (ipa_call_context): New constructor.
5589 (estimate_node_size_and_time): Turn to ...
5590 (ipa_call_context::estimate_size_and_time): ... this one.
5591 (ipa_call_context::release): New.
5592 * ipa-fnsummary.h (ipa_call_context): New class.
5593 (estimate_node_size_and_time): Remove.
5594 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5595 do_estimate_edge_hints): Update.
5596
5597 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5598
5599 * config.in: Regenerate.
5600 * configure: Regenerate.
5601 * configure.ac: Check for mallinfo.
5602 * ggc-common.c: Include malloc.h if available;
5603 include options.h
5604 (report_heap_memory_use): New functoin.
5605 * ggc-page.c (ggc_grow): Do not print "start".
5606 * ggc.h (report_heap_memory_use): Declare.
5607 * pases.c (execute_one_pass): Report memory after IPA passes.
5608 (ipa_read_summaries_1): Likewise.
5609 (ipa_read_optimization_summaries_1): Likewise.
5610
5611 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5612
5613 * gimplify.h (omp_construct_selector_matches): Change return
5614 type to int, add a new SCORES argument.
5615 * gimplify.c (omp_construct_selector_matches): Likewise. If
5616 SCORES is non-NULL, compute scores of each construct.
5617 * omp-general.h (omp_get_context_selector): Declare.
5618 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5619 Adjust omp_construct_selector_matches callers.
5620 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5621 (omp_context_compute_score): New function.
5622 (omp_resolve_declare_variant): Compute scores and decide based on
5623 that.
5624
5625 PR bootstrap/92314
5626 * configure.ac: Don't look for omp-device-properties files from
5627 installed offloading compilers. Instead add tmake_file snippets
5628 for configured offloading targets and use files they generate.
5629 * Makefile.in (install): Don't depend on
5630 install-omp-device-properties.
5631 (install-omp-device-properties): Remove goal.
5632 * config/i386/t-omp-device: New file.
5633 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5634 * config/nvptx/t-omp-device: New file.
5635 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5636 * configure: Regenerated.
5637
5638 * omp-general.h (omp_context_selector_set_compare): Declare.
5639 * omp-general.c (omp_construct_simd_compare,
5640 omp_context_selector_props_compare, omp_context_selector_set_compare,
5641 omp_context_selector_compare): New functions.
5642 (omp_resolve_declare_variant): Prune variants that are strict subset
5643 of another variant.
5644
5645 2019-11-01 Martin Sebor <msebor@redhat.com>
5646
5647 PR middle-end/91679
5648 PR middle-end/91647
5649 PR middle-end/91463
5650 PR middle-end/92312
5651 * doc/invoke.texi (-Wzero-length-bounds): Document.
5652 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5653 instead of a hand-rolled loop to avoid PR 92323.
5654 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5655 with initializers.
5656 (vrp_prop::check_mem_ref): Handle declared struct objects.
5657 * tree.c (last_field): New function.
5658 (array_at_struct_end_p): Handle MEM_REF.
5659 (get_initializer_for): New helper.
5660 (component_ref_size): Add argument. Rename locals. Call
5661 get_initializer_for instead of fold_ctor_reference. Correct handling
5662 of flexible array members.
5663 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5664
5665 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5666
5667 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5668 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5669 UNSPEC_VSX_CVSPUXDS): Remove.
5670 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5671 (vsx_xvcvspdp_be): ... this. New. And...
5672 (vsx_xvcvspdp_le): ... this. New.
5673 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5674 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5675 (vsx_xvcv<su>xwdp_le): ... this. New.
5676 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5677 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5678 (vsx_xvcvsp<su>xds_le): ... this. New.
5679
5680 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5681
5682 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5683 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5684 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5685 UNSPEC_VSX_XVCVSPSXWS): Remove.
5686 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5687 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5688
5689 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5690
5691 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5692 (UNSPEC_VSX_XVCDPSP): Remove.
5693 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5694 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5695
5696 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5697
5698 * hooks.c (hook_tree_tree_bool_null): New.
5699 * hooks.h (hook_tree_tree_bool_null): Declare.
5700 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5701 (LANG_HOOKS_DECLS): Add it.
5702 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5703 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5704 (lower_omp_target): Handle Fortran array with descriptor in
5705 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5706
5707 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5708
5709 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5710 Assert that the type we store in abi_vector_types is its own
5711 main variant.
5712 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5713
5714 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5715
5716 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5717 from a CONST_INT address when TARGET_THUMB2.
5718
5719 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5720
5721 * config/arm/arm.md (add_not_cin): New insn.
5722 (add_not_shift_cin): Likewise.
5723
5724 2019-10-31 Martin Liska <mliska@suse.cz>
5725
5726 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5727 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5728 and compare_memory_operand.
5729
5730 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5731
5732 * configure.ac: Compute and substitute omp_device_properties and
5733 omp_device_property_deps.
5734 * Makefile.in (generated_files): Add omp-device-properties.h.
5735 (omp-general.o): Depend on omp-device-properties.h.
5736 (omp_device_properties): New make variable.
5737 (omp-device-properties.h, s-omp-device-properties-h,
5738 install-omp-device-properties): New goals.
5739 (install): Depend on install-omp-device-properties for accelerators.
5740 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5741 * target.h (enum omp_device_kind_arch_isa): New enum.
5742 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5743 documentation.
5744 * omp-general.c: Include omp-device-properties.h.
5745 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5746 colon instead of comma.
5747 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5748 functions.
5749 (omp_context_selector_matches): Implement device set arch/isa
5750 selectors, improve device set kind selector handling.
5751 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5752 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5753 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5754 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5755 ix86_omp_device_kind_arch_isa.
5756 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5757 definition from ix86_target_string to file scope.
5758 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5759 to file scope.
5760 (ix86_omp_device_kind_arch_isa): New function.
5761 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5762 isa_opts definitions to file scope.
5763 * config/i386/t-intelmic (omp-device-properties): New goal.
5764 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5765 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5766 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5767 nvptx_omp_device_kind_arch_isa.
5768 * configure: Regenerate.
5769 * doc/tm.texi: Regenerate.
5770
5771 PR middle-end/92231
5772 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5773 DECL_BUILT_IN in comment. Remove redundant ()s around return
5774 argument.
5775 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5776 before calling fndecl_built_in_p.
5777 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5778 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5779 fndecl_built_in_p on it.
5780
5781 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5782
5783 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5784
5785 2019-10-31 Martin Liska <mliska@suse.cz>
5786
5787 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5788 of cgraph_local_info and use local_info_node instead.
5789 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5790 (bfin_function_ok_for_sibcall): Likewise.
5791 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5792 (must_reload_pic_reg_p): Likewise.
5793
5794 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5795
5796 PR c++/90947
5797 * tree.h (type_initializer_zero_p): Remove.
5798 * tree.c (type_initializer_zero_p): Remove.
5799
5800 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5801
5802 * doc/invoke.texi (-Wshadow, -Wshadow=global
5803 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5804
5805 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5806
5807 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5808 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5809 and 'target exit data'.
5810
5811 2019-10-30 Martin Jambor <mjambor@suse.cz>
5812
5813 ipa/92278
5814 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5815 availability comparison.
5816
5817 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5818
5819 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5820 calls to __mspabi_mpy* functions.
5821 * config/msp430/msp430.md (mulhisi3): New define_expand.
5822 (umulhisi3): New define_expand.
5823 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5824 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5825
5826 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5827
5828 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5829 (msp430_check_plus_not_high_mem): New.
5830 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5831 might be in low memory.
5832 Indicate that a 16-bit absolute address is in lower memory.
5833
5834 2019-10-30 Martin Jambor <mjambor@suse.cz>
5835
5836 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5837 ultimate_alias_target.
5838
5839 2019-10-30 Richard Biener <rguenther@suse.de>
5840
5841 PR tree-optimization/92275
5842 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5843 Copy all loop-closed PHIs.
5844
5845 2019-10-30 Martin Liska <mliska@suse.cz>
5846
5847 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5848 const_tree as function argument.
5849 (func_checker::compare_decl): Likewise.
5850 (func_checker::operand_equal_p): Likewise.
5851 (func_checker::compare_variable_decl): Likewise.
5852 (func_checker::parse_labels): Likewise.
5853 * ipa-icf-gimple.h: Likewise.
5854
5855 2019-10-30 Martin Liska <mliska@suse.cz>
5856
5857 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5858 Do not compare alias sets. It's handled by operand_equal_p.
5859
5860 2019-10-30 Martin Liska <mliska@suse.cz>
5861
5862 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5863 initialize m_compare_polymorphic.
5864 (func_checker::compare_decl): Do not compare polymorphic types.
5865 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5866 * ipa-icf.c (sem_function::equals_private): Do not call
5867 compare_polymorphic_p.
5868
5869 2019-10-30 Martin Liska <mliska@suse.cz>
5870
5871 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5872 compare_operand.
5873 (func_checker::compare_memory_operand): Remove.
5874 (func_checker::compare_cst_or_decl): Remove.
5875 (func_checker::operand_equal_valueize): Do not handle
5876 FIELD_DECL.
5877 (func_checker::compare_gimple_call): Call compare_operand.
5878 (func_checker::compare_gimple_assign): Likewise.
5879 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5880 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5881 * ipa-icf.h (icf_handled_component_p): Remove.
5882
5883 2019-10-30 Martin Liska <mliska@suse.cz>
5884
5885 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5886 (func_checker::compare_cst_or_decl): Remove handling
5887 of FIELD_DECL.
5888 (func_checker::compare_operand): Transform to ...
5889 (func_checker::operand_equal_p): ... this.
5890 * ipa-icf-gimple.h (class func_checker): Add
5891 operand_equal_p and hash_operand.
5892 * ipa-icf.c (sem_function::equals_private): Fix
5893 pushing and popping of cfun.
5894
5895 2019-10-30 Martin Liska <mliska@suse.cz>
5896
5897 * fold-const.c (operand_equal_p): Move to ...
5898 (operand_compare::operand_equal_p): ... here.
5899 (operand_compare::verify_hash_value): New.
5900 (add_expr): Move to ...
5901 (operand_compare::hash_operand): ... here.
5902 * fold-const.h (operand_equal_p): Move to the class.
5903 (class operand_compare): New.
5904 * tree.c (add_expr): Remove.
5905
5906 2019-10-30 Martin Liska <mliska@suse.cz>
5907
5908 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5909 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5910
5911 2019-10-30 Martin Liska <mliska@suse.cz>
5912
5913 PR lto/91393
5914 PR lto/88220
5915 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5916 from a first_clone in order to get proper LTO section
5917 in LTO stream.
5918 (cgraph_node::get_untransformed_body):
5919 Use lto_get_section_data where symtab_node::order
5920 must be provided.
5921 * cgraphclones.c (cgraph_node::find_replacement):
5922 Update also symbol order.
5923 * ipa-fnsummary.c (ipa_fn_summary_read):
5924 Use new function lto_get_summary_section_data.
5925 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5926 * ipa-icf.c (sem_item_optimizer::read_summary):
5927 Likewise.
5928 * ipa-prop.c (ipa_prop_read_jump_functions):
5929 Likewise.
5930 (ipcp_read_transformation_summaries): Likewise.
5931 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5932 * lto-cgraph.c (input_node): Add also order_base.
5933 (input_varpool_node): Likewise.
5934 (input_cgraph_1): Assign the order_base.
5935 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5936 * lto-opts.c (lto_write_options): Pass new argument.
5937 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5938 (lto_get_summary_section_data): New.
5939 (lto_get_raw_section_data): Add order argument.
5940 (lto_create_simple_input_block): Likewise.
5941 * lto-section-out.c (lto_destroy_simple_output_block):
5942 Likewise.
5943 * lto-streamer-in.c (lto_input_toplevel_asms):
5944 Use lto_get_summary_section_data.
5945 (lto_input_mode_table): Likewise.
5946 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5947 (lto_output_toplevel_asms): Pass new argument.
5948 (copy_function_or_variable): Likewise.
5949 (produce_lto_section):Likewise.
5950 (produce_symtab): Likewise.
5951 (lto_write_mode_table): Likewise.
5952 (produce_asm_for_decls): Likewise.
5953 * lto-streamer.c (lto_get_section_name): Concat symbol name
5954 and symbol order.
5955 * lto-streamer.h (lto_get_section_data): Add order argument.
5956 (lto_get_summary_section_data): New.
5957 (lto_get_raw_section_data): Add order argument.
5958 (lto_get_section_name): Likewise.
5959 * varpool.c (varpool_node::get_constructor): Pass order argument.
5960
5961 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5962
5963 PR tree-optimization/92262
5964 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5965 ubase or cbase here.
5966 (remove_unused_ivs): Unshare comp before using it.
5967
5968 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5969
5970 * ipa-prop.c (update_jump_functions_after_inlining):
5971 Watch for missing summaries.
5972
5973 2019-10-30 Richard Biener <rguenther@suse.de>
5974
5975 PR tree-optimization/65930
5976 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5977 chains also allow a leading and trailing conversion.
5978 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5979 intermediate reduction chains.
5980 (vect_analyze_slp_instance): Likewise. Build a SLP
5981 node for a trailing conversion manually.
5982
5983 2019-10-30 Martin Liska <mliska@suse.cz>
5984
5985 * cgraph.c (cgraph_node::local_info): Transform to ...
5986 (cgraph_node::local_info_node): ... this.
5987 (cgraph_node::dump): Remove cgraph_local_info and
5988 put its fields directly into cgraph_node.
5989 (cgraph_node::get_availability): Likewise.
5990 (cgraph_node::make_local): Likewise.
5991 (cgraph_node::verify_node): Likewise.
5992 * cgraph.h (struct GTY): Likewise.
5993 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5994 (duplicate_thunk_for_node): Likewise.
5995 (cgraph_node::create_clone): Likewise.
5996 (cgraph_node::create_virtual_clone): Likewise.
5997 (cgraph_node::create_version_clone): Likewise.
5998 * cgraphunit.c (cgraph_node::reset): Likewise.
5999 (cgraph_node::finalize_function): Likewise.
6000 (cgraph_node::add_new_function): Likewise.
6001 (analyze_functions): Likewise.
6002 * combine.c (setup_incoming_promotions): Likewise.
6003 * config/i386/i386.c (ix86_function_regparm): Likewise.
6004 (ix86_function_sseregparm): Likewise.
6005 (init_cumulative_args): Likewise.
6006 * ipa-cp.c (determine_versionability): Likewise.
6007 (count_callers): Likewise.
6008 (set_single_call_flag): Likewise.
6009 (initialize_node_lattices): Likewise.
6010 (estimate_local_effects): Likewise.
6011 (create_specialized_node): Likewise.
6012 (identify_dead_nodes): Likewise.
6013 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6014 (ipa_fn_summary_generate): Likewise.
6015 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6016 (process_hsa_functions): Likewise.
6017 * ipa-icf.c (set_local): Likewise.
6018 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6019 * ipa-inline.c (speculation_useful_p): Likewise.
6020 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6021 (ipa_profile): Likewise.
6022 * ipa-split.c (split_function): Likewise.
6023 (execute_split_functions): Likewise.
6024 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6025 (ipa_sra_ipa_function_checks): Likewise.
6026 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6027 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6028 * lto-cgraph.c (lto_output_node): Likewise.
6029 (input_overwrite_node): Likewise.
6030 * multiple_target.c (expand_target_clones): Likewise.
6031 * omp-simd-clone.c (simd_clone_create): Likewise.
6032 * trans-mem.c (expand_call_tm): Likewise.
6033 (ipa_tm_mayenterirr_function): Likewise.
6034 (ipa_tm_diagnose_tm_safe): Likewise.
6035 (ipa_tm_diagnose_transaction): Likewise.
6036 (ipa_tm_create_version): Likewise.
6037 (ipa_tm_transform_calls_redirect): Likewise.
6038 (ipa_tm_execute): Likewise.
6039 * tree-inline.c (expand_call_inline): Likewise.
6040
6041 2019-10-29 Martin Liska <mliska@suse.cz>
6042
6043 * symbol-summary.h (function_summary): Pass memory location
6044 to underlaying hash_map (or vec).
6045 (V>::fast_function_summary): Likewise.
6046
6047 2019-10-29 Martin Liska <mliska@suse.cz>
6048
6049 * ggc.h (ggc_alloc_no_dtor): New function.
6050 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6051 destructor and ggc_free.
6052 (ipa_free_size_summary): Call delete instead
6053 of release.
6054 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6055 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6056 (ipa_free_all_edge_args): Call destructor and ggc_free.
6057 (ipa_free_all_node_params): Likewise.
6058 (ipcp_free_transformation_sum): Likewise.
6059 * ipa-prop.h (ipa_check_create_node_params):
6060 Call new ggc_alloc_no_dtor.
6061 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6062 (ipa_sra_analysis): Call destructor and ggc_free.
6063 Replace release with delete operator.
6064 * symbol-summary.h (release): Remove ..
6065 (V>::~fast_function_summary): and move logic here.
6066 Likewise for other classes.
6067
6068 2019-10-29 Richard Biener <rguenther@suse.de>
6069
6070 PR tree-optimization/92260
6071 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6072 lane-reducing ops.
6073
6074 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6075
6076 PR tree-optimization/88915
6077 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6078 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6079 and make the valueize function pointer also take a void pointer.
6080 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6081 around vn_valueize, to call it without a context.
6082 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6083 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6084 (~_loop_vec_info): Release epilogue_vinfos.
6085 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6086 number of iterations of epilogue.
6087 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6088 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6089 versioning threshold needed for main loop.
6090 (vect_analyze_loop): Likewise.
6091 (find_in_mapping): New helper function.
6092 (update_epilogue_loop_vinfo): New function.
6093 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6094 on main loop and call update_epilogue_loop_vinfo to update it.
6095 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6096 stmts on loop preheader edge.
6097 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6098 we decided to vectorize epilogues. Update epilogues NITERS and
6099 construct ADVANCE to update epilogues data references where needed.
6100 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6101 (vect_do_peeling, vect_update_inits_of_drs,
6102 determine_peel_for_niter, vect_analyze_loop): Add or update
6103 declarations.
6104 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6105 created loop_vec_info's for epilogues when available. Otherwise analyse
6106 epilogue separately.
6107
6108 2019-10-29 Richard Biener <rguenther@suse.de>
6109
6110 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6111 example.
6112
6113 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6114
6115 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6116 index for the COND_EXPR from stmt_info rather than reduc_info.
6117
6118 2019-10-29 Richard Biener <rguenther@suse.de>
6119
6120 PR tree-optimization/65930
6121 * tree-vect-loop.c (check_reduction_path): Relax single-use
6122 check allowing out-of-loop uses.
6123 (vect_is_simple_reduction): SLP reduction chains cannot have
6124 intermediate stmts used outside of the loop.
6125 (vect_create_epilog_for_reduction): The adjustment might need
6126 to be converted.
6127 (vectorizable_reduction): Annotate live stmts of the reduction
6128 chain with STMT_VINFO_REDUC_DEF.
6129 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6130
6131 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6132
6133 * calls.c (pass_by_reference): Leave the target to decide whether
6134 POLY_INT_CST-sized arguments should be passed by value or reference,
6135 rather than forcing them to be passed by reference.
6136 (must_pass_in_stack_var_size): Likewise.
6137 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6138 V31_REGNUM to P15_REGNUM.
6139 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6140 Take an extra "silent_p" parameter, defaulting to false.
6141 (aarch64_sve::svbool_type_p): Declare.
6142 (aarch64_sve::nvectors_if_data_type): Likewise.
6143 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6144 (aarch64_frame::reg_offset): Turn into poly_int64s.
6145 (aarch64_frame::save_regs_size): Likewise.
6146 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6147 (aarch64_frame::sve_callee_adjust): Likewise.
6148 (aarch64_frame::spare_reg_reg): Likewise.
6149 (ARM_PCS_SVE): New arm_pcs value.
6150 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6151 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6152 (CUMULATIVE_ARGS::silent_p): Likewise.
6153 (BITS_PER_SVE_PRED): New macro.
6154 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6155 function. Reject aarch64_vector_pcs attributes on SVE functions.
6156 (aarch64_attribute_table): Use the above handler.
6157 (aarch64_sve_abi): New function.
6158 (aarch64_sve_argument_p): Likewise.
6159 (aarch64_returns_value_in_sve_regs_p): Likewise.
6160 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6161 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6162 descriptor for them.
6163 (aarch64_simd_decl_p): Delete.
6164 (aarch64_emit_cfi_for_reg_p): New function.
6165 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6166 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6167 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6168 as partly clobbered for the SVE PCS.
6169 (aarch64_function_ok_for_sibcall): Check whether the two functions
6170 use the same ABI, rather than checking specifically for whether
6171 they're aarch64_vector_pcs functions.
6172 (aarch64_pass_by_reference): Raise an error for attempts to pass
6173 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6174 if there are not enough free registers left, or if the argument is
6175 variadic.
6176 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6177 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6178 tuples in memory.
6179 (aarch64_layout_arg): Take a function_arg_info rather than
6180 individual properties. Handle SVE predicates, vectors and tuples.
6181 Raise an error if they are passed to unprototyped functions.
6182 (aarch64_function_arg): If the silent_p flag is set, suppress the
6183 usual error about using float registers without TARGET_FLOAT.
6184 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6185 it in the cumulative_args structure. Initialize aapcs_nprn and
6186 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6187 error about using float registers without TARGET_FLOAT.
6188 If the silent_p flag is not set, also raise an error about
6189 using SVE functions when SVE is disabled.
6190 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6191 and call it for SVE functions too. Update aapcs_nprn similarly
6192 to the other register counts.
6193 (aarch64_layout_frame): If a big-endian function needs to save
6194 and restore Z8-Z15, search for a spare predicate that it can use.
6195 Store SVE predicates at the bottom of the register save area,
6196 followed by SVE vectors, then followed by the normal slots.
6197 Keep pointing the hard frame pointer at the base of the normal slots,
6198 above the SVE vectors. Update the various frame creation and
6199 tear-down strategies for the new layout, initializing the new
6200 sve_callee_adjust field. Add an additional layout for frames
6201 whose saved registers are all SVE registers.
6202 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6203 (aarch64_return_address_signing_enabled): Likewise.
6204 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6205 aarch64_reg_save_mode.
6206 (aarch64_adjust_sve_callee_save_base): New function.
6207 (aarch64_add_cfa_expression): Move earlier in file. Take the
6208 saved register as an rtx rather than a register number and use
6209 its mode for the MEM slot.
6210 (aarch64_save_callee_saves): Remove the mode argument and instead
6211 use aarch64_reg_save_mode to get the mode of each save slot.
6212 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6213 offsets. Allow GP offsets to be saved at a VL-based offset from
6214 the stack, handling this case using the frame pointer if available
6215 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6216 big-endian SVE functions; use normal moves for other SVE saves.
6217 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6218 returns true. Add explicit CFA notes when not storing via the
6219 stack pointer. Do not try to pair SVE saves.
6220 (aarch64_restore_callee_saves): Cope with poly_int64 register
6221 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6222 use normal moves for other SVE restores. Only add CFA restore notes
6223 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6224 SVE restores.
6225 (aarch64_get_separate_components): Always keep the first SVE save
6226 in the prologue if we need to use it as a stack probe. Don't allow
6227 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6228 Likewise the spare predicate register that they need. Update the
6229 offset calculation to account for the SVE save area. Use the
6230 appropriate range check for SVE LDR and STR instructions.
6231 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6232 (aarch64_process_components): Likewise. Update the offset
6233 calculation to account for the SVE save area. Only mark the
6234 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6235 Do not try to pair SVE saves.
6236 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6237 reg_offsets. When handling the final allocation, expect the
6238 first SVE register save to be part of the initial allocation
6239 and for it to act as a probe at SP. Account for the SVE callee
6240 save area in the dump information.
6241 (aarch64_expand_prologue): Update the frame diagram. Fold the
6242 SVE callee allocation into the initial allocation if stack clash
6243 protection is enabled. Use new variables to track the offset
6244 of the frame chain (and hard frame pointer) from the current
6245 stack pointer, and likewise the offset of the bottom of the
6246 register save area. Update calls to aarch64_save_callee_saves
6247 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6248 saving the FP&SIMD registers. Save the predicate registers.
6249 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6250 into account when setting the stack pointer from the frame pointer,
6251 and when deciding whether we can inherit the initial adjustment
6252 amount from the prologue. Restore the predicate registers after
6253 the vector registers, then apply sve_callee_adjust, then restore
6254 the general registers.
6255 (aarch64_secondary_reload): Don't use secondary SVE reloads
6256 for VNx16BImode.
6257 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6258 (aarch64_short_vector_p): Return false for SVE types.
6259 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6260 at the start of the function. Return false for SVE types.
6261 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6262 functions too.
6263 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6264 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6265 to big-endian targets for bytewise moves.
6266 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6267
6268 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6269 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6270 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6271
6272 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6273 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6274 aarch64-sve-builtins-base.o to extra_objs. Add
6275 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6276 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6277 (aarch64-sve-builtins-shapes.o): Likewise.
6278 (aarch64-sve-builtins-base.o): New rules.
6279 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6280 (aarch64_resolve_overloaded_builtin): Likewise.
6281 (aarch64_check_builtin_call): Likewise.
6282 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6283 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6284 pragma.
6285 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6286 (aarch64_svprfop): New enum.
6287 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6288 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6289 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6290 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6291 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6292 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6293 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6294 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6295 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6296 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6297 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6298 (aarch64_sve::mangle_builtin_type): Likewise.
6299 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6300 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6301 (aarch64_sve::expand_builtin): Likewise.
6302 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6303 (aarch64_sve_int_mode): Likewise.
6304 (aarch64_ptrue_all_mode): New function.
6305 (aarch64_convert_sve_data_to_pred): Make public.
6306 (svprfop_token): New function.
6307 (aarch64_output_sve_prefetch): Likewise.
6308 (aarch64_fold_sve_cnt_pat): Likewise.
6309 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6310 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6311 instead of gen_while_ult.
6312 (aarch64_replace_reg_mode): Make public.
6313 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6314 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6315 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6316 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6317 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6318 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6319 (aarch64_sve_ptrue_svpattern_p): Likewise.
6320 (aarch64_sve_pred_valid_immediate): Check
6321 aarch64_sve_ptrue_svpattern_p.
6322 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6323 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6324 functions.
6325 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6326 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6327 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6328 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6329 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6330 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6331 New unspecs.
6332 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6333 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6334 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6335 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6336 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6337 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6338 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6339 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6340 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6341 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6342 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6343 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6344 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6345 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6346 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6347 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6348 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6349 (Vesize): Handle partial vector modes.
6350 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6351 mode attributes.
6352 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6353 iterators.
6354 (s, paired_extend, inc_dec): New code attributes.
6355 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6356 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6357 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6358 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6359 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6360 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6361 UNSPEC_COND_FMULX.
6362 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6363 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6364 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6365 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6366 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6367 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6368 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6369 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6370 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6371 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6372 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6373 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6374 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6375 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6376 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6377 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6378 UNSPEC_COND_FSCALE.
6379 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6380 (binqops_op, binqops_op_rev, last_op): New int attributes.
6381 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6382 (fn, ab): New int attributes.
6383 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6384 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6385 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6386 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6387 UNSPEC_RBIT.
6388 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6389 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6390 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6391 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6392 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6393 UNSPEC_COND_FMULX.
6394 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6395 (brk_reg_con, brk_reg_opno): New int attributes.
6396 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6397 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6398 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6399 UNSPEC_COND_FMIN.
6400 (max_elem_bits): New int attribute.
6401 (min_elem_bits): Handle UNSPEC_RBIT.
6402 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6403 TRUNCATE as well as SUBREG.
6404 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6405 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6406 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6407 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6408 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6409 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6410 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6411 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6412 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6413 (aarch64_gather_scale_operand_h): New predicates.
6414 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6415 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6416 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6417 (*aarch64_sve_reinterpret<mode>): Allow any source register
6418 instead of requiring an exact match.
6419 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6420 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6421 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6422 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6423 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6424 (aarch64_update_ffrt): New patterns.
6425 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6426 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6427 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6428 (@aarch64_ld<fn>f1<mode>): New patterns.
6429 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6430 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6431 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6432 (@aarch64_ldnt1<mode>): New patterns.
6433 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6434 the scalar part of the address.
6435 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6436 scalar part of the addresse and add an alternative for handling
6437 nonzero offsets.
6438 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6439 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6440 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6441 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6442 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6443 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6444 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6445 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6446 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6447 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6448 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6449 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6450 (@aarch64_sve_prefetch<mode>): New patterns.
6451 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6452 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6453 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6454 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6455 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6456 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6457 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6458 (@aarch64_stnt1<mode>): New patterns.
6459 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6460 the scalar part of the address.
6461 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6462 the scalar part of the addresse and add an alternative for handling
6463 nonzero offsets.
6464 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6465 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6466 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6467 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6468 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6469 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6470 New patterns.
6471 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6472 (extract_last_<mode>): Generalize to...
6473 (@extract_<LAST:last_op>_<mode>): ...this.
6474 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6475 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6476 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6477 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6478 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6479 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6480 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6481 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6482 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6483 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6484 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6485 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6486 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6487 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6488 (*aarch64_adr_uxtw_unspec): Likewise.
6489 (*aarch64_adr_uxtw): Rename to...
6490 (*aarch64_adr_uxtw_and): ...this.
6491 (@aarch64_adr<mode>_shift): New expander.
6492 (*aarch64_adr_shift_sxtw): New pattern.
6493 (aarch64_<su>abd<mode>_3): Rename to...
6494 (@aarch64_pred_<su>abd<mode>): ...this.
6495 (<su>abd<mode>_3): Update accordingly.
6496 (@aarch64_cond_<su>abd<mode>): New expander.
6497 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6498 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6499 (*<su>mul<mode>3_highpart): Rename to...
6500 (@aarch64_pred_<optab><mode>): ...this.
6501 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6502 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6503 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6504 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6505 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6506 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6507 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6508 (*v<ASHIFT:optab><mode>3): Rename to...
6509 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6510 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6511 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6512 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6513 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6514 (@cond_asrd<mode>): New expander.
6515 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6516 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6517 (*sdiv_pow2<mode>3): Delete.
6518 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6519 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6520 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6521 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6522 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6523 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6524 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6525 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6526 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6527 (*add<SVE_F:mode>3): Rename to...
6528 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6529 for SVE_STRICT_GP.
6530 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6531 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6532 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6533 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6534 (*sub<SVE_F:mode>3): Rename to...
6535 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6536 for SVE_STRICT_GP.
6537 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6538 (*fabd<SVE_F:mode>3): Rename to...
6539 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6540 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6541 (*mul<SVE_F:mode>3): Rename to...
6542 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6543 for SVE_STRICT_GP.
6544 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6545 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6546 to...
6547 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6548 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6549 (*<nlogical><PRED_ALL:mode>3): Rename to...
6550 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6551 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6552 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6553 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6554 (aarch64_pred_<logical_nn><mode>_z): ...this.
6555 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6556 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6557 (*fma<SVE_I:mode>4): Rename to...
6558 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6559 (*fnma<SVE_I:mode>4): Rename to...
6560 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6561 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6562 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6563 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6564 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6565 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6566 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6567 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6568 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6569 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6570 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6571 (@aarch64_sve_tmad<mode>): Likewise.
6572 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6573 (*aarch64_sel_dup<mode>): Rename to...
6574 (@aarch64_sel_dup<mode>): ...this.
6575 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6576 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6577 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6578 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6579 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6580 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6581 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6582 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6583 (*fcm<cmp_op><mode>): Rename to...
6584 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6585 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6586 (*fcmuo<mode>): Rename to...
6587 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6588 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6589 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6590 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6591 (fold_extract_last_<mode>): Generalize to...
6592 (@fold_extract_<last_op>_<mode>): ...this.
6593 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6594 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6595 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6596 DImode result explicit.
6597 (reduc_plus_scal_<mode>): Update accordingly.
6598 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6599 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6600 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6601 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6602 (*aarch64_sve_tbl<mode>): Rename to...
6603 (@aarch64_sve_tbl<mode>): ...this.
6604 (@aarch64_sve_compact<mode>): New pattern.
6605 (*aarch64_sve_dup_lane<mode>): Rename to...
6606 (@aarch64_sve_dup_lane<mode>): ...this.
6607 (@aarch64_sve_dupq_lane<mode>): New pattern.
6608 (@aarch64_sve_splice<mode>): Likewise.
6609 (aarch64_sve_<perm_insn><mode>): Rename to...
6610 (@aarch64_sve_<perm_insn><mode>): ...this.
6611 (*aarch64_sve_ext<mode>): Rename to...
6612 (@aarch64_sve_ext<mode>): ...this.
6613 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6614 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6615 to...
6616 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6617 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6618 Rename to...
6619 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6620 ...this.
6621 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6622 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6623 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6624 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6625 to...
6626 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6627 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6628 a "@" marker.
6629 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6630 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6631 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6632 pattern.
6633 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6634 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6635 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6636 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6637 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6638 "@" marker.
6639 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6640 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6641 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6642 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6643 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6644 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6645 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6646 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6647 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6648 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6649 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6650 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6651 (aarch64_sve_cnt_pat): Likewise.
6652 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6653 (*aarch64_sve_incsi_pat): Likewise.
6654 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6655 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6656 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6657 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6658 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6659 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6660 (*aarch64_sve_decsi_pat): Likewise.
6661 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6662 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6663 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6664 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6665 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6666 (@aarch64_pred_cntp<mode>): Likewise.
6667 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6668 New expander.
6669 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6670 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6671 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6672 New expander.
6673 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6674 New pattern.
6675 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6676 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6677 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6678 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6679 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6680 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6681 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6682 New expander.
6683 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6684 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6685 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6686 New expander.
6687 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6688 New pattern.
6689 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6690 expander.
6691 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6692 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6693 expander.
6694 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6695 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6696 expander.
6697 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6698 * config/aarch64/arm_sve.h: New file.
6699 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6700 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6701 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6702 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6703 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6704 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6705 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6706 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6707 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6708
6709 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6710
6711 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6712 New pattern.
6713 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6714 SVE modes.
6715
6716 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6717
6718 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6719 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6720 FFRT_REGNUM + 1.
6721 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6722 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6723 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6724 (aarch64_hard_regno_nregs): Handle the new register classes.
6725 (aarch64_hard_regno_mode_ok): Likewise.
6726 (aarch64_regno_regclass): Likewise.
6727 (aarch64_class_max_nregs): Likewise.
6728 (aarch64_register_move_cost): Likewise.
6729 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6730 as general register_operands.
6731
6732 2019-10-29 Martin Liska <mliska@suse.cz>
6733
6734 * ggc-common.c: One can't subtract unsigned types
6735 in compare function.
6736
6737 2019-10-29 Martin Liska <mliska@suse.cz>
6738
6739 * cgraphunit.c (symbol_table::compile): Pass
6740 title as dump_memory_report argument.
6741 * toplev.c (dump_memory_report): New argument.
6742 (finalize): Pass new argument.
6743 * toplev.h (dump_memory_report): Add argument.
6744
6745 2019-10-29 Martin Liska <mliska@suse.cz>
6746
6747 * ggc-common.c: Move Leak to the first column.
6748
6749 2019-10-29 Martin Liska <mliska@suse.cz>
6750
6751 * cgraphunit.c (symbol_table::compile): Remove argument
6752 for dump_memory_report.
6753 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6754 (compare_final): Remove in order to make report
6755 better readable.
6756 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6757 * mem-stats.h (mem_alloc_description::get_list):
6758 Do not pass cmp.
6759 (mem_alloc_description::dump): Likewise here.
6760 * toplev.c (dump_memory_report): Remove final
6761 argument.
6762 (finalize): Likewise.
6763 * toplev.h (dump_memory_report): Remove argument.
6764
6765 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6766
6767 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6768 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6769 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6770 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6771 accept "const".
6772
6773 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6774
6775 * coretypes.h (string_int_pair): New typedef.
6776 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6777 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6778 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6779
6780 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6781
6782 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6783 (simulate_builtin_function_decl): Declare.
6784 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6785 (LANG_HOOKS_INITIALIZER): Include it.
6786 * langhooks.c (add_builtin_function_common): Rename to...
6787 (build_builtin_function): ...this. Add a location parameter and use
6788 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6789 the decl instead.
6790 (add_builtin_function): Update accordingly, passing the returned
6791 decl to the lang hook.
6792 (add_builtin_function_ext_scope): Likewise
6793 (simulate_builtin_function_decl): New function.
6794
6795 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6796
6797 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6798 example, use actual names of supported offload targets.
6799
6800 PR target/92258
6801 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6802
6803 2019-10-28 Martin Sebor <msebor@redhat.com>
6804
6805 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6806 (handle_store): Pass argument to get_addr_stridx.
6807
6808 2019-10-28 Martin Sebor <msebor@redhat.com>
6809
6810 PR tree-optimization/92226
6811 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6812 the offset is in the open range outlined by SI's length.
6813
6814 2019-10-28 Martin Sebor <msebor@redhat.com>
6815
6816 PR c/66970
6817 * doc/cpp.texi (__has_builtin): Document.
6818 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6819
6820 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6821
6822 PR target/82981
6823 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6824 doubleword and low doubleword result of multiplication on
6825 MIPS64R6.
6826
6827 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6828 pure qualifier to the built-in.
6829 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6830 built-ins.
6831 (struct mips_builtin_description): Add is_pure flag.
6832 (mips_init_builtins): Mark built-in as pure if the flag in the
6833 corresponding mips_builtin_description struct is set.
6834
6835 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6836 alternative which covers the floating-point input value. Also
6837 forbid the split of insert.d pattern for floating-point values.
6838
6839 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6840
6841 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6842 * config/riscv/riscv-sr.c: New file.
6843 * config/riscv/riscv.c (riscv_reorg): New function.
6844 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6845 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6846 (riscv_remove_unneeded_save_restore_calls): Declare.
6847 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6848
6849 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6850
6851 PR tree-optimization/92163
6852 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6853 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6854 before calling bitmap_set_bit.
6855 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6856 delete_dead_or_redundant_assignment.
6857 (dse_dom_walker::dse_optimize_stmt): Likewise.
6858 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6859
6860 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6861
6862 PR middle-end/91272
6863 * tree-vect-stmts.c (vectorizable_condition): Support
6864 EXTRACT_LAST_REDUCTION with fully-masked loops.
6865
6866 2019-10-28 Richard Biener <rguenther@suse.de>
6867
6868 PR tree-optimization/92252
6869 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6870 STMT_VINFO_REDUC_IDX when swapping operands.
6871
6872 2019-10-28 Richard Biener <rguenther@suse.de>
6873
6874 PR tree-optimization/92241
6875 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6876 we failed to update the reduction index do not use the pattern
6877 stmts for the reduction chain.
6878 (vectorizable_reduction): When the reduction chain is corrupt,
6879 fail.
6880 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6881 fail to update the reduction chain.
6882
6883 2019-10-28 Richard Biener <rguenther@suse.de>
6884
6885 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6886 STMT_VINFO_REDUC_IDX from the actual stmt.
6887 (vect_transform_reduction): Likewise.
6888 (vectorizable_reduction): Compute the reduction chain length,
6889 do not recompute the reduction operand index. Remove no longer
6890 necessary restriction for condition reduction chains.
6891
6892 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6893
6894 PR target/92225
6895 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6896 condition for V2DImode.
6897
6898 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6899
6900 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6901 Remove %k operand modifier.
6902 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6903
6904 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6905
6906 PR rtl-optimization/92007
6907 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6908 call it after reload if hot/cold partitioning has been done.
6909 (class pass_postreload_jump): Rename to
6910 pass_jump_after_combine.
6911 (make_pass_postreload_jump): Rename to
6912 make_pass_jump_after_combine.
6913 * passes.def(pass_postreload_jump): Move before reload, rename
6914 to pass_jump_after_combine.
6915 * tree-pass.h (make_pass_postreload_jump): Rename to
6916 make_pass_jump_after_combine.
6917
6918 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6919
6920 PR ipa/92242
6921 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6922 for missing EDGE_REF
6923 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6924
6925 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6926
6927 PR tree-optimization/88760
6928 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6929 Enable -funroll-loops for -O2 and above.
6930 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6931 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6932 do not turn on web and rngreg implicitly, if the unroller is not
6933 explicitly enabled.
6934
6935 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6936
6937 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6938 jump functions.
6939
6940 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6941
6942 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6943 * cgraph.h (cgraph_node::rtl_info): Likewise.
6944
6945 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6946
6947 * ipa-cp.c (propagate_constants_across_call): If args are not available
6948 just drop everything to varying.
6949 (find_aggregate_values_for_callers_subset): Watch for missing
6950 edge summary.
6951 (find_more_scalar_values_for_callers_subs): Likewise.
6952 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6953 update_jump_functions_after_inlining, propagate_controlled_uses):
6954 Watch for missing summaries.
6955 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6956 is finished.
6957 (ipa_write_node_info): Watch for missing summaries.
6958 (ipa_read_edge_info): Create new ref.
6959 (ipa_edge_args_sum_t): Add remove.
6960 (IPA_EDGE_REF_GET_CREATE): New macro.
6961 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6962 edge summary.
6963 (remap_edge_change_prob): Likewise.
6964
6965 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6966
6967 * ipa-inline-transform.c (inline_call): update function summaries
6968 after expanidng thunk.
6969
6970 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6971
6972 * ipa-icf.c (sem_function::merge): Update function summaries.
6973 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6974
6975 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6976
6977 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6978 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6979 operand already has scalar mode.
6980 (iptr): Remove SF/DF.
6981
6982 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6983
6984 PR target/91289
6985 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6986 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6987 this.
6988
6989 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6990
6991 * config/i386/sse.md
6992 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6993 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6994 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6995 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6996 <sse>_vmmaskcmp<mode>3):
6997 Change predicates from vector_operand to nonimmediate_operand,
6998 constraints xBm to xm, since scalar operations don't need
6999 memory address alignment.
7000 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7001 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7002 round_saeonly_nimm_predicate with
7003 round_saeonly_nimm_scalar_predicate.
7004 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7005 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7006 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7007 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7008 avx512f_vmfmadd_<mode>_mask3<round_name>,
7009 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7010 *avx512f_vmfmsub_<mode>_mask<round_name>,
7011 avx512f_vmfmsub_<mode>_mask3<round_name>,
7012 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7013 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7014 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7015 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7016 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7017 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7018 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7019 cvtusi2<ssescalarmodesuffix>32<round_name>,
7020 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7021 round_nimm_predicate with round_nimm_scalr_predicate.
7022 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7023 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7024 avx512er_vmrcp28<mode><round_saeonly_name>,
7025 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7026 ): Replace round_saeonly_nimm_predicate with
7027 round_saeonly_nimm_scalar_predicate.
7028 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7029 vector_operand with nonimmediate_operand.
7030 * config/i386/subst.md (round_scalar_nimm_predicate,
7031 round_saeonly_scalar_nimm_predicate): Replace
7032 vector_operand with nonimmediate_operand.
7033
7034 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7035
7036 PR target/89071
7037 * config/i386/i386.md (*rcpsf2_sse): Add
7038 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7039 (*rsqrtsf2_sse): Ditto.
7040 (*sqrt<mode>2_sse): Ditto.
7041 (sse4_1_round<mode>2): separate constraint vm, add
7042 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7043 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7044 by pass rpad.
7045 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7046 Ditto.
7047 (*sse_vmrsqrtv4sf2): Ditto.
7048 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7049 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7050 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7051 <iptr> pointer size modifier since vround support memory operand.
7052
7053 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7054
7055 PR target/85969
7056 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7057 static function.
7058
7059 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7060 Tobias Burnus <tobias@codesourcery.com>
7061
7062 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7063 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7064 common block decls.
7065
7066 2019-10-25 Richard Biener <rguenther@suse.de>
7067
7068 PR tree-optimization/92222
7069 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7070 (_slp_oprnd_info::second_pattern): Likewise.
7071 (_slp_oprnd_info::any_pattern): New.
7072 (vect_create_oprnd_info): Adjust.
7073 (vect_get_and_check_slp_defs): Compute whether any stmt is
7074 in a pattern.
7075 (vect_build_slp_tree_2): Avoid building up a node from scalars
7076 if any of the operand defs, not just the first, is in a pattern.
7077
7078 2019-10-25 Richard Biener <rguenther@suse.de>
7079
7080 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7081 swapping if we actually have to modify the IL on a shared stmt.
7082 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7083 because we no longer modify the IL.
7084
7085 2019-10-25 Martin Liska <mliska@suse.cz>
7086
7087 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7088
7089 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7090
7091 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7092 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7093 handled by vect_transform_reduction. Allow fully-masked loops
7094 to be used with reduction chains.
7095 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7096 operations in fully-masked loops.
7097 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7098 operations in fully-masked loops.
7099
7100 2019-10-25 Richard Biener <rguenther@suse.de>
7101
7102 * tree-vect-loop.c (vectorizable_reduction): Verify
7103 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7104 correctly.
7105 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7106 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7107 stmts.
7108
7109 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7110
7111 * gimplify.h (omp_construct_selector_matches): Declare.
7112 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7113 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7114 called function if needed for flag_openmp.
7115 (gimplify_scan_omp_clauses): Set ctx->code.
7116 (omp_construct_selector_matches): New function.
7117 * omp-general.h (omp_constructor_traits_to_codes,
7118 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7119 * omp-general.c (omp_constructor_traits_to_codes,
7120 omp_context_selector_matches, omp_resolve_declare_variant): New
7121 functions.
7122
7123 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7124 literal.
7125 * config/rx/rx.c (rx_print_operand): Likewise.
7126 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7127 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7128 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7129 Likewise.
7130 * genemit.c (emit_c_code): Likewise.
7131 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7132
7133 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7134
7135 * symbols-summary.h (fast_function_summary<T *, V>::release,
7136 fast_call_summary<T *, V>::release): Free m_vector.
7137
7138 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7139
7140 * cgraphunit.c (symbol_table::process_new_functions): Call
7141 ipa_free_size_summary.
7142 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7143 (devirtualization_time_bonus): Update.
7144 (ipcp_propagate_stage): Update.
7145 * ipa-fnsummary.c (ipa_size_summaries): New.
7146 (ipa_fn_summary_alloc): Alloc size summary.
7147 (dump_ipa_call_summary): Update.
7148 (ipa_dump_fn_summary): Update.
7149 (analyze_function_body): Update.
7150 (compute_fn_summary): Likewise.
7151 (ipa_get_stack_frame_offset): New function.
7152 (inline_update_callee_summaries): Do not update frame offsets.
7153 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7154 remove call and function summary.
7155 (ipa_update_overall_fn_summary): Update.
7156 (inline_read_section): Update.
7157 (ipa_fn_summary_write): Update.
7158 (ipa_free_fn_summary): Do not remove summaries.
7159 (ipa_free_size_summary): New.
7160 (release summary pass): Also run at WPA.
7161 * ipa-fnsummary.h (ipa_size_summary): Declare.
7162 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7163 estimated_self_stack_size.
7164 (ipa_size_summary_t): New type.
7165 (ipa_size_summaries): Declare.
7166 (ipa_free_size_summary): Declare.
7167 (ipa_get_stack_frame_offset): Declare.
7168 * ipa-icf.c (sem_function::merge): Update.
7169 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7170 (estimate_growth): Update.
7171 (growth_likely_positive): Update.
7172 (clone_inlined_nodes): Update.
7173 (inline_call): Update.
7174 * ipa-inline.c (caller_growth_limits): Update.
7175 (edge_badness): Update.
7176 (recursive_inlining): Update.
7177 (inline_small_functions): Update.
7178 (inline_to_all_callers_1): Update.
7179 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7180
7181 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7182
7183 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7184 (uavg<mode>3_ceil): ... This.
7185 (altivec_vavgs<VI_char>): Rename to...
7186 (avg<mode>3_ceil): ... This.
7187 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7188 VAVGUW, VAVGSW): Adjust.
7189
7190 2019-10-24 Nathan Sidwell <nathan@acm.org>
7191
7192 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7193
7194 2019-10-24 Martin Liska <mliska@suse.cz>
7195
7196 * symbol-summary.h (gt_pch_nx): Mark all functions
7197 with gcc_unreachable as we do not expect to be called.
7198
7199 2019-10-24 Richard Biener <rguenther@suse.de>
7200
7201 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7202 chains try harder with operand swapping and instead of
7203 putting a shifted chain into the reduction operands put
7204 a repetition of the final reduction op there as if we'd
7205 reassociate the expression.
7206
7207 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7208
7209 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7210 statics_not_read and statics_not_written to statics_read and
7211 statics_written respectively.
7212 (no_module_statics): New static var.
7213 (ipa_reference_get_not_read_global): Rename to ...
7214 (ipa_reference_get_read_global): ... this.
7215 (ipa_reference_get_not_written_global): Rename to ...
7216 (ipa_reference_get_written_global): ... this.
7217 (dump_static_vars_set_to_file): Dump no_module_statics.
7218 (copy_static_var_set): Add for propagation parameter.
7219 (ipa_init): Initialize no_module_statics.
7220 (ipa_ref_opt_summary_t::duplicate): Update.
7221 (ipa_ref_opt_summary_t::remove): Update.
7222 (propagate): Update.
7223 (write_node_summary_p): Look correctly for bitmap differences.
7224 (ipa_reference_write_optimization_summary): Update.
7225 (ipa_reference_read_optimization_summary): Update.
7226 * ipa-reference.h
7227 (ipa_reference_get_not_read_global): Rename to ...
7228 (ipa_reference_get_read_global): ... this.
7229 (ipa_reference_get_not_written_global): Rename to ...
7230 (ipa_reference_get_written_global): ... this.
7231 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7232 (call_may_clobber_ref_p_1): Update.
7233
7234 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7235
7236 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7237 and add comment.
7238 (msp430_hard_regno_nregs_with_padding): Remove.
7239
7240 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7241
7242 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7243 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7244 shift amount is between 1 and 4.
7245 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7246 is between 1 and 4.
7247
7248 2019-10-24 Richard Biener <rguenther@suse.de>
7249
7250 PR tree-optimization/92205
7251 * tree-vect-loop.c (vectorizable_reduction): Restrict
7252 search for alternate vectype_in to lane-reducing patterns
7253 we support.
7254
7255 2019-10-24 Richard Biener <rguenther@suse.de>
7256
7257 PR tree-optimization/92203
7258 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7259 Skip eliminating conversion stmts inserted by insertion.
7260
7261 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7262
7263 * config/s390/s390.c (s390_get_thread_pointer): Use
7264 gen_get_thread_pointer.
7265 (s390_expand_split_stack_prologue): Likewise.
7266 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7267 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7268 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7269 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7270 parameterized name.
7271
7272 2019-10-24 Richard Biener <rguenther@suse.de>
7273
7274 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7275 SLP discovery fails try to handle the reduction as part
7276 of SLP reduction discovery.
7277
7278 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7279
7280 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7281 declaration.
7282 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7283 attribute if it exists, rather than the insn size. If we use the
7284 insn size, adjust the size to remove the extra size that prefixed
7285 instructions take.
7286 (rs6000_adjust_insn_length): New function.
7287 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7288 update the instruction sized if prefixed instructions are used.
7289 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7290 (non_prefixed_length attribute): Delete.
7291 (num_insns attribute): New insn attribute to return the number of
7292 instructions.
7293 (max_prefixed_insns attribute): New insn attribute to return the
7294 maximum number of prefixed instructions in an insn.
7295 (length attribute): Do not adjust for prefix instructions here,
7296 punt to ADJUST_INSN_LENGTH.
7297 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7298 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7299 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7300 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7301 max_prefixed_insns and num_insns.
7302
7303 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7304 (movtd_64bit_nodm): Reformat.
7305 (mov<mode>_32bit): Reformat.
7306 (mov<mode>_softfloat): Reformat.
7307 (FMOVE128_GPR splitter): Reformat.
7308 (DIFD splitter): Reformat.
7309 (TI2 splitter): Reformat.
7310 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7311 bits of the offset for the memory address are non-zero, use PLWA
7312 if prefixed instructions are available.
7313
7314 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7315
7316 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7317
7318 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7319
7320 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7321 previous patch.
7322
7323 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7324
7325 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7326 (cmp_symbol_files): New.
7327 (lto_output): Copy sections in file order.
7328 * lto-streamer.h (lto_file_decl_data): Add field order.
7329
7330 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7331
7332 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7333 * ipa-reference.c (reference_vars_map_t): new type.
7334 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7335 (ipa_reference_var_uid): Implement.
7336 (varpool_node_hooks): New static var.
7337 (varpool_removal_hook): New function.
7338 (is_improper): Do not check bitmap for id==-1
7339 (get_static_name): Update.
7340 (ipa_init): Initialize new datastructures.
7341 (analyze_function): Do not recompute ids.
7342 (propagate): Free reference_vars_to_consider.
7343 (stream_out_bitmap): Update.
7344 (ipa_reference_read_optimization_summary): Update.
7345
7346 2019-10-23 qing zhao <qing.zhao@oracle.com>
7347
7348 PR gcov-profile/91971
7349 * coverage.c (coverage_init): Mangle the full path of filename when
7350 filename is a absolute path.
7351
7352 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7353
7354 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7355 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7356 (msp430_has_hwmult): New.
7357 (msp430_output_labelref):
7358 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7359 * config/msp430/msp430.md (mulhisi3): Likewise.
7360 (umulhisi3): Likewise.
7361 (mulsidi3): Likewise.
7362 (umulsidi3): Likewise.
7363
7364 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7365
7366 PR ipa/92074
7367 * params.def (inline-heuristics-hint-percent): Set to 600.
7368
7369 2019-10-23 Richard Biener <rguenther@suse.de>
7370
7371 PR tree-optimization/65930
7372 * tree-vect-loop.c (check_reduction_path): Allow conversions
7373 that only change the sign.
7374 (vectorizable_reduction): Relax latch def stmts we handle further.
7375
7376 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7377
7378 PR debug/90231
7379 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7380 (remove_unused_ivs): Use it instead of get_computation_at. When
7381 choosing best candidate, only consider candidates where
7382 get_debug_computation_at actually returns non-NULL.
7383
7384 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7385
7386 PR tree-optimization/92131
7387 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7388 range would be symbolic, drop to varying for any explicit overflow
7389 in the constant part or if neither range is a singleton.
7390
7391 2019-10-23 Martin Liska <mliska@suse.cz>
7392
7393 PR middle-end/81669
7394 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7395 Initialize m_data.
7396
7397 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7398
7399 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7400 int_mode_for_mode rather than mode_for_int_vector for scalars.
7401
7402 2019-10-23 Richard Biener <rguenther@suse.de>
7403
7404 PR tree-optimization/92179
7405 * tree-vect-stmts.c (vectorizable_shift): For shift args
7406 that are all the same remove type restriction in the SLP case.
7407 Adjust SLP code to handle converting of the shift arg to
7408 only apply in case the modes are different.
7409
7410 2019-10-23 Martin Liska <mliska@suse.cz>
7411
7412 PR ipa/91969
7413 * ipa-inline.c (recursive_inlining): Do not print
7414 when curr->count is not initialized.
7415
7416 2019-10-23 Richard Biener <rguenther@suse.de>
7417
7418 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7419 op from scalars in case there's a constant operand in its
7420 definition.
7421
7422 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7423
7424 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7425 against out of range max skip or log values.
7426
7427 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7428
7429 * cgraph.c (dump_graphviz): Change name to dump_name
7430
7431 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7432
7433 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7434 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7435 subtraction from a carry operation.
7436
7437 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7438
7439 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7440
7441 2019-10-22 Richard Biener <rguenther@suse.de>
7442
7443 PR tree-optimization/92173
7444 * tree-vect-loop.c (vectorizable_reduction): If
7445 vect_transform_reduction cannot handle code-generation try without
7446 the single-def-use-cycle optimization. Pass optab_vector to
7447 optab_for_tree_code to get vector shifts as that's what we'd
7448 generate.
7449
7450 2019-10-22 Michael Matz <matz@suse.de>
7451
7452 PR middle-end/90796
7453 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7454 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7455 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7456
7457 2019-10-22 Richard Biener <rguenther@suse.de>
7458
7459 PR tree-optimization/92173
7460 * tree-vect-loop.c (vectorizable_reduction): If
7461 vect_transform_reduction cannot handle code-generation try without
7462 the single-def-use-cycle optimization. Pass optab_vector to
7463 optab_for_tree_code to get vector shifts as that's what we'd
7464 generate.
7465
7466 2019-10-22 Martin Liska <mliska@suse.cz>
7467
7468 * diagnostic-format-json.cc (json_from_expanded_location):
7469 Use json::integer_number.
7470 * gcov.c (output_intermediate_json_line): Use new
7471 json::integer_number.
7472 (output_json_intermediate_file): Likewise.
7473 * json.cc (number::print): Move to ...
7474 (float_number::print): ... this.
7475 (integer_number::print): New.
7476 (test_writing_numbers): Move to ...
7477 (test_writing_float_numbers): ... this.
7478 (test_writing_integer_numbers): New.
7479 (json_cc_tests): Register test_writing_integer_numbers.
7480 * json.h (class value): Add forward declaration
7481 for float_number and integer_number.
7482 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7483 (class number): Move to ...
7484 (class float_number): ... this.
7485 (class integer_number): New.
7486 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7487 Use json::integer_number.
7488 (optrecord_json_writer::location_to_json): Likewise.
7489 (optrecord_json_writer::profile_count_to_json): Likewise.
7490 (optrecord_json_writer::pass_to_json): Likewise.
7491
7492 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7493
7494 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7495 autodetected_vector_size rather than vector_size is zero.
7496 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7497 Set autodetected_vector_size immediately after calling
7498 vect_analyze_loop_2. Check for a fatal error before advancing
7499 next_size.
7500
7501 2019-10-21 Jason Merrill <jason@redhat.com>
7502
7503 * lock-and-run.sh: Check for process existence rather than timeout.
7504
7505 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7506
7507 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7508 widening multiplication.
7509
7510 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7511
7512 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7513 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7514 type attribute.
7515 (subsi3_carryin_shift): Separate into register and constant controlled
7516 alternatives. Use shift_amount_operand for operand 4. Set shift
7517 attribute and simplify type attribute.
7518 (subsi3_carryin_shift_alt): Likewise.
7519 (rsbsi3_carryin_shift): Likewise.
7520 (rsbsi3_carryin_shift_alt): Likewise.
7521 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7522 and register controlled shifts into distinct alternatives.
7523 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7524 (andsi_not_shiftsi_si_scc): Likewise.
7525 (arm_cmpsi_negshiftsi_si): Likewise.
7526 (not_shiftsi): Remove redundant M constraint from alternative 1.
7527 (not_shiftsi_compare0): Likewise.
7528 (arm_cmpsi_insn): Remove redundant alternative 2.
7529 (cmpsi_shift_swp): Likewise.
7530 (sub_shiftsi): Likewise.
7531 (sub_shiftsi_compare0_scratch): Likewise.
7532 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7533 (thumb2_cmpsi_neg_shiftsi): Likewise.
7534
7535 2019-10-21 Richard Biener <rguenther@suse.de>
7536
7537 PR tree-optimization/92162
7538 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7539 STMT_VINFO_REDUC_IDX in reduc_info.
7540 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7541
7542 2019-10-21 Richard Biener <rguenther@suse.de>
7543
7544 * tree-vectorizer.h (_slp_tree::ops): New member.
7545 (SLP_TREE_SCALAR_OPS): New.
7546 (vect_get_slp_defs): Adjust prototype.
7547 * tree-vect-slp.c (vect_free_slp_tree): Release
7548 SLP_TREE_SCALAR_OPS.
7549 (vect_create_new_slp_node): Initialize it. New overload for
7550 initializing by an operands array.
7551 (_slp_oprnd_info::ops): New member.
7552 (vect_create_oprnd_info): Initialize it.
7553 (vect_free_oprnd_info): Release it.
7554 (vect_get_and_check_slp_defs): Populate the operands array.
7555 Do not swap operands in the IL when not necessary.
7556 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7557 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7558 swap operands in the operands array. Do not swap operands in
7559 the IL.
7560 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7561 (vect_gather_slp_loads): Fix.
7562 (vect_detect_hybrid_slp_stmts): Likewise.
7563 (vect_slp_analyze_node_operations_1): Search for a internal
7564 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7565 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7566 the def-type push/pop dance.
7567 (vect_get_constant_vectors): Compute number_of_vectors here.
7568 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7569 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7570 (vect_get_slp_defs): Simplify greatly.
7571 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7572 (vect_transform_reduction): Likewise.
7573 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7574 (vectorizable_call): Likewise.
7575 (vectorizable_operation): Likewise.
7576 (vectorizable_load): Likewise.
7577 (vectorizable_condition): Likewise.
7578 (vectorizable_comparison): Likewise.
7579
7580 2019-10-21 Richard Biener <rguenther@suse.de>
7581
7582 PR tree-optimization/92161
7583 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7584 for reductions.
7585
7586 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7587
7588 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7589 (aarch64_rndr): New define_insn.
7590 (aarch64_rndrrs): Likewise.
7591 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7592 (TARGET_RNG): Likewise.
7593 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7594 argument.
7595 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7596 Add fourth argument in prototype.
7597 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7598 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7599 (aarch64_init_rng_builtins): Define.
7600 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7601 (aarch64_expand_rng_builtin): Define.
7602 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7603 RNG builtins.
7604 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7605 __ARM_FEATURE_RNG when TARGET_RNG.
7606 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7607
7608 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7609
7610 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7611 alignment is more restrictive.
7612
7613 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7614
7615 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7616 (vect_update_max_nunits): Update comment.
7617 (current_vector_size): Delete.
7618 * tree-vect-stmts.c (current_vector_size): Likewise.
7619 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7620 of current_vector_size.
7621 (get_mask_type_for_scalar_type): Likewise.
7622 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7623 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7624 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7625 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7626 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7627 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7628
7629 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7630
7631 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7632 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7633 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7634 accordingly.
7635
7636 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7637
7638 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7639 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7640 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7641 call accordingly.
7642 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7643
7644 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7645
7646 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7647 a loop_vec_info.
7648 (vect_set_loop_condition_masked): Update call accordingly.
7649
7650 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7651
7652 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7653 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7654 (simple_integer_narrowing): Update call accordingly.
7655 (vectorizable_conversion): Likewise.
7656
7657 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7658
7659 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7660 (vectorizable_call): Update call accordingly.
7661
7662 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7663
7664 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7665 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7666 (duplicate_and_interleave): Update call accordingly.
7667 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7668
7669 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7670
7671 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7672 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7673 (vect_get_constant_vectors): Update call accordingly.
7674 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7675
7676 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7677
7678 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7679 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7680 (vect_prologue_cost_for_slp_op): Update call accordingly.
7681 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7682 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7683 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7684 (get_mask_type_for_scalar_type): Likewise.
7685 (vect_get_vector_types_for_stmt): Likewise.
7686 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7687 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7688 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7689 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7690 (vect_split_statement, vect_convert_input): Likewise.
7691 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7692 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7693 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7694 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7695 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7696 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7697 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7698 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7699 (vect_recog_mask_conversion_pattern): Likewise.
7700 (vect_add_conversion_to_pattern): Likewise.
7701 (vect_recog_gather_scatter_pattern): Likewise.
7702 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7703 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7704
7705 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7706
7707 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7708 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7709 (vect_check_load_store_mask): Update call accordingly.
7710 (vect_get_mask_type_for_stmt): Likewise.
7711 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7712 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7713 (vect_convert_mask_for_vectype): Likewise.
7714
7715 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7716
7717 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7718 a vec_info.
7719 (vect_recog_dot_prod_pattern): Update call accordingly.
7720 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7721 (vect_recog_widen_sum_pattern): Likewise.
7722
7723 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7724
7725 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7726 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7727 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7728 accordingly.
7729
7730 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7731
7732 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7733 get_vectype_for_scalar_type_and_size instead of
7734 get_vectype_for_scalar_type.
7735
7736 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7737
7738 * common.opt (-fcommon): Fix description.
7739
7740 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7741
7742 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7743 * config/i386/i386.c (ix86_pre_reload_split): New function.
7744 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7745 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7746 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7747 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7748 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7749 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7750 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7751 *<shift_insn><dwi>3_doubleword_mask,
7752 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7753 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7754 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7755 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7756 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7757 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7758 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7759 *avx2_<code>v8qiv8si2<mask_name>_2,
7760 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7761 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7762 *avx512f_<code>v8qiv8di2<mask_name>_2,
7763 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7764 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7765 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7766 sse4_2_pcmpistr): Likewise.
7767
7768 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7769
7770 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7771 now defaults to https.
7772
7773 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7774
7775 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7776 skip non-zero array accesses.
7777
7778 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7779
7780 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7781 and return a boolean success value. Move the allocation and
7782 initialization of the bb_vec_info to...
7783 (vect_slp_bb_region): ...here. Update call accordingly.
7784 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7785 than in vect_slp_analyze_bb_1.
7786
7787 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7788
7789 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7790 when processing the given datarefs for the first time and
7791 check_datarefs subsequently.
7792 (vect_slp_bb_region): New function, split out of...
7793 (vect_slp_bb): ...here. Don't recompute the region bounds and
7794 dataref sets when retrying with a different vector size.
7795
7796 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7797 Uroš Bizjak <ubizjak@gmail.com>
7798
7799 PR target/92140
7800 * config/i386/predicates.md (int_nonimmediate_operand): New special
7801 predicate.
7802 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7803 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7804 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7805 define_insn_and_split patterns.
7806
7807 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7808
7809 * config/rs6000/rs6000.md: Delete out--of-date comment about
7810 special-casing integer loads.
7811
7812 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7813
7814 * escaped_string.h (escaped_string): New header.
7815 * tree.c (escaped_string): Remove escaped_string class.
7816
7817 2019-10-18 Martin Sebor <msebor@redhat.com>
7818
7819 PR tree-optimization/92157
7820 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7821 compute_string_length to return a negative result.
7822
7823 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7824
7825 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7826 (negvsi3, negvdi3): Delete.
7827 (negdi2_compare): Delete.
7828
7829 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7830
7831 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7832 operations.
7833 (subdi3_compare1): Delete pattern.
7834 (subvsi3_borrow): New insn pattern.
7835 (subvsi3_borrow_imm): Likewise.
7836
7837 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7838
7839 * config/arm/arm.md (subv<mode>4): Delete.
7840 (subvdi4): New expander pattern.
7841 (subvsi4): Likewise. Handle some immediate values.
7842 (subvsi3_intmin): New insn pattern.
7843 (subvsi3): Likewise.
7844 (subvsi3_imm1): Likewise.
7845 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7846 idioms.
7847
7848 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7849
7850 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7851 incoming operands. Early split the calculation into SImode
7852 operations.
7853 (usubvsi3_borrow): New insn pattern.
7854 (usubvsi3_borrow_imm): Likewise.
7855
7856 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7857
7858 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7859 (usubvsi4): New pattern. Allow some immediate values for inputs.
7860 (usubvdi4): New pattern.
7861
7862 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7863
7864 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7865 or second operand of the PLUS inside a DImode equality test to be
7866 sign-extend when selecting CC_Vmode.
7867 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7868 instructions.
7869 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7870 expand patterns.
7871 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7872 (addsi3_cin_vout_0): Likewise.
7873 (adddi3_compareV): Delete.
7874
7875 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7876
7877 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7878 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7879 to transform this back into the summation version when that leads
7880 to smaller code.
7881
7882 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7883
7884 * config/arm/arm.md (addv<mode>4): Delete.
7885 (addvsi4): New pattern. Handle immediate values that the architecture
7886 supports.
7887 (addvdi4): New pattern.
7888 (addsi3_compareV): Rename to ...
7889 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7890 and use COMPARE rather than NE.
7891 (addsi3_compareV_imm): New pattern.
7892 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7893 a signed-overflow check.
7894
7895 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7896
7897 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7898 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7899 CC_ADCmode.
7900 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7901 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7902 with overflow.
7903 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7904 expand patterns.
7905 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7906 (addsi3_cin_cout_imm_insn): Likewise.
7907 (adddi3_compareC): Delete insn.
7908 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7909
7910 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7911
7912 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7913 * (uaddv<mode>4): Delete expansion pattern.
7914 (uaddvsi4): New pattern.
7915 (uaddvdi4): Likewise.
7916 (addsi3_compareC): Delete pattern, change callers to use
7917 addsi3_compare_op1.
7918 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7919 reduce the number of alternatives and re-work type attribute handling.
7920 (addsi3_compare_op2): Clean up constraints to reduce the number of
7921 alternatives and re-work type attribute handling.
7922 (compare_addsi2_op0): Likewise.
7923 (compare_addsi2_op1): Likewise.
7924
7925 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7926
7927 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7928 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7929 for DImode operands.
7930 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7931 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7932 CC_NCVmode.
7933 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7934 (arm_cmpdi_unsigned): Delete.
7935
7936 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7937
7938 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7939 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7940 unchanged only if that will be cheaper.
7941 (arm_select_cc_mode): Recognize a swapped comparison that will
7942 be regenerated using RSBS or RSCS. Relax restriction on selecting
7943 CC_RSBmode.
7944 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7945 a constant.
7946 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7947 is CC_RSBmode.
7948 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7949 as CCmode.
7950 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7951 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7952
7953 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7954
7955 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7956 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7957 need these modes.
7958 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7959 of EQ, NE, LT, GE, LTU and GEU.
7960 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7961 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7962 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7963 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7964 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7965
7966 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7967
7968 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7969 operand 2.
7970 (cstoredi4): Similarly, but for operand 3.
7971 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7972 canonicalization of unsigned compares with a constant on Arm.
7973 Prefer using const+1 and adjusting the comparison over swapping the
7974 operands whenever the original constant was not valid.
7975 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7976 register here.
7977 (arm_validize_comparison): Do not force invalid DImode operands to
7978 registers here.
7979
7980 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7981
7982 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7983 return CC_Zmode if comparing against a constant where one word is
7984 zero.
7985 (arm_gen_compare_reg): Split DImode handling to ...
7986 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7987 against simple constants.
7988 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7989
7990 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7991
7992 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7993 (rsbsi3_carryin_shift_alt): Likewise.
7994
7995 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7996
7997 * config/arm/arm.md (negscc_borrow): New pattern.
7998 (mov_negscc): Don't split if the insn would match negscc_borrow.
7999 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8000 (thumb2_mov_negscc_strict_it): Likewise.
8001
8002 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8003
8004 * config/arm/arm.c (arm_insn_cost): New function.
8005 (TARGET_INSN_COST): Override default definition.
8006
8007 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8008
8009 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8010 borrow operations.
8011
8012 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8013
8014 * config/arm/arm.c (strip_carry_operation): New function.
8015 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8016 for SImode.
8017
8018 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8019
8020 * config/arm/predicates.md (arm_carry_operation): New special
8021 predicate.
8022 * config/arm/iterators.md (LTUGEU): Delete iterator.
8023 (cnb): Delete code attribute.
8024 (optab): Delete ltu and geu elements.
8025 * config/arm/arm.md (addsi3_carryin): Renamed from
8026 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8027 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8028 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8029 (addsi3_carryin_clobercc): Similarly.
8030 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8031 Thumb2 state.
8032
8033 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8034
8035 * config/arm/arm.md (arm_subdi3): Delete insn.
8036 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8037
8038 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8039
8040 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8041 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8042 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8043 return CC_RSBmode.
8044 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8045 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8046 expand.
8047 (subdi3): Rewrite to early-expand the sub-operations.
8048 (rsb_im_compare): New pattern.
8049 (negdi2): Delete.
8050 (negdi2_insn): Delete.
8051 (arm_negsi2): Correct type attribute to alu_imm.
8052 (negsi2_0compare): New insn pattern.
8053 (negsi2_carryin): New insn pattern.
8054
8055 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8056
8057 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8058 operand 2.
8059
8060 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8061
8062 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8063 to match canonical form.
8064
8065 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8066
8067 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8068 (extend<mode>di2): Likewise.
8069
8070 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8071
8072 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8073 * config/arm/arm.c (arm_decompose_di_binop): New function.
8074 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8075 If not generating Thumb-1 code, decompose the operation into 32-bit
8076 pieces.
8077 * add0si_carryin_<optab>: New pattern.
8078
8079 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8080
8081 * arm.md (adddi3): Only accept register operands.
8082 (arm_adddi3): Convert to simple insn with no split. Do not accept
8083 constants.
8084 (adddi_sesidi_di): Delete patern.
8085 (adddi_zesidi_di): Likewise.
8086 (uaddv<mode>4): Use LTU as condition for branch.
8087 (adddi3_compareV): Convert to simple insn with no split.
8088 (addsi3_compareV_upper): Delete pattern.
8089 (adddi3_compareC): Convert to simple insn with no split. Correct
8090 flags setting expression.
8091 (addsi3_compareC_upper): Delete pattern.
8092 (addsi3_compareC): Correct flags setting expression.
8093 (subdi3_compare1): Convert to simple insn with no split.
8094 (subsi3_carryin_compare): Delete pattern.
8095 (arm_subdi3): Convert to simple insn with no split.
8096 (subdi_zesidi): Delete pattern.
8097 (subdi_di_sesidi): Delete pattern.
8098 (subdi_zesidi_di): Delete pattern.
8099 (subdi_sesidi_di): Delete pattern.
8100 (subdi_zesidi_zesidi): Delete pattern.
8101 (negvdi3): Use s_register_operand.
8102 (negdi2_compare): Convert to simple insn with no split.
8103 (negdi2_insn): Likewise.
8104 (negsi2_carryin_compare): Delete pattern.
8105 (negdi_zero_extendsidi): Delete pattern.
8106 (arm_cmpdi_insn): Convert to simple insn with no split.
8107 (negdi2): Don't call gen_negdi2_neon.
8108 * config/arm/neon.md (adddi3_neon): Delete pattern.
8109 (subdi3_neon): Delete pattern.
8110 (negdi2_neon): Delete pattern.
8111 (splits for negdi2_neon): Delete splits.
8112
8113 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8114
8115 PR middle-end/92153
8116 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8117 than after it.
8118
8119 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8120
8121 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8122 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8123 new multilib variants and new mappings.
8124
8125 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8126
8127 PR target/86040
8128 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8129
8130 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8131 Richard Sandiford <richard.sandiford@arm.com>
8132
8133 PR target/86753
8134 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8135 and define hashmap traits for it.
8136 (loop_vec_info::scalar_cond_masked_set): New member.
8137 (vect_record_loop_mask): Adjust prototype.
8138 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8139 Implement method.
8140 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8141 vect_record_loop_mask.
8142 (vectorizable_live_operation): Likewise.
8143 (vect_record_loop_mask): New param scalar_mask. Add entry
8144 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8145 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8146 Pass it as last arg to vect_record_loop_mask.
8147 (vectorizable_call): Pass scalar_mask as last arg to
8148 vect_record_loop_mask.
8149 (vectorizable_store): Likewise.
8150 (vectorizable_load): Likewise.
8151 (vectorizable_condition): Check if another part of vectorized code
8152 applies loop_mask to condition or to it's inverse, and if yes,
8153 apply loop_mask to result of vector comparison.
8154
8155 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8156
8157 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8158
8159 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8160
8161 PR tree-optimization/92056
8162 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8163 before calling compute_builtin_object_size.
8164
8165 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8166
8167 PR target/65342
8168 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8169 (movdi_low_st): Delete.
8170 * config/rs6000/rs6000.c
8171 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8172 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8173 * config/rs6000/rs6000.md (movsi_low): Delete.
8174
8175 2019-10-17 Jason Merrill <jason@redhat.com>
8176
8177 * gimplify.h (get_initialized_tmp_var): Add default argument to
8178 post_p.
8179 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8180 NULL post_p argument.
8181 * targhooks (std_gimplify_va_arg_expr): Likewise.
8182
8183 2019-10-17 Richard Biener <rguenther@suse.de>
8184
8185 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8186 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8187 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8188 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8189 * tree-vect-loop.c (vect_is_simple_reduction): Set
8190 STMT_VINFO_REDUC_CODE.
8191 (vectorizable_reduction): Remove dead and redundant code, use
8192 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8193
8194 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8195
8196 Fix breakage introduced by r276985.
8197
8198 * config/avr/avr.c (avr_option_override): Remove set of
8199 PARAM_ALLOW_STORE_DATA_RACES.
8200 * common/config/avr/avr-common.c (avr_option_optimization_table)
8201 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8202
8203 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8204
8205 * config/i386/i386.h (processor_costs): Add clear_ratio.
8206 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8207 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8208 of 6 and move_ratio in all cost models.
8209
8210 2019-10-17 Richard Biener <rguenther@suse.de>
8211
8212 * tree-vect-loop.c (check_reduction_path): Compute reduction
8213 operation here.
8214 (vect_is_simple_reduction): Remove special-case of single-stmt
8215 reduction path detection.
8216
8217 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8218
8219 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8220
8221 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8222
8223 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8224 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8225 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8226 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8227 New combine patterns.
8228 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8229 above.
8230 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8231
8232 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8233
8234 * tree-vrp.c (value_range_base::dump): Display +INF for both
8235 pointers and integers when appropriate.
8236
8237 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8238
8239 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8240 when to use versioning threshold.
8241
8242 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8243
8244 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8245 outlined code from ...
8246 (vect_analyze_loop_2): ... here.
8247
8248 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8249
8250 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8251 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8252 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8253
8254 2019-10-17 Richard Biener <rguenther@suse.de>
8255
8256 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8257 (vect_is_simple_reduction): Move all validity checks ...
8258 (vectorizable_reduction): ... here. Compute whether we
8259 need a fold-left reduction here.
8260 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8261 both overloads, check needs_fold_left_reduction_p directly.
8262 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8263
8264 2019-10-17 Richard Biener <rguenther@suse.de>
8265
8266 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8267 TARGET_MEM_REF creation.
8268
8269 2019-10-17 Richard Biener <rguenther@suse.de>
8270
8271 PR tree-optimization/92129
8272 * tree-vect-loop.c (vectorizable_reduction): Also fail
8273 on GIMPLE_SINGLE_RHS.
8274
8275 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8276
8277 PR tree-optimization/92056
8278 * tree-object-size.c (cond_expr_object_size): Return early if then_
8279 processing resulted in unknown size.
8280
8281 PR tree-optimization/92115
8282 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8283 temporary if it could trap.
8284
8285 2019-10-17 Richard Biener <rguenther@suse.de>
8286
8287 PR debug/91887
8288 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8289 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8290
8291 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8292
8293 * tree-ssa-strlen.c (maybe_invalidate): Use
8294 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8295
8296 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8297 Jim Wilson <jimw@sifive.com>
8298
8299 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8300 regs to SIBCALL_REGS.
8301 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8302 passing regs to SIBCALL_REGS.
8303
8304 2019-10-16 Martin Sebor <msebor@redhat.com>
8305
8306 PR tree-optimization/83821
8307 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8308 the length of a string when available.
8309 (handle_builtin_memset) Add argument.
8310 (handle_store, strlen_check_and_optimize_call): Same.
8311 (check_and_optimize_stmt): Same. Pass it to callees.
8312
8313 2019-10-16 Martin Sebor <msebor@redhat.com>
8314
8315 PR tree-optimization/91996
8316 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8317 information.
8318 (compare_nonzero_chars): Add an overload.
8319 (count_nonzero_bytes): Add an argument. Call overload above.
8320 Handle non-constant lengths in some range.
8321 (handle_store): Add an argument.
8322 (check_and_optimize_stmt): Pass an argument to handle_store.
8323
8324 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8325
8326 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8327
8328 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8329
8330 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8331 operands which correspond to the same input-output register to
8332 have the same pseudo assigned to them.
8333
8334 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8335
8336 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8337
8338 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8339
8340 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8341 Apply reasonable limit to symbol offsets.
8342
8343 2019-10-16 Richard Biener <rguenther@suse.de>
8344
8345 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8346 (vect_is_simple_reduction): Delay checking to
8347 vectorizable_reduction and relax the checking.
8348 (vectorizable_reduction): Check we have a simple use. Check
8349 for bogus condition reductions.
8350 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8351 are looking at the last stmt in a pattern sequence when
8352 filling in backedge PHI values.
8353
8354 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8355 Jiufu Guo <guojiufu@linux.ibm.com>
8356
8357 PR target/70010
8358 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8359 the callee explicitly disables some isa_flags the caller is using.
8360
8361 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8362
8363 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8364
8365 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8366
8367 * genmodes.c (mode_data::order): New field.
8368 (blank_mode): Update accordingly.
8369 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8370 (make_vector_modes): Likewise.
8371 (VECTOR_MODES): Update use accordingly.
8372 (cmp_modes): Sort by the new order field ahead of sorting by size.
8373 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8374 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8375 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8376 (aarch64_classify_vector_mode): Handle the new partial modes.
8377 (aarch64_vl_bytes): New function.
8378 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8379 when counting the number of registers in an SVE mode.
8380 (aarch64_class_max_nregs): Likewise.
8381 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8382 in registers yet.
8383 (aarch64_classify_address): Treat partial vectors analogously
8384 to full vectors.
8385 (aarch64_print_address_internal): Consolidate the printing of
8386 MUL VL addresses, using aarch64_vl_bytes as the number of
8387 bytes represented by "VL".
8388 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8389
8390 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8391
8392 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8393 rather than known_lt when choosing frame layouts.
8394
8395 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8396
8397 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8398 that all the adjustments add up to the full frame size.
8399 Use crtl->outgoing_args_size directly as the final adjustment
8400 where appropriate.
8401
8402 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8403
8404 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8405 "frame" reference instead of always referring directly to
8406 "cfun->machine->frame".
8407
8408 2019-10-16 Richard Biener <rguenther@suse.de>
8409
8410 PR tree-optimization/92119
8411 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8412 against missing bswap lhs.
8413
8414 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8415
8416 PR middle-end/92033
8417 * poly-int.h (constant_lower_bound_with_limit): New function.
8418 (constant_upper_bound_with_limit): Likewise.
8419 * doc/poly-int.texi: Document them.
8420 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8421 into the worst-case INTEGER_CST bounds.
8422
8423 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8424
8425 PR ipa/91088
8426 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8427 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8428 * ipa-predicat.h (struct expr_eval_op): New struct.
8429 (expr_eval_ops): New typedef.
8430 (struct condition): Add type and param_ops fields, remove size field.
8431 (add_condition): Replace size parameter with type parameter, add
8432 param_ops parameter.
8433 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8434 (predicate::add_clause): Add comparisons on type and param_ops.
8435 (dump_condition): Add debug dump for param_ops.
8436 (remap_after_inlining): Adjust call arguments to add_condition.
8437 (add_condition): Replace size parameter with type parameter, add
8438 param_ops parameter. Unshare constant value used in conditions.
8439 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8440 parameter expressions using param_ops.
8441 (decompose_param_expr): New function.
8442 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8443 to replace call to unmodified_parm_or_parm_agg_item.
8444 (set_switch_stmt_execution_predicate): Likewise.
8445 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8446 with type.
8447 (inline_read_section): Read param_ops from summary stream.
8448 (ipa_fn_summary_write): Write param_ops to summary stream.
8449
8450 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8451
8452 PR rtl-optimization/92107
8453 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8454 expression written.
8455
8456 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8457
8458 * config/darwin.c: Update description of fix and continue.
8459
8460 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8461
8462 * config/darwin.c (darwin_binds_local_p): Update to call
8463 default_binds_local_p_3 () directly. amend comments.
8464
8465 2019-10-15 Richard Biener <rguenther@suse.de>
8466
8467 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8468 (tree_is_indexable): Use it.
8469 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8470 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8471 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8472
8473 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8474
8475 * config/msp430/msp430.md (zero_extendqipsi2): New.
8476 (zero_extendqisi2): Optimize case where src register and base dst
8477 register are the same.
8478 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8479 (zero_extendpsisi2): Optimize r->m case.
8480 Add unnamed insn patterns to catch insns combine searches for when
8481 optimizing pointer manipulation.
8482
8483 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8484
8485 * config/msp430/msp430.md: Group zero_extend* insns together.
8486
8487 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8488
8489 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8490 constraint.
8491 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8492 POST_INC.
8493 (msp430_subreg): Likewise.
8494 (msp430_split_addsi): Likewise.
8495 (msp430_print_operand_addr): Likewise.
8496 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8497 (USE_STORE_POST_INCREMENT): Define.
8498 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8499 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8500 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8501 (msp430_general_dst_operand): New.
8502 (msp430_general_dst_nonv_operand): New.
8503 (msp430_nonsubreg_operand): Remove.
8504 (msp430_nonsubreg_dst_operand): New.
8505 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8506 of defunct msp430_nonsubreg_operand.
8507 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8508
8509 2019-10-15 Richard Biener <rguenther@suse.de>
8510
8511 PR tree-optimization/91929
8512 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8513 (get_or_alloc_expr_for_name): Initialize it.
8514 (get_or_alloc_expr_for_constant): Likewise.
8515 (phi_translate_1): Copy it.
8516 (create_expression_by_pieces): Use the original location
8517 of the expression for the inserted stmt.
8518 (compute_avail): Record the location of the stmt for the
8519 expressions created.
8520
8521 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8522
8523 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8524 before using tree_to_uhwi.
8525
8526 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8527
8528 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8529
8530 2019-10-15 Richard Biener <rguenther@suse.de>
8531
8532 PR tree-optimization/92094
8533 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8534 do not adjust the reduction definition def type.
8535 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8536 defines the latch argument of the PHI.
8537
8538 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8539
8540 PR target/92035
8541 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8542 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8543 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8544 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8545 _mm_maskz_roundscale_round_sd): New intrinsics.
8546 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8547 __builtin_ia32_rndscales?_mask_round builtins instead of
8548 __builtin_ia32_rndscales?_round.
8549 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8550 __builtin_ia32_rndscalesd_round): Remove.
8551 (__builtin_ia32_rndscaless_mask_round,
8552 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8553 * config/i386/sse.md
8554 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8555 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8556 ... this, adjust and add subst atrributes to make it maskable.
8557
8558 2019-10-15 Richard Biener <rguenther@suse.de>
8559
8560 PR middle-end/92046
8561 * common.opt (fallow-store-data-races): New.
8562 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8563 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8564 * doc/invoke.texi (fallow-store-data-races): Document.
8565 (--param allow-store-data-races): Remove docs.
8566 * opts.c (default_options_table): Enable -fallow-store-data-races
8567 at -Ofast.
8568 (default_options_optimization): Do not enable --param
8569 allow-store-data-races at -Ofast.
8570 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8571 instead of PARAM_ALLOW_STORE_DATA_RACES.
8572 * tree-ssa-loop-im.c (execute_sm): Likewise.
8573
8574 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8575
8576 PR tree-optimization/92085
8577 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8578 instead of calling it unconditionally after
8579 delete_dead_or_redundant_assignment and fix indentation.
8580
8581 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8582
8583 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8584 TARGET_VFP_DOUBLE.
8585 (*fmsub<SDF:mode>4): Likewise.
8586 *fnmsub<SDF:mode>4): Likewise.
8587 (*fnmadd<SDF:mode>4): Likewise.
8588
8589 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8590
8591 * doc/tree-ssa.texi: Update renamed macro name.
8592
8593 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8594
8595 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8596 vector constants.
8597
8598 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8599
8600 * config/darwin.c: Use unsigned ints for the picbase label
8601 counters, initialise the vars explicitly.
8602 (update_pic_label_number_if_needed): Move a variable declaration
8603 to where it's needed.
8604 (machopic_output_function_base_name): Use a more strict checking
8605 assert, and and unsigned int for the picbase label counter.
8606 (machopic_get_function_picbase): Likewise.
8607
8608 2019-10-14 Richard Biener <rguenther@suse.de>
8609
8610 PR middle-end/92046
8611 * dse.c (scan_insn): Use param max_active_local_stores.
8612 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8613 based on optimization level.
8614 * loop-invariant.c (move_loop_invariants): Adjust
8615 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8616 * opts.c (default_options_optimization): Do not adjust
8617 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8618 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8619
8620 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8621
8622 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8623
8624 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8625
8626 * config/arm/arm.c (arm_option_override): Don't override sched
8627 pressure algorithm.
8628
8629 2019-10-14 Richard Biener <rguenther@suse.de>
8630
8631 PR tree-optimization/92069
8632 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8633 cycles do not set vect_nested_cycle on the latch definition.
8634
8635 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8636
8637 * function-abi.h (expr_callee_abi): Declare.
8638 * function-abi.cc (expr_callee_abi): New function.
8639
8640 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8641
8642 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8643 into [1,MAX].
8644 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8645 non-zero being represented as [1,MAX].
8646
8647 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8648
8649 * tree-sra.c (dump_access): Add missing braces.
8650
8651 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8652
8653 * config/darwin.c (machopic_indirection_name): Rework the
8654 function to emit linker-visible symbols only for indirections
8655 in the data section. Clean up the code and update comments.
8656
8657 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8658
8659 * config/darwin.c (machopic_indirect_data_reference): Remove
8660 redundant code.
8661
8662 2019-10-13 Nathan Sidwell <nathan@acm.org>
8663
8664 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8665
8666 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8667
8668 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8669 c99_runtime.
8670
8671 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8672
8673 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8674 so non-virutal are before virutals.
8675 (output_function): Avoid body modifications.
8676
8677 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8678
8679 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8680 %r22. Load function address before global pointer.
8681 (pa_attr_length_indirect_call): Adjust length of inline versions of
8682 $$dyncall.
8683 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8684 before normal cases. Update inline $$dyncall sequences to preserve
8685 function descriptor address in register %r22.
8686 (TRAMPOLINE_CODE_SIZE): Adjust.
8687 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8688 register %r22 contains trampoline address.
8689 (pa_trampoline_init): Adjust offsets.
8690 (pa_trampoline_adjust_address): Likewise.
8691 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8692
8693 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8694
8695 PR target/67183
8696 * config/darwin.c (machopic_indirection): New field to flag
8697 non-lazy-symbol-pointers in the data section.
8698 (machopic_indirection_name): Compute if an indirection should
8699 appear in the data section.
8700 (machopic_output_data_section_indirection): New callback split
8701 from machopic_output_indirection.
8702 (machopic_output_stub_indirection): Likewise.
8703 (machopic_output_indirection): Retain the code for non-lazy
8704 symbol pointers in their regular section.
8705 (machopic_finish): Use the new callbacks to order the indirection
8706 output.
8707
8708 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8709
8710 * config/darwin-protos.h (machopic_finish): Delete.
8711 * config/darwin.c (machopic_finish): Make static.
8712
8713 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8714
8715 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8716 sections when building kernel extension code.
8717
8718 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8719
8720 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8721 later standard."
8722
8723 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8724
8725 * config/pa/pa.c (pa_option_override): Remove trailing comma
8726 from warning.
8727
8728 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8729
8730 PR middle-end/92063
8731 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8732 <case VEC_COND_EXPR>: Return false with *handled = false.
8733 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8734 recursing on the first operand.
8735 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8736 instead of tree_could_trap_p.
8737 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8738
8739 2019-10-11 Jim Wilson <jimw@sifive.com>
8740
8741 PR rtl-optimization/91860
8742 * combine.c (subst): If new_rtx is a constant, also check for
8743 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8744
8745 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8746
8747 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8748 INTVAL when calling store_bit_field.
8749
8750 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8751
8752 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8753 size.
8754
8755 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8756
8757 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8758 vectorizable_live_operation.
8759 (vectorizable_live_operation): Adjust parameters.
8760 * tree-vect-stmts.c (vect_init_vector,
8761 vect_gen_widened_results_half): Fix typo in function comment.
8762 (can_vectorize_live_stmts): Adjust function comment.
8763 Adjust parameters. Adjust call to vectorizable_live_operation.
8764 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8765 (vect_transform_stmt): Adjust function comment. Adjust call to
8766 can_vectorize_live_stmts.
8767 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8768
8769 2019-10-11 Richard Biener <rguenther@suse.de>
8770
8771 PR tree-optimization/90883
8772 PR tree-optimization/91091
8773 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8774 alias-sets both for recording VN table entries and continuing
8775 walking after translating through copies. Handle same-sized
8776 reads from SSA names by returning the plain SSA name.
8777 (eliminate_dom_walker::eliminate_stmt): Properly handle
8778 non-size precision stores in redundant store elimination.
8779
8780 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8781
8782 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8783 (ggc_collect): Dump later to not interfere with release_page dump.
8784 (ggc_trim): New function.
8785 * ggc-none.c (ggc_trim): New.
8786 * ggc.h (ggc_trim): Declare.
8787
8788 2019-10-11 Richard Biener <rguenther@suse.de>
8789
8790 PR tree-optimization/92066
8791 PR tree-optimization/92046
8792 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8793 Fix bogus cost model check.
8794
8795 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8796
8797 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8798 (LANG_HOOKS_DECLS): Add it.
8799 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8800 update comment for omp_is_optional_argument.
8801 * omp-general.c (omp_is_allocatable_or_ptr): New.
8802 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8803 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8804 Fortran's optional arguments and allocatable/pointer scalars
8805 with use_device_addr.
8806
8807 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8808
8809 PR target/77918
8810 * config/s390/2827.md: Add new opcodes.
8811 * config/s390/2964.md: Likewise.
8812 * config/s390/3906.md: Likewise.
8813 * config/s390/8561.md: Likewise.
8814 * config/s390/s390-builtins.def (s390_vfchesb): Use
8815 the new vec_cmpgev4sf_quiet_nocc.
8816 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8817 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8818 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8819 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8820 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8821 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8822 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8823 * config/s390/s390-modes.def (CCSFPS): New mode.
8824 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8825 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8826 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8827 (s390_expand_vec_compare): Use non-signaling patterns where
8828 necessary.
8829 (s390_reverse_condition): Support CCSFPS.
8830 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8831 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8832 (asm_fcmp_op): Likewise.
8833 (*smaxv2df3_vx): Use pattern for quiet comparison.
8834 (*sminv2df3_vx): Likewise.
8835 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8836 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8837 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8838 (vec_cmplt<mode>_quiet_nocc): New expander.
8839 (vec_cmpge<mode>_quiet_nocc): New pattern.
8840 (vec_cmple<mode>_quiet_nocc): New expander.
8841 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8842 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8843 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8844 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8845 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8846 (vec_cmpungt<mode>): New expander.
8847 (vec_cmpunge<mode>): Likewise.
8848 (vec_cmpuneq<mode>): Use quiet patterns.
8849 (vec_cmpltgt<mode>): Allow only on z14+.
8850 (vec_cmpordered<mode>): Use quiet patterns.
8851 (vec_cmpunordered<mode>): Likewise.
8852 (VEC_CMP_EXPAND): Add ungt and unge.
8853
8854 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8855
8856 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8857 parameter.
8858 * lto-streamer-out.c: Include tree-dfa.h.
8859 (output_cfg): Do not use cfun.
8860 (lto_prepare_function_for_streaming): New.
8861 (output_function): Do not push cfun; do not initialize loop optimizer.
8862 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8863 * passes.c (ipa_write_summaries): Use it.
8864 (ipa_write_optimization_summaries): Do not modify bodies.
8865 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8866 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8867 * tree-ssa-dse.c (pass_dse::execute): Update use of
8868 renumber_gimple_stmt_uids.
8869 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8870
8871 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8872
8873 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8874 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8875
8876 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8877
8878 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8879 macros.
8880 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8881 Also define DFP macros for these conditions.
8882 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8883 DEC128_SUBNORMAL_MIN): Do not define.
8884 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8885 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8886
8887 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8888 Sandra Loosemore <sandra@codesourcery.com>
8889
8890 PR middle-end/26241
8891 * doc/lto.texi (IPA): Reference to the IPA passes.
8892 * doc/passes.texi (Pass manager): Add node IPA passes and
8893 description for each IPA pass.
8894
8895 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8896
8897 * ipa-reference.c: Do not include splay-tree.h
8898 (reference_vars_to_consider): Turn to hash map.
8899 (get_static_name, ipa_init, analyze_function, propagate,
8900 stream_out_bitmap, ipa_reference_write_optimization_summary,
8901 ipa_reference_write_optimization_summary): Update.
8902
8903 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8904
8905 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8906
8907 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8908
8909 * config/darwin.c: Lookup Objective C metadata and force indirection
8910 for IVAR refs.
8911
8912 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8913
8914 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8915 addresses.
8916 (mem_operand_gpr): Add check for prefixed addresses.
8917 (mem_operand_ds_form): Add check for prefixed addresses.
8918 (rs6000_legitimate_offset_address_p): If we support prefixed
8919 addresses, check for a 34-bit offset instead of 16-bit.
8920 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8921 Do not allow load/store with update if the address is prefixed.
8922 (rs6000_mode_dependent_address): If we support prefixed
8923 addresses, check for a 34-bit offset instead of 16-bit.
8924
8925 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8926
8927 PR target/77918
8928 * config/s390/vector.md (vcond_comparison_operator): New
8929 predicate.
8930 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8931
8932 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8933
8934 PR 87488
8935 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8936 -D.
8937 * configure.ac (--with-documentation-root-url): New option.
8938 * configure: Regenerate.
8939 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8940 option URL, add it as a new string field of the diagnostic option.
8941 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8942 (print_option_information): If get_option_url is non-NULL, call
8943 it, and if the result is non-NULL, potentially emit an escape
8944 sequence to markup the option text with the resulting URL.
8945 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8946 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8947 example of JSON output.
8948 * opts-diagnostic.h (get_option_url): New decl.
8949 * opts.c (get_option_url): New function.
8950 * toplev.c (general_init): Initialize the get_option_url callback.
8951
8952 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8953
8954 PR 87488
8955 * common.opt (fdiagnostics-urls=): New option.
8956 (diagnostic-url.h): Add SourceInclude.
8957 (diagnostic_url_rule): New enum.
8958 * diagnostic-color.c: Include "diagnostic-url.h".
8959 (diagnostic_urls_enabled_p): New function.
8960 * diagnostic-url.h: New file.
8961 * diagnostic.c: Include "diagnostic-url.h".
8962 (diagnostic_urls_init): New function.
8963 * diagnostic.h (diagnostic_urls_init): New decl.
8964 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8965 -fdiagnostics-urls to the list.
8966 (-fdiagnostics-urls): New option.
8967 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8968 (driver::global_initializations): Call diagnostic_urls_init.
8969 * opts-global.c (init_options_once): Likewise.
8970 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8971 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8972 show_urls.
8973 (pp_begin_url): New function.
8974 (pp_end_url): New function.
8975 (selftest::test_urls): New selftest.
8976 (selftest::pretty_print_c_tests): Call it.
8977 * pretty-print.h (pretty_printer::show_urls): New field.
8978 (pp_begin_url): New decl.
8979 (pp_end_url): New decl.
8980
8981 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8982
8983 PR target/92022
8984 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8985
8986 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8987
8988 PR target/88630
8989 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8990 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8991 also for TARGET_FPU_SH4_300.
8992 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8993 TARGET_SH4_300.
8994 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8995 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8996 (*negsf2_i): Split into ...
8997 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8998 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8999 (**abssf2_i): Split into ...
9000 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9001 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9002 (*negdf2_i): Split into ...
9003 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9004 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9005 (**abssf2_i): Split into ...
9006 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9007
9008 2019-10-10 Richard Biener <rguenther@suse.de>
9009
9010 PR middle-end/92046
9011 * opts.c (finish_options): Do not influence global --params
9012 from options that are adjustable per function.
9013 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9014 Apply --param adjustment based on active cost-model.
9015 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9016 further store-sinking when vectorization or if-conversion
9017 are not enabled.
9018
9019 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9020
9021 PR middle-end/92037
9022 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9023 rather than ggc_alloc_cleared to alloc symbol table.
9024 * toplev.c (general_init): Likewise.
9025 * cgraph.h (symbol_table): Explicitly construct every field.
9026
9027 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9028
9029 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9030 (PF_Z15): ... this.
9031 * config.gcc: Add z15 as option for --with-arch and --with-tune
9032 configure switches.
9033 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9034 error reporting for unsupported builtins.
9035 * config/s390/s390-opts.h (enum processor_type): Rename
9036 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9037 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9038 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9039 Likewise.
9040 * config/s390/s390-builtins.def: Likewise.
9041 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9042 (s390_expand_builtin): Add missing check for unsupported builtins.
9043 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9044 (s390_rtx_costs): Likewise.
9045 (s390_get_sched_attrmask): Rename arch13 to z15.
9046 (s390_get_unit_mask): Likewise.
9047 (s390_is_fpd): Likewise.
9048 (s390_is_fxd): Likewise.
9049 * config/s390/s390.h (enum processor_flags): Likewise.
9050 * config/s390/s390.md: Likewise.
9051 * config/s390/vector.md: Likewise.
9052 * config/s390/vx-builtins.md: Likewise.
9053 * config/s390/s390.opt: Add z15 to processor_type value.
9054
9055 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9056
9057 PR target/91035
9058 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9059 prototype.
9060 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9061 ("split_stack_data", "split_stack_call")
9062 ("split_stack_call_<mode>", "split_stack_cond_call")
9063 ("split_stack_cond_call_<mode>"): Remove.
9064 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9065 insn definition.
9066 * config/s390/s390.c (s390_output_split_stack_data): New function.
9067 (s390_expand_split_stack_prologue): Use the merged expander.
9068
9069 2019-10-09 Martin Sebor <msebor@redhat.com>
9070
9071 PR tree-optimization/90879
9072 * builtins.c (check_access): Avoid using maxbound when null.
9073 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9074 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9075 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9076 conditional.
9077 (get_range_strlen): Overwrite initial maxbound when non-null.
9078 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9079 changes.
9080 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9081 (used_only_for_zero_equality): New function.
9082 (handle_builtin_memcmp): Call it.
9083 (determine_min_objsize): Return an integer instead of tree.
9084 (get_len_or_size, strxcmp_eqz_result): New functions.
9085 (maybe_warn_pointless_strcmp): New function.
9086 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9087 between a longer string and a smaller array.
9088 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9089
9090 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9091
9092 * config/darwin.c (darwin_override_options): Make the check for
9093 Objective-C ABI version more specific for 64bit code.
9094
9095 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9096
9097 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9098 indicate that the new symbol is an indirection.
9099 (machopic_indirect_call_target): Likewise.
9100 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9101 (MACHO_SYMBOL_INDIRECTION_P): New.
9102 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9103
9104 2019-10-08 Jason Merrill <jason@redhat.com>
9105
9106 * doc/invoke.texi: Document -fconcepts-ts.
9107
9108 2019-10-09 Richard Biener <rguenther@suse.de>
9109
9110 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9111 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9112
9113 2019-10-08 Richard Biener <rguenther@suse.de>
9114
9115 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9116 (_stmt_vec_info::force_single_cycle): Likewise.
9117 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9118 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9119 * tree-vect-loop.c (vectorizable_reduction): Set
9120 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9121 (vect_transform_reduction): Use them to remove redundant code.
9122 (vect_transform_cycle_phi): Likewise.
9123
9124 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9125
9126 PR tree-optimization/90836
9127 * match.pd (popcount): New pattern.
9128
9129 2019-10-08 Martin Sebor <msebor@redhat.com>
9130
9131 PR middle-end/92026
9132 PR middle-end/92014
9133 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9134 again once nbytes has been set. Set the access size when not yet set.
9135
9136 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9137
9138 * config/darwin.c (machopic_select_section): Remove dead code for
9139 old Objective-C section selection method, replace with unreachable.
9140
9141 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9142
9143 * config/darwin.c (machopic_indirect_data_reference): Check for
9144 required indirections before making direct access to defined
9145 values.
9146 (machopic_output_indirection): Place the indirected pointes for
9147 required indirections into the non-lazy symbol pointers section.
9148 (darwin_encode_section_info):
9149 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9150 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9151
9152 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9153
9154 PR target/91994
9155 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9156 instead of ALL_SSE_REG to check if function call preserves some
9157 256-bit SSE registers.
9158
9159 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9160
9161 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9162 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9163 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9164
9165 2019-10-08 Richard Biener <rguenther@suse.de>
9166
9167 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9168 (_stmt_vec_info::is_reduc_info): Add.
9169 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9170 (vectorizable_condition): Remove.
9171 (vectorizable_shift): Likewise.
9172 (vectorizable_reduction): Adjust.
9173 (info_for_reduction): New.
9174 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9175 (vect_analyze_scalar_cycles_1): ... here.
9176 (vect_analyze_loop_operations): Adjust.
9177 (needs_fold_left_reduction_p): Simplify for single caller.
9178 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9179 for nested cycles not part of double reductions.
9180 (vect_model_reduction_cost): Pass in the reduction type.
9181 (info_for_reduction): New function.
9182 (vect_create_epilog_for_reduction): Use it, access reduction
9183 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9184 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9185 (vectorize_fold_left_reduction): Remove pointless assert.
9186 (vectorizable_reduction): Analyze the full reduction when
9187 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9188 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9189 stmt code-generation to vectorizable_* in most cases. Verify
9190 code-generation only for cases handled by
9191 vect_transform_reductuon.
9192 (vect_transform_reduction): Use info_for_reduction to get at
9193 reduction meta. Simplify.
9194 (vect_transform_cycle_phi): Likewise.
9195 (vectorizable_live_operation): Likewise.
9196 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9197 at the PHI node for STMT_VINFO_REDUC_TYPE.
9198 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9199 longer necessary code.
9200 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9201 (vectorizable_condition): Likewise. Get at reduction related
9202 info via info_for_reduction.
9203 (vect_analyze_stmt): Adjust.
9204 (vect_transform_stmt): Likewise.
9205 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9206 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9207
9208 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9209
9210 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9211 -fno-fp-int-builtin-inexact default for C2X.
9212
9213 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9214 Richard Biener <rguenther@suse.de>
9215
9216 PR tree-optimization/91532
9217 * tree-if-conv.c: Include tree-ssa-dse.h.
9218 (ifcvt_local_dce): Change param from bb to loop,
9219 and call dse_classify_store.
9220 (tree_if_conversion): Pass loop instead of loop->header as arg
9221 to ifcvt_local_dce.
9222 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9223 (delete_dead_or_redundant_assignment): Remove static qualifier from
9224 declaration, and add prototype in tree-ssa-dse.h.
9225 (dse_store_status): Move to tree-ssa-dse.h.
9226 (dse_classify_store): Remove static qualifier and add new tree param
9227 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9228 * tree-ssa-dse.h: New header.
9229
9230 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9231
9232 * config/darwin.c (machopic_output_indirection): Don't put
9233 hidden symbol indirections into the .data section, use the
9234 non-lazy symbol pointers section as normal.
9235 (darwin_encode_section_info): Record if a symbol is hidden.
9236 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9237 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9238
9239 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9240
9241 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9242 predicates instead of accessing bits directly.
9243 (machopic_indirect_call_target): Likewise.
9244 (machopic_output_indirection): Likewise.
9245 (darwin_encode_section_info): Improve description. Use renamed
9246 symbol flags. Use predicate macros for variables and functions.
9247 * config/darwin.h:
9248 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9249 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9250 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9251 (MACHO_SYMBOL_VARIABLE_P): New.
9252 (MACHO_SYMBOL_DEFINED_P):New.
9253 (MACHO_SYMBOL_STATIC_P): New.
9254 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9255 (SYMBOL_FLAG_SUBT_DEP): New.
9256 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9257
9258 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9259
9260 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9261 (msp430_expand_epilogue): Likewise.
9262 * config/msp430/predicates.md: Likewise.
9263 * config/msp430/msp430.md: Likewise.
9264 Replace blocks of 8 spaces with tabs.
9265
9266 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9267
9268 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9269 * config/msp430/msp430.c (msp430_split_addsi): New.
9270 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9271 a block of C code for splitting addsi.
9272
9273 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9274
9275 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9276 ix86_expand_rounddf_32): Reorder functions.
9277 * config/i386/i386-protos.h: Update.
9278
9279 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9280
9281 * config.in: Regenerate.
9282 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9283 Add new "Yx" constraint.
9284 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9285 function.
9286 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9287 prototype.
9288 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9289 code/data region to be selected in the small memory model.
9290 (msp430_section_attr): Don't warn if the "section" and "lower"
9291 attributes are used together.
9292 (msp430_handle_generic_attribute): Likewise.
9293 (msp430_var_in_low_mem): New function.
9294 (TARGET_ENCODE_SECTION_INFO): Define.
9295 (msp430_encode_section_info): New function.
9296 (gen_prefix): Return early in the small memory model.
9297 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9298 ".lower" prefix if -m{code,data}-region=lower have been passed.
9299 (msp430_output_aligned_decl_common): Emit common symbols when
9300 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9301 set.
9302 (TARGET_ASM_FILE_END): Define.
9303 (msp430_file_end): New function.
9304 (msp430_do_not_relax_short_jumps): Allow relaxation when
9305 function will be in the lower region.
9306 (msp430_op_not_in_high_mem): New function.
9307 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9308 the 'X' operand selector.
9309 Clarify comment for 'x' operand selector.
9310 * config/msp430/msp430.h (LINK_SPEC): Propagate
9311 -m{code,data}-region to the linker via spec function
9312 msp430_propagate_region_opt.
9313 (msp430_propagate_region_opt): New prototype.
9314 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9315 (SYMBOL_FLAG_LOW_MEM): Define.
9316 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9317 selector.
9318 (zero_extendqihi2): Fix operand number used by "%X" selector.
9319 (zero_extendqisi2): Likewise.
9320 (zero_extendhisi2): Likewise.
9321 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9322 (movhi): Likewise.
9323 (addqi3): Likewise.
9324 (addhi3): Likewise.
9325 (addsi3): Likewise.
9326 (addhi3_cy): Likewise.
9327 (addchi4_cy): Likewise.
9328 (subqi3): Likewise.
9329 (subhi3): Likewise.
9330 (subsi3): Likewise.
9331 (bic<mode>3): Likewise.
9332 (and<mode>3): Likewise.
9333 (ior<mode>3): Likewise.
9334 (xor<mode>3): Likewise.
9335 (slli_1): Add missing "%X" operand selector.
9336 (slll_1): Likewise.
9337 (slll_2): Likewise.
9338 (srai_1): Likewise.
9339 (sral_1): Likewise.
9340 (sral_2): Likewise.
9341 (srli_1): Likewise.
9342 (srll_1): Likewise.
9343 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9344 selector.
9345 (cbranchhi4_real): Likewise.
9346 (cbranchqi4_reversed): Likewise.
9347 (cbranchhi4_reversed): Likewise.
9348 (*bitbranch<mode>4): Likewise.
9349 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9350 * config/msp430/msp430.opt (mcode-region=): Set default to
9351 MSP430_REGION_LOWER. Improve docstring.
9352 (mdata-region=): Likewise.
9353 (muse-lower-region-prefix): New option.
9354 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9355 mdata-region=none multilib.
9356 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9357 mdata-region=none multilib.
9358 MULTILIB_EXCEPTIONS: Remove.
9359 MULTILIB_REQUIRED: Define.
9360 * configure: Regenerate.
9361 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9362 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9363 * doc/extend.texi: Clarify comment for {upper,lower,either}
9364 function attributes.
9365 Add separate description for "lower" variable attribute.
9366
9367 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9368
9369 PR target/77918
9370 * optabs-tree.c (vcond_icode_p): New function.
9371 (vcond_eq_icode_p): Likewise.
9372 (expand_vec_cond_expr_p): Use vcond_icode_p and
9373 vcond_eq_icode_p.
9374 * optabs.c (can_vcond_compare_p): New function.
9375 * optabs.h (can_vcond_compare_p): Likewise.
9376
9377 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9378
9379 PR target/77918
9380 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9381 caller passes a non-trapping condition.
9382 (is_gimple_condexpr): Allow trapping conditions.
9383 (is_gimple_condexpr_1): New helper function.
9384 (is_gimple_condexpr_for_cond): New function, acts like old
9385 is_gimple_condexpr.
9386 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9387 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9388 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9389 * gimplify.c (gimplify_cond_expr): Use
9390 is_gimple_condexpr_for_cond.
9391 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9392 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9393 VEC_COND_EXPR.
9394 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9395 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9396 is_gimple_condexpr_for_cond, remove pointless tmp check
9397 (forward_propagate_into_cond): Remove pointless tmp check.
9398
9399 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9400
9401 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9402 match that of other gsi_next_* functions. Adjust the comment.
9403 (gsi_start_nonvirtual_phis): New function.
9404 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9405 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9406
9407 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9408
9409 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9410 setjmp situation here. Fix a verb's ending: "the exact variables or
9411 elements for which there are warnings depends" -> "... depend".
9412
9413 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9414
9415 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9416
9417 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9418
9419 * ipa-prop.c (ipa_vr::nonzero_p): New.
9420 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9421 non-zero range.
9422 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9423 * tree-vrp.c (range_has_numeric_bounds_p): New.
9424 (range_int_cst_p): Use range_has_numeric_bounds_p.
9425 (get_range_op_handler): New.
9426 (supported_types_p): New.
9427 (defined_ranges_p): New.
9428 (drop_undefines_to_varying): New.
9429 (range_fold_binary_symbolics_p): New.
9430 (range_fold_unary_symbolics_p): New.
9431 (range_fold_unary_expr): Extract out into above functions.
9432 (range_fold_binary_expr): Same.
9433 (value_range_base::normalize_addresses): New.
9434 (value_range_base::normalize_symbolics): Normalize addresses.
9435 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9436
9437 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9438
9439 * tree-vrp.c (value_range_base::singleton_p): Use
9440 value_range_base::num_pairs instead of vrp_val_is* to check
9441 if a range has one sub-range.
9442
9443 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9444
9445 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9446 DEF is not a true earlyclobber but is tied to a specific input
9447 operand, and so is effectively earlyclobber wrt inputs that have
9448 different values.
9449 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9450
9451 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9452
9453 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9454 (pod_mode): Mark operators likewise.
9455 (scalar_int_mode): Mark non-default constructors and
9456 operators with CONSTEXPR.
9457 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9458 (fixed_size_mode): Likewise.
9459
9460 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9461
9462 PR target/91994
9463 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9464 and wrap the unspec_volatile in a parallel.
9465 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9466 the unspec_volatile.
9467 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9468 unspec_volatile to be wrapped in a parallel.
9469 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9470 (ix86_add_reg_usage_to_vzerouppers): New functions.
9471 (rest_of_handle_insert_vzeroupper): Use them to add register
9472 usage information to the vzeroupper instructions.
9473
9474 2019-10-07 Richard Biener <rguenther@suse.de>
9475
9476 PR tree-optimization/91975
9477 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9478 handle invariants.
9479
9480 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9481
9482 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9483 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9484
9485 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9486
9487 * config/darwin.c (darwin_override_options): Adjust objective-c
9488 ABI version error messages to avoid punctuation and contracted
9489 negations.
9490
9491 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9492
9493 * ipa-inline.c: Fix type; compute size rather than self_size
9494 for size of caller function.
9495
9496 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9497
9498 PR target/59888
9499 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9500 choose const_data section for constants with relocations.
9501 (machopic_select_section): Pass relocation flag to
9502 darwin_rodata_section ().
9503
9504 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9505
9506 PR tree-optimization/91734
9507 * generic-match-head.c: Include fold-const-call.h.
9508 * match.pd (sqrt(x) cmp c): Check the boundary value and
9509 in case inexact computation of c*c affects comparison of the boundary,
9510 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9511 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9512 for -frounding-math. For c2, try the next smaller or larger floating
9513 point constant depending on comparison code and if it has the same
9514 sqrt as c2, use it instead of c2.
9515
9516 2019-10-04 Martin Sebor <msebor@redhat.com>
9517
9518 PR middle-end/91977
9519 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9520 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9521 uninitialized objects.
9522
9523 2019-10-04 Martin Sebor <msebor@redhat.com>
9524
9525 * builtins.c (compute_objsize): Add an argument.
9526 * tree-object-size.c (addr_object_size): Same.
9527 (compute_builtin_object_size): Same.
9528 * tree-object-size.h (compute_builtin_object): Same.
9529
9530 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9531
9532 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9533
9534 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9535
9536 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9537
9538 2019-10-04 Martin Jambor <mjambor@suse.cz>
9539
9540 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9541 fntype when switching to calling memcpy instead of memset.
9542
9543 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9544
9545 * hash-table.h (hash_table::empty_slow): Don't assign
9546 size_t values to int variables.
9547
9548 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9549
9550 * expr.c (convert_mode_scalar): Remove shadowing local var.
9551 (emit_block_move): Rename local vars.
9552 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9553 (emit_push_insn): Rename local vars.
9554 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9555 shadowing local vars.
9556 (store_constructor): Remove shadowing local vars. Rename local var.
9557 (store_field, expand_cond_expr_using_cmove,
9558 expand_expr_real_2): Remove shadowing local vars.
9559 (expand_expr_real_1,
9560 do_store_flag): Remove shadowing local vars. Rename local vars.
9561
9562 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9563
9564 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9565
9566 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9567
9568 * genmatch.c (commutate): Rename local var.
9569 (lower_cond): Reuse local var.
9570 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9571 dt_operand::gen, dt_operand::gen_gimple_expr,
9572 dt_simplify::gen): Add a param. Rename generated vars.
9573 (decision_tree::insert_operand,
9574 (capture_info::walk_match, capture_info::walk_result,
9575 capture_info::walk_c_expr): Rename local vars.
9576 (expr::gen_transform): Rename generated vars.
9577 Use snprintf. Rename local vars.
9578 (capture::gen_transform, dt_operand::get_name,
9579 dt_operand::gen_opname): Rename generated vars.
9580 (write_predicate): Adjust call to gen_kids.
9581 (parser::get_internal_capture_id): Rename generated vars.
9582 (parser::parse_expr): Rename local vars.
9583 (parser::parse_if): Remove local var.
9584 (parser::parse_pattern, add_operator): Rename local vars.
9585
9586 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9587
9588 * builtins.def (DEF_C2X_BUILTIN): New macro.
9589 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9590 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9591 (strndup): Use DEF_C2X_BUILTIN.
9592 * coretypes.h (enum function_class): Add function_c2x_misc.
9593
9594 2019-10-04 Maya Rashish <coypu@sdf.org>
9595
9596 * ira-color.c (update_costs_from_allocno): Call
9597 ira_init_register_move_cost_if_necessary.
9598
9599 2019-10-04 Jeff Law <law@redhat.com>
9600
9601 * config/h8300/h8300.md (cpymemsi): Disable.
9602 (movmd, movmd_internal_<mode>, movstr, movsd):
9603 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9604 (movmd splitter, movsd splitter): Likewise.
9605
9606 * range-op.cc (range_tests): Avoid two tests when ints and
9607 shorts are the same size.
9608
9609 2019-10-04 Richard Biener <rguenther@suse.de>
9610
9611 PR lto/91968
9612 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9613 BLOCK_VARS.
9614
9615 2019-10-04 Richard Biener <rguenther@suse.de>
9616
9617 PR tree-optimization/91982
9618 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9619 against EXTRACT_LAST_REDUCTION.
9620 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9621
9622 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9623
9624 * range-op.o (value_range_from_overflowed_bounds): Rename from
9625 adjust_overflow_bound.
9626 (value_range_with_overflow): Rename from
9627 create_range_with_overflow.
9628 (create_possibly_reversed_range): Adjusted for above renames.
9629 (operator_*::wi_fold): Same.
9630 (cross_product_operator::wi_cross_productor): Same.
9631
9632 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9633
9634 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9635 -Wshadow=compatible-local): Fix description.
9636 Add an example where -Wshadow=compatible-local does not
9637 warn.
9638
9639 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9640
9641 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9642
9643 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9644 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9645
9646 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9647
9648 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9649 can_move_by_pieces issue.
9650
9651 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9652
9653 PR target/87243
9654 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9655 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9656 is available and the user has not set one on the command line.
9657
9658 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9659
9660 PR target/91769
9661 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9662 instead of REGNO equality check on addr.reg.
9663
9664 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9665
9666 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9667 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9668 * doc/invoke.texi (inline-heuristics-hint-percent,
9669 inline-heuristics-hint-percent-O2): Document.
9670 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9671 hint attribute.
9672 (can_inline_edge_by_limits_p): Use it.
9673
9674 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9675
9676 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9677 to print CONST_DOUBLEs.
9678
9679 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9680
9681 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9682 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9683 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9684
9685 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9686
9687 * Makefile.in (OBJS): Add range.o and range-op.o.
9688 Remove wide-int-range.o.
9689 * function-tests.c (test_ranges): New.
9690 (function_tests_c_tests): Call test_ranges.
9691 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9692 range_fold_unary_expr instead of extract_range_from_unary_expr.
9693 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9694 * range-op.cc: New file.
9695 * range-op.h: New file.
9696 * range.cc: New file.
9697 * range.h: New file.
9698 * selftest.h (range_tests): New prototype.
9699 * ssa.h: Include range.h.
9700 * tree-vrp.c (value_range_base::value_range_base): New
9701 constructors.
9702 (value_range_base::singleton_p): Do not call
9703 ranges_from_anti_range until sure we will need to.
9704 (value_range_base::type): Rename gcc_assert to
9705 gcc_checking_assert.
9706 (vrp_val_is_max): New argument.
9707 (vrp_val_is_min): Same.
9708 (wide_int_range_set_zero_nonzero_bits): Move from
9709 wide-int-range.cc.
9710 (extract_range_into_wide_ints): Remove.
9711 (extract_range_from_multiplicative_op): Remove.
9712 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9713 from extract_range_from_binary_expr.
9714 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9715 from extract_range_from_binary_expr.
9716 (extract_range_from_binary_expr): Remove.
9717 (normalize_for_range_ops): New.
9718 (range_fold_binary_expr): New.
9719 (range_fold_unary_expr): New.
9720 (value_range_base::num_pairs): New.
9721 (value_range_base::lower_bound): New.
9722 (value_range_base::upper_bound): New.
9723 (value_range_base::upper_bound): New.
9724 (value_range_base::contains_p): New.
9725 (value_range_base::invert): New.
9726 (value_range_base::union_): New.
9727 (value_range_base::intersect): New.
9728 (range_compatible_p): New.
9729 (value_range_base::operator==): New.
9730 (determine_value_range_1): Call range_fold_*expr instead of
9731 extract_range_from_*expr.
9732 * tree-vrp.h (class value_range_base): Add new constructors.
9733 Add methods for union_, intersect, operator==, contains_p,
9734 num_pairs, lower_bound, upper_bound, invert.
9735 (vrp_val_is_min): Add handle_pointers argument.
9736 (vrp_val_is_max): Same.
9737 (extract_range_from_unary_expr): Remove.
9738 (extract_range_from_binary_expr): Remove.
9739 (range_fold_unary_expr): New.
9740 (range_fold_binary_expr): New.
9741 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9742 range_fold_binary_expr instead of extract_range_from_binary_expr.
9743 (vr_values::extract_range_basic): Same.
9744 (vr_values::extract_range_from_unary_expr): Call
9745 range_fold_unary_expr instead of extract_range_from_unary_expr.
9746 * wide-int-range.cc: Remove.
9747 * wide-int-range.h: Remove.
9748
9749 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9750
9751 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9752 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9753 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9754 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9755 macro.
9756
9757 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9758
9759 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9760 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9761 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9762 * glimits.h: Likewise.
9763
9764 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9765
9766 PR rtl-optimization/91976
9767 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9768 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9769 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9770
9771 2019-10-02 Martin Sebor <msebor@redhat.com>
9772
9773 PR tree-optimization/80936
9774 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9775
9776 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9777
9778 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9779 instead of reg_class_contents[ALL_REGS].
9780
9781 2019-09-30 Jason Merrill <jason@redhat.com>
9782
9783 Add some hash_map_safe_* functions like vec_safe_*.
9784 * hash-map.h (default_hash_map_size): New variable.
9785 (create_ggc): Use it as default argument.
9786 (hash_map_maybe_create, hash_map_safe_get)
9787 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9788
9789 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9790
9791 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9792 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9793 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9794 (can_inline_edge_by_limits_p): Use it.
9795 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9796 (want_inline_small_function_p): Use O2 bounds.
9797 (edge_badness): LIkewise.
9798 * opts.c (default_options): Add OPT_finline_functions.
9799 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9800 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9801 New parameters.
9802 * doc/invoke.texi (-finline-functions): Update documentation.
9803 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9804 inline-min-speedup-O2): Document.
9805 (early-inlining-insns-O2): Simplify docs.
9806
9807 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9808
9809 PR rtl-optimization/87047
9810 * ifcvt.c (average_cost): New static function. Use it...
9811 (noce_process_if_block): ... here.
9812
9813 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9814
9815 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9816 * config/rs6000/rs6000-string.c (expand_block_move): Add
9817 might_overlap parm.
9818 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9819 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9820
9821 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9822
9823 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9824 (expand_builtin_memcpy): Use might_overlap parm.
9825 (expand_builtin_mempcpy_args): Use might_overlap parm.
9826 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9827 (expand_builtin_memory_copy_args): Add might_overlap parm.
9828 * expr.c (emit_block_move_via_cpymem): Rename to
9829 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9830 or movmem optab as appropriate.
9831 (emit_block_move_hints): Add might_overlap parm, do the right
9832 thing for might_overlap==true.
9833 * expr.h (emit_block_move_hints): Update prototype.
9834
9835 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9836
9837 * tree-eh.h (unsplit_eh_edges): Declare.
9838 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9839 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9840 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9841 (struct store_immediate_info): Add lp_nr field.
9842 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9843 initialize lp_nr with it.
9844 (struct merged_store_group): Add lp_nr and only_constants fields.
9845 (merged_store_group::merged_store_group): Initialize them.
9846 (merged_store_group::can_be_merged_into): Deal with them.
9847 (pass_store_merging): Rename terminate_and_release_chain into
9848 terminate_and_process_chain.
9849 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9850 renaming and remove useless assertions.
9851 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9852 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9853 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9854 instead of always recomputing it and compare lp_nr.
9855 (imm_store_chain_info::output_merged_store): If the group is in an
9856 active EH region, register new stores if they can throw. Moreover,
9857 if the insertion has created new basic blocks, adjust the PHI nodes
9858 of the post landing pad.
9859 (imm_store_chain_info::output_merged_stores): If the original stores
9860 are in an active EH region, deregister them.
9861 (lhs_valid_for_store_merging_p): Prettify.
9862 (adjust_bit_pos): New function extracted from...
9863 (mem_valid_for_store_merging): ...here. Use it for the base address
9864 and also for the offset if it is the addition of a constant.
9865 (lp_nr_for_store): New function.
9866 (pass_store_merging::process_store): Change return type to bool.
9867 Call lp_nr_for_store to initialize the store info. Propagate the
9868 return status of various called functions to the return value.
9869 (store_valid_for_store_merging_p): New predicate.
9870 (enum basic_block_status): New enumeration.
9871 (get_status_for_store_merging): New function.
9872 (pass_store_merging::execute): If the function can throw and catch
9873 non-call exceptions, unsplit the EH edges on entry and clean up the
9874 CFG on exit if something changed. Call get_status_for_store_merging
9875 for every basic block and keep the chains open across basic blocks
9876 when possible. Terminate and process open chains at the end, if any.
9877
9878 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9879
9880 * reginfo.c (globalize_reg): Fix shadowed variable in
9881 function_abis walk.
9882
9883 2019-10-02 Martin Jambor <mjambor@suse.cz>
9884
9885 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9886 do not compute some stuff when set.
9887 (cgraph_node::create_edge): Likewise.
9888 (cgraph_node::create_indirect_edge): Renamed last parameter to
9889 coning_p and flipped its meaning, don't even calculate
9890 inline_failed when set.
9891 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9892 (symbol_table::::create_edge): Likewise.
9893 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9894 the default value.
9895 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9896 call graph edge creating functions.
9897
9898 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9899
9900 PR c++/91222
9901 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9902 namespace types.
9903
9904 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9905
9906 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9907
9908 2019-10-02 Richard Biener <rguenther@suse.de>
9909
9910 * tree-vectorizer.h (vect_transform_reduction): Declare.
9911 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9912 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9913 stmt transform to ...
9914 (vect_transform_reduction): ... this.
9915
9916 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9917
9918 * omp-low.c (lower_omp_target): Dereference optional argument
9919 to work with the right pointer.
9920
9921 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9922
9923 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9924 false.
9925 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9926 * langhooks.h (omp_is_optional_argument): New hook.
9927 * omp-general.c (omp_is_optional_argument): New.
9928 * omp-general.h (omp_is_optional_argument): New declaration.
9929 * omp-low.c (lower_omp_target): Create temporary for received value
9930 and take the address for new_var if the original variable was a
9931 DECL_BY_REFERENCE. Use size of referenced object when a
9932 pass-by-reference optional argument used as argument to firstprivate.
9933
9934 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9935
9936 PR tree-optimization/91940
9937 * tree-vect-patterns.c: Include tree-vector-builder.h and
9938 vec-perm-indices.h.
9939 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9940 unpromoting the argument back to uint16_t, or by converting into a
9941 rotate, or into shifts plus ior.
9942
9943 2019-10-02 Richard Biener <rguenther@suse.de>
9944
9945 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9946 New.
9947 (vect_transform_cycle_phi): Declare.
9948 * tree-vect-stmts.c (vect_transform_stmt): Call
9949 vect_transform_cycle_phi.
9950 * tree-vect-loop.c (vectorizable_reduction): Split out
9951 PHI transformation stage to ...
9952 (vect_transform_cycle_phi): ... here.
9953
9954 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9955
9956 PR middle-end/91957
9957 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9958 eliminable registers.
9959 (make_hard_regno_live): Likewise, and don't make them live.
9960
9961 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9962
9963 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9964 Call pp_emit_prefix.
9965 (layout::print_source_line): Likewise.
9966 (layout::start_annotation_line): Likewise.
9967 (diagnostic_show_locus): Remove call to temporarily clear the
9968 prefix.
9969 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9970 interaction of pp_set_prefix with rulers and fix-it hints.
9971 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9972 prefix when calling diagnostic_show_locus, rather than destroying
9973 it afterwards.
9974 (print_parseable_fixits): Temporarily clear prefix.
9975 * pretty-print.c (pp_format): Save and restore line_length, rather
9976 than assuming it is zero.
9977 (pp_output_formatted_text): Remove assertion that line_length is
9978 zero.
9979
9980 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9981
9982 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9983 Rename to ...
9984 (nonoverlapping_refs_since_match_p): ... this; handle also
9985 ARRAY_REFs.
9986 (alias_stats): Update stats.
9987 (dump_alias_stats): Likewise.
9988 (cheap_array_ref_low_bound): New function.
9989 (aliasing_matching_component_refs_p): Add partial_overlap
9990 argument;
9991 pass it to nonoverlapping_refs_since_match_p.
9992 (aliasing_component_refs_walk): Update call of
9993 aliasing_matching_component_refs_p
9994 (nonoverlapping_array_refs_p): New function.
9995 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9996 indirect_refs_may_alias_p): Update calls of
9997 nonoverlapping_refs_since_match_p.
9998
9999 2019-10-01 Maya Rashish <coypu@sdf.org>
10000
10001 PR target/85401
10002 * ira-color.c (allocno_copy_cost_saving): Call
10003 ira_init_register_move_cost_if_necessary.
10004
10005 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10006
10007 * Makefile.in (gnat_install_lib): New variable.
10008 * configure.ac: Substitute it.
10009 * configure: Regenerate.
10010
10011 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10012
10013 PR lto/91222
10014 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10015 is matched with non-C++ type
10016
10017 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10018
10019 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10020 after local CSE.
10021
10022 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10023
10024 * doc/invoke.texi (early-inlining-insns-O2): Document.
10025 (early-inlining-insns): Update.
10026 * params.def (early-inlining-insns-O2): New bound.
10027 (early-inlining-insns): Update docs.
10028 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10029
10030 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10031
10032 PR target/88562
10033 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10034 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10035 a memory access insn.
10036
10037 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10038
10039 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10040 vpmsumd.
10041
10042 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10043
10044 PR target/77918
10045 * config/s390/s390.c (s390_expand_vec_compare): Use
10046 gen_vec_cmpordered and gen_vec_cmpunordered.
10047 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10048 vec_unordered): Delete.
10049 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10050 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10051 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10052 (vec_cmp<code>): Generic dispatcher.
10053
10054 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10055
10056 PR target/77918
10057 * config/s390/vector.md (V_HW): Add V1TI in order to make
10058 vcond$a$b generate vcondv1tiv1tf.
10059
10060 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10061
10062 PR rtl-optimization/91948
10063 * ira-build.c (ira_create_allocno): Initialize
10064 ALLOCNO_CROSSED_CALLS_ABIS.
10065 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10066 than regno to ira_need_caller_save_p.
10067
10068 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10069
10070 * config/i386/i386-options.c
10071 (ix86_recompute_optlev_based_flags): New, moved out of...
10072 (ix86_option_override_internal): ... this. Call it.
10073 (ix86_override_options_after_change): Call it here too.
10074
10075 PR debug/91507
10076 * dwarf2out.c (override_type_for_decl_p): New.
10077 (gen_variable_die): Use it.
10078
10079 2019-10-01 Richard Biener <rguenther@suse.de>
10080
10081 * tree-vect-loop.c (vectorizable_reduction): Move variables
10082 to where they are used.
10083
10084 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10085
10086 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10087 (build_def_use): Use PC instead of CC0 in a comment.
10088
10089 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10090
10091 * rtl.def (CLOBBER_HIGH): Delete.
10092 * doc/rtl.texi (clobber_high): Remove documentation.
10093 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10094 (reg_is_clobbered_by_clobber_high): Delete.
10095 (gen_hard_reg_clobber_high): Likewise.
10096 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10097 * cfgexpand.c (expand_gimple_stmt): Likewise.
10098 * combine-stack-adj.c (single_set_for_csa): Likewise.
10099 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10100 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10101 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10102 * cse.c (invalidate_reg): Remove clobber_high parameter.
10103 (invalidate): Update call accordingly.
10104 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10105 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10106 (count_reg_usage, insn_live_p): Likewise.
10107 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10108 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10109 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10110 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10111 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10112 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10113 (mark_nonreg_stores_2): Likewise.
10114 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10115 (df_get_call_refs): Likewise.
10116 * dwarf2out.c (mem_loc_descriptor): Likewise.
10117 * emit-rtl.c (verify_rtx_sharing): Likewise.
10118 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10119 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10120 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10121 * genemit.c (gen_exp, gen_insn): Likewise.
10122 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10123 * haifa-sched.c (haifa_classify_rtx): Likewise.
10124 * ira-build.c (create_insn_allocnos): Likewise.
10125 * ira-costs.c (scan_one_insn): Likewise.
10126 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10127 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10128 * jump.c (mark_jump_label_1): Likewise.
10129 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10130 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10131 handling.
10132 (mark_not_eliminable): Likewise.
10133 * lra-lives.c (process_bb_lives): Likewise.
10134 * lra.c (new_insn_reg): Remove clobber_high parameter.
10135 (collect_non_operand_hard_regs): Likewise. Update call to new
10136 insn_reg. Remove CLOBBER_HIGH handling.
10137 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10138 to collect_non_operand_hard_regs.
10139 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10140 Update call to new_insn_reg.
10141 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10142 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10143 (move2add_note_store): Likewise.
10144 * print-rtl.c (print_pattern): Likewise.
10145 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10146 (if_test_bypass_p): Likewise.
10147 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10148 * reginfo.c (reg_scan_mark_refs): Likewise.
10149 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10150 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10151 (forget_old_reloads_1): Likewise.
10152 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10153 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10154 (dbr_schedule): Likewise.
10155 * resource.c (update_live_status, mark_referenced_resources)
10156 (mark_set_resources): Likewise.
10157 * rtl.c (copy_rtx): Likewise.
10158 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10159 (note_pattern_stores): Likewise.
10160 (reg_is_clobbered_by_clobber_high): Delete.
10161 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10162 CLOBBER_HIGH handling.
10163
10164 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10165
10166 PR target/91452
10167 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10168 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10169 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10170 Handle ARM_PCS_TLSDESC.
10171 (aarch64_tlsdesc_abi_id): New function.
10172 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10173 rtx instead of a list of clobbers and clobber_highs.
10174 (tlsdesc_small_<mode>): Update accordingly.
10175
10176 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10177
10178 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10179 extra callee_abi argument.
10180 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10181 Insert a CALLEE_ABI unspec into the call pattern as the second
10182 element in the PARALLEL.
10183 (aarch64_simd_call_p): Delete.
10184 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10185 the new CALLEE_ABI element of the PARALLEL.
10186 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10187 from the function type, if given.
10188 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10189 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10190 when passed the function_arg_info end marker.
10191 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10192 final argument of gen_sibcall.
10193 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10194 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10195 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10196 pattern.
10197 (call_value): Likewise operand 3.
10198 (sibcall): Likewise operand 2. Place the unspec before rather than
10199 after the return.
10200 (sibcall_value): Likewise operand 3.
10201 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10202 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10203 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10204 constraint strings.
10205 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10206
10207 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10208
10209 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10210 choose_hard_reg_mode.
10211 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10212
10213 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10214
10215 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10216 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10217 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10218
10219 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10220
10221 * diagnostic-show-locus.c (line_label::line_label): Initialize
10222 m_has_vbar.
10223 (line_label::comparator): Reverse the sort order by m_state_idx,
10224 so that when the list is walked backwards the labels appear in
10225 order of insertion into the rich_location.
10226 (line_label::m_has_vbar): New field.
10227 (layout::print_any_labels): When dealing with multiple labels at
10228 the same line and column, only print vertical bars for the one
10229 with the highest label_line.
10230 (selftest::test_one_liner_labels): Update test for multiple labels
10231 to expect the labels to be in the order of insertion into the
10232 rich_location. Add a test for many such labels, where the column
10233 numbers are out-of-order relative to the insertion order.
10234
10235 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10236
10237 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10238 (ix86_frame::expensive_count): Likewise.
10239 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10240 of use_fast_prologue_epilogue robust against incidental changes
10241 in function size.
10242
10243 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10244
10245 PR target/77918
10246 * config/s390/vector.md (vec_unordered<mode>): Call
10247 gen_vec_ordered<mode>.
10248
10249 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10250
10251 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10252 New pattern for ASRD.
10253 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10254 * internal-fn.def (IFN_DIV_POW2): New internal function.
10255 * optabs.def (sdiv_pow2_optab): New optab.
10256 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10257 Modify pattern to support new operation.
10258 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10259 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10260 Document new target selector.
10261
10262 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10263
10264 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10265 to test whether we're compiling a vector PCS function and to test
10266 whether the function needs to save a particular register.
10267 Remove the vector PCS handling of df_set_regs_ever_live.
10268 (aarch64_components_for_bb): Use crtl->abi to test whether
10269 the function needs to save a particular register.
10270 (aarch64_process_components): Use crtl->abi to test whether
10271 we're compiling a vector PCS function.
10272 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10273 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10274
10275 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10276
10277 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10278 Delete.
10279 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10280 whether the block calls a function that clobbers more registers
10281 than the current function is allowed to.
10282 (aarch64_use_simple_return_insn_p): Delete.
10283 * config/aarch64/aarch64.md (simple_return): Remove condition.
10284
10285 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10286
10287 * function-abi.h (function_abi_aggregator): New class.
10288 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10289 function.
10290 * ira.c (update_equiv_regs_prescan): New function. Call
10291 set_paradoxical_subreg here rather than...
10292 (update_equiv_regs): ...here.
10293 (ira): Call update_equiv_regs_prescan.
10294
10295 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10296
10297 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10298 IN_TARGET_CODE.
10299 (call_used_or_fixed_regs): Likewise.
10300 (call_used_or_fixed_reg_p): Likewise.
10301 * reginfo.c (regs_invalidated_by_call): New macro.
10302
10303 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10304
10305 * shrink-wrap.c: Include function-abi.h.
10306 (requires_stack_frame_p): Use crtl->abi to test whether the
10307 current function can use a register without saving it first.
10308
10309 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10310
10311 * sel-sched-ir.h (_def::crosses_call): Replace with...
10312 (_def::crossed_call_abis): ..this new field.
10313 (def_list_add): Take a mask of ABIs instead of a crosses_call
10314 boolean.
10315 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10316 of _def accordingly.
10317 * sel-sched.c: Include function-abi.h.
10318 (hard_regs_data::regs_for_call_clobbered): Delete.
10319 (reg_rename::crosses_call): Replace with...
10320 (reg_rename::crossed_call_abis): ...this new field.
10321 (fur_static_params::crosses_call): Replace with...
10322 (fur_static_params::crossed_call_abis): ...this new field.
10323 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10324 (init_hard_regs_data): Use crtl->abi to test which registers the
10325 current function would need to save before it uses them.
10326 (mark_unavailable_hard_regs): Update handling of call-clobbered
10327 registers, using call_clobbers_in_region to find out which registers
10328 might be call-clobbered (but without taking -fipa-ra into account
10329 for now). Remove separate handling of partially call-clobbered
10330 registers.
10331 (verify_target_availability): Use crossed_call_abis instead of
10332 crosses_call.
10333 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10334 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10335
10336 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10337
10338 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10339 function to test whether a register is fully or partly clobbered.
10340
10341 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10342
10343 * rtlanal.c: Include function-abi.h.
10344 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10345 function and clobbers_reg_p to test whether the register
10346 is call-clobbered.
10347 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10348 to get the ABI of the called function and full_reg_clobbers to
10349 get the set of fully call-clobbered registers. Warn about the
10350 pitfalls of using this mode.
10351
10352 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10353
10354 * reload.c: Include function-abi.h.
10355 (find_equiv_reg): Use clobbers_reg_p to test whether either
10356 of the equivalent registers is clobbered by a call.
10357 * reload1.c: Include function-abi.h.
10358 (reg_reloaded_call_part_clobbered): Delete.
10359 (reload): Use crtl->abi to test which registers would need
10360 saving in the prologue before use.
10361 (find_reg): Likewise.
10362 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10363 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10364 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10365
10366 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10367
10368 * regrename.h (du_head::call_clobber_mask): New field.
10369 (du_head::need_caller_save_reg): Replace with...
10370 (du_head::call_abis): ...this new field.
10371 * regrename.c: Include function-abi.h.
10372 (call_clobbered_in_chain_p): New function.
10373 (check_new_reg_p): Use crtl->abi when deciding whether a register
10374 is free for use after RA. Use call_clobbered_in_chain_p to test
10375 whether a candidate register would be clobbered by a call.
10376 (find_rename_reg): Don't add call-clobber conflicts here.
10377 (rename_chains): Check call_abis instead of need_caller_save_reg.
10378 (merge_chains): Update for changes to du_head.
10379 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10380 target. Record the ABI identifier in call_abis and the set of
10381 fully or partially clobbered registers in call_clobber_mask.
10382 Add fully-clobbered registers to hard_conflicts here rather
10383 than in find_rename_reg.
10384 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10385 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10386 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10387 function-abi.h.
10388 * config/c6x/c6x.c: Likewise.
10389
10390 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10391
10392 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10393 mode of the register when deciding whether it is no longer
10394 available after a call.
10395
10396 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10397
10398 * recog.c: Include function-abi.h.
10399 (peep2_find_free_register): Use crtl->abi when deciding whether
10400 a register is free for use after RA.
10401
10402 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10403
10404 * postreload-gcse.c: Include regs.h and function-abi.h.
10405 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10406 call insn target. Conservatively assume that partially-clobbered
10407 registers are altered.
10408
10409 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10410
10411 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10412 when deciding whether a register is free for use after RA.
10413 (reload_combine): Remove unnecessary use of fixed_reg_set.
10414 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10415 call insn target. Use reg_mode when testing whether a register
10416 is no longer available.
10417
10418 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10419
10420 * target.def (return_call_with_max_clobbers): Delete.
10421 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10422 * doc/tm.texi: Regenerate.
10423 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10424 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10425 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10426 (lra_reg::call_insn): Delete.
10427 * lra.c: Include function-abi.h.
10428 (initialize_lra_reg_info_element): Don't initialize the fields above.
10429 (lra): Use crtl->abi to test whether the current function needs to
10430 save a register in the prologue. Remove special pre-inheritance
10431 lra_create_live_ranges pass for flag_ipa_ra.
10432 * lra-assigns.c: Include function-abi.h
10433 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10434 function needs to save a register in the prologue.
10435 (lra_assign): Assert that registers aren't allocated to a
10436 conflicting register, rather than checking only for overlaps
10437 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10438 and for registers that are not live across a call.
10439 * lra-constraints.c (last_call_for_abi): New variable.
10440 (full_and_partial_call_clobbers): Likewise.
10441 (setup_next_usage_insn): Remove the register from
10442 full_and_partial_call_clobbers.
10443 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10444 whether the register needs a caller save.
10445 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10446 of call_used_or_fixed_regs.
10447 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10448 full_and_partial_call_clobbers.
10449 * lra-lives.c (check_pseudos_live_through_calls): Replace
10450 last_call_used_reg_set and call_insn arguments with an abi argument.
10451 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10452 as the set of conflicting registers.
10453 (calls_have_same_clobbers_p): Delete.
10454 (process_bb_lives): Track the ABI of the last call instead of an
10455 insn/HARD_REG_SET pair. Update calls to
10456 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10457 the set of registers that could be clobbered by an EH edge.
10458 Include partially-clobbered as well as fully-clobbered registers.
10459 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10460 * lra-remat.c: Include function-abi.h.
10461 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10462 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10463 registers and bitmap_view to combine them into dead_regs.
10464 (call_used_input_regno_present_p): Take a function_abi argument
10465 and use it to test whether a register is call-clobbered.
10466 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10467 call insn target. Update tje call to call_used_input_regno_present_p.
10468 (do_remat): Likewise.
10469 (lra_remat): Remove the initialization of call_used_regs_arr_len
10470 and call_used_regs_arr.
10471
10472 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10473
10474 * loop-iv.c: Include regs.h and function-abi.h.
10475 (simplify_using_initial_values): Use insn_callee_abi to get the
10476 ABI of the call insn target. Conservatively assume that
10477 partially-clobbered registers are altered.
10478
10479 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10480
10481 * function-abi.h (call_clobbers_in_region): Declare.
10482 (call_clobbered_in_region_p): New function.
10483 * function-abi.cc (call_clobbers_in_region): Likewise.
10484 * ira-int.h: Include function-abi.h.
10485 (ira_allocno::crossed_calls_abis): New field.
10486 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10487 (ira_need_caller_save_regs): New function.
10488 (ira_need_caller_save_p): Likewise.
10489 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10490 of call_used_or_fixed_regs.
10491 (do_reload): Use crtl->abi to test whether the current function
10492 needs to save a register in the prologue. Count registers that
10493 need to be saved rather than registers that don't.
10494 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10495 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10496 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10497 (propagate_some_info_from_allocno): Likewise.
10498 (copy_info_to_removed_store_destinations): Likewise.
10499 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10500 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10501 (ira_build): Use ira_need_caller_save_regs instead of
10502 call_used_or_fixed_regs.
10503 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10504 whether the current function would need to save a register
10505 before using it.
10506 (calculate_spill_cost): Likewise.
10507 (allocno_reload_assign): Use ira_need_caller_save_regs and
10508 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10509 * ira-conflicts.c (ira_build_conflicts): Use
10510 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10511 as the set of call-clobbered registers. Remove the
10512 call_used_or_fixed_regs mask from the calculation of
10513 temp_hard_reg_set and mask its use instead. Remove special
10514 handling of partially-clobbered registers.
10515 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10516 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10517 calculate the set of conflicting registers for calls that
10518 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10519 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10520 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10521 Use eh_edge_abi to calculate the set of registers that could
10522 be clobbered by an EH edge. Include partially-clobbered as
10523 well as fully-clobbered registers.
10524
10525 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10526
10527 * haifa-sched.c: Include function-abi.h.
10528 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10529 the function would need to save a register before using it.
10530
10531 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10532
10533 * gcse.c: Include function-abi.h.
10534 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10535 the call insn target. Invalidate partially call-clobbered
10536 registers as well as fully call-clobbered ones.
10537
10538 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10539
10540 * function.c (aggregate_value_p): Work out which ABI the
10541 function is using before testing which registers are at least
10542 partly preserved by a call.
10543
10544 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10545
10546 * early-remat.c: Include regs.h and function-abi.h.
10547 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10548 registers here.
10549 (early_remat::restrict_remat_for_unavail_regs): New function.
10550 (early_remat::restrict_remat_for_call): Likewise.
10551 (early_remat::process_block): Before calling emit_remat_insns
10552 for a previous call in the block, invalidate any candidates
10553 that would clobber call-preserved registers.
10554 (early_remat::emit_remat_insns_for_block): Likewise for the
10555 final call in a block. Do the same thing for live-in registers
10556 when calling emit_remat_insns at the head of a block.
10557
10558 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10559
10560 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10561 whether the current function needs to save at least part of a
10562 register before using it.
10563 (df_get_exit_block_use_set): Likewise for epilogue restores.
10564
10565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10566
10567 * df-problems.c: Include regs.h and function-abi.h.
10568 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10569 sparse_invalidated_by_eh and dense_invalidated_by_call to
10570 dense_invalidated_by_eh.
10571 (df_print_bb_index): Update accordingly.
10572 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10573 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10574 that are clobbered by an EH edge. Clobber partially-clobbered
10575 registers as well as fully-clobbered ones.
10576 (df_md_confluence_n): Likewise.
10577 (df_rd_local_compute): Likewise. Update for changes to
10578 df_rd_problem_data.
10579 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10580 of registers that are clobbered by an EH edge. Includde partially-
10581 clobbered registers as well as fully-clobbered ones.
10582
10583 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10584
10585 * cselib.c (cselib_process_insn): If we know what mode a
10586 register was set in, check whether it is clobbered in that
10587 mode by a call. Only fall back to reg_raw_mode if that fails.
10588
10589 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10590
10591 * cse.c: Include regs.h and function-abi.h.
10592 (invalidate_for_call): Take the call insn as an argument.
10593 Use insn_callee_abi to get the ABI of the call and invalidate
10594 partially clobbered registers as well as fully clobbered ones.
10595 (cse_insn): Update call accordingly.
10596
10597 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10598
10599 * combine.c: Include function-abi.h.
10600 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10601 of the target of call insns. Invalidate partially-clobbered
10602 registers as well as fully-clobbered ones.
10603
10604 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10605
10606 * cfgloopanal.c: Include regs.h and function-abi.h.
10607 (init_set_costs): Use default_function_abi to test whether
10608 a general register is call-clobbered.
10609
10610 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10611
10612 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10613 instead of the call-clobbered sets.
10614
10615 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10616
10617 * caller-save.c (setup_save_areas): Remove redundant |s of
10618 fixed_reg_set.
10619 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10620 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10621 value is useful.
10622
10623 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10624
10625 * rtl.h (predefined_function_abi): Declare.
10626 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10627 instead of a boolean call_save flag.
10628 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10629 accordingly.
10630 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10631 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10632 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10633 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10634 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10635 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10636 * reginfo.c (init_reg_modes_target): Likewise.
10637 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10638 instead of a boolean call_save flag.
10639 * targhooks.c: Include function-abi.h.
10640 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10641 using eh_edge_abi to choose the mode.
10642
10643 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10644
10645 * target.def (hard_regno_call_part_clobbered): Take an ABI
10646 identifier instead of an rtx_insn.
10647 * doc/tm.texi: Regenerate.
10648 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10649 (hook_bool_uint_uint_mode_false): New function.
10650 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10651 (hook_bool_uint_uint_mode_false): New function.
10652 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10653 Take an ABI identifier instead of an rtx_insn.
10654 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10655 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10656 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10657 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10658 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10659 Likewise.
10660 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10661 * cselib.c: Include function-abi.h.
10662 (cselib_process_insn): Update call to
10663 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10664 to get the appropriate ABI identifier.
10665 * function-abi.cc (predefined_function_abi::initialize): Update call
10666 to targetm.hard_regno_call_part_clobbered.
10667 * ira-conflicts.c (ira_build_conflicts): Likewise.
10668 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10669 * lra-constraints.c: Include function-abi.h.
10670 (need_for_call_save_p): Update call to
10671 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10672 to get the appropriate ABI identifier.
10673 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10674 * regcprop.c (copyprop_hardreg_forward_1): Update call
10675 to targetm.hard_regno_call_part_clobbered.
10676 * reginfo.c (choose_hard_reg_mode): Likewise.
10677 * regrename.c (check_new_reg_p): Likewise.
10678 * reload.c (find_equiv_reg): Likewise.
10679 * reload1.c (emit_reload_insns): Likewise.
10680 * sched-deps.c: Include function-abi.h.
10681 (deps_analyze_insn): Update call to
10682 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10683 to get the appropriate ABI identifier.
10684 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10685 call to targetm.hard_regno_call_part_clobbered.
10686 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10687
10688 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10689
10690 * config/i386/i386.c: Include function-abi.h.
10691 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10692 if they preserve some 256-bit or 512-bit SSE registers.
10693
10694 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10695
10696 * target.def (insn_callee_abi): New hook.
10697 (remove_extra_call_preserved_regs): Delete.
10698 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10699 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10700 * doc/tm.texi: Regenerate.
10701 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10702 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10703 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10704 insn argument.
10705 (aarch64_remove_extra_call_preserved_regs): Delete.
10706 (aarch64_insn_callee_abi): New function.
10707 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10708 (TARGET_INSN_CALLEE_ABI): New macro.
10709 * rtl.h (get_call_fndecl): Declare.
10710 (cgraph_rtl_info): Fix formatting. Tweak comment for
10711 function_used_regs. Remove function_used_regs_valid.
10712 * rtlanal.c (get_call_fndecl): Moved from final.c
10713 * function-abi.h (insn_callee_abi): Declare.
10714 (target_function_abi_info): Mention insn_callee_abi.
10715 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10716 way to get_call_reg_set_usage did.
10717 (insn_callee_abi): New function.
10718 * regs.h (get_call_reg_set_usage): Delete.
10719 * final.c: Include function-abi.h.
10720 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10721 function_used_regs before the main loop rather than afterwards.
10722 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10723 if function_used_regs ends up not being useful.
10724 (get_call_fndecl): Move to rtlanal.c
10725 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10726 * caller-save.c: Include function-abi.h.
10727 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10728 instead of get_call_reg_set_usage.
10729 * cfgcleanup.c: Include function-abi.h.
10730 (old_insns_match_p): Use insn_callee_abi instead of
10731 get_call_reg_set_usage.
10732 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10733 a tree.
10734 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10735 function_used_regs.
10736 * df-scan.c: Include function-abi.h.
10737 (df_get_call_refs): Use insn_callee_abi instead of
10738 get_call_reg_set_usage.
10739 * ira-lives.c: Include function-abi.h.
10740 (process_bb_node_lives): Use insn_callee_abi instead of
10741 get_call_reg_set_usage.
10742 * lra-lives.c: Include function-abi.h.
10743 (process_bb_lives): Use insn_callee_abi instead of
10744 get_call_reg_set_usage.
10745 * postreload.c: Include function-abi.h.
10746 (reload_combine): Use insn_callee_abi instead of
10747 get_call_reg_set_usage.
10748 * regcprop.c: Include function-abi.h.
10749 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10750 get_call_reg_set_usage.
10751 * resource.c: Include function-abi.h.
10752 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10753 instead of get_call_reg_set_usage.
10754 * var-tracking.c: Include function-abi.h.
10755 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10756 get_call_reg_set_usage.
10757
10758 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10759
10760 * target.def (fntype_abi): New target hook.
10761 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10762 * doc/tm.texi: Regenerate.
10763 * target.h (predefined_function_abi): Declare.
10764 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10765 if defined.
10766 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10767 * config/aarch64/aarch64.c: Include function-abi.h.
10768 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10769 (TARGET_FNTYPE_ABI): Define.
10770
10771 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10772
10773 * Makefile.in (OBJS): Add function-abi.o.
10774 (GTFILES): Add function-abi.h.
10775 * function-abi.cc: New file.
10776 * function-abi.h: Likewise.
10777 * emit-rtl.h (rtl_data::abi): New field.
10778 * function.c: Include function-abi.h.
10779 (prepare_function_start): Initialize crtl->abi.
10780 * read-rtl-function.c: Include regs.h and function-abi.h.
10781 (read_rtl_function_body): Initialize crtl->abi.
10782 (read_rtl_function_body_from_file_range): Likewise.
10783 * reginfo.c: Include function-abi.h.
10784 (init_reg_sets_1): Initialize default_function_abi.
10785 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10786 when making a register global.
10787 * target-globals.h (this_target_function_abi_info): Declare.
10788 (target_globals::function_abi_info): New field.
10789 (restore_target_globals): Copy it.
10790 * target-globals.c: Include function-abi.h.
10791 (default_target_globals): Initialize the function_abi_info field.
10792 (target_globals): Allocate it.
10793 (save_target_globals): Free it.
10794
10795 2019-09-30 Nick Clifton <nickc@redhat.com>
10796
10797 PR target/85978
10798 * config/frv/frv.c (frv_register_move_cost): Add break statements
10799 to avoid falling through to the wrong cases. Tidy code.
10800
10801 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10802
10803 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10804 For multi-registers modes, test how big each register part is.
10805
10806 2019-09-30 Nick Clifton <nickc@redhat.com>
10807
10808 PR target/59205
10809 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10810 (TARGET_ASM_SELECT_SECTION): Remove definition.
10811 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10812
10813 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10814
10815 * emit-rtl.c (init_raw_REG): New function.
10816 (gen_raw_REG): Use init_raw_REG.
10817 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10818 macros.
10819 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10820 * rtl.h (rtx_init): New function.
10821 (rtx_alloca): New function.
10822 (init_raw_REG): New function.
10823 (alloca_raw_REG): New macro.
10824
10825 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10826
10827 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10828 (pcrel_local_address): Replace pcrel_address predicate, use the
10829 new function address_to_insn_form.
10830 (pcrel_external_address): Replace with new implementation using
10831 address_to_insn_form..
10832 (prefixed_mem_operand): Delete predicate which is now unused.
10833 (pcrel_external_mem_operand): Delete predicate which is now
10834 unused.
10835 * config/rs6000/rs6000-protos.h (enum insn_form): New
10836 enumeration.
10837 (enum non_prefixed_form): New enumeration.
10838 (address_to_insn_form): New declaration.
10839 (prefixed_load_p): New declaration.
10840 (prefixed_store_p): New declaration.
10841 (prefixed_paddi_p): New declaration.
10842 (rs6000_asm_output_opcode): New declaration.
10843 (rs6000_final_prescan_insn): Move declaration and update calling
10844 signature.
10845 (address_is_prefixed): New helper inline function.
10846 * config/rs6000/rs6000.c(print_operand_address): Check for either
10847 PC-relative local symbols or PC-relative external symbols.
10848 (rs6000_emit_move): Support loading PC-relative addresses.
10849 (mode_supports_prefixed_address_p): Delete, no longer used.
10850 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10851 (address_to_insn_form): New function to decode an address format.
10852 (reg_to_non_prefixed): New function to identify what the
10853 non-prefixed memory instruction format is for a register.
10854 (prefixed_load_p): New function to identify prefixed loads.
10855 (prefixed_store_p): New function to identify prefixed stores.
10856 (prefixed_paddi_p): New function to identify prefixed load
10857 immediates.
10858 (next_insn_prefixed_p): New static state variable.
10859 (rs6000_final_prescan_insn): New function to determine if an insn
10860 uses a prefixed instruction.
10861 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10862 prefixed instruction.
10863 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10864 (ASM_OUTPUT_OPCODE): New target hook.
10865 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10866 prefixed instructions.
10867 (prefixed_length): New insn attribute for the size of prefixed
10868 instructions.
10869 (non_prefixed_length): New insn attribute for the size of
10870 non-prefixed instructions.
10871 (pcrel_local_addr): New insn to load up a local PC-relative
10872 address.
10873 (pcrel_extern_addr): New insn to load up an external PC-relative
10874 address.
10875 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10876 GPR and loading a 128-bit floating point type to a GPR.
10877
10878 2019-09-30 Richard Biener <rguenther@suse.de>
10879
10880 * gimple.c (gimple_get_lhs): For PHIs return the result.
10881 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10882 SLP instance as argument.
10883 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10884 double-reduction PHIs with vectorizable_lc_phi.
10885 (vect_analyze_loop_operations): Adjust.
10886 (vect_create_epilog_for_reduction): Remove all code not dealing
10887 with reduction LC PHI or epilogue generation.
10888 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10889 for live stmts of reductions.
10890 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10891 do not handle defs that are not vect_internal_def.
10892 (can_vectorize_live_stmts): Adjust.
10893 (vect_analyze_stmt): When the vectorized stmt defined a value
10894 used on backedges adjust the backedge uses of vectorized PHIs.
10895
10896 2019-09-30 Martin Jambor <mjambor@suse.cz>
10897
10898 PR ipa/91853
10899 * tree-inline.c (force_value_to_type): New function.
10900 (setup_one_parameter): Use force_value_to_type to convert type.
10901 * tree-inline.c (force_value_to_type): Declare.
10902 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10903 with register type mismatches.
10904
10905 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10906
10907 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10908 32-bit PowerPC.
10909 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10910 * config/rs6000/t-freebsd64: Make use of the above define and build
10911 the 32-bit libraries with secure-plt.
10912
10913 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10914
10915 PR target/91931
10916 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10917 gen_int_mode instead of GEN_INT.
10918
10919 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10920
10921 * config/darwin.c (gen_macho_low): Amend to include the mode
10922 argument.
10923 (machopic_indirect_data_reference): Amend gen_macho_low call
10924 to include mode argument
10925 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10926 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10927 the macho_high expander and two define_insn entries.
10928
10929 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10930
10931 PR bootstrap/90543
10932 * optc-save-gen.awk: Fix up printing string option differences.
10933
10934 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10935
10936 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10937 vec_perm cost to 1 for non-Power7 VSX architectures.
10938
10939 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10940
10941 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10942 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10943 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10944
10945 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10946
10947 * config/darwin.c (gen_macho_high): Amend to include the mode
10948 argument.
10949 (machopic_indirect_data_reference): Amend gen_macho_high call
10950 to include mode argument.
10951 (machopic_legitimize_pic_address): Likewise.
10952 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10953 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10954 the macho_high expander and two define_insn entries.
10955
10956 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10957
10958 PR target/86805
10959 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10960
10961 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10962
10963 PR target/80672
10964 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10965 std::string::compare instead of std::string::find.
10966
10967 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10968
10969 * configure: Regenerate.
10970
10971 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10972
10973 PR middle-end/91920
10974 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10975 variables as shared.
10976
10977 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10978
10979 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10980 replaces the expander and two define_insn entries.
10981 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10982 call.
10983 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10984
10985 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10986
10987 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10988 (fibonacci_heap::nodes): Likewise.
10989 (fibonacci_heap::min_key): Likewise.
10990 (fibonacci_heap::min): Likewise.
10991
10992 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10993
10994 * cgraph.c (cgraph_node::get_fun): Make const.
10995 * cgraph.h (cgraph_node::get_fun): Likewise.
10996
10997 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10998
10999 PR target/91919
11000 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11001 of SImode MULT.
11002
11003 2019-09-27 Richard Biener <rguenther@suse.de>
11004
11005 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11006 (STMT_VINFO_REDUC_FN): Likewise.
11007 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11008 STMT_VINFO_REDUC_FN.
11009 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11010 for condition reductions.
11011 (vect_create_epilog_for_reduction): Compute all required state
11012 from the stmt to be vectorized.
11013 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11014 invocation and remove then dead code. For single def-use chains
11015 record only a single vector stmt.
11016
11017 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11018
11019 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11020 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11021 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11022 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11023 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11024 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11025 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11026 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11027 (aarch64_general_builtin_rsqrt): Declare.
11028 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11029 New function.
11030 (aarch64_mangle_builtin_type): Rename to...
11031 (aarch64_general_mangle_builtin_type): ...this.
11032 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11033 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11034 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11035 aarch64_general_add_builtin instead of add_builtin_function.
11036 (aarch64_init_builtins): Rename to...
11037 (aarch64_general_init_builtins): ...this. Use
11038 aarch64_general_add_builtin instead of add_builtin_function.
11039 (aarch64_builtin_decl): Rename to...
11040 (aarch64_general_builtin_decl): ...this and remove the unused
11041 arguments.
11042 (aarch64_expand_builtin): Rename to...
11043 (aarch64_general_expand_builtin): ...this and remove the unused
11044 arguments.
11045 (aarch64_builtin_rsqrt): Rename to...
11046 (aarch64_general_builtin_rsqrt): ...this.
11047 (aarch64_fold_builtin): Rename to...
11048 (aarch64_general_fold_builtin): ...this. Take the function subcode
11049 and return type as arguments. Remove the "ignored" argument.
11050 (aarch64_gimple_fold_builtin): Rename to...
11051 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11052 subcode and gcall as arguments, and return the new function call.
11053 * config/aarch64/aarch64.c (aarch64_init_builtins)
11054 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11055 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11056 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11057 instead of aarch64_builtin_rsqrt.
11058 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11059 instead of aarch64_mangle_builtin_type.
11060
11061 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11062
11063 * target.def (check_builtin_call): New target hook.
11064 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11065 * doc/tm.texi: Regenerate.
11066
11067 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11068
11069 PR tree-optimization/91909
11070 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11071 reduc_index parameter. When handling COND_REDUCTION, make sure
11072 that the reduction phi operand is in the correct arm of the
11073 VEC_COND_EXPR.
11074 (vectorizable_reduction): Pass reduc_index to the above.
11075
11076 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11077
11078 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11079 New combine pattern.
11080
11081 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11082
11083 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11084 loop instruction into new basic block before the loop when basic
11085 block that precedes the loop is empty.
11086
11087 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11088
11089 * function.c (gimplify_parameters): Use build_clobber function.
11090 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11091 * tree-inline.c (expand_call_inline): Likewise.
11092 * tree-sra.c (clobber_subtree): Likewise.
11093 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11094 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11095 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11096 lower_omp_target): Likewise.
11097 * omp-expand.c (expand_omp_for_generic): Likewise.
11098 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11099
11100 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11101
11102 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11103 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11104 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11105 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11106 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11107 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11108 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11109 LD_ELEMREV_V16QI): Use the PURE attribute.
11110
11111 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11112
11113 * config/rs6000/darwin.md: Replace the expanders for
11114 load_macho_picbase and reload_macho_picbase with use of '@'
11115 and <mode> in their respective define_insns.
11116 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11117 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11118 Pmode to gen_load_macho_picbase.
11119 * config/rs6000/rs6000.md: Likewise.
11120
11121 2019-09-25 Richard Biener <rguenther@suse.de>
11122
11123 PR tree-optimization/91896
11124 * tree-vect-loop.c (vectorizable_reduction): The single
11125 def-use cycle optimization cannot apply when there's more
11126 than one pattern stmt involved.
11127
11128 2019-09-26 Richard Biener <rguenther@suse.de>
11129
11130 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11131 loop-closed PHIs that are vect_internal_def.
11132 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11133 Simplify.
11134 (vectorizable_lc_phi): New.
11135 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11136 (vect_transform_stmt): Likewise.
11137 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11138 (vectorizable_lc_phi): Declare.
11139
11140 2019-09-26 Richard Biener <rguenther@suse.de>
11141
11142 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11143 vectorizable_reduction for vect_double_reduction_def.
11144 (vect_transform_loop): Likewise.
11145 (vect_create_epilog_for_reduction): Move double-reduction
11146 PHI creation and preheader argument setting of PHIs ...
11147 (vectorizable_reduction): ... here. Also process
11148 vect_double_reduction_def PHIs, creating the vectorized
11149 PHI nodes, remembering the scalar adjustment computed for
11150 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11151 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11152 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11153 Initialize STMT_VINFO_REDUC_CODE.
11154 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11155 (_stmt_vec_info::reduc_code): Likewise.
11156 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11157 (STMT_VINFO_REDUC_CODE): Likewise.
11158
11159 2019-09-26 Matt Turner <mattst88@gmail.com>
11160
11161 PR driver/69471
11162 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11163 (mtune=): Add Negative(mtune=).
11164 (mcpu=): Add Negative(mcpu=).
11165 * config/arm/arm.opt: Likewise.
11166
11167 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11168
11169 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11170 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11171 Define.
11172 * config/arm/arm_acle.h: Define builtins for the above.
11173 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11174 (simd32_op): Handle the above.
11175 * config/arm/unspecs.md: Define unspecs for the above.
11176
11177 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11178
11179 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11180 (arm_<sup>xtb16): Likewise.
11181 (arm_usada8): Likewise.
11182 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11183 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11184 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11185 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11186 __sxtb16, __uxtab16, __uxtb16): Define.
11187 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11188 * config/arm/unspecs.md: Define unspecs for the above.
11189 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11190 (USXTB16): Likewise.
11191 (simd32_op): New int_attribute.
11192 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11193 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11194
11195 2019-09-26 Martin Jambor <mjambor@suse.cz>
11196
11197 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11198 internal_error.
11199
11200 2019-09-26 Martin Jambor <mjambor@suse.cz>
11201
11202 * ipa-sra.c (process_scan_results): Fix continue condition.
11203
11204 2019-09-26 Martin Liska <mliska@suse.cz>
11205
11206 PR tree-optimization/91885
11207 * tree-vectorizer.c (try_vectorize_loop_1): Add
11208 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11209
11210 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11211
11212 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11213 aarch64_plus_immediate rather than aarch64_uimm12_shift
11214 to test for valid PLUS immediates.
11215
11216 2019-09-25 Martin Jambor <mjambor@suse.cz>
11217
11218 * tree-sra.c (no_accesses_p): Remove.
11219 (no_accesses_representant): Likewise.
11220
11221 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11222
11223 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11224 consistenly.
11225 (vaba_s16): Likewise.
11226 (vaba_s32): Likewise.
11227 (vaba_u8): Likewise.
11228 (vaba_u16): Likewise.
11229 (vaba_u32): Likewise.
11230 (vabal_high_s8): Likewise.
11231 (vabal_high_s16): Likewise.
11232 (vabal_high_s32): Likewise.
11233 (vabal_high_u8): Likewise.
11234 (vabal_high_u16): Likewise.
11235 (vabal_high_u32): Likewise.
11236 (vabal_s8): Likewise.
11237 (vabal_s16): Likewise.
11238 (vabal_s32): Likewise.
11239 (vabal_u8): Likewise.
11240 (vabal_u16): Likewise.
11241 (vabal_u32): Likewise.
11242 (vabaq_s8): Likewise.
11243 (vabaq_s16): Likewise.
11244 (vabaq_s32): Likewise.
11245 (vabaq_u8): Likewise.
11246 (vabaq_u16): Likewise.
11247 (vabaq_u32): Likewise.
11248 (vabd_s8): Likewise.
11249 (vabd_s16): Likewise.
11250 (vabd_s32): Likewise.
11251 (vabd_u8): Likewise.
11252 (vabd_u16): Likewise.
11253 (vabd_u32): Likewise.
11254 (vabdl_high_s8): Likewise.
11255 (vabdl_high_s16): Likewise.
11256 (vabdl_high_s32): Likewise.
11257 (vabdl_high_u8): Likewise.
11258 (vabdl_high_u16): Likewise.
11259 (vabdl_high_u32): Likewise.
11260 (vabdl_s8): Likewise.
11261 (vabdl_s16): Likewise.
11262 (vabdl_s32): Likewise.
11263 (vabdl_u8): Likewise.
11264 (vabdl_u16): Likewise.
11265 (vabdl_u32): Likewise.
11266 (vabdq_s8): Likewise.
11267 (vabdq_s16): Likewise.
11268 (vabdq_s32): Likewise.
11269 (vabdq_u8): Likewise.
11270 (vabdq_u16): Likewise.
11271 (vabdq_u32): Likewise.
11272 (vaddlv_s8): Likewise.
11273 (vaddlv_s16): Likewise.
11274 (vaddlv_u8): Likewise.
11275 (vaddlv_u16): Likewise.
11276 (vaddlvq_s8): Likewise.
11277 (vaddlvq_s16): Likewise.
11278 (vaddlvq_s32): Likewise.
11279 (vaddlvq_u8): Likewise.
11280 (vaddlvq_u16): Likewise.
11281 (vaddlvq_u32): Likewise.
11282 (vcvtx_f32_f64): Likewise.
11283 (vcvtx_high_f32_f64): Likewise.
11284 (vcvtxd_f32_f64): Likewise.
11285 (vmla_n_f32): Likewise.
11286 (vmla_n_s16): Likewise.
11287 (vmla_n_s32): Likewise.
11288 (vmla_n_u16): Likewise.
11289 (vmla_n_u32): Likewise.
11290 (vmla_s8): Likewise.
11291 (vmla_s16): Likewise.
11292 (vmla_s32): Likewise.
11293 (vmla_u8): Likewise.
11294 (vmla_u16): Likewise.
11295 (vmla_u32): Likewise.
11296 (vmlal_high_n_s16): Likewise.
11297 (vmlal_high_n_s32): Likewise.
11298 (vmlal_high_n_u16): Likewise.
11299 (vmlal_high_n_u32): Likewise.
11300 (vmlal_high_s8): Likewise.
11301 (vmlal_high_s16): Likewise.
11302 (vmlal_high_s32): Likewise.
11303 (vmlal_high_u8): Likewise.
11304 (vmlal_high_u16): Likewise.
11305 (vmlal_high_u32): Likewise.
11306 (vmlal_n_s16): Likewise.
11307 (vmlal_n_s32): Likewise.
11308 (vmlal_n_u16): Likewise.
11309 (vmlal_n_u32): Likewise.
11310 (vmlal_s8): Likewise.
11311 (vmlal_s16): Likewise.
11312 (vmlal_s32): Likewise.
11313 (vmlal_u8): Likewise.
11314 (vmlal_u16): Likewise.
11315 (vmlal_u32): Likewise.
11316 (vmlaq_n_f32): Likewise.
11317 (vmlaq_n_s16): Likewise.
11318 (vmlaq_n_s32): Likewise.
11319 (vmlaq_n_u16): Likewise.
11320 (vmlaq_n_u32): Likewise.
11321 (vmlaq_s8): Likewise.
11322 (vmlaq_s16): Likewise.
11323 (vmlaq_s32): Likewise.
11324 (vmlaq_u8): Likewise.
11325 (vmlaq_u16): Likewise.
11326 (vmlaq_u32): Likewise.
11327 (vmls_n_f32): Likewise.
11328 (vmls_n_s16): Likewise.
11329 (vmls_n_s32): Likewise.
11330 (vmls_n_u16): Likewise.
11331 (vmls_n_u32): Likewise.
11332 (vmls_s8): Likewise.
11333 (vmls_s16): Likewise.
11334 (vmls_s32): Likewise.
11335 (vmls_u8): Likewise.
11336 (vmls_u16): Likewise.
11337 (vmls_u32): Likewise.
11338 (vmlsl_high_n_s16): Likewise.
11339 (vmlsl_high_n_s32): Likewise.
11340 (vmlsl_high_n_u16): Likewise.
11341 (vmlsl_high_n_u32): Likewise.
11342 (vmlsl_high_s8): Likewise.
11343 (vmlsl_high_s16): Likewise.
11344 (vmlsl_high_s32): Likewise.
11345 (vmlsl_high_u8): Likewise.
11346 (vmlsl_high_u16): Likewise.
11347 (vmlsl_high_u32): Likewise.
11348 (vmlsl_n_s16): Likewise.
11349 (vmlsl_n_s32): Likewise.
11350 (vmlsl_n_u16): Likewise.
11351 (vmlsl_n_u32): Likewise.
11352 (vmlsl_s8): Likewise.
11353 (vmlsl_s16): Likewise.
11354 (vmlsl_s32): Likewise.
11355 (vmlsl_u8): Likewise.
11356 (vmlsl_u16): Likewise.
11357 (vmlsl_u32): Likewise.
11358 (vmlsq_n_f32): Likewise.
11359 (vmlsq_n_s16): Likewise.
11360 (vmlsq_n_s32): Likewise.
11361 (vmlsq_n_u16): Likewise.
11362 (vmlsq_n_u32): Likewise.
11363 (vmlsq_s8): Likewise.
11364 (vmlsq_s16): Likewise.
11365 (vmlsq_s32): Likewise.
11366 (vmlsq_u8): Likewise.
11367 (vmlsq_u16): Likewise.
11368 (vmlsq_u32): Likewise.
11369 (vmovl_high_s8): Likewise.
11370 (vmovl_high_s16): Likewise.
11371 (vmovl_high_s32): Likewise.
11372 (vmovl_high_u8): Likewise.
11373 (vmovl_high_u16): Likewise.
11374 (vmovl_high_u32): Likewise.
11375 (vmovl_s8): Likewise.
11376 (vmovl_s16): Likewise.
11377 (vmovl_s32): Likewise.
11378 (vmovl_u8): Likewise.
11379 (vmovl_u16): Likewise.
11380 (vmovl_u32): Likewise.
11381 (vmovn_high_s16): Likewise.
11382 (vmovn_high_s32): Likewise.
11383 (vmovn_high_s64): Likewise.
11384 (vmovn_high_u16): Likewise.
11385 (vmovn_high_u32): Likewise.
11386 (vmovn_high_u64): Likewise.
11387 (vmovn_s16): Likewise.
11388 (vmovn_s32): Likewise.
11389 (vmovn_s64): Likewise.
11390 (vmovn_u16): Likewise.
11391 (vmovn_u32): Likewise.
11392 (vmovn_u64): Likewise.
11393 (vmull_high_n_s16): Likewise.
11394 (vmull_high_n_s32): Likewise.
11395 (vmull_high_n_u16): Likewise.
11396 (vmull_high_n_u32): Likewise.
11397 (vmull_high_p8): Likewise.
11398 (vmull_high_s8): Likewise.
11399 (vmull_high_s16): Likewise.
11400 (vmull_high_s32): Likewise.
11401 (vmull_high_u8): Likewise.
11402 (vmull_high_u16): Likewise.
11403 (vmull_high_u32): Likewise.
11404 (vmull_n_s16): Likewise.
11405 (vmull_n_s32): Likewise.
11406 (vmull_n_u16): Likewise.
11407 (vmull_n_u32): Likewise.
11408 (vmull_p8): Likewise.
11409 (vmull_s8): Likewise.
11410 (vmull_s16): Likewise.
11411 (vmull_s32): Likewise.
11412 (vmull_u8): Likewise.
11413 (vmull_u16): Likewise.
11414 (vmull_u32): Likewise.
11415 (vpadal_s8): Likewise.
11416 (vpadal_s16): Likewise.
11417 (vpadal_s32): Likewise.
11418 (vpadal_u8): Likewise.
11419 (vpadal_u16): Likewise.
11420 (vpadal_u32): Likewise.
11421 (vpadalq_s8): Likewise.
11422 (vpadalq_s16): Likewise.
11423 (vpadalq_s32): Likewise.
11424 (vpadalq_u8): Likewise.
11425 (vpadalq_u16): Likewise.
11426 (vpadalq_u32): Likewise.
11427 (vpaddl_s8): Likewise.
11428 (vpaddl_s16): Likewise.
11429 (vpaddl_s32): Likewise.
11430 (vpaddl_u8): Likewise.
11431 (vpaddl_u16): Likewise.
11432 (vpaddl_u32): Likewise.
11433 (vpaddlq_s8): Likewise.
11434 (vpaddlq_s16): Likewise.
11435 (vpaddlq_s32): Likewise.
11436 (vpaddlq_u8): Likewise.
11437 (vpaddlq_u16): Likewise.
11438 (vpaddlq_u32): Likewise.
11439 (vpaddq_s8): Likewise.
11440 (vpaddq_s16): Likewise.
11441 (vpaddq_s32): Likewise.
11442 (vpaddq_s64): Likewise.
11443 (vpaddq_u8): Likewise.
11444 (vpaddq_u16): Likewise.
11445 (vpaddq_u32): Likewise.
11446 (vpaddq_u64): Likewise.
11447 (vqdmulh_n_s16): Likewise.
11448 (vqdmulh_n_s32): Likewise.
11449 (vqdmulhq_n_s16): Likewise.
11450 (vqdmulhq_n_s32): Likewise.
11451 (vqmovn_high_s16): Likewise.
11452 (vqmovn_high_s32): Likewise.
11453 (vqmovn_high_s64): Likewise.
11454 (vqmovn_high_u16): Likewise.
11455 (vqmovn_high_u32): Likewise.
11456 (vqmovn_high_u64): Likewise.
11457 (vqmovun_high_s16): Likewise.
11458 (vqmovun_high_s32): Likewise.
11459 (vqmovun_high_s64): Likewise.
11460 (vqrdmulh_n_s16): Likewise.
11461 (vqrdmulh_n_s32): Likewise.
11462 (vqrdmulhq_n_s16): Likewise.
11463 (vqrdmulhq_n_s32): Likewise.
11464 (vrsqrte_u32): Likewise.
11465 (vrsqrteq_u32): Likewise.
11466 (vtst_p8): Likewise.
11467 (vtst_p16): Likewise.
11468 (vtst_p64): Likewise.
11469 (vtstq_p8): Likewise.
11470 (vtstq_p16): Likewise.
11471 (vtstq_p64): Likewise.
11472 (vaddlv_s32): Likewise.
11473 (vaddlv_u32): Likewise.
11474 (vqtbl1_p8): Likewise.
11475 (vqtbl1_s8): Likewise.
11476 (vqtbl1_u8): Likewise.
11477 (vqtbl1q_p8): Likewise.
11478 (vqtbl1q_s8): Likewise.
11479 (vqtbl1q_u8): Likewise.
11480 (vqtbx1_s8): Likewise.
11481 (vqtbx1_u8): Likewise.
11482 (vqtbx1_p8): Likewise.
11483 (vqtbx1q_s8): Likewise.
11484 (vqtbx1q_u8): Likewise.
11485 (vqtbx1q_p8): Likewise.
11486 (vtbl1_s8): Likewise.
11487 (vtbl1_u8): Likewise.
11488 (vtbl1_p8): Likewise.
11489 (vtbl2_s8): Likewise.
11490 (vtbl2_u8): Likewise.
11491 (vtbl2_p8): Likewise.
11492 (vtbl3_s8): Likewise.
11493 (vtbl3_u8): Likewise.
11494 (vtbl3_p8): Likewise.
11495 (vtbl4_s8): Likewise.
11496 (vtbl4_u8): Likewise.
11497 (vtbl4_p8): Likewise.
11498 (vtbx2_s8): Likewise.
11499 (vtbx2_u8): Likewise.
11500 (vtbx2_p8): Likewise.
11501 (vld1_f32): Likewise.
11502 (vld1_f64): Likewise.
11503 (vld1_p8): Likewise.
11504 (vld1_p16): Likewise.
11505 (vld1_p64): Likewise.
11506 (vld1_s8): Likewise.
11507 (vld1_s16): Likewise.
11508 (vld1_s32): Likewise.
11509 (vld1_s64): Likewise.
11510 (vld1_u8): Likewise.
11511 (vld1_u16): Likewise.
11512 (vld1_u32): Likewise.
11513 (vld1_u64): Likewise.
11514 (vld1q_f32): Likewise.
11515 (vld1q_f64): Likewise.
11516 (vld1q_p8): Likewise.
11517 (vld1q_p16): Likewise.
11518 (vld1q_p64): Likewise.
11519 (vld1q_s8): Likewise.
11520 (vld1q_s16): Likewise.
11521 (vld1q_s32): Likewise.
11522 (vld1q_s64): Likewise.
11523 (vld1q_u8): Likewise.
11524 (vld1q_u16): Likewise.
11525 (vld1q_u32): Likewise.
11526 (vld1q_u64): Likewise.
11527 (vpmax_s8): Likewise.
11528 (vpmax_s16): Likewise.
11529 (vpmax_s32): Likewise.
11530 (vpmax_u8): Likewise.
11531 (vpmax_u16): Likewise.
11532 (vpmax_u32): Likewise.
11533 (vpmaxq_s8): Likewise.
11534 (vpmaxq_s16): Likewise.
11535 (vpmaxq_s32): Likewise.
11536 (vpmaxq_u8): Likewise.
11537 (vpmaxq_u16): Likewise.
11538 (vpmaxq_u32): Likewise.
11539 (vpmax_f32): Likewise.
11540 (vpmaxq_f32): Likewise.
11541 (vpmaxq_f64): Likewise.
11542 (vpmaxqd_f64): Likewise.
11543 (vpmaxs_f32): Likewise.
11544 (vpmaxnm_f32): Likewise.
11545 (vpmaxnmq_f32): Likewise.
11546 (vpmaxnmq_f64): Likewise.
11547 (vpmaxnmqd_f64): Likewise.
11548 (vpmaxnms_f32): Likewise.
11549 (vpmin_s8): Likewise.
11550 (vpmin_s16): Likewise.
11551 (vpmin_s32): Likewise.
11552 (vpmin_u8): Likewise.
11553 (vpmin_u16): Likewise.
11554 (vpmin_u32): Likewise.
11555 (vpminq_s8): Likewise.
11556 (vpminq_s16): Likewise.
11557 (vpminq_s32): Likewise.
11558 (vpminq_u8): Likewise.
11559 (vpminq_u16): Likewise.
11560 (vpminq_u32): Likewise.
11561 (vpmin_f32): Likewise.
11562 (vpminq_f32): Likewise.
11563 (vpminq_f64): Likewise.
11564 (vpminqd_f64): Likewise.
11565 (vpmins_f32): Likewise.
11566 (vpminnm_f32): Likewise.
11567 (vpminnmq_f32): Likewise.
11568 (vpminnmq_f64): Likewise.
11569 (vpminnmqd_f64): Likewise.
11570 (vpminnms_f32): Likewise.
11571 (vmla_f32): Likewise.
11572 (vmlaq_f32): Likewise.
11573 (vmlaq_f64): Likewise.
11574 (vmls_f32): Likewise.
11575 (vmlsq_f32): Likewise.
11576 (vmlsq_f64): Likewise.
11577 (vqtbl2_s8): Likewise.
11578 (vqtbl2_u8): Likewise.
11579 (vqtbl2_p8): Likewise.
11580 (vqtbl2q_s8): Likewise.
11581 (vqtbl2q_u8): Likewise.
11582 (vqtbl2q_p8): Likewise.
11583 (vqtbl3_s8): Likewise.
11584 (vqtbl3_u8): Likewise.
11585 (vqtbl3_p8): Likewise.
11586 (vqtbl3q_s8): Likewise.
11587 (vqtbl3q_u8): Likewise.
11588 (vqtbl3q_p8): Likewise.
11589 (vqtbl4_s8): Likewise.
11590 (vqtbl4_u8): Likewise.
11591 (vqtbl4_p8): Likewise.
11592 (vqtbl4q_s8): Likewise.
11593 (vqtbl4q_u8): Likewise.
11594 (vqtbl4q_p8): Likewise.
11595 (vqtbx2_s8): Likewise.
11596 (vqtbx2_u8): Likewise.
11597 (vqtbx2_p8): Likewise.
11598 (vqtbx2q_s8): Likewise.
11599 (vqtbx2q_u8): Likewise.
11600 (vqtbx2q_p8): Likewise.
11601 (vqtbx3_s8): Likewise.
11602 (vqtbx3_u8): Likewise.
11603 (vqtbx3_p8): Likewise.
11604 (vqtbx3q_s8): Likewise.
11605 (vqtbx3q_u8): Likewise.
11606 (vqtbx3q_p8): Likewise.
11607 (vqtbx4_s8): Likewise.
11608 (vqtbx4_u8): Likewise.
11609 (vqtbx4_p8): Likewise.
11610 (vqtbx4q_s8): Likewise.
11611 (vqtbx4q_u8): Likewise.
11612 (vqtbx4q_p8): Likewise.
11613 (vrev16_p8): Likewise.
11614 (vrev16_s8): Likewise.
11615 (vrev16_u8): Likewise.
11616 (vrev16q_p8): Likewise.
11617 (vrev16q_s8): Likewise.
11618 (vrev16q_u8): Likewise.
11619 (vrev32_p8): Likewise.
11620 (vrev32_p16): Likewise.
11621 (vrev32_s8): Likewise.
11622 (vrev32_s16): Likewise.
11623 (vrev32_u8): Likewise.
11624 (vrev32_u16): Likewise.
11625 (vrev32q_p8): Likewise.
11626 (vrev32q_p16): Likewise.
11627 (vrev32q_s8): Likewise.
11628 (vrev32q_s16): Likewise.
11629 (vrev32q_u8): Likewise.
11630 (vrev32q_u16): Likewise.
11631 (vrev64_f32): Likewise.
11632 (vrev64_p8): Likewise.
11633 (vrev64_p16): Likewise.
11634 (vrev64_s8): Likewise.
11635 (vrev64_s16): Likewise.
11636 (vrev64_s32): Likewise.
11637 (vrev64_u8): Likewise.
11638 (vrev64_u16): Likewise.
11639 (vrev64_u32): Likewise.
11640 (vrev64q_f32): Likewise.
11641 (vrev64q_p8): Likewise.
11642 (vrev64q_p16): Likewise.
11643 (vrev64q_s8): Likewise.
11644 (vrev64q_s16): Likewise.
11645 (vrev64q_s32): Likewise.
11646 (vrev64q_u8): Likewise.
11647 (vrev64q_u16): Likewise.
11648 (vrev64q_u32): Likewise.
11649 (vsha1cq_u32): Likewise.
11650 (vsha1mq_u32): Likewise.
11651 (vsha1pq_u32): Likewise.
11652 (vsha1h_u32): Likewise.
11653 (vsha1su0q_u32): Likewise.
11654 (vsha1su1q_u32): Likewise.
11655 (vsha256hq_u32): Likewise.
11656 (vsha256h2q_u32): Likewise.
11657 (vsha256su0q_u32): Likewise.
11658 (vsha256su1q_u32): Likewise.
11659 (vmull_p64): Likewise.
11660 (vmull_high_p64): Likewise.
11661 (vsqrt_f32): Likewise.
11662 (vsqrtq_f32): Likewise.
11663 (vsqrt_f64): Likewise.
11664 (vsqrtq_f64): Likewise.
11665 (vst1_f32): Likewise.
11666 (vst1_f64): Likewise.
11667 (vst1_p8): Likewise.
11668 (vst1_p16): Likewise.
11669 (vst1_p64): Likewise.
11670 (vst1_s8): Likewise.
11671 (vst1_s16): Likewise.
11672 (vst1_s32): Likewise.
11673 (vst1_s64): Likewise.
11674 (vst1_u8): Likewise.
11675 (vst1_u16): Likewise.
11676 (vst1_u32): Likewise.
11677 (vst1_u64): Likewise.
11678 (vst1q_f32): Likewise.
11679 (vst1q_f64): Likewise.
11680 (vst1q_p8): Likewise.
11681 (vst1q_p16): Likewise.
11682 (vst1q_p64): Likewise.
11683 (vst1q_s8): Likewise.
11684 (vst1q_s16): Likewise.
11685 (vst1q_s32): Likewise.
11686 (vst1q_s64): Likewise.
11687 (vst1q_u8): Likewise.
11688 (vst1q_u16): Likewise.
11689 (vst1q_u32): Likewise.
11690 (vst1q_u64): Likewise.
11691 (vst1_s64_x2): Likewise.
11692 (vst1_u64_x2): Likewise.
11693 (vst1_f64_x2): Likewise.
11694 (vst1_s8_x2): Likewise.
11695 (vst1_p8_x2): Likewise.
11696 (vst1_s16_x2): Likewise.
11697 (vst1_p16_x2): Likewise.
11698 (vst1_s32_x2): Likewise.
11699 (vst1_u8_x2): Likewise.
11700 (vst1_u16_x2): Likewise.
11701 (vst1_u32_x2): Likewise.
11702 (vst1_f16_x2): Likewise.
11703 (vst1_f32_x2): Likewise.
11704 (vst1_p64_x2): Likewise.
11705 (vst1q_s8_x2): Likewise.
11706 (vst1q_p8_x2): Likewise.
11707 (vst1q_s16_x2): Likewise.
11708 (vst1q_p16_x2): Likewise.
11709 (vst1q_s32_x2): Likewise.
11710 (vst1q_s64_x2): Likewise.
11711 (vst1q_u8_x2): Likewise.
11712 (vst1q_u16_x2): Likewise.
11713 (vst1q_u32_x2): Likewise.
11714 (vst1q_u64_x2): Likewise.
11715 (vst1q_f16_x2): Likewise.
11716 (vst1q_f32_x2): Likewise.
11717 (vst1q_f64_x2): Likewise.
11718 (vst1q_p64_x2): Likewise.
11719 (vst1_s64_x3): Likewise.
11720 (vst1_u64_x3): Likewise.
11721 (vst1_f64_x3): Likewise.
11722 (vst1_s8_x3): Likewise.
11723 (vst1_p8_x3): Likewise.
11724 (vst1_s16_x3): Likewise.
11725 (vst1_p16_x3): Likewise.
11726 (vst1_s32_x3): Likewise.
11727 (vst1_u8_x3): Likewise.
11728 (vst1_u16_x3): Likewise.
11729 (vst1_u32_x3): Likewise.
11730 (vst1_f16_x3): Likewise.
11731 (vst1_f32_x3): Likewise.
11732 (vst1_p64_x3): Likewise.
11733 (vst1q_s8_x3): Likewise.
11734 (vst1q_p8_x3): Likewise.
11735 (vst1q_s16_x3): Likewise.
11736 (vst1q_p16_x3): Likewise.
11737 (vst1q_s32_x3): Likewise.
11738 (vst1q_s64_x3): Likewise.
11739 (vst1q_u8_x3): Likewise.
11740 (vst1q_u16_x3): Likewise.
11741 (vst1q_u32_x3): Likewise.
11742 (vst1q_u64_x3): Likewise.
11743 (vst1q_f16_x3): Likewise.
11744 (vst1q_f32_x3): Likewise.
11745 (vst1q_f64_x3): Likewise.
11746 (vst1q_p64_x3): Likewise.
11747 (vst2_s64): Likewise.
11748 (vst2_u64): Likewise.
11749 (vst2_f64): Likewise.
11750 (vst2_s8): Likewise.
11751 (vst2_p8): Likewise.
11752 (vst2_s16): Likewise.
11753 (vst2_p16): Likewise.
11754 (vst2_s32): Likewise.
11755 (vst2_u8): Likewise.
11756 (vst2_u16): Likewise.
11757 (vst2_u32): Likewise.
11758 (vst2_f16): Likewise.
11759 (vst2_f32): Likewise.
11760 (vst2_p64): Likewise.
11761 (vst2q_s8): Likewise.
11762 (vst2q_p8): Likewise.
11763 (vst2q_s16): Likewise.
11764 (vst2q_p16): Likewise.
11765 (vst2q_s32): Likewise.
11766 (vst2q_s64): Likewise.
11767 (vst2q_u8): Likewise.
11768 (vst2q_u16): Likewise.
11769 (vst2q_u32): Likewise.
11770 (vst2q_u64): Likewise.
11771 (vst2q_f16): Likewise.
11772 (vst2q_f32): Likewise.
11773 (vst2q_f64): Likewise.
11774 (vst2q_p64): Likewise.
11775 (vst3_s64): Likewise.
11776 (vst3_u64): Likewise.
11777 (vst3_f64): Likewise.
11778 (vst3_s8): Likewise.
11779 (vst3_p8): Likewise.
11780 (vst3_s16): Likewise.
11781 (vst3_p16): Likewise.
11782 (vst3_s32): Likewise.
11783 (vst3_u8): Likewise.
11784 (vst3_u16): Likewise.
11785 (vst3_u32): Likewise.
11786 (vst3_f16): Likewise.
11787 (vst3_f32): Likewise.
11788 (vst3_p64): Likewise.
11789 (vst3q_s8): Likewise.
11790 (vst3q_p8): Likewise.
11791 (vst3q_s16): Likewise.
11792 (vst3q_p16): Likewise.
11793 (vst3q_s32): Likewise.
11794 (vst3q_s64): Likewise.
11795 (vst3q_u8): Likewise.
11796 (vst3q_u16): Likewise.
11797 (vst3q_u32): Likewise.
11798 (vst3q_u64): Likewise.
11799 (vst3q_f16): Likewise.
11800 (vst3q_f32): Likewise.
11801 (vst3q_f64): Likewise.
11802 (vst3q_p64): Likewise.
11803 (vst4_s64): Likewise.
11804 (vst4_u64): Likewise.
11805 (vst4_f64): Likewise.
11806 (vst4_s8): Likewise.
11807 (vst4_p8): Likewise.
11808 (vst4_s16): Likewise.
11809 (vst4_p16): Likewise.
11810 (vst4_s32): Likewise.
11811 (vst4_u8): Likewise.
11812 (vst4_u16): Likewise.
11813 (vst4_u32): Likewise.
11814 (vst4_f16): Likewise.
11815 (vst4_f32): Likewise.
11816 (vst4_p64): Likewise.
11817 (vst4q_s8): Likewise.
11818 (vst4q_p8): Likewise.
11819 (vst4q_s16): Likewise.
11820 (vst4q_p16): Likewise.
11821 (vst4q_s32): Likewise.
11822 (vst4q_s64): Likewise.
11823 (vst4q_u8): Likewise.
11824 (vst4q_u16): Likewise.
11825 (vst4q_u32): Likewise.
11826 (vst4q_u64): Likewise.
11827 (vst4q_f16): Likewise.
11828 (vst4q_f32): Likewise.
11829 (vst4q_f64): Likewise.
11830 (vst4q_p64): Likewise.
11831 (vtbx4_s8): Likewise.
11832 (vtbx4_u8): Likewise.
11833 (vtbx4_p8): Likewise.
11834 (vtrn_f32): Likewise.
11835 (vtrn_p8): Likewise.
11836 (vtrn_p16): Likewise.
11837 (vtrn_s8): Likewise.
11838 (vtrn_s16): Likewise.
11839 (vtrn_s32): Likewise.
11840 (vtrn_u8): Likewise.
11841 (vtrn_u16): Likewise.
11842 (vtrn_u32): Likewise.
11843 (vtrnq_f32): Likewise.
11844 (vtrnq_p8): Likewise.
11845 (vtrnq_p16): Likewise.
11846 (vtrnq_s8): Likewise.
11847 (vtrnq_s16): Likewise.
11848 (vtrnq_s32): Likewise.
11849 (vtrnq_u8): Likewise.
11850 (vtrnq_u16): Likewise.
11851 (vtrnq_u32): Likewise.
11852 (vrsqrte_f16): Likewise.
11853 (vrsqrteq_f16): Likewise.
11854 (vsqrt_f16): Likewise.
11855 (vsqrtq_f16): Likewise.
11856 (vabd_f16): Likewise.
11857 (vabdq_f16): Likewise.
11858 (vpadd_f16): Likewise.
11859 (vpaddq_f16): Likewise.
11860 (vpmax_f16): Likewise.
11861 (vpmaxq_f16): Likewise.
11862 (vpmaxnm_f16): Likewise.
11863 (vpmaxnmq_f16): Likewise.
11864 (vpmin_f16): Likewise.
11865 (vpminq_f16): Likewise.
11866 (vpminnm_f16): Likewise.
11867 (vpminnmq_f16): Likewise.
11868 (vrsqrts_f16): Likewise.
11869 (vrsqrtsq_f16): Likewise.
11870
11871 2019-09-25 Richard Biener <rguenther@suse.de>
11872
11873 PR tree-optimization/91896
11874 * tree-vect-loop.c (vectorizable_reduction): The single
11875 def-use cycle optimization cannot apply when there's more
11876 than one pattern stmt involved.
11877
11878 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11879
11880 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11881 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11882 (reload_macho_picbase_<mode>): Likewise.
11883
11884 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11885
11886 * config/rs6000/rs6000.md: Move darwin.md include until
11887 after the definition of the mode iterators.
11888
11889 2019-09-23 Martin Sebor <msebor@redhat.com>
11890
11891 PR tree-optimization/91570
11892 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11893 non-constant minlen, maxlen and maxbound.
11894
11895 2019-09-24 Richard Biener <rguenther@suse.de>
11896
11897 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11898 Rename to...
11899 (_stmt_vec_info::cond_reduc_code): ... this.
11900 (_stmt_vec_info::induc_cond_initial_val): Add.
11901 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11902 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11903 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11904 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11905 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11906 the reduction code.
11907 (vect_create_epilog_for_reduction): Drop special
11908 induction condition reduction params, pass in reduction code
11909 and simplify.
11910 (vectorizable_reduction): Perform condition reduction kind
11911 selection only at analysis time. Adjust passing on state.
11912
11913 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11914
11915 * config/aarch64/aarch64.md (mov<mode>): Don't call
11916 aarch64_split_dimode_const_store on volatile MEM.
11917
11918 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11919
11920 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11921 Update hwcap string for fp16fml.
11922
11923 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11924
11925 PR middle-end/91866
11926 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11927 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11928
11929 2019-09-24 Martin Liska <mliska@suse.cz>
11930
11931 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11932 instead of if-elseif-elseif-...
11933 * gimple-expr.c (extract_ops_from_tree): Likewise.
11934 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11935 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11936
11937 2019-09-24 Martin Jambor <mjambor@suse.cz>
11938
11939 PR ipa/91831
11940 * ipa-param-manipulation.c (carry_over_param): Make a method of
11941 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11942 in case of a context mismatch.
11943 (ipa_param_body_adjustments::common_initialization): Adjust call to
11944 carry_over_param.
11945 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11946 private method carry_over_param.
11947
11948 2019-09-24 Martin Jambor <mjambor@suse.cz>
11949
11950 PR ipa/91832
11951 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11952
11953 2019-09-24 Richard Biener <rguenther@suse.de>
11954
11955 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11956 base.
11957
11958 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11959
11960 * config/arm/t-arm (arm-builtins.o): Add dependency on
11961 arm_acle_builtins.def.
11962
11963 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11964
11965 PR target/91823
11966 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11967 canonical CONST_INTs. Use gen_rtvec.
11968
11969 2019-09-23 Richard Biener <rguenther@suse.de>
11970
11971 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11972 avoid adjusting by + 0 or * 1.
11973 (vect_create_epilog_for_reduction): Get reduction code only
11974 when necessary. Deal with adjustment_def only when necessary.
11975
11976 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11977
11978 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11979 memmodel index.
11980
11981 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11982
11983 PR ipa/91835
11984 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11985 "ipa-sra".
11986
11987 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11988
11989 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11990 code. Merge code blocks with common conditionals. Use declared
11991 macro instead of a magic number for PIC level.
11992
11993 2019-09-21 Martin Sebor <msebor@redhat.com>
11994
11995 PR middle-end/91830
11996 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11997 Simplify computation of the offset of the referenced subobject.
11998
11999 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12000
12001 * config/darwin.c (machopic_legitimize_pic_address): Check
12002 for lra not reload.
12003
12004 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12005
12006 * ira-conflicts.c (can_use_same_reg_p): New function.
12007 (process_reg_shuffles): Take an insn parameter. Ignore cases
12008 in which input operand op_num could seemingly never be allocated
12009 to the same register as the destination.
12010 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12011
12012 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12013
12014 * simplify-rtx.c (neg_const_int): Replace with...
12015 (neg_poly_int_rtx): ...this new function.
12016 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12017 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12018 (simplify_plus_minus): Likewise for constant terms here.
12019
12020 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12021
12022 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12023 HOST_WIDE_PRINT_UNSIGNED.
12024
12025 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12026
12027 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12028 character.
12029
12030 2019-09-20 Maya Rashish <coypu@sdf.org>
12031
12032 PR target/86811
12033 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12034 Define to speculation_safe_value_not_needed.
12035
12036 2019-09-20 Richard Biener <rguenther@suse.de>
12037 Uros Bizjak <ubizjak@gmail.com>
12038
12039 PR target/91814
12040 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12041 previous change.
12042 (general_scalar_chain::convert_op): Force not suitable memory
12043 operands to a register.
12044
12045 2019-09-20 Richard Biener <rguenther@suse.de>
12046
12047 PR tree-optimization/91821
12048 * tree-vect-loop.c (check_reduction_path): Check we can compute
12049 reduc_idx.
12050 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12051 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12052 operands in canonical order.
12053 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12054 STMT_VINFO_REDUC_IDX.
12055 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12056 (STMT_VINFO_REDUC_IDX): Likewise.
12057
12058 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12059
12060 PR target/91269
12061 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12062
12063 2019-09-20 Richard Biener <rguenther@suse.de>
12064
12065 PR tree-optimization/91822
12066 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12067 parameter.
12068 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12069 for reduc_index in nested cycles, adjust vectorizable_condition
12070 calls.
12071 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12072 parameter.
12073 (vect_analyze_stmt): Adjust.
12074 (vect_transform_stmt): Likewise.
12075
12076 2019-09-20 Richard Biener <rguenther@suse.de>
12077
12078 PR target/91767
12079 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12080 Ensure there's a sequence point between allocating the new register
12081 and passing a reference to a reg via regno_reg_rtx.
12082
12083 2019-09-20 Martin Jambor <mjambor@suse.cz>
12084
12085 * coretypes.h (cgraph_edge): Declare.
12086 * ipa-param-manipulation.c: Rewrite.
12087 * ipa-param-manipulation.h: Likewise.
12088 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12089 (OBJS): Added ipa-sra.o.
12090 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12091 and ref_p, added fields param_adjustments and performed_splits.
12092 (struct cgraph_clone_info): Remove ags_to_skip and
12093 combined_args_to_skip, new field param_adjustments.
12094 (cgraph_node::create_clone): Changed parameters to use
12095 ipa_param_adjustments.
12096 (cgraph_node::create_virtual_clone): Likewise.
12097 (cgraph_node::create_virtual_clone_with_body): Likewise.
12098 (tree_function_versioning): Likewise.
12099 (cgraph_build_function_type_skip_args): Removed.
12100 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12101 using ipa_param_adjustments.
12102 (clone_of_p): Likewise.
12103 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12104 (build_function_decl_skip_args): Likewise.
12105 (duplicate_thunk_for_node): Adjust parameters using
12106 ipa_param_body_adjustments, copy param_adjustments instead of
12107 args_to_skip.
12108 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12109 (cgraph_node::create_virtual_clone): Likewise.
12110 (cgraph_node::create_version_clone_with_body): Likewise.
12111 (cgraph_materialize_clone): Likewise.
12112 (symbol_table::materialize_all_clones): Likewise.
12113 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12114 ipa_replace_map check.
12115 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12116 (initialize_node_lattices): Make aware that some parameters might have
12117 already been removed.
12118 (want_remove_some_param_p): New function.
12119 (create_specialized_node): Convert to using ipa_param_adjustments and
12120 deal with possibly pre-existing adjustments.
12121 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12122 (output_node_opt_summary): Do not stream removed fields. Stream
12123 parameter adjustments instead of argumetns to skip.
12124 (input_node_opt_summary): Likewise.
12125 (input_node_opt_summary): Likewise.
12126 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12127 * lto-streamer.h (lto_section_type): Likewise.
12128 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12129 param_body_adjs.
12130 (copy_decl_to_var): Declare.
12131 * tree-inline.c (update_clone_info): Do not remap old_tree.
12132 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12133 statements, walk all extra generated statements and remap their
12134 operands.
12135 (redirect_all_calls): Add killed SSA names to a hash set.
12136 (remap_ssa_name): Do not remap killed SSA names.
12137 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12138 half of functionality moved to ipa_param_body_adjustments.
12139 (copy_decl_to_var): Make exported.
12140 (copy_body): Destroy killed_new_ssa_names hash set.
12141 (expand_call_inline): Remap performed splits.
12142 (update_clone_info): Likewise.
12143 (tree_function_versioning): Simplify tree_map processing. Updated to
12144 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12145 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12146 for the new interface.
12147 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12148 (simd_clone_compute_base_data_type): Likewise.
12149 (simd_clone_init_simd_arrays): Adjust for the new interface.
12150 (simd_clone_adjust_argument_types): Likewise.
12151 (struct modify_stmt_info): Likewise.
12152 (ipa_simd_modify_stmt_ops): Likewise.
12153 (ipa_simd_modify_function_body): Likewise.
12154 (simd_clone_adjust): Likewise.
12155 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12156 (type_internals_preclude_sra_p): Make public.
12157 * tree-sra.h: New file.
12158 * ipa-inline-transform.c (save_inline_function_body): Update to
12159 refelct new tree_function_versioning signature.
12160 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12161 ipa_param_adjustments to get current parameter indices.
12162 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12163 (ipcp_update_bits): Likewise.
12164 (ipcp_update_vr): Likewise.
12165 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12166 * ipa-sra.c: New file.
12167 * multiple_target.c (create_target_clone): Update to reflet new type
12168 of create_version_clone_with_body.
12169 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12170 tree_function_versioning.
12171 (modify_function): Update to reflect new type of
12172 tree_function_versioning.
12173 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12174 * passes.def: Remove old IPA-SRA and add new one.
12175 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12176 (make_pass_ipa_sra): Declare.
12177 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12178 ipa_sra_retvalues.
12179 * doc/invoke.texi (ipa-sra-max-replacements): New.
12180
12181 2019-09-19 Martin Sebor <msebor@redhat.com>
12182
12183 PR middle-end/91631
12184 * builtins.c (component_size): Correct trailing array computation,
12185 rename to component_ref_size and move...
12186 (compute_objsize): Adjust.
12187 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12188 (builtin_access::strict): Do not consider memmove.
12189 (builtin_access::write_off): New function.
12190 (builtin_memref::builtin_memref): Initialize refsize.
12191 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12192 refsize.
12193 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12194 Handle refsize.
12195 (builtin_access::builtin_access): Initialize dstoff to destination
12196 refeence offset here instead of in maybe_diag_overlap. Adjust
12197 referencess even to unrelated objects. Adjust sizrange of bounded
12198 string functions to reflect bound. For strcat, adjust destination
12199 sizrange by that of source.
12200 (builtin_access::strcat_overlap): Adjust offsets and sizes
12201 to reflect the increase in destination sizrange above.
12202 (builtin_access::overlap): Do not set dstoff here but instead
12203 in builtin_access::builtin_access.
12204 (check_bounds_or_overlap): Use builtin_access::write_off.
12205 (maybe_diag_access_bounds): Add argument. Add informational notes.
12206 (dump_builtin_memref, dump_builtin_access): New functions.
12207 * tree.c (component_ref_size): ...to here.
12208 * tree.h (component_ref_size): Declare.
12209 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12210 nul in the size of the source string.
12211
12212 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12213
12214 PR c/67224
12215 * doc/cpp.texi: Document support for extended characters in
12216 identifiers.
12217 * doc/cppopts.texi: Likewise.
12218
12219 2019-09-19 Richard Biener <rguenther@suse.de>
12220
12221 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12222 (check_reduction_path): New overload having the path as result.
12223 (vect_is_simple_reduction): From the detected reduction
12224 path build a SLP reduction chain if possible.
12225
12226 2019-09-19 Richard Biener <rguenther@suse.de>
12227
12228 PR target/91814
12229 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12230 Force operand to a register if it isn't nonimmediate_operand.
12231
12232 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12233
12234 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12235 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12236 (logical_op): Remove code attribute.
12237 (logical_OP): Likewise.
12238
12239 2019-09-19 Martin Liska <mliska@suse.cz>
12240
12241 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12242 Use proper casting.
12243
12244 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12245
12246 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12247 registers with %R.
12248
12249 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12250 for NE comparison of TImode values.
12251 (aarch64_emit_load_exclusive): Add support for TImode.
12252 (aarch64_emit_store_exclusive): Likewise.
12253 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12254 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12255 Change iterator from ALLI to ALLI_TI.
12256 (@atomic_compare_and_swap<JUST_TI>): New.
12257 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12258 (aarch64_load_exclusive_pair): New.
12259 (aarch64_store_exclusive_pair): New.
12260 * config/aarch64/iterators.md (JUST_TI): New.
12261
12262 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12263 strong_zero_p for aarch64_track_speculation; unify some code paths;
12264 use aarch64_gen_compare_reg instead of open-coding.
12265
12266 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12267 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12268 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12269 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12270 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12271 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12272 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12273 (atomic_<atomic_op><ALLI>): Likewise.
12274 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12275 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12276 * doc/invoke.texi: Document -moutline-atomics.
12277
12278 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12279
12280 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12281 trivial predicate for condition branch.
12282 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12283 for switch case.
12284 (compute_bb_predicates): Update predicate based on post-dominating
12285 relationship.
12286 (analyze_function_body): Calculate post-dominating information.
12287
12288 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12289
12290 * tree-vectorizer.h (vectorizable_condition): Take an int
12291 reduction index instead of a boolean flag.
12292 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12293 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12294 reductions if the reduction accumulator is the "then" rather
12295 than the "else" value.
12296 (vect_analyze_stmt): Update call accordingly.
12297 (vect_transform_stmt): Likewise.
12298 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12299 asserting that the index is > 0.
12300
12301 2019-09-19 Martin Liska <mliska@suse.cz>
12302
12303 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12304 (sort_congruence_classes_by_decl_uid): Likewise.
12305 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12306 easier sorting.
12307 (sem_item_optimizer::merge_classes): Likewise.
12308
12309 2019-09-19 Richard Biener <rguenther@suse.de>
12310
12311 PR tree-optimization/91812
12312 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12313 volatile loads.
12314
12315 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12316
12317 * defaults.h (TARGET_UNIT): New macro.
12318 (target_unit): New type.
12319 * rtl.h (native_encode_rtx, native_decode_rtx)
12320 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12321 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12322 * rtlanal.c (subreg_lsb_1): Delete.
12323 (subreg_size_lsb): New function.
12324 * simplify-rtx.c: Include rtx-vector-builder.h
12325 (simplify_immed_subreg): Delete.
12326 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12327 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12328 functions.
12329 (simplify_subreg): Use them.
12330 (test_vector_subregs_modes, test_vector_subregs_repeating)
12331 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12332 (test_vector_subregs): New functions.
12333 (test_vector_ops): Call test_vector_subregs for integer vector
12334 modes with at least 2 elements.
12335
12336 2019-09-19 Richard Biener <rguenther@suse.de>
12337
12338 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12339 LOOP_VINFO_OPERANDS_SWAPPED.
12340 (parloops_is_simple_reduction): Likewise.
12341 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12342 initialize operands_swapped.
12343 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12344 (vect_is_slp_reduction): Do not swap operands.
12345 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12346 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12347
12348 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12349
12350 PR target/87007
12351 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12352 Add avx_partial_xmm_update.
12353
12354 2019-09-18 Jim Wilson <jimw@sifive.com>
12355
12356 PR target/91683
12357 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12358 (riscv_move_integer): Likewise.
12359 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12360 riscv_move_integer arg.
12361 (riscv_legitimize_move): Likewise.
12362 (riscv_force_temporary): New parameter in_splitter. Don't call
12363 force_reg if true.
12364 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12365 arg.
12366 (riscv_add_offset): Likewise.
12367 (riscv_split_symbol): New parameter in_splitter. Pass to
12368 riscv_force_temporary.
12369 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12370 arg.
12371 (riscv_move_integer): New parameter in_splitter. New local
12372 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12373 in_splitter TRUE.
12374 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12375 riscv_split_symbol, and riscv_force_temporary args.
12376 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12377 riscv_move_integer arg.
12378 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12379
12380 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12381
12382 PR target/90878
12383 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12384 hard register store cost to 6.
12385
12386 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12387
12388 PR target/91446
12389 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12390 pseudo register store cost from 3 to 6 to make it the same as
12391 QImode and HImode.
12392
12393 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12394
12395 PR target/91738
12396 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12397 (one_cmpldi2): Likewise.
12398 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12399 of the constant parts is simple.
12400 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12401 (logical_op): Add new code attribute.
12402 (logical_OP): Likewise.
12403 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12404 (arm_iordi_operand): Add predicate.
12405 (arm_xordi_operand): Add predicate.
12406
12407 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12408
12409 * config/arm/arm.md (maddsidi4): Remove expander.
12410 (mulsidi3adddi): Remove pattern.
12411 (mulsidi3adddi_v6): Likewise.
12412 (mulsidi3_nov6): Likewise.
12413 (mulsidi3_v6): Likewise.
12414 (umulsidi3): Remove expander.
12415 (umulsidi3_nov6): Remove pattern.
12416 (umulsidi3_v6): Likewise.
12417 (umulsidi3adddi): Likewise.
12418 (umulsidi3adddi_v6): Likewise.
12419 (<Us>mulsidi3): Add combined expander.
12420 (<Us>maddsidi4): Likewise.
12421 (<US>mull): Add combined umull and smull pattern.
12422 (<US>mlal): Likewise.
12423 * config/arm/iterators.md (Us): Add new iterator.
12424
12425 2019-09-18 Richard Biener <rguenther@suse.de>
12426
12427 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12428 swapping.
12429 (vectorize_fold_left_reduction): Remove assert.
12430 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12431 operand in position 2. Remove assert.
12432
12433 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12434
12435 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12436 (smulsi3_highpart_nov6): Remove pattern.
12437 (smulsi3_highpart_v6): Likewise.
12438 (umulsi3_highpart): Likewise.
12439 (umulsi3_highpart_nov6): Likewise.
12440 (umulsi3_highpart_v6): Likewise.
12441 (<US>mull_high): Add new combined multiply pattern.
12442
12443 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12444
12445 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12446 (arm_mulsi3_v6): Likewise.
12447 (mulsi3addsi_v6): Likewise.
12448 (mulsi3subsi): Likewise.
12449 (mul): Add new multiply pattern.
12450 (mla): Likewise.
12451 (mls): Likewise.
12452
12453 2019-09-18 Richard Biener <rguenther@suse.de>
12454
12455 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12456 (parloops_valid_reduction_input_p): Copy from
12457 valid_reduction_input_p.
12458 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12459 (parloops_needs_fold_left_reduction_p): Copy from
12460 needs_fold_left_reduction_p.
12461 (parloops_is_simple_reduction): Copy from
12462 vect_is_simple_reduction.
12463 (parloops_force_simple_reduction): Copy from
12464 vect_force_simple_reduction.
12465 (gather_scalar_reductions): Adjust.
12466 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12467 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12468
12469 2019-09-18 Richard Biener <rguenther@suse.de>
12470
12471 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12472 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12473 static.
12474 (vect_create_epilog_for_reduction): Remove dead code.
12475
12476 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12477
12478 * varasm.c (assemble_real): Generate canonical const_ints.
12479
12480 2019-09-18 Richard Biener <rguenther@suse.de>
12481
12482 PR lto/91763
12483 * lto-streamer-in.c (input_eh_regions): Move EH init to
12484 lto_materialize_function.
12485 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12486 Likewise.
12487
12488 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12489
12490 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12491 are INTEGER_CSTs.
12492
12493 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12494
12495 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12496 of checking specifically for INTEGER_CST.
12497
12498 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12499
12500 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12501 sizes instead of uhwi sizes.
12502
12503 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12504
12505 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12506 (add_const_value_attribute): Handle CONST_POLY_INT.
12507
12508 2019-09-18 Martin Liska <mliska@suse.cz>
12509
12510 * dbgcnt.def (store_merging): New counter.
12511 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12512 Use it in store merging.
12513
12514 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12515
12516 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12517 function.
12518 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12519 * config/arm/arm.c (arm_sched_variable_issue): New function.
12520 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12521
12522 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12523
12524 * config/arm/types.md (no_reservation): New reservation.
12525 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12526 no_insn here.
12527 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12528 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12529 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12530 * config/arm/arm1020e.md (1020alu_op): Likewise.
12531 * config/arm/arm1026ejs.md (alu_op): Likewise.
12532 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12533 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12534 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12535 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12536 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12537 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12538 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12539 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12540 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12541 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12542 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12543 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12544 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12545 * config/arm/fa526.md (526_alu_op): Likewise.
12546 * config/arm/fa606te.md (606te_alu_op): Likewise.
12547 * config/arm/fa626te.md (626te_alu_op): Likewise.
12548 * config/arm/fa726te.md (726te_alu_op): Likewise.
12549 * config/arm/xgene1.md (xgene1_nop): Likewise.
12550
12551 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12552
12553 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12554 "no_insn" to "branch".
12555
12556 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12557
12558 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12559
12560 2019-09-17 Richard Biener <rguenther@suse.de>
12561
12562 PR debug/91772
12563 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12564 was missing generate locations only once.
12565
12566 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12567
12568 PR ipa/91089
12569 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12570 option.
12571 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12572 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12573 for switch default case using range analysis information.
12574
12575 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12576
12577 PR target/91749
12578 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12579 mode attributed is supported by FDPIC.
12580
12581 2019-09-17 Richard Biener <rguenther@suse.de>
12582
12583 PR tree-optimization/91790
12584 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12585 use the correct DR for setting up realignment.
12586
12587 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12588
12589 PR target/91719
12590 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12591 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12592 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12593 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12594
12595 2019-09-16 Jason Merrill <jason@redhat.com>
12596
12597 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12598
12599 2019-09-16 Martin Liska <mliska@suse.cz>
12600
12601 * gimple-fold.c (or_comparisons_1): Remove rules moved
12602 to ...
12603 * match.pd: ... here.
12604
12605 2019-09-16 Martin Liska <mliska@suse.cz>
12606
12607 * gimple-fold.c (or_comparisons_1): Remove rules
12608 moved to ...
12609 * match.pd: ... here.
12610
12611 2019-09-16 Martin Liska <mliska@suse.cz>
12612
12613 * genmatch.c (dt_node::append_simplify): Do not print
12614 warning when we have duplicate patterns belonging
12615 to a same simplify rule.
12616 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12617 (maybe_fold_comparisons_from_match_pd): Handle
12618 tcc_comparison as a results.
12619 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12620
12621 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12622 Qi Feng <ffengqi@linux.ibm.com>
12623
12624 PR middle-end/88784
12625 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12626 (x > y && x == XXX_MIN): Optimize into 'false'.
12627 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12628 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12629 (x < y && x == XXX_MAX): Optimize into 'false'.
12630 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12631 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12632 (x <= y || x != XXX_MIN): Optimize into 'true'.
12633 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12634 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12635 (x >= y || x != XXX_MAX): Optimize into 'true'.
12636 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12637
12638 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12639 Martin Liska <mliska@suse.cz>
12640
12641 * gimple-fold.c (and_comparisons_1): Add type as first
12642 argument.
12643 (and_var_with_comparison): Likewise.
12644 (and_var_with_comparison_1): Likewise.
12645 (or_comparisons_1): Likewise.
12646 (or_var_with_comparison): Likewise.
12647 (or_var_with_comparison_1): Likewise.
12648 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12649 (maybe_fold_or_comparisons): Likewise.
12650 (maybe_fold_comparisons_from_match_pd): New.
12651 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12652 (maybe_fold_or_comparisons): Likewise.
12653 * gimple.c (gimple_size): Make it public and add num_ops argument.
12654 (gimple_init): New function.
12655 (gimple_alloc): Call gimple_init.
12656 * gimple.h (gimple_size): New.
12657 (gimple_init): Likewise.
12658 * tree-if-conv.c (fold_or_predicates): Pass type.
12659 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12660 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12661 (optimize_vec_cond_expr): Likewise.
12662 (ovce_extract_ops): Return type of conditional expression.
12663 * tree-ssanames.c (init_ssa_name_imm_use): New.
12664 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12665 * tree-ssanames.h (init_ssa_name_imm_use): New.
12666
12667 2019-09-16 Richard Biener <rguenther@suse.de>
12668
12669 PR tree-optimization/91756
12670 PR tree-optimization/87132
12671 * tree-ssa-alias.h (enum translate_flags): New.
12672 (get_continuation_for_phi): Use it instead of simple bool flag.
12673 (walk_non_aliased_vuses): Likewise.
12674 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12675 (get_continuation_for_phi): When looking across backedges only
12676 disallow valueization.
12677 (walk_non_aliased_vuses): Adjust.
12678 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12679 if requested.
12680
12681 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12682
12683 PR middle-end/80791
12684 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12685 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12686 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12687 * target.def (have_count_reg_decr_p): New hook.
12688 (doloop_cost_for_generic): Likewise.
12689 (doloop_cost_for_address): Likewise.
12690 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12691 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12692 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12693 * doc/tm.texi: Regenerate.
12694 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12695 addend.
12696 (record_group): Init doloop_p.
12697 (add_candidate_1): Add optional argument doloop, change the handlings
12698 accordingly.
12699 (add_candidate): Likewise.
12700 (generic_predict_doloop_p): Update attribute.
12701 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12702 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12703 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12704 MIN_EXPR.
12705 (get_computation_cost): Update for doloop IV cand extra cost.
12706 (determine_group_iv_cost_cond): Update for doloop IV cand.
12707 (determine_iv_cost): Likewise.
12708 (ivopts_estimate_reg_pressure): Likewise.
12709 (may_eliminate_iv): Update handlings for doloop IV cand.
12710 (add_iv_candidate_for_doloop): New function.
12711 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12712 (iv_ca_set_no_cp): Update for doloop IV cand.
12713 (iv_ca_set_cp): Likewise.
12714 (iv_ca_dump): Dump register cost.
12715 (find_doloop_use): New function.
12716 (analyze_and_mark_doloop_use): Likewise.
12717 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12718
12719 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12720
12721 PR middle-end/91708
12722 * cse.c (cse_insn): Do not replace anything with a
12723 MEM.
12724
12725 2019-09-13 Ian Lance Taylor <iant@golang.org>
12726
12727 * doc/invoke.texi (Optimize Options): Fix typo.
12728
12729 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12730
12731 PR tree-optimization/89386
12732 * config/i386/sse.md (smulhrs<mode>3): New expander.
12733 (smulhrsv4hi3): Ditto.
12734
12735 2019-09-12 Richard Biener <rguenther@suse.de>
12736
12737 PR tree-optimization/91750
12738 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12739 in the type of the evolution.
12740
12741 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12742
12743 PR tree-optimization/89386
12744 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12745 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12746 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12747 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12748 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12749 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12750 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12751 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12752 (su, r): Handle the unspecs above.
12753 (bt): New int attribute.
12754 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12755 * internal-fn.c (first_commutative_argument): Commutativity info for
12756 above.
12757 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12758 (umulhrs_optab): New optabs.
12759 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12760 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12761 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12762 function.
12763 (vect_vect_recog_func_ptrs): Add it.
12764
12765 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12766
12767 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12768 code.
12769
12770 2019-09-11 Nathan Sidwell <nathan@acm.org>
12771
12772 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12773 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12774
12775 2019-09-11 Richard Biener <rguenther@suse.de>
12776
12777 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12778 * lto-wrapper.c (merge_and_complain): Pick up -g.
12779 (append_compiler_options): Likewise.
12780 (run_gcc): Re-instantiate handling -g0 at link-time.
12781 * doc/invoke.texi (flto): Document debug info generation.
12782
12783 2019-09-11 Richard Biener <rguenther@suse.de>
12784
12785 PR tree-optimization/90387
12786 * vr-values.c (vr_values::extract_range_basic): After inlining
12787 simplify non-constant __builtin_constant_p to false.
12788
12789 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12790
12791 PR rtl-optimization/89795
12792 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12793 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12794
12795 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12796
12797 PR tree-optimization/91723
12798 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12799 instead of pointer equality when checking if argument vectypes are
12800 the same.
12801
12802 PR middle-end/91725
12803 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12804 of get_nonzero_bits, only call it for integral types.
12805
12806 2019-09-11 Richard Biener <rguenther@suse.de>
12807
12808 Revert
12809 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12810
12811 * match.pd: Add flag_unsafe_math_optimizations check
12812 before deciding on the widest type in a binary math operation.
12813
12814 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12815
12816 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12817 and CALL_REALLY_USED_REGISTERS must be defined, and that
12818 CALL_REALLY_USED_REGISTERS is preferred.
12819 * doc/tm.texi: Regenerate.
12820 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12821 (call_really_used_regs): Likewise.
12822 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12823 CALL_REALLY_USED_REGISTERS are defined.
12824 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12825 initial value if defined.
12826 (initial_call_really_used_regs): Delete.
12827 (saved_call_really_used_regs): Likewise.
12828 (CALL_REALLY_USED_REGNO_P): Likewise.
12829 (init_reg_sets): Remove handling of call_really_used_regs.
12830 (save_register_info, restore_register_info, globalize_reg): Likewise.
12831 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12832 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12833 outside operand_reg_set.
12834 (fix_register): Don't change call_used_regs if
12835 CALL_REALLY_USED_REGISTERS is defined.
12836 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12837 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12838 instead of call_really_used_regs.
12839 (csky_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/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12843 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12844 making a register fixed.
12845 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12846 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12847 instead of call_really_used_regs.
12848 (m32r_conditional_register_usage): Don't set call_used_regs when
12849 making a register fixed.
12850 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12851 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12852 instead of call_really_used_regs.
12853 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12854 (mips_cfun_call_saved_reg_p): Likewise.
12855 (mips_swap_registers): Remove the old handling of call_used_regs
12856 and change the handling of call_really_used_regs to use call_used_regs
12857 instead.
12858 (mips_conditional_register_usage): Likewise.
12859 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12860 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12861 instead of call_really_used_regs.
12862 (mn10300_get_live_callee_saved_regs): Likewise.
12863 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12864 (mn10300_conditional_register_usage): Don't set call_used_regs when
12865 making a register fixed.
12866 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12867 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12868 Remove the old handling of call_used_regs and change the handling
12869 of call_really_used_regs to use call_used_regs instead.
12870 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12871 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12872 instead of call_really_used_regs.
12873 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12874 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12875 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12876 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12877 (s390_conditional_register_usage): Remove the old handling of
12878 call_used_regs and change the handling of call_really_used_regs
12879 to use call_used_regs instead.
12880 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12881 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12882 (sh_fix_range, reg_unused_after): Likewise.
12883 (sh_conditional_register_usage): Remove the old handling of
12884 call_used_regs and change the handling of call_really_used_regs
12885 to use call_used_regs instead.
12886 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12887 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12888 call_used_regs when making a register fixed.
12889 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12890 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12891 call_used_regs when making a register fixed.
12892 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12893 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12894 set call_used_regs when making a register fixed.
12895 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12896 * config/visium/visium.c (visium_conditional_register_usage): Remove
12897 the old handling of call_used_regs and change the handling of
12898 call_really_used_regs to use call_used_regs instead.
12899
12900 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12901
12902 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12903 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12904 * reginfo.c (call_used_regs): New macro.
12905
12906 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12907
12908 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12909 fixed_regs test.
12910 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12911 (bpf_expand_epilogue): Likewise.
12912 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12913 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12914 (ft32_expand_epilogue): Likewise.
12915 * config/i386/i386.c (ix86_save_reg): Likewise.
12916 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12917 (moxie_expand_epilogue): Likewise.
12918 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12919 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12920 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12921
12922 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12923
12924 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12925 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12926 instead of testing call_used_regs directly.
12927 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12928 (aarch64_components_for_bb): Likewise.
12929 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12930 * config/arc/arc.c (arc_must_save_register): Likewise.
12931 (arc_epilogue_uses): Likewise.
12932 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12933 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12934 (arm_compute_save_reg0_reg12_mask): Likewise.
12935 (arm_compute_save_core_reg_mask): Likewise.
12936 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12937 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12938 (cmse_nonsecure_entry_clear_before_return): Likewise.
12939 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12940 (arm_expand_epilogue): Likewise.
12941 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12942 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12943 (_reg_unused_after): Likewise.
12944 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12945 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12946 (add_to_reg, hwloop_optimize): Likewise.
12947 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12948 (bpf_expand_epilogue): Likewise.
12949 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12950 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12951 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12952 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12953 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12954 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12955 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12956 * config/frv/frv.c (frv_stack_info): Likewise.
12957 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12958 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12959 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12960 (move_callee_saved_registers): Likewise.
12961 * config/h8300/h8300.c (byte_reg): Likewise.
12962 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12963 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12964 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12965 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12966 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12967 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12968 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12969 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12970 * config/m32c/m32c.c (need_to_save): Likewise.
12971 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12972 * config/mcore/mcore.c (calc_live_regs): Likewise.
12973 * config/microblaze/microblaze.c (microblaze_must_save_register):
12974 Likewise.
12975 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12976 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12977 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12978 (mmix_expand_epilogue): Likewise.
12979 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12980 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12981 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12982 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12983 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12984 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12985 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12986 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12987 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12988 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12989 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12990 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12991 * config/rl78/rl78.c (need_to_save): Likewise.
12992 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12993 (rs6000_stack_info, generate_set_vrsave): Likewise.
12994 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12995 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12996 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12997 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12998 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12999 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13000 (save_local_or_in_reg_p): Likewise.
13001 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13002 (xstormy16_epilogue_uses): Likewise.
13003 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13004 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13005 * config/v850/v850.c (compute_register_save_size): Likewise.
13006 * config/vax/vax.c (vax_expand_prologue): Likewise.
13007 * config/visium/visium.c (visium_save_reg_p): Likewise.
13008 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13009 * cselib.c (cselib_process_insn): Likewise.
13010 * df-scan.c (df_get_entry_block_def_set): Likewise.
13011 * function.c (aggregate_value_p): Likewise.
13012 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13013 * ira-lives.c (process_bb_node_lives): Likewise.
13014 * ira.c (do_reload): Likewise.
13015 * lra-lives.c (process_bb_lives): Likewise.
13016 * lra-remat.c (lra_remat): Likewise.
13017 * lra.c (lra): Likewise.
13018 * postreload.c (reload_combine_recognize_pattern): Likewise.
13019 (reload_cse_move2add): Likewise.
13020 * recog.c (peep2_find_free_register): Likewise.
13021 * regrename.c (check_new_reg_p): Likewise.
13022 * reload.c (find_equiv_reg): Likewise.
13023 * reload1.c (reload, find_reg): Likewise.
13024 * sel-sched.c (init_hard_regs_data): Likewise.
13025
13026 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13027
13028 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13029 regs_invalidated_by_call & ~fixed_reg_set instead of
13030 call_used_or_fixed_regs & ~fixed_reg_set.
13031 * config/sh/sh.c (output_stack_adjust): Likewise.
13032
13033 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13034
13035 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13036 (call_used_reg_set): Delete.
13037 (call_used_or_fixed_regs): New macro.
13038 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13039 of call_used_reg_set.
13040 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13041 instead of call_used_regs.
13042 (save_call_clobbered_regs): Likewise.
13043 * cfgcleanup.c (old_insns_match_p): Likewise.
13044 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13045 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13046 Likewise.
13047 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13048 * config/sh/sh.c (output_stack_adjust): Likewise.
13049 * final.c (collect_fn_hard_reg_usage): Likewise.
13050 * ira-build.c (ira_build): Likewise.
13051 * ira-color.c (calculate_saved_nregs): Likewise.
13052 (allocno_reload_assign, calculate_spill_cost): Likewise.
13053 * ira-conflicts.c (ira_build_conflicts): Likewise.
13054 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13055 * ira-lives.c (process_bb_node_lives): Likewise.
13056 * ira.c (setup_reg_renumber): Likewise.
13057 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13058 * lra-constraints.c (need_for_call_save_p): Likewise.
13059 (need_for_split_p, inherit_in_ebb): Likewise.
13060 * lra-lives.c (process_bb_lives): Likewise.
13061 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13062 * postreload.c (reload_combine): Likewise.
13063 * regrename.c (find_rename_reg): Likewise.
13064 * reload1.c (reload_as_needed): Likewise.
13065 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13066 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13067 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13068
13069 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13070
13071 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13072 (no_caller_save_reg_set): Delete.
13073 * caller-save.c (init_caller_save): Don't initialize it.
13074 * ira-conflicts.c (ira_build_conflicts): Calculate
13075 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13076
13077 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13078
13079 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13080 (target_hard_regs::x_savable_regs): New field.
13081 (call_fixed_reg_set): Delete.
13082 (savable_regs): New macro,
13083 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13084 (init_reg_sets_1): Likewise. Initialize savable_regs.
13085 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13086 for all registers. Set savable_regs instead of call_fixed_reg_set.
13087 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13088 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13089 * config/sh/sh.c (output_stack_adjust): Likewise.
13090
13091 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13092
13093 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13094 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13095 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13096
13097 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13098
13099 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13100 * rtlanal.c (get_call_rtx_from): Likewise.
13101 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13102 than the pattern to get_call_rtx_from.
13103 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13104 an rtx_insn * instead of an rtx.
13105 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13106
13107 2019-09-10 Martin Liska <mliska@suse.cz>
13108
13109 * common.opt: Use newly added WarnRemoved.
13110 * config/aarch64/aarch64.opt: Likewise.
13111 * config/arm/arm.opt: Likewise.
13112 * config/i386/i386.opt: Likewise.
13113 * config/ia64/ia64.opt: Likewise.
13114 * config/rs6000/rs6000.opt: Likewise.
13115 * doc/options.texi: Document WarnRemoved properly.
13116 * dwarf2out.c (gen_producer_string): Handle renamed
13117 OPT_SPECIAL_warn_removed.
13118 * lto-opts.c (lto_write_options): Likewise.
13119 * lto-wrapper.c (merge_and_complain): Likewise.
13120 * opts-common.c (decode_cmdline_option): Likewise.
13121 (prune_options): Likewise.
13122 (read_cmdline_option): Likewise.
13123 (control_warning_option): Likewise.
13124 * opts.c (print_filtered_help): Likewise.
13125 * optc-gen.awk: Parse for WarnRemoved and make usage
13126 of Deprecated an error.
13127 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13128
13129 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13130
13131 * doc/install.texi: Fix syntax for html generation.
13132
13133 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13134
13135 PR middle-end/91680
13136 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13137 the shift type to type.
13138
13139 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13140
13141 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13142 FDPIC mode.
13143 (stack_protect_combined_test_insn): Likewise.
13144
13145 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13146 Mickaël Guêné <mickael.guene@st.com>
13147
13148 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13149 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13150 (load_tp_soft_fdpic): New pattern.
13151 (load_tp_soft): Disable in FDPIC mode.
13152
13153 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13154 Mickaël Guêné <mickael.guene@st.com>
13155
13156 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13157 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13158 (arm_call_tls_get_addr): Add FDPIC support.
13159 (legitimize_tls_address): Likewise.
13160 (arm_emit_tls_decoration): Likewise.
13161
13162 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13163 Mickaël Guêné <mickael.guene@st.com>
13164
13165 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13166 support.
13167 (arm_trampoline_init): Likewise.
13168 (arm_trampoline_adjust_address): Likewise.
13169 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13170
13171 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13172 Mickaël Guêné <mickael.guene@st.com>
13173
13174 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13175 (legitimize_pic_address): Enforce binding rules on function
13176 pointers in FDPIC mode.
13177 (arm_assemble_integer): Likewise.
13178
13179 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13180 Mickaël Guêné <mickael.guene@st.com>
13181
13182 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13183 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13184 FDPIC.
13185
13186 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13187 Mickaël Guêné <mickael.guene@st.com>
13188
13189 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13190 field.
13191
13192 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13193 Mickaël Guêné <mickael.guene@st.com>
13194
13195 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13196 in FDPIC mode.
13197 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13198 new function.
13199 * config/arm/arm.c (arm_option_override): Define pic register to
13200 FDPIC_REGNUM.
13201 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13202 have no decl or go through PLT.
13203 (calculate_pic_address_constant): New function.
13204 (legitimize_pic_address): Call calculate_pic_address_constant.
13205 (arm_load_pic_register): Handle TARGET_FDPIC.
13206 (arm_is_segment_info_known): New function.
13207 (arm_pic_static_addr): Add support for FDPIC.
13208 (arm_load_function_descriptor): New function.
13209 (arm_emit_call_insn): Add support for FDPIC.
13210 (arm_assemble_integer): Add support for FDPIC.
13211 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13212 Define. (FDPIC_REGNUM): New define.
13213 * config/arm/arm.md (call): Add support for FDPIC.
13214 (call_value): Likewise.
13215 (restore_pic_register_after_call): New pattern.
13216 (untyped_call): Disable if FDPIC.
13217 (untyped_return): Likewise.
13218 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13219
13220 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13221 Mickaël Guêné <mickael.guene@st.com>
13222
13223 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13224 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13225 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13226 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13227 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13228 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13229 * config/arm/uclinuxfdpiceabi.h: New file.
13230
13231 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13232
13233 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13234
13235 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13236 Mickaël Guêné <mickael.guene@st.com>
13237
13238 * config/arm/arm.opt: Add -mfdpic option.
13239 * doc/invoke.texi: Add documentation for -mfdpic.
13240
13241 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13242
13243 * expmed.c (extract_bit_field): Update function comment
13244 regarding alt_rtl.
13245 * expr.c (expand_expr_real): Update function comment
13246 regarding alt_rtl.
13247 (expand_misaligned_mem_ref): New helper function.
13248 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13249 Remove duplicate assignment to "base" at case MEM_REF.
13250 Remove a shadowed variable "unsignedp" at case VCE.
13251
13252 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13253
13254 * regset.h (regs_invalidated_by_call_regset): Delete.
13255 (fixed_reg_set_regset): Likewise.
13256 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13257 (fixed_reg_set_regset, persistent_obstack): Likewise.
13258 (init_reg_sets_1, globalize_reg): Update accordingly.
13259 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13260 instead of a bitmap.
13261 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13262 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13263 instead of regs_invalidated_by_call_regset.
13264 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13265 * df-scan.c (df_scan_start_dump): Likewise.
13266 * dse.c (copy_fixed_regs): Likewise.
13267 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13268
13269 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13270
13271 * array-traits.h: New file.
13272 * coretypes.h (array_traits, bitmap_view): New types.
13273 * bitmap.h: Include "array-traits.h"
13274 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13275 (base_bitmap_view, bitmap_view): New classes.
13276 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13277 * hard-reg-set.h: Include array-traits.h.
13278 (array_traits<HARD_REG_SET>): New struct.
13279 * regset.h (IOR_REG_SET_HRS): New macro.
13280 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13281 rather than iterating over each hard register.
13282 * sched-deps.c (sched_analyze_insn): Likewise.
13283 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13284
13285 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13286
13287 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13288 instead of a HARD_REG_SET *.
13289 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13290 (ira_build): Update call accordingly.
13291 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13292
13293 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13294
13295 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13296 (HARD_REG_SET::operator!=): Likewise.
13297 (hard_reg_set_equal_p): Delete.
13298 * cfgcleanup.c (old_insns_match_p): Use == instead of
13299 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13300 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13301 (add_allocno_hard_regs_to_forest): Likewise.
13302 (setup_allocno_available_regs_num): Likewise.
13303 * ira.c (setup_pressure_classes): Likewise.
13304 (setup_allocno_and_important_classes): Likewise.
13305 (setup_reg_class_relations): Likewise.
13306 * lra-lives.c (process_bb_lives): Likewise.
13307 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13308
13309 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13310
13311 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13312 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13313 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13314 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13315 Likewise.
13316 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13317 * ira.c (setup_reg_renumber): Likewise.
13318 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13319 * regrename.c (regrename_find_superclass): Likewise.
13320 * reload1.c (find_reg): Likewise.
13321
13322 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13323
13324 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13325 * caller-save.c (setup_save_areas): Use "&~" instead of
13326 AND_COMPL_HARD_REG_SET.
13327 (save_call_clobbered_regs): Likewise.
13328 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13329 Likewise.
13330 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13331 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13332 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13333 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13334 (mips_conditional_register_usage): Likewise.
13335 * config/sh/sh.c (output_stack_adjust): Likewise.
13336 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13337 (setup_profitable_hard_regs): Likewise.
13338 (get_conflict_and_start_profitable_regs): Likewise.
13339 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13340 (ira_build_conflicts): Likewise.
13341 * ira-costs.c (restrict_cost_classes): Likewise.
13342 (setup_regno_cost_classes_by_aclass): Likewise.
13343 * ira-lives.c (process_bb_node_lives): Likewise.
13344 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13345 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13346 (setup_allocno_and_important_classes, setup_class_translate_array)
13347 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13348 Likewise.
13349 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13350 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13351 (process_alt_operands, inherit_in_ebb): Likewise.
13352 * lra-eliminations.c (update_reg_eliminate): Likewise.
13353 * lra-lives.c (process_bb_lives): Likewise.
13354 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13355 * resource.c (find_dead_or_set_registers): Likewise.
13356 (mark_target_live_regs): Likewise.
13357 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13358 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13359 (implicit_clobber_conflict_p): Likewise.
13360 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13361 (try_shrink_wrapping): Likewise.
13362
13363 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13364
13365 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13366 (HARD_REG_SET::operator|=): Likewise.
13367 (IOR_HARD_REG_SET): Delete.
13368 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13369 IOR_HARD_REG_SET.
13370 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13371 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13372 * final.c (collect_fn_hard_reg_usage): Likewise.
13373 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13374 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13375 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13376 (propagate_some_info_from_allocno): Likewise.
13377 (copy_info_to_removed_store_destinations): Likewise.
13378 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13379 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13380 (fast_allocation): Likewise.
13381 * ira-conflicts.c (ira_build_conflicts): Likewise.
13382 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13383 (process_bb_node_lives): Likewise.
13384 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13385 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13386 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13387 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13388 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13389 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13390 (process_bb_lives): Likewise.
13391 * lra-spills.c (assign_spill_hard_regs): Likewise.
13392 * postreload.c (reload_combine): Likewise.
13393 * reginfo.c (init_reg_sets_1): Likewise.
13394 * regrename.c (merge_overlapping_regs, find_rename_reg)
13395 (merge_chains): Likewise.
13396 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13397 (find_reload_regs, finish_spills, choose_reload_regs_init)
13398 (emit_reload_insns): Likewise.
13399 * reorg.c (redundant_insn): Likewise.
13400 * resource.c (find_dead_or_set_registers, mark_set_resources)
13401 (mark_target_live_regs): Likewise.
13402 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13403 * sched-deps.c (sched_analyze_insn): Likewise.
13404 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13405 (find_best_reg_for_expr): Likewise.
13406 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13407
13408 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13409
13410 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13411 (HARD_REG_SET::operator&): Likewise.
13412 (AND_HARD_REG_SET): Delete.
13413 * caller-save.c (setup_save_areas): Use "&" instead of
13414 AND_HARD_REG_SET.
13415 (save_call_clobbered_regs): Likewise.
13416 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13417 * config/m32c/m32c.c (reduce_class): Likewise.
13418 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13419 * final.c (get_call_reg_set_usage): Likewise.
13420 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13421 (setup_left_conflict_sizes_p): Likewise.
13422 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13423 (ira_build_conflicts): Likewise.
13424 * ira-costs.c (restrict_cost_classes): Likewise.
13425 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13426 (setup_reg_class_relations): Likewise.
13427 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13428 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13429 * resource.c (find_dead_or_set_registers): Likewise.
13430 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13431
13432 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13433
13434 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13435 (COMPL_HARD_REG_SET): Delete.
13436 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13437 of COMPL_HARD_REG_SET.
13438 (try_rename_operands): Likewise.
13439 * config/sh/sh.c (push_regs): Likewise.
13440 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13441 * lra-constraints.c (contains_reg_p): Likewise.
13442 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13443
13444 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13445
13446 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13447 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13448 of COPY_HARD_REG_SET.
13449 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13450 (epiphany_conditional_register_usage): Likewise.
13451 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13452 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13453 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13454 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13455 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13456 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13457 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13458 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13459 * config/sh/sh.c (output_stack_adjust): Likewise.
13460 * final.c (collect_fn_hard_reg_usage): Likewise.
13461 (get_call_reg_set_usage): Likewise.
13462 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13463 (ira_flattening): Likewise.
13464 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13465 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13466 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13467 (ira_reassign_pseudos): Likewise.
13468 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13469 (ira_build_conflicts): Likewise.
13470 * ira-costs.c (restrict_cost_classes): Likewise.
13471 (setup_regno_cost_classes_by_aclass): Likewise.
13472 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13473 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13474 (setup_stack_reg_pressure_class, setup_pressure_classes)
13475 (setup_allocno_and_important_classes, setup_class_translate_array)
13476 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13477 (ira_setup_eliminable_regset): Likewise.
13478 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13479 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13480 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13481 (process_alt_operands, inherit_in_ebb): Likewise.
13482 * lra-lives.c (process_bb_lives): Likewise.
13483 * lra-spills.c (assign_spill_hard_regs): Likewise.
13484 * lra.c (lra): Likewise.
13485 * mode-switching.c (new_seginfo): Likewise.
13486 * postreload.c (reload_combine): Likewise.
13487 * reg-stack.c (straighten_stack): Likewise.
13488 * reginfo.c (save_register_info, restore_register_info): Likewise.
13489 (init_reg_sets_1, record_subregs_of_mode): Likewise
13490 * regrename.c (create_new_chain, rename_chains): Likewise.
13491 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13492 (find_reload_regs): Likewise.
13493 * resource.c (find_dead_or_set_registers): Likewise.
13494 (mark_target_live_regs): Likewise.
13495 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13496
13497 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13498
13499 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13500 (note_pattern_stores): Declare.
13501 (note_stores): Take an rtx_insn *.
13502 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13503 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13504 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13505 (note_stores): Take an rtx_insn * as argument and process
13506 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13507 (note_pattern_stores): ...this.
13508 (find_first_parameter_load): Pass the insn rather than
13509 its pattern to note_stores.
13510 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13511 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13512 (insert_one_insn): Likewise.
13513 * combine.c (combine_instructions): Likewise.
13514 (likely_spilled_retval_p): Likewise.
13515 (try_combine): Use note_pattern_stores instead of note_stores.
13516 (record_dead_and_set_regs): Pass the insn rather than its pattern
13517 to note_stores.
13518 (reg_dead_at_p): Likewise.
13519 * config/bfin/bfin.c (workaround_speculation): Likewise.
13520 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13521 rather than an rtx.
13522 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13523 instead of note_stores.
13524 (frv_optimize_membar_local): Pass the insn rather than its pattern
13525 to note_stores.
13526 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13527 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13528 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13529 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13530 (mips_reorg_process_insns): Likewise.
13531 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13532 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13533 rather than rtxes.
13534 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13535 its pattern to note_stores.
13536 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13537 of note_stores.
13538 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13539 the insn to note_stores.
13540 (prescan_insns_for_dce): Update call accordingly.
13541 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13542 to note_stores.
13543 * df-problems.c (can_move_insns_across): Likewise.
13544 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13545 * function.c (assign_parm_setup_reg): Likewise.
13546 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13547 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13548 (single_set_gcse): Likewise.
13549 * ira.c (validate_equiv_mem): Likewise.
13550 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13551 for no_equiv.
13552 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13553 pattern to note_stores.
13554 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13555 * loop-iv.c (simplify_using_initial_values): Likewise.
13556 * mode-switching.c (optimize_mode_switching): Likewise.
13557 * optabs.c (emit_libcall_block_1): Likewise.
13558 (expand_atomic_compare_and_swap): Likewise.
13559 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13560 (record_opr_changes): Likewise. Remove explicit handling of
13561 CALL_INSN_FUNCTION_USAGE.
13562 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13563 * regcprop.c (kill_clobbered_values): Likewise.
13564 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13565 to note_stores.
13566 * regrename.c (build_def_use): Likewise.
13567 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13568 for mark_not_eliminable.
13569 (reload_as_needed): Pass the insn rather than its pattern
13570 to note_stores.
13571 (emit_output_reload_insns): Likewise.
13572 * resource.c (mark_target_live_regs): Likewise.
13573 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13574 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13575 instead of note_stores.
13576 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13577 its pattern to note_stores.
13578 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13579 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13580
13581 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13582
13583 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13584 than a #define. Use a structure rather than an array as the
13585 fallback definition. Remove special cases for low array sizes.
13586 (const_hard_reg_set): New typedef.
13587 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13588 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13589 (hard_reg_set_empty_p): Likewise.
13590 (SET_HARD_REG_BIT): Use a function rather than a macro to
13591 handle the case in which HARD_REG_SET is a structure.
13592 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13593 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13594 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13595 (IOR_COMPL_HARD_REG_SET): Likewise.
13596 (hard_reg_set_iterator::pset): Constify the pointer target.
13597 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13598 of a "const HARD_REG_SET". Update the handling of non-integer
13599 HARD_REG_SETs.
13600 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13601 * reload.h: Likewise.
13602 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13603 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13604 of a "const HARD_REG_SET".
13605 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13606 (range_in_hard_reg_set_p): Likewise.
13607 * ira-costs.c (restrict_cost_classes): Likewise.
13608 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13609 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13610 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13611 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13612 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13613 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13614 take an unsigned int and open-code the HARD_REG_SET operations.
13615
13616 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13617
13618 * Makefile.in (OBJS): Remove bt-load.o.
13619 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13620 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13621 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13622 document that the option no longer does anything.
13623 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13624 * target.def (branch_target_register_class): Delete.
13625 (branch_target_register_callee_saved): Likewise.
13626 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13627 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13628 * doc/tm.texi: Regenerate.
13629 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13630 (make_pass_branch_target_load_optimize2): Likewise.
13631 * passes.def (pass_branch_target_load_optimize1): Likewise.
13632 (pass_branch_target_load_optimize2): Likewise.
13633 * targhooks.h (default_branch_target_register_class): Likewise.
13634 * targhooks.c (default_branch_target_register_class): Likewise.
13635 * opt-suggestions.c (test_completion_valid_options): Remove
13636 -fbtr-bb-exclusive from the list of test options.
13637 * bt-load.c: Remove.
13638
13639 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13640
13641 * match.pd: Add flag_unsafe_math_optimizations check
13642 before deciding on the widest type in a binary math operation.
13643
13644 2019-09-09 Martin Liska <mliska@suse.cz>
13645
13646 * config/i386/i386.opt: Update comment of removed
13647 options that are preserved only for backward
13648 compatibility.
13649
13650 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13651
13652 PR target/87853
13653 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13654 instead of __v16qs.
13655
13656 PR target/91704
13657 * config/i386/avxintrin.h (__v32qs): New typedef.
13658 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13659 instead of __v32qi.
13660
13661 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13662
13663 * doc/invoke.texi (Option Summary): Cover eBPF.
13664 (eBPF Options): New section.
13665 * doc/extend.texi (BPF Built-in Functions): Likewise.
13666 (BPF Kernel Helpers): Likewise.
13667
13668 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13669
13670 * config.gcc: Support for bpf-*-* targets.
13671 * common/config/bpf/bpf-common.c: New file.
13672 * config/bpf/t-bpf: Likewise.
13673 * config/bpf/predicates.md: Likewise.
13674 * config/bpf/constraints.md: Likewise.
13675 * config/bpf/bpf.opt: Likewise.
13676 * config/bpf/bpf.md: Likewise.
13677 * config/bpf/bpf.h: Likewise.
13678 * config/bpf/bpf.c: Likewise.
13679 * config/bpf/bpf-protos.h: Likewise.
13680 * config/bpf/bpf-opts.h: Likewise.
13681 * config/bpf/bpf-helpers.h: Likewise.
13682 * config/bpf/bpf-helpers.def: Likewise.
13683
13684 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13685
13686 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13687 indirect_calls.
13688
13689 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13690
13691 * opt-functions.awk (integer_range_info): Make sure values are in
13692 numeric context before operating with them.
13693
13694 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13695
13696 * genemit.c (gen_split): Print the filename and line number where the
13697 splitter (or peephole2) was defined, to the dump file.
13698
13699 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13700
13701 PR tree-optimization/91665
13702 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13703 incompatible with the type of PHI result.
13704
13705 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13706
13707 PR target/91684
13708 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13709 gen_unaligned_storedi for 4-byte aligned addresses.
13710
13711 2019-09-06 Jim Wilson <jimw@sifive.com>
13712
13713 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13714 change.
13715
13716 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13717
13718 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13719
13720 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13721
13722 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13723 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13724
13725 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13726
13727 PR target/91654
13728 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13729 cost of SSE->integer and integer->SSE moves from 2 to 6.
13730 (core_cost): Ditto.
13731
13732 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13733
13734 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13735 before testing TYPE_TRANSPARENT_AGGR.
13736 * calls.c (initialize_argument_information, load_register_parameters):
13737 Likewise.
13738
13739 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13740
13741 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13742 high regs.
13743 (cmp_ior): Likewise.
13744
13745 2019-09-06 Martin Liska <mliska@suse.cz>
13746
13747 * doc/match-and-simplify.texi: Separate tuples with ;.
13748
13749 2019-09-06 Martin Liska <mliska@suse.cz>
13750
13751 PR c++/91125
13752 * Makefile.in: Remove tlink.o.
13753 * collect2.c (do_link): New function isolated
13754 from do_tlink.
13755 (main): Use.
13756 * collect2.h (do_tlink): Remove declaration of do_tlink.
13757 * doc/extend.texi: Remove documentation of -frepo.
13758 * doc/invoke.texi: Likewise.
13759 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13760 * tlink.c: Remove.
13761
13762 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13763 Jim Wilson <jimw@sifive.com>
13764
13765 PR target/91635
13766 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13767 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13768 paradoxical_subreg_p (operands[0]).
13769 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13770 use as intermediate value.
13771
13772 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13773
13774 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13775 (sync_compare_and_swap<mode>_insn): Likewise.
13776
13777 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13778
13779 PR middle-end/91615
13780 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13781 without movmisalign optab.
13782
13783 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13784
13785 PR middle-end/91001
13786 PR middle-end/91105
13787 PR middle-end/91106
13788 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13789 types, use type of their first field instead of type of
13790 args[i].tree_value.
13791
13792 2019-09-05 Richard Biener <rguenther@suse.de>
13793
13794 PR rtl-optimization/91656
13795 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13796 of early out.
13797
13798 2019-09-05 Richard Biener <rguenther@suse.de>
13799
13800 PR middle-end/90501
13801 * tree-inline.c (declare_return_variable): Mark the return
13802 slot as addressable after building an address of it.
13803
13804 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13805
13806 * doc/install.texi: Update and clarify requirements to build GNAT.
13807
13808 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13809
13810 PR middle-end/91577
13811 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13812 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13813 call to be in memory.
13814 (pass_expand::execute): Call discover_nonconstant_array_refs before
13815 setting currently_expanding_to_rtl.
13816
13817 2019-09-04 Caroline Tice <cmtice@google.com>
13818
13819 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13820 specified together.
13821
13822 2019-09-04 Marek Polacek <polacek@redhat.com>
13823
13824 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13825
13826 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13827
13828 PR target/32413
13829 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13830 for QI and HImode moves between SSE and general registers.
13831
13832 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13833
13834 PR c/78736
13835 * doc/invoke.texi: Document -Wenum-conversion.
13836
13837 2019-09-04 Richard Biener <rguenther@suse.de>
13838
13839 PR rtl-optimization/36262
13840 * postreload-gcse.c: Include intl.h and gcse.h.
13841 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13842 to avoid linear list walk.
13843 (record_last_mem_set_info): Gate off if not computing transparentness.
13844 (get_bb_avail_insn): If transparentness isn't computed give up
13845 early.
13846 (gcse_after_reload_main): Skip compute_transp and extended PRE
13847 if gcse_or_cprop_is_too_expensive says so.
13848
13849 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13850
13851 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13852 noinit section.
13853 (msp430_select_section): Handle decls with the "noinit" attribute with
13854 default_elf_select_section.
13855 Handle SECCAT_RODATA_MERGE_* section types with
13856 default_elf_select_section.
13857 Add comments about handling of unsupported section types.
13858 (msp430_section_type_flags): Remove handling of the noinit section.
13859
13860 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13861
13862 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13863 conflicting msp430-specific attributes.
13864 (msp430_section_attr): Likewise.
13865 Add warnings about conflicts with generic "noinit" and "section"
13866 attributes.
13867 Fix grammar in -mlarge error message.
13868 (msp430_data_attr): Rename to msp430_persist_attr.
13869 Add warnings about conflicts with generic "noinit" and "section"
13870 attributes.
13871 Add warning for when variable is not initialized.
13872 Chain conditionals which prevent the attribute being added.
13873 (ATTR_EXCL): New helper.
13874 (attr_reent_exclusions): New exclusion table.
13875 (attr_naked_exclusions): Likewise.
13876 (attr_crit_exclusions): Likewise.
13877 (attr_lower_exclusions): Likewise.
13878 (attr_upper_exclusions): Likewise.
13879 (attr_either_exclusions): Likewise.
13880 (attr_persist_exclusions): Likewise.
13881 (msp430_attribute_table): Update with exclusion rules.
13882 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13883 has a section.
13884
13885 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13886
13887 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13888 (msp430_handle_generic_attribute): New function.
13889 * doc/tm.texi: Regenerate.
13890 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13891 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13892 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13893 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13894
13895 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13896
13897 PR tree-optimization/91504
13898 * match.pd: Add ((~a & b) ^a) --> (a | b).
13899
13900 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13901
13902 PR target/91604
13903 * config/i386/i386-expand.c (split_double_mode): If there is more than
13904 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13905 already split matching MEM operand instead of calling adjust_address
13906 again.
13907
13908 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13909
13910 * config.gcc: Obsolete spu target. Remove references to spu.
13911 * configure.ac: Remove references to spu.
13912 * configure: Regenerate.
13913 * config/spu/: Remove directory.
13914 * common/config/spu/: Remove directory.
13915
13916 * doc/extend.texi: Remove references to spu.
13917 * doc/invoke.texi: Likewise.
13918 * doc/md.texi: Likewise.
13919 * doc/sourcebuild.texi: Likewise.
13920
13921 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13922
13923 PR middle-end/91603
13924 PR middle-end/91612
13925 PR middle-end/91613
13926 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13927 and SSA_NAME referring to CONSTANT_P correctly.
13928
13929 2019-09-03 Richard Biener <rguenther@suse.de>
13930
13931 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13932 (vn_nary_op_insert): Likewise.
13933 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13934 (vn_nary_op_lookup): Likewise.
13935 (vn_nary_op_insert): Likewise.
13936
13937 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13938
13939 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13940 (*op0, 1) instead of XEXP (*op1, 0).
13941
13942 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13943
13944 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13945 (aarch64_fjcvtzs): New define_insn.
13946 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13947 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13948 Add AARCH64_JSCVT.
13949 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13950 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13951 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13952 __ARM_FEATURE_JCVT where appropriate.
13953 * config/aarch64/arm_acle.h (__jcvt): Define.
13954
13955 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13956
13957 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13958 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13959 (aarch64_<frintnzs_op><mode>): New define_insn.
13960 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13961 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13962 __ARM_FEATURE_FRINT when appropriate.
13963 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13964 frint32x, frint64z, frint64x.
13965 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13966 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13967 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13968 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13969 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13970 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13971 * config/aarch64/iterators.md (VSFDF): Define.
13972 (FRINTNZX): Likewise.
13973 (frintnzs_op): Likewise.
13974
13975 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13976
13977 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13978 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13979 Cortex-A34.
13980 * config/aarch64/aarch64-tune.md: Regenerated.
13981 * doc/invoke.texi: Document the new processors.
13982
13983 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13984
13985 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13986 string.
13987 (ssbs): Likewise.
13988 (sve2): Likewise.
13989 (sve2-sm4): Likewise.
13990 (sveaes): Likewise.
13991 (svesha3): Likewise.
13992 (svebitperm): Likewise.
13993
13994 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13995 Richard Biener <rguenther@suse.de>
13996
13997 PR tree-optimization/91597
13998 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13999 BIT_AND_EXPR optimization for pointers, even if both operand
14000 ranges don't include NULL, the result can be NULL.
14001
14002 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14003
14004 PR middle-end/91605
14005 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14006 (non_mem_decl_p): ...this.
14007 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14008 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14009 unconditionally as before.
14010
14011 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14012
14013 PR target/91323
14014 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14015 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14016 * tree.def (LTGT_EXPR): Likewise.
14017 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14018
14019 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14020
14021 PR go/91617
14022 * fold-const.c (range_check_type): For enumeral and boolean
14023 type, pass 1 to type_for_size langhook instead of
14024 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14025 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14026 (build_range_check): Don't call unsigned_type_for for pointer types.
14027 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14028 range_check_type result.
14029
14030 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14031
14032 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14033 (replace_ref): Do not replace a chain of only two candidates which are
14034 valid memory references.
14035
14036 2019-09-02 Martin Liska <mliska@suse.cz>
14037
14038 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14039 Bail out when we'll end up with the same number of clusters as
14040 at the beginning.
14041 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14042 (jump_table_cluster::can_be_handled): Remove the guard
14043 as it's already handled in ::is_enabled. Allocate output
14044 after early bail out.
14045
14046 2019-09-02 Martin Liska <mliska@suse.cz>
14047
14048 PR gcov-profile/91601
14049 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14050 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14051 also negative edges.
14052 (circuit): Handle also negative edges as they can happen
14053 in some situations.
14054
14055 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14056
14057 PR target/91472
14058 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14059 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14060 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14061
14062 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14063
14064 PR middle-end/91623
14065 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14066 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14067 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14068 zero vector.
14069
14070 PR lto/91572
14071 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14072 GIMPLE_ASM TREE_LIST operands.
14073
14074 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14075
14076 * doc/generic.texi (Unary and Binary Expressions): Mark up
14077 an instance of TYPE_MIN.
14078
14079 2019-08-31 Stafford Horne <shorne@gmail.com>
14080
14081 * config/or1k/constraints.md (t): New constraint.
14082 * config/or1k/or1k.h (GOT_REGS): New register class.
14083 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14084
14085 2019-08-30 Jim Wilson <jimw@sifive.com>
14086
14087 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14088 and -fpic and -mplt then disable -msave-restore and warn.
14089
14090 2019-08-30 Martin Sebor <msebor@redhat.com>
14091
14092 PR middle-end/91599
14093 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14094 the statement doesn't have one.
14095 * gimple-pretty-print.c (percent_G_format): Same.
14096
14097 PR middle-end/91584
14098 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14099 before using them to validate MEM_REF offset.
14100
14101 2019-08-30 Marek Polacek <polacek@redhat.com>
14102
14103 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14104
14105 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14106
14107 * config/arm/arm.md (unaligned_loaddi,
14108 unaligned_storedi): New unspec insn patterns.
14109 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14110 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14111 and unaligned_storedi for 4-byte aligned memory.
14112 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14113 4-byte aligned memory.
14114
14115 2019-08-30 Martin Jambor <mjambor@suse.cz>
14116
14117 tree-optimization/91579
14118 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14119 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14120 appropriate.
14121 (arg_needs_copy_p): Removed.
14122 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14123 arg_needs_copy_p.
14124 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14125
14126 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14127
14128 * config/i386/i386-features.c
14129 (general_scalar_chain::compute_convert_gain):
14130 Correct cost for double-word shifts.
14131 (general_scalar_to_vector_candidate_p): Reject count operands
14132 greater or equal to mode bitsize.
14133
14134 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14135
14136 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14137 for moves between SSE and non-general registers and between
14138 mask and non-general registers.
14139 (ix86_register_move_cost): Remove stalled comment.
14140
14141 2019-08-29 Richard Biener <rguenther@suse.de>
14142
14143 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14144 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14145
14146 2019-08-29 Richard Biener <rguenther@suse.de>
14147
14148 PR bootstrap/91580
14149 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14150 Do not emit scalar copies for debug-insns, instead replace
14151 their uses with the reg copy used in the chain or reset them
14152 if there is a reaching definition outside of the chain as well.
14153
14154 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14155
14156 PR target/91560
14157 * config/i386/i386-expand.c (expand_vec_perm_movs,
14158 expand_vec_perm_blend, expand_vec_perm_vpermil,
14159 expand_vec_perm_pshufb, expand_vec_perm_1,
14160 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14161 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14162 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14163 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14164 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14165 comments - replace ix86_expand_vec_perm_builtin_1 with
14166 ix86_expand_vec_perm_const_1.
14167 (expand_vec_perm2_vperm2f128_vblend): New function.
14168 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14169 expand_vec_perm2_vperm2f128_vblend as last resort.
14170 (canonicalize_perm): Formatting fix.
14171
14172 PR tree-optimization/91351
14173 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14174 unsigned_type_for.
14175 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14176 range_check_type returns NULL.
14177 * tree-switch-conversion.c (switch_conversion::build_one_array):
14178 Use range_check_type instead of unsigned_type_for, don't perform
14179 linear opt if it returns NULL.
14180 (bit_test_cluster::find_bit_tests): Formatting fix.
14181 (bit_test_cluster::emit): Use range_check_type instead of
14182 unsigned_type_for.
14183 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14184 returns NULL.
14185
14186 2019-08-29 Richard Biener <rguenther@suse.de>
14187
14188 PR tree-optimization/91568
14189 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14190 (vect_update_max_nunits): Add overload for poly_uint64.
14191 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14192 (vect_build_slp_tree): Record max_nunits into the subtree
14193 and merge it upwards.
14194 (vect_print_slp_tree): Print max_nunits.
14195
14196 2019-08-28 Marek Polacek <polacek@redhat.com>
14197
14198 Implement P1152R4: Deprecating some uses of volatile.
14199 PR c++/91361
14200 * doc/invoke.texi: Document -Wvolatile.
14201
14202 2019-08-28 Marek Polacek <polacek@redhat.com>
14203
14204 PR c++/91360 - Implement C++20 P1143R2: constinit.
14205 * doc/invoke.texi: Document -Wc++20-compat.
14206
14207 2019-08-28 Martin Sebor <msebor@redhat.com>
14208
14209 PR tree-optimization/91457
14210 * builtins.c (component_size): New function.
14211 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14212 * builtins.h (compute_objsize): Add argument.
14213 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14214 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14215 (vrp_prop::check_mem_ref): Same.
14216 (vrp_prop::search_for_addr_array): Set no-warning bit.
14217 (check_array_bounds): Same.
14218
14219 2019-08-28 Martin Sebor <msebor@redhat.com>
14220
14221 PR driver/80545
14222 * opts-common.c (option_enabled): Correct checking for language
14223 options.
14224
14225 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14226
14227 * config/i386/i386.c (ix86_register_move_cost): Do not
14228 limit the cost of moves to/from XMM register to minimum 8.
14229
14230 2019-08-28 Martin Jambor <mjambor@suse.cz>
14231
14232 PR ipa/91468
14233 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14234 checking assert a normal assert to test it really is redundant.
14235 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14236 redundant test.
14237 (update_jump_functions_after_inlining): Removed combining unary
14238 arithmetic operations with an ancestor jump function.
14239 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14240 instead of t.
14241
14242 2019-08-28 Richard Biener <rguenther@suse.de>
14243
14244 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14245 add the MD problem.
14246
14247 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14248 Richard Biener <rguenther@suse.de>
14249
14250 * expr.c (expand_assignment): Handle misaligned DECLs.
14251 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14252 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14253 too.
14254 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14255 * varasm.c (build_constant_desc): Align constants of misaligned types.
14256 * config/arm/predicates.md (aligned_operand): New predicate.
14257 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14258 aligned_operand to check restrictions on memory addresses.
14259 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14260 * config/arm/vec-common.md (mov<VALL>): Likewise.
14261
14262 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14263
14264 PR libgomp/91530
14265 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14266 V_128 iterator instead of VI_128.
14267
14268 2019-08-28 Martin Liska <mliska@suse.cz>
14269
14270 PR tree-optimization/90970
14271 * builtins.c (check_access): Remove assignment to maxread
14272 as it hasn't been used since when it was introduced in r255755.
14273
14274 2019-08-27 Martin Sebor <msebor@redhat.com>
14275
14276 PR tree-optimization/91567
14277 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14278 of unknown strings.
14279 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14280 to PTRDIFF_MAX - 2.
14281
14282 2019-08-27 Jeff Law <law@redhat.com>
14283
14284 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14285 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14286
14287 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14288
14289 PR target/91528
14290 * config/i386/i386-features.c (convert_scalars_to_vector):
14291 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14292 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14293 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14294 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14295
14296 2019-08-27 Richard Biener <rguenther@suse.de>
14297
14298 * config/i386/i386-features.h
14299 (general_scalar_chain::~general_scalar_chain): Add.
14300 (general_scalar_chain::insns_conv): New bitmap.
14301 (general_scalar_chain::n_sse_to_integer): New.
14302 (general_scalar_chain::n_integer_to_sse): Likewise.
14303 (general_scalar_chain::make_vector_copies): Adjust signature.
14304 * config/i386/i386-features.c
14305 (general_scalar_chain::general_scalar_chain): Outline,
14306 initialize new members.
14307 (general_scalar_chain::~general_scalar_chain): New.
14308 (general_scalar_chain::mark_dual_mode_def): Record insns
14309 we need to insert conversions at and count them.
14310 (general_scalar_chain::compute_convert_gain): Account
14311 for conversion instructions at chain boundary.
14312 (general_scalar_chain::make_vector_copies): Generate a single
14313 copy for a def by a specific insn.
14314 (general_scalar_chain::convert_registers): First populate
14315 defs_map, then make copies at out-of chain insns.
14316
14317 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14318
14319 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14320 comment.
14321 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14322
14323 2019-08-27 Martin Liska <mliska@suse.cz>
14324
14325 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14326 loop.
14327 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14328 Enclose in anonymous namespace.
14329 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14330 hard_register initialization in braces.
14331 * tree-vrp.h (value_range_base::supports_type_p): Return false
14332 for function with boolean return type.
14333
14334 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14335
14336 * config/i386/i386.c (emit_i387_cw_initialization)
14337 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14338
14339 2019-08-26 Martin Sebor <msebor@redhat.com>
14340
14341 PR c++/83431
14342 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14343 (sprintf_dom_walker): Remove class.
14344 (get_int_range): Make argument const.
14345 (directive::fmtfunc, directive::set_precision): Same.
14346 (format_none): Same.
14347 (build_intmax_type_nodes): Same.
14348 (adjust_range_for_overflow): Same.
14349 (format_floating): Same.
14350 (format_character): Same.
14351 (format_string): Same.
14352 (format_plain): Same.
14353 (get_int_range): Cast away constness.
14354 (format_integer): Same.
14355 (get_string_length): Call get_range_strlen_dynamic. Handle
14356 null lendata.maxbound.
14357 (should_warn_p): Adjust argument scope qualifier.
14358 (maybe_warn): Same.
14359 (format_directive): Same.
14360 (parse_directive): Same.
14361 (is_call_safe): Same.
14362 (try_substitute_return_value): Same.
14363 (sprintf_dom_walker::handle_printf_call): Rename...
14364 (handle_printf_call): ...to this. Initialize target to host charmap
14365 here instead of in pass_sprintf_length::execute.
14366 (struct call_info): Make global.
14367 (sprintf_dom_walker::compute_format_length): Make global.
14368 (sprintf_dom_walker::handle_gimple_call): Same.
14369 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14370 * print-rtl.c (print_pattern): Reduce the number of spaces to
14371 avoid -Wformat-truncation.
14372 * tree-pass.h (make_pass_warn_printf): New function.
14373 * tree-ssa-strlen.c (strlen_optimize): New variable.
14374 (get_string_length): Add comments.
14375 (get_range_strlen_dynamic): New function.
14376 (check_and_optimize_call): New function.
14377 (handle_integral_assign): New function.
14378 (strlen_check_and_optimize_stmt): Factor code out into
14379 strlen_check_and_optimize_call and handle_integral_assign.
14380 (strlen_dom_walker::evrp): New member.
14381 (strlen_dom_walker::before_dom_children): Use evrp member.
14382 (strlen_dom_walker::after_dom_children): Use evrp member.
14383 (printf_strlen_execute): New function.
14384 (pass_strlen::gate): Update to handle printf calls.
14385 (dump_strlen_info): New function.
14386 (pass_data_warn_printf): New variable.
14387 (pass_warn_printf): New class.
14388 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14389 (handle_printf_call): Same.
14390 * tree-vrp.c (value_range_base::type): Adjust assertion.
14391 * vr-values.c (vr_values::update_value_range): Use type of the first
14392 argument rather than the second.
14393
14394 2019-08-26 Richard Biener <rguenther@suse.de>
14395
14396 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14397 Remove.
14398 (convert_scalars_to_vector): Do not call it.
14399
14400 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14401 Uros Bizjak <ubizjak@gmail.com>
14402
14403 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14404 CASE_MATHFN_FLOATN for roundeven.
14405 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14406 I387_ROUNDEVEN.
14407 (ix86_mode_needed): Likewise.
14408 (ix86_mode_after): Likewise.
14409 (ix86_mode_entry): Likewise.
14410 (ix86_mode_exit): Likewise.
14411 (ix86_emit_mode_set): Likewise.
14412 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14413 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14414 (ix86_entity): Add I387_ROUNDEVEN.
14415 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14416 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14417 (define_int_iterator): Likewise.
14418 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14419 (define_constant): Define ROUND_ROUNDEVEN mode.
14420 (define_attr): Add roundeven mode for i387_cw.
14421 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14422 * internal-fn.def (ROUNDEVEN): New builtin function.
14423 * optabs.def (roundeven_optab): New optab.
14424
14425 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14426
14427 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14428 for ROUNDEVEN.
14429 * builtins.def: Added function definitions for roundeven function
14430 variants.
14431 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14432 function call. Adjust condition for floor, ceil, trunc and round.
14433 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14434 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14435 (integer_valued_real_call_p): Added case for roundeven function.
14436 * real.c (is_even): New function. Returns true if real number is even,
14437 otherwise returns false.
14438 (is_halfway_below): New function. Returns true if real number is
14439 halfway between two integers, else return false.
14440 (real_roundeven): New function. Round real number to nearest integer,
14441 rounding halfway cases towards even.
14442 * real.h (real_value): Added descriptive comments. Added function
14443 declaration for roundeven function.
14444 * doc/extend.texi (Other Builtins): List roundeven variants among
14445 functions which can be handled as builtins.
14446
14447 2019-08-26 Richard Biener <rguenther@suse.de>
14448
14449 PR target/91522
14450 PR target/91527
14451 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14452 New member.
14453 (general_scalar_chain::replace_with_subreg): Remove.
14454 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14455 (general_scalar_chain::convert_reg): Adjust signature.
14456 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14457 iterate over all defs of a reg.
14458 (general_scalar_chain::replace_with_subreg): Remove.
14459 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14460 (general_scalar_chain::make_vector_copies): Populate defs_map,
14461 place copy only after defs that are used as vectors in the chain.
14462 (general_scalar_chain::convert_reg): Emit a copy for a specific
14463 def in a specific instruction.
14464 (general_scalar_chain::convert_op): All reg uses are converted here.
14465 (general_scalar_chain::convert_insn): Emit copies for scalar
14466 uses of defs here. Replace uses with the copies we created.
14467 Replace and convert the def. Adjust REG_DEAD notes, remove
14468 REG_EQUIV/EQUAL notes.
14469 (general_scalar_chain::convert_registers): Only handle copies
14470 into the chain here.
14471
14472 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14473
14474 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14475
14476 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14477
14478 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14479 Add nop_convert case.
14480 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14481 Fold all statements if requested.
14482 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14483 Allow to fold all statements.
14484 * tree-vrp.c (class vrp_folder):
14485 Let substitute_and_fold_engine fold all statements.
14486
14487 2019-08-26 Richard Biener <rguenther@suse.de>
14488
14489 PR tree-optimization/91526
14490 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14491 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14492 TODO_update_address_taken.
14493
14494 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14495
14496 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14497 __STDC_HOSTED__.
14498
14499 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14500
14501 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14502 machine mode for unspec_volatile operand.
14503
14504 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14505
14506 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14507 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14508 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14509 (prefer_neon_for_64bits): Remove.
14510 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14511 (tune_params): Remove PREF_NEON_64_FALSE uses.
14512 (arm_option_override): Remove prefer_neon selection code.
14513 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14514 * config/arm/arm-protos.h (tune_params): Remove
14515 prefer_neon_for_64bits.
14516 (prefer_neon_for_64bits): Remove.
14517
14518 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14519
14520 PR pch/61250
14521 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14522 and issue any diagnostics needed before collecting the pre-PCH
14523 state.
14524
14525 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14526
14527 PR middle-end/91283
14528 * common.opt (fexcess-precision=): Add Optimization flag. Use
14529 flag_excess_precision variable instead of
14530 flag_excess_precision_cmdline.
14531 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14532 member.
14533 (flag_excess_precision): Don't define.
14534 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14535 flag_excess_precision_cmdline. Remove comment.
14536 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14537 and x_flag_excess_precision instead of
14538 frontend_set_flag_excess_precision_cmdline and
14539 x_flag_excess_precision_cmdline.
14540 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14541 x_flag_excess_precision_cmdline.
14542 * toplev.c (init_excess_precision): Remove.
14543 (lang_dependent_init_target): Don't call it.
14544
14545 2019-08-23 Martin Liska <mliska@suse.cz>
14546
14547 * lto-wrapper.c (run_gcc): When setting jobserver
14548 set also parallel to 1. This was done so before r273908.
14549
14550 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14551
14552 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14553 (cortex-a76ae): Likewise.
14554 (cortex-a77): Likewise
14555 * config/arm/arm-tables.opt: Regenerate.
14556 * config/arm/arm-tune.md: Likewise.
14557 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14558 cortex-a77 CPU options.
14559
14560 2019-08-23 Martin Liska <mliska@suse.cz>
14561
14562 * profile.c (instrument_values): Do not set
14563 0 as last argument.
14564 * tree-profile.c (gimple_gen_interval_profiler): Remove
14565 last argument.
14566 (gimple_gen_pow2_profiler): Likewise.
14567 (gimple_gen_topn_values_profiler): Likewise.
14568 (gimple_gen_ic_profiler): Likewise.
14569 (gimple_gen_time_profiler): Likewise.
14570 (gimple_gen_average_profiler): Likewise.
14571 (gimple_gen_ior_profiler): Likewise.
14572 * value-prof.c (dump_histogram_value): Use default
14573 in switch statement instead of HIST_TYPE_MAX.
14574 (stream_in_histogram_value): Likewise.
14575 (gimple_duplicate_stmt_histograms): Do not
14576 use NULL for implicitly set arguments.
14577 (gimple_divmod_values_to_profile): Do not use
14578 reserve+quick_push.
14579 (gimple_indirect_call_to_profile): Likewise.
14580 (gimple_find_values_to_profile): Use implicit
14581 function call arguments.
14582 * value-prof.h (gimple_alloc_histogram_value):
14583 Set default values.
14584 (gimple_gen_interval_profiler): Remove last argument.
14585 (gimple_gen_pow2_profiler): Likewise.
14586 (gimple_gen_topn_values_profiler): Likewise.
14587 (gimple_gen_ic_profiler): Likewise.
14588 (gimple_gen_time_profiler): Likewise.
14589 (gimple_gen_average_profiler): Likewise.
14590 (gimple_gen_ior_profiler): Likewise.
14591
14592 2019-08-22 Martin Sebor <msebor@redhat.com>
14593
14594 PR middle-end/91490
14595 * builtins.c (c_strlen): Rename argument and introduce new local.
14596 Set no-warning bit on original argument.
14597 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14598 Fold empty and zero constructors into empty strings.
14599 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14600 for missing initializers.
14601 * tree.c (build_string_literal): Handle optional argument.
14602 * tree.h (build_string_literal): Add defaulted argument.
14603 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14604 no-warning bit on original expression.
14605
14606 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14607
14608 PR target/91481
14609 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14610 and UNSPEC_DARN_RAW.
14611 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14612 UNSPECV_DARN_RAW.
14613 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14614 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14615 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14616
14617 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14618
14619 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14620 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14621 * config/rs6000/rs6000.md (unspec): ... here.
14622 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14623 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14624 cmpeqb, *cmpeqb_internal): Delete, move to...
14625 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14626 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14627 cmpeqb, *cmpeqb_internal): ... here.
14628
14629 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14630
14631 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14632 intrinsics if __ARM_FP.
14633 Use __ARM_FEATURE_CRC32 ifdef guard.
14634
14635 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14636
14637 * config/arm/arm.md (neon_for_64bits): Remove.
14638 (avoid_neon_for_64bits): Remove.
14639 (arm_adddi3): Always split early.
14640 (arm_subdi3): Always split early.
14641 (negdi2): Remove Neon expansion.
14642 (split zero_extend): Split before reload.
14643 (split sign_extend): Split before reload.
14644
14645 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14646
14647 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14648 (qhs_extenddi_cstr): Likewise.
14649 * config/arm/arm.md (ashldi3): Always expand early.
14650 (ashlsi3): Likewise.
14651 (ashrsi3): Likewise.
14652 (zero_extend<mode>di2): Remove Neon variants.
14653 (extend<mode>di2): Likewise.
14654 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14655 (signed_shift_di3_neon): Likewise.
14656 (unsigned_shift_di3_neon): Likewise.
14657 (ashrdi3_neon_imm_noclobber): Likewise.
14658 (lshrdi3_neon_imm_noclobber): Likewise.
14659 (<shift>di3_neon): Likewise.
14660 (split extend): Remove DI extend split patterns.
14661
14662 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14663
14664 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14665 (split not): Add DImode not splitter.
14666 (anddi3): Remove pattern.
14667 (anddi3_insn): Likewise.
14668 (anddi_zesidi_di): Likewise.
14669 (anddi_sesdi_di): Likewise.
14670 (anddi_notdi_di): Likewise.
14671 (anddi_notzesidi_di): Likewise.
14672 (anddi_notsesidi_di): Likewise.
14673 (iordi3): Likewise.
14674 (iordi3_insn): Likewise.
14675 (iordi_zesidi_di): Likewise.
14676 (iordi_sesidi_di): Likewise.
14677 (xordi3): Likewise.
14678 (xordi3_insn): Likewise.
14679 (xordi_sesidi_di): Likewise.
14680 (xordi_zesidi_di): Likewise.
14681 (one_cmpldi2): Likewise.
14682 (one_cmpldi2_insn): Likewise.
14683 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14684 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14685 alternative.
14686 (iwmmxt_xordi3): Likewise.
14687 (iwmmxt_anddi3): Likewise.
14688 * config/arm/neon.md (orndi3_neon): Remove pattern.
14689 (anddi_notdi_di): Likewise.
14690 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14691 (arm_iordi_operand_neon): Likewise.
14692 (arm_xordi_operand_neon): Likewise.
14693 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14694 (iordi_notzesidi_di): Likewise.
14695 (iordi_notdi_zesidi): Likewise.
14696 (iordi_notsesidi_di): Likewise.
14697
14698 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14699
14700 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14701 insn.
14702 (iorsi3_compare0_scratch): Likewise.
14703
14704 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14705
14706 * config/aarch64/aarch64-simd-builtins.def:
14707 (ld1x4): New.
14708 (st1x4): Likewise.
14709 * config/aarch64/aarch64-simd.md:
14710 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14711 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14712 (aarch64_ld1_x4_<mode>): Likewise.
14713 (aarch64_st1_x4_<mode>): Likewise.
14714 * config/aarch64/arm_neon.h:
14715 (vld1_s8_x4): New function.
14716 (vld1q_s8_x4): Likewise.
14717 (vld1_s16_x4): Likewise.
14718 (vld1q_s16_x4): Likewise.
14719 (vld1_s32_x4): Likewise.
14720 (vld1q_s32_x4): Likewise.
14721 (vld1_u8_x4): Likewise.
14722 (vld1q_u8_x4): Likewise.
14723 (vld1_u16_x4): Likewise.
14724 (vld1q_u16_x4): Likewise.
14725 (vld1_u32_x4): Likewise.
14726 (vld1q_u32_x4): Likewise.
14727 (vld1_f16_x4): Likewise.
14728 (vld1q_f16_x4): Likewise.
14729 (vld1_f32_x4): Likewise.
14730 (vld1q_f32_x4): Likewise.
14731 (vld1_p8_x4): Likewise.
14732 (vld1q_p8_x4): Likewise.
14733 (vld1_p16_x4): Likewise.
14734 (vld1q_p16_x4): Likewise.
14735 (vld1_s64_x4): Likewise.
14736 (vld1_u64_x4): Likewise.
14737 (vld1_p64_x4): Likewise.
14738 (vld1q_s64_x4): Likewise.
14739 (vld1q_u64_x4): Likewise.
14740 (vld1q_p64_x4): Likewise.
14741 (vld1_f64_x4): Likewise.
14742 (vld1q_f64_x4): Likewise.
14743 (vst1_s8_x4): Likewise.
14744 (vst1q_s8_x4): Likewise.
14745 (vst1_s16_x4): Likewise.
14746 (vst1q_s16_x4): Likewise.
14747 (vst1_s32_x4): Likewise.
14748 (vst1q_s32_x4): Likewise.
14749 (vst1_u8_x4): Likewise.
14750 (vst1q_u8_x4): Likewise.
14751 (vst1_u16_x4): Likewise.
14752 (vst1q_u16_x4): Likewise.
14753 (vst1_u32_x4): Likewise.
14754 (vst1q_u32_x4): Likewise.
14755 (vst1_f16_x4): Likewise.
14756 (vst1q_f16_x4): Likewise.
14757 (vst1_f32_x4): Likewise.
14758 (vst1q_f32_x4): Likewise.
14759 (vst1_p8_x4): Likewise.
14760 (vst1q_p8_x4): Likewise.
14761 (vst1_p16_x4): Likewise.
14762 (vst1q_p16_x4): Likewise.
14763 (vst1_s64_x4): Likewise.
14764 (vst1_u64_x4): Likewise.
14765 (vst1_p64_x4): Likewise.
14766 (vst1q_s64_x4): Likewise.
14767 (vst1q_u64_x4): Likewise.
14768 (vst1q_p64_x4): Likewise.
14769 (vst1_f64_x4): Likewise.
14770 (vst1q_f64_x4): Likewise.
14771
14772 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14773
14774 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14775
14776 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14777 Richard Sandiford <richard.sandiford@arm.com>
14778
14779 PR target/88839
14780 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14781 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14782
14783 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14784
14785 PR target/90724
14786 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14787 in reg if it fails aarch64_plus_operand predicate.
14788
14789 2019-08-21 Richard Biener <rguenther@suse.de>
14790
14791 PR tree-optimization/91482
14792 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14793 BUILT_IN_ASSUME_ALIGNED calls.
14794
14795 2019-08-21 Richard Biener <rguenther@suse.de>
14796
14797 PR target/91498
14798 PR target/91503
14799 * config/i386/i386-features.c
14800 (general_scalar_chain::make_vector_copies): Copy stack temporary
14801 rtx when using it multiple times.
14802 (general_scalar_chain::convert_reg): Likewise.
14803
14804 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14805
14806 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14807
14808 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14809
14810 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14811 catch more redundant zero initialization cases.
14812 (dse_dom_walker::dse_optimize_stmt): Likewise.
14813
14814 2019-08-20 Richard Biener <rguenther@suse.de>
14815
14816 PR lto/91307
14817 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14818 by collect2 when targetm.have_ctors_dtors which avoids dragging
14819 in temporary filenames from LTO input objects.
14820
14821 2019-08-20 Richard Biener <rguenther@suse.de>
14822
14823 PR tree-optimization/37242
14824 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14825 to (T)a + (T)b if we know that a + b does not overflow.
14826
14827 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14828
14829 PR rtl-optimization/91347
14830 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14831 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14832
14833 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14834
14835 * calls.h (function_arg_info): Add a pass_by_reference field,
14836 defaulting to false.
14837 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14838 when applying pass-by-reference semantics.
14839 (initialize_argument_information): Likewise.
14840 (emit_library_call_value_1): Likewise.
14841 * function.c (assign_parm_data_one): Remove passed_pointer field.
14842 (assign_parm_find_data_types): Don't set it.
14843 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14844 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14845 arg.pass_by_reference instead of passed_pointer.
14846
14847 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14848
14849 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14850 into a single function_arg_info, updating its fields when we
14851 apply pass-by-reference and promotion semantics. Use the
14852 function_arg_info to track the mode rather than keeping it in
14853 a separate local variable.
14854 (initialize_argument_information): Likewise. Base the final
14855 arg_to_skip on this new function_arg_info rather than creating
14856 a new one from scratch.
14857
14858 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14859
14860 * function.c (assign_parm_data_one): Replace passed_type,
14861 promoted_mode and named_arg with a function_arg_info field.
14862 (assign_parm_find_data_types): Remove local variables and
14863 assign directly to "data". Make data->passed_mode shadow
14864 data->arg.mode until promotion, then assign the promoted
14865 mode to data->arg.mode.
14866 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14867 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14868 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14869 (assign_parm_setup_block, assign_parm_setup_reg)
14870 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14871 arg.mode instead of promoted_mode, arg.type instead of passed_type
14872 and arg.named instead of named_arg. Use data->arg for
14873 function_arg_info structures that had the field values passed_type,
14874 promoted_mode and named_arg. Base other function_arg_infos on
14875 data->arg, changing the necessary properties.
14876
14877 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14878
14879 * calls.h (apply_pass_by_reference_rules): Declare.
14880 * calls.c (apply_pass_by_reference_rules): New function.
14881 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14882 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14883 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14884 * function.c (assign_parm_find_data_types): Likewise.
14885 * var-tracking.c (prepare_call_arguments): Likewise.
14886
14887 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14888
14889 * target.def (must_pass_in_stack): Take a function_arg_info instead
14890 of a mode and a type.
14891 * doc/tm.texi: Regenerate.
14892 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14893 instead of a mode and a type.
14894 (must_pass_in_stack_var_size_or_pad): Likewise.
14895 * calls.c (must_pass_in_stack_var_size): Likewise.
14896 (must_pass_in_stack_var_size_or_pad): Likewise.
14897 (initialize_argument_information): Update call to
14898 targetm.calls.must_pass_in_stack.
14899 (must_pass_va_arg_on_stack): Likewise.
14900 * function.c (assign_parm_find_entry_rtl): Likewise.
14901 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14902 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14903 (alpha_function_arg_advance): Likewise.
14904 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14905 (cr16_function_arg_advance): Likewise.
14906 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14907 (cris_arg_partial_bytes): Likewise.
14908 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14909 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14910 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14911 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14912 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14913 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14914 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14915 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14916 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14917 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14918 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14919 instead of a mode and a type.
14920 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14921 (fr30_num_arg_regs): Likewise.
14922 (fr30_setup_incoming_varargs): Update calls accordingly.
14923 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14924 (fr30_function_arg_advance): Likewise.
14925 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14926 instead of a mode and a type.
14927 * config/gcn/gcn.c (num_arg_regs): Likewise.
14928 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14929 num_arg_regs and targetm.calls.must_pass_in_stack.
14930 (gcn_arg_partial_bytes): Likewise.
14931 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14932 function_arg_info instead of a mode and a type.
14933 (classify_argument): Update call accordingly.
14934 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14935 function_arg_info instead of a mode and a type.
14936 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14937 Likewise.
14938 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14939 (rs6000_parm_needs_stack): Update call accordingly.
14940 (setup_incoming_varargs): Likewise.
14941
14942 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14943
14944 * target.def (callee_copies): Take a function_arg_info instead
14945 of a mode, type and named flag.
14946 * doc/tm.texi: Regenerate.
14947 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14948 instead of a mode, type and named flag.
14949 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14950 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14951 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14952 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14953 instead of a mode, type and named flag.
14954 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14955 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14956 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14957 * calls.h (reference_callee_copied): Take a function_arg_info
14958 instead of a mode, type and named flag.
14959 * calls.c (reference_callee_copied): Likewise.
14960 (initialize_argument_information): Update call accordingly.
14961 (emit_library_call_value_1): Likewise.
14962 * function.c (gimplify_parameters): Likewise.
14963 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14964 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14965 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14966 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14967 (TARGET_CALLEE_COPIES): Define to
14968 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14969 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14970 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14971 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14972 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14973 instead of a mode, type and named flag.
14974 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14975 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14976 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14977 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14978 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14979 (TARGET_CALLEE_COPIES): Define to
14980 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14981 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14982 instead of a mode, type and named flag.
14983 * config/sh/sh.c (sh_callee_copies): Likewise.
14984 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14985 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14986 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14987
14988 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14989
14990 * target.def (function_arg_advance): Take a function_arg_info instead
14991 of a mode, type and named flag.
14992 * doc/tm.texi: Regenerate.
14993 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14994 instead of a mode, type and named flag.
14995 * targhooks.c (default_function_arg_advance): Likewise.
14996 * calls.c (initialize_argument_information): Update call to
14997 targetm.calls.function_arg_advance.
14998 (emit_library_call_value_1): Likewise.
14999 * dse.c (get_call_args): Likewise.
15000 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15001 * function.c (assign_parms, gimplify_parameters): Likewise.
15002 * var-tracking.c (prepare_call_arguments): Likewise.
15003 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15004 function_arg_info instead of a mode, type and named flag.
15005 (aarch64_setup_incoming_varargs): Update call accordingly.
15006 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15007 function_arg_info instead of a mode, type and named flag.
15008 (alpha_setup_incoming_varargs): Update call accordingly.
15009 * config/arc/arc.c (arc_function_arg_advance): Take a
15010 function_arg_info instead of a mode, type and named flag.
15011 (arc_setup_incoming_varargs): Update call accordingly.
15012 * config/arm/arm.c (arm_function_arg_advance): Take a
15013 function_arg_info instead of a mode, type and named flag.
15014 (cmse_func_args_or_return_in_stack): Update call accordingly.
15015 (arm_function_ok_for_sibcall): Likewise.
15016 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15017 * config/avr/avr.c (avr_function_arg_advance): Take a
15018 function_arg_info instead of a mode, type and named flag.
15019 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15020 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15021 (c6x_call_saved_register_used): Update call accordingly.
15022 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15023 function_arg_info instead of a mode, type and named flag.
15024 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15025 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15026 (csky_setup_incoming_varargs): Update call accordingly.
15027 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15028 function_arg_info instead of a mode, type and named flag.
15029 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15030 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15031 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15032 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15033 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15034 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15035 (ix86_setup_incoming_varargs): Update call accordingly.
15036 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15037 function_arg_info instead of a mode, type and named flag.
15038 (ia64_setup_incoming_varargs): Update call accordingly.
15039 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15040 function_arg_info instead of a mode, type and named flag.
15041 (iq2000_expand_prologue): Update call accordingly.
15042 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15043 function_arg_info instead of a mode, type and named flag.
15044 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15045 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15046 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15047 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15048 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15049 Likewise.
15050 (microblaze_expand_prologue): Update call accordingly.
15051 * config/mips/mips.c (mips_function_arg_advance): Take a
15052 function_arg_info instead of a mode, type and named flag.
15053 (mips_setup_incoming_varargs): Update call accordingly.
15054 (mips_output_args_xfer): Likewise.
15055 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15056 function_arg_info instead of a mode, type and named flag.
15057 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15058 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15059 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15060 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15061 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15062 (nios2_setup_incoming_varargs): Update call accordingly.
15063 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15064 function_arg_info instead of a mode, type and named flag.
15065 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15066 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15067 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15068 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15069 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15070 (riscv_setup_incoming_varargs): Update call accordingly.
15071 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15072 function_arg_info instead of a mode, type and named flag.
15073 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15074 Likewise.
15075 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15076 (rs6000_parm_needs_stack): Update call accordingly.
15077 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15078 instead of a mode, type and named flag.
15079 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15080 (s390_call_saved_register_used): Update call accordingly.
15081 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15082 instead of a mode, type and named flag.
15083 (sh_output_mi_thunk): Update call accordingly.
15084 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15085 function_arg_info instead of a mode, type and named flag.
15086 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15087 (spu_setup_incoming_varargs): Update call accordingly.
15088 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15089 function_arg_info instead of a mode, type and named flag.
15090 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15091 (tilegx_setup_incoming_varargs): Update call accordingly.
15092 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15093 function_arg_info instead of a mode, type and named flag.
15094 (tilegx_setup_incoming_varargs): Update call accordingly.
15095 * config/v850/v850.c (v850_function_arg_advance): Take a
15096 function_arg_info instead of a mode, type and named flag.
15097 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15098 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15099 (visium_setup_incoming_varargs): Update call accordingly.
15100 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15101 function_arg_info instead of a mode, type and named flag.
15102
15103 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15104
15105 * target.def (function_arg, function_incoming_arg): Take a
15106 function_arg_info instead of a mode, tree and named flag.
15107 * doc/tm.texi: Regenerate.
15108 * targhooks.h (default_function_arg): Take a function_arg_info
15109 instead of a mode, tree and named flag.
15110 (default_function_incoming_arg): Likewise.
15111 * targhooks.c (default_function_arg): Likewise.
15112 (default_function_incoming_arg): Likewise.
15113 * calls.h (function_arg_info::end_marker_p): New function.
15114 (function_arg_info::end_marker): Likewise.
15115 * calls.c (prepare_call_address, initialize_argument_information)
15116 (expand_call, emit_library_call_value_1): Update calls to
15117 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15118 * dse.c: Include calls.h.
15119 (get_call_args): Update call to targetm.calls.function_arg.
15120 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15121 * var-tracking.c (prepare_call_arguments): Likewise.
15122 * function.c (assign_parm_find_entry_rtl): Update call to
15123 targetm.calls.function_incoming_arg.
15124 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15125 function_arg_info instead of a mode, tree and named flag.
15126 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15127 * config/arc/arc.c (arc_function_arg): Likewise.
15128 * config/arm/arm.c (arm_function_arg): Likewise.
15129 (cmse_func_args_or_return_in_stack): Update call accordingly.
15130 (arm_function_ok_for_sibcall): Likewise.
15131 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15132 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15133 instead of a mode, tree and named flag.
15134 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15135 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15136 (c6x_call_saved_register_used): Update call accordingly.
15137 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15138 instead of a mode, tree and named flag.
15139 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15140 (cris_function_arg_1): Likewise.
15141 * config/csky/csky.c (csky_function_arg): Likewise.
15142 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15143 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15144 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15145 (frv_function_arg_1): Likewise.
15146 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15147 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15148 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15149 * config/i386/i386.c (ix86_function_arg): Likewise.
15150 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15151 (ia64_function_arg_1): Likewise.
15152 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15153 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15154 accordingly.
15155 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15156 instead of a mode, tree and named flag.
15157 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15158 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15159 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15160 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15161 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15162 (microblaze_expand_prologue): Update call accordingly.
15163 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15164 instead of a mode, tree and named flag.
15165 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15166 (mmix_function_arg_1): Likewise.
15167 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15168 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15169 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15170 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15171 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15172 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15173 (nvptx_function_incoming_arg): Likewise.
15174 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15175 * config/pa/pa.c (pa_function_arg): Likewise.
15176 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15177 * config/pru/pru.c (pru_function_arg): Likewise.
15178 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15179 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15180 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15181 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15182 (rs6000_parm_needs_stack): Update call accordingly.
15183 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15184 instead of a mode, tree and named flag.
15185 * config/s390/s390.c (s390_function_arg): Likewise.
15186 (s390_call_saved_register_used): Update call accordingly.
15187 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15188 instead of a mode, tree and named flag.
15189 (sh_output_mi_thunk): Update call accordingly.
15190 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15191 (sparc_function_incoming_arg): Take a function_arg_info instead of
15192 a mode, tree and named flag.
15193 * config/spu/spu.c (spu_function_arg): Likewise.
15194 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15195 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15196 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15197 * config/v850/v850.c (v850_function_arg): Likewise.
15198 * config/vax/vax.c (vax_function_arg): Likewise.
15199 * config/visium/visium.c (visium_function_arg): Likewise.
15200 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15201 (xtensa_function_incoming_arg): Likewise.
15202
15203 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15204
15205 * target.def (setup_incoming_varargs): Take a function_arg_info
15206 instead of a mode and tree.
15207 * doc/tm.texi: Regenerate.
15208 * targhooks.h (default_setup_incoming_varargs): Take a
15209 function_arg_info instead of a mode and tree.
15210 * targhooks.c (default_setup_incoming_varargs): Likewise.
15211 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15212 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15213 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15214 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15215 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15216 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15217 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15218 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15219 Likewise.
15220 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15221 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15222 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15223 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15224 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15225 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15226 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15227 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15228 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15229 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15230 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15231 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15232 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15233 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15234 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15235 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15236 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15237 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15238 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15239 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15240 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15241 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15242 * function.c (assign_parms_setup_varargs): Update call to
15243 targetm.calls.setup_incoming_varargs.
15244
15245 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15246
15247 * target.def (pass_by_reference): Take a function_arg_info instead
15248 of a mode, type and named flag.
15249 * doc/tm.texi: Regenerate.
15250 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15251 accordingly.
15252 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15253 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15254 function_arg_info instead of a mode, type and named flag.
15255 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15256 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15257 mode, type and named flag.
15258 * calls.c (pass_by_reference): Likewise.
15259 (pass_va_arg_by_reference): Update call accordingly.
15260 (initialize_argument_information): Likewise.
15261 (emit_library_call_value_1): Likewise.
15262 * function.c (assign_parm_find_data_types): Likewise.
15263 * var-tracking.c (prepare_call_arguments): Likewise.
15264 * stor-layout.c: Include calls.h.
15265 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15266 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15267 function_arg_info instead of a mode, type and named flag.
15268 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15269 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15270 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15271 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15272 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15273 (c6x_call_saved_register_used): Update call to pass_by_reference.
15274 * config/cris/cris.c (cris_pass_by_reference): Take a
15275 function_arg_info instead of a mode, type and named flag.
15276 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15277 function_arg_info instead of a mode, type and named flag.
15278 (epiphany_arg_partial_bytes): Update call accordingly.
15279 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15280 function_arg_info instead of a mode, type and named flag.
15281 (ft32_arg_partial_bytes): Update call accordingly.
15282 * config/i386/i386.c (ix86_pass_by_reference): Take a
15283 function_arg_info instead of a mode, type and named flag.
15284 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15285 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15286 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15287 (m32r_return_in_memory): Update call accordingly.
15288 * config/mips/mips.c (mips_pass_by_reference): Take a
15289 function_arg_info instead of a mode, type and named flag.
15290 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15291 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15292 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15293 (moxie_arg_partial_bytes): Update call accordingly.
15294 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15295 function_arg_info instead of a mode, type and named flag.
15296 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15297 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15298 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15299 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15300 (riscv_return_in_memory): Update call accordingly.
15301 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15302 function_arg_info instead of a mode, type and named flag.
15303 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15304 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15305 * config/s390/s390.c (s390_pass_by_reference): Take a
15306 function_arg_info instead of a mode, type and named flag.
15307 (s390_call_saved_register_used): Update call accordingly.
15308 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15309 instead of a mode, type and named flag.
15310 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15311 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15312 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15313 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15314 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15315 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15316
15317 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15318
15319 * target.def (arg_partial_bytes): Take a function_arg_info instead
15320 of a mode, type and named flag.
15321 * doc/tm.texi: Regenerate.
15322 * target.h (function_arg_info): Declare.
15323 * calls.h (function_arg_info): New class.
15324 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15325 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15326 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15327 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15328 * calls.c (initialize_argument_information): Update call to
15329 targetm.calls.partial_bytes.
15330 (emit_library_call_value_1): Likewise.
15331 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15332 * function.c (assign_parm_find_entry_rtl): Likewise.
15333 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15334 function_arg_info instead of a mode, type and named flag.
15335 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15336 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15337 (cmse_func_args_or_return_in_stack): Update accordingly.
15338 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15339 function_arg_info instead of a mode, type and named flag.
15340 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15341 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15342 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15343 * config/fr30/fr30.c: Include calls.h.
15344 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15345 type and named flag.
15346 * config/frv/frv.c: Include calls.h.
15347 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15348 type and named flag.
15349 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15350 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15351 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15352 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15353 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15354 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15355 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15356 Likewise.
15357 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15358 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15359 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15360 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15361 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15362 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15363 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15364 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15365 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15366 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15367 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15368 (rs6000_parm_needs_stack): Update call accordingly.
15369 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15370 function_arg_info instead of a mode, type and named flag.
15371 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15372 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15373
15374 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15375
15376 * calls.h (must_pass_va_arg_in_stack): Declare.
15377 * calls.c (must_pass_va_arg_in_stack): New function.
15378 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15379 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15380 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15381 Likewise.
15382 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15383
15384 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15385
15386 * calls.h (pass_va_arg_by_reference): Declare.
15387 * calls.c (pass_va_arg_by_reference): New function.
15388 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15389 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15390 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15391 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15392 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15393 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15394 (mips_gimplify_va_arg_expr): Likewise.
15395 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15396 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15397 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15398 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15399 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15400 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15401 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15402 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15403 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15404 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15405 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15406
15407 2019-08-20 Richard Biener <rguenther@suse.de>
15408
15409 PR target/91498
15410 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15411 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15412 (convert_scalars_to_vector): Add timode_p parameter and use it
15413 to guard TImode-only operation.
15414 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15415 (pass_stv::execute): Pass down timode_p.
15416
15417 2019-08-20 Lili Cui <lili.cui@intel.com>
15418
15419 * common/config/i386/i386-common.c
15420 (processor_names): Add tigerlake and cooperlake.
15421 (processor_alias_table): Add tigerlake and cooperlake.
15422 * config.gcc: Add -march=tigerlake and cooperlake.
15423 * config/i386/driver-i386.c
15424 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15425 Add "has_avx" to classify processor.
15426 * config/i386/i386-builtins.c (processor_model) :
15427 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15428 (arch_names_table): Add tigerlake and cooperlake.
15429 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15430 and PROCESSOR_COOPERLAKE.
15431 * config/i386/i386-c.c
15432 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15433 * config/i386/i386-options.c
15434 (m_TIGERLAKE): Define.
15435 (m_COOPERLAKE): Ditto.
15436 (m_CORE_AVX512): Ditto.
15437 (processor_cost_table): Add cascadelake.
15438 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15439 * config/i386/i386.h
15440 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15441 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15442 (PTA_MOVDIRI): Ditto.
15443 (PTA_MOVDIR64B): Ditto.
15444 (PTA_COOPERLAKE): Ditto.
15445 (PTA_TIGERLAKE): Ditto.
15446 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15447 * doc/extend.texi: Add tigerlake and cooperlake.
15448 * doc/invoke.texi: Add tigerlake and cooperlake.
15449
15450 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15451
15452 * doc/install.texi (Specific, alpha): Remove note to use
15453 binutils 2.11.2 or later.
15454
15455 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15456
15457 PR middle-end/89544
15458 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15459 when possible.
15460
15461 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15462
15463 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15464 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15465 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15466 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15467 * config/aarch64/constraints.md (Dt): New constraint
15468 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15469
15470 2019-08-19 Richard Biener <rguenther@suse.de>
15471
15472 PR tree-optimization/91403
15473 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15474 cases we can handle with tail-recursion...
15475 (follow_ssa_edge_expr): ... here. Do so.
15476
15477 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15478
15479 PR target/91441
15480 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15481 implemented for -fsanitize=kernel-address, and merge check logic
15482 with -fsanitize=address.
15483
15484 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15485
15486 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15487 for cpu and machine. Factor 64/32b builtins.
15488
15489 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15490
15491 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15492 gone, point to sourceforge.net.
15493
15494 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15495
15496 * doc/ux.texi (User Experience Guidelines): Update reference.
15497
15498 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15499
15500 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15501 not LGPL".
15502
15503 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15504
15505 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15506 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15507
15508 2019-08-16 Martin Sebor <msebor@redhat.com>
15509
15510 * tree.def (TYPE_SIZE): Clarify.
15511 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15512
15513 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15514
15515 PR tree-optimization/91109
15516 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15517 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15518 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15519
15520 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15521
15522 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15523 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15524 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15525 (uavg<mode>3_ceil): New expander.
15526 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15527 mode iterator when creating CONST1_RTX.
15528 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15529 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15530 mode iterator for const1_operand predicate.
15531
15532 2019-08-16 Richard Biener <rguenther@suse.de>
15533
15534 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15535 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15536 follow_ssa_edge.
15537 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15538 (analyze_evolution_in_loop): Likewise.
15539 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15540 (follow_ssa_edge_expr): ... here. Refactor code.
15541
15542 2019-08-16 Richard Biener <rguenther@suse.de>
15543
15544 PR target/91469
15545 * config/i386/i386-features.c
15546 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15547
15548 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15549
15550 PR other/91255
15551 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15552 only if subst_name matches curr_attr string.
15553
15554 2019-08-16 Richard Biener <rguenther@suse.de>
15555
15556 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15557 stmt at gsi_p, instead replace it with a NOP removed later.
15558 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15559 that became dead because of that.
15560
15561 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15562
15563 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15564 for which we can't represent a range.
15565 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15566 set_varying.
15567 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15568 Set VR_UNDEFINED if type is not supported.
15569 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15570 * tree-vrp.c (value_range_base::check): Assert that a varying has
15571 min/max set.
15572 (value_range_base::equal_p): Early bail for undefines.
15573 (value_range_base::set_varying): Accept a type.
15574 (value_range::set_varying): Same.
15575 (value_range_base::type): VARYING can have a type, while UNDEFINE
15576 is typeless.
15577 (value_range_base::dump): Print type for VARYING nodes.
15578 (value_range_base::set): Add type to VARYING.
15579 (extract_range_from_multiplicative_op): Pass type to set_varying.
15580 (extract_range_from_binary_expr): Same.
15581 (value_range_base::intersect_helper): Same.
15582 (value_range_base::union_helper): Same.
15583 (value_range_base::normalize_symbolics): Same.
15584 (determine_value_range_1): Same.
15585 * tree-vrp.h (class value_range_base): Add type to set_varying.
15586 Add prototype for dump(void).
15587 Add prototype for supports_type_p.
15588 (class value_range): Add type to set_varying.
15589 Add prototype for dump(void).
15590 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15591 set_varying.
15592 (vr_values::get_lattice_entry): Set varying even if propagation
15593 finished.
15594 Pass type to set_varying.
15595 (vr_values::get_value_range): Remove vr_const_varying.
15596 Reallocate the lattice if needed.
15597 (vr_values::update_value_range): Pass type to set_varying.
15598 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15599 (vr_values::extract_range_from_binary_expr): Same.
15600 (vr_values::extract_range_from_unary_expr): Same.
15601 (vr_values::extract_range_from_cond_expr): Same.
15602 (vr_values::check_for_binary_op_overflow): Same.
15603 (vr_values::extract_range_basic): Same.
15604 (vr_values::extract_range_from_assignment): Same.
15605 (vr_values::vr_values): Increase size of num_vr_values.
15606 (vr_values::extract_range_from_phi_node): Pass type to
15607 set_varying.
15608
15609 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15610
15611 PR target/90878
15612 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15613 for costs of hard register moves.
15614 (ix86_register_move_cost): Likewise.
15615 * config/i386/i386.h (processor_costs): Move costs of hard
15616 register moves to hard_register. Add int_load, int_store,
15617 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15618 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15619 for costs of RTL expressions.
15620 * config/i386/x86-tune-costs.h: Move costs of hard register
15621 moves to hard_register. Duplicate int_load, int_store,
15622 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15623 sse_load, sse_store for costs of RTL expressions.
15624
15625 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15626
15627 * target.def (setup_incoming_vararg_bounds): Remove.
15628 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15629 * doc/tm.texi: Regenerate.
15630 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15631 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15632 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15633 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15634
15635 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15636
15637 MSP430: Fix lines over 80 characters long in
15638 config/msp430/*.{c,h} files
15639
15640 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15641 specifier in string.
15642 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15643 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15644 redundant old comment.
15645 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15646 Split line more than 80 characters long.
15647 * config/msp430/msp430.c (msp430_option_override): Likewise.
15648 (msp430_return_in_memory): Likewise.
15649 (msp430_gimplify_va_arg_expr): Likewise.
15650 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15651 (msp430_legitimate_constant): Likewise.
15652 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15653 (msp430_attr): Likewise.
15654 (msp430_data_attr): Likewise.
15655 (msp430_start_function): Likewise.
15656 (gen_prefix): Likewise.
15657 (msp430_init_sections): Likewise.
15658 (msp430_select_section): Likewise.
15659 (msp430_function_section): Likewise.
15660 (msp430_unique_section): Likewise.
15661 (msp430_output_aligned_decl_common): Likewise.
15662 (msp430_do_not_relax_short_jumps): Likewise.
15663 (msp430_init_builtins): Likewise.
15664 (msp430_expand_delay_cycles): Likewise.
15665 (msp430_expand_prologue): Likewise.
15666 (msp430_expand_epilogue): Likewise.
15667 (msp430_expand_helper): Likewise.
15668 (msp430_split_movsi): Likewise.
15669 (msp430_print_operand): Likewise.
15670 (msp430_return_addr_rtx): Likewise.
15671 (msp430x_extendhisi): Likewise.
15672 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15673 (ASM_SPEC): Likewise.
15674 Remove very obvious comments.
15675 (LIB_SPEC): Split line more than 80 characters long.
15676 (EH_RETURN_HANDLER_RTX): Likewise.
15677 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15678
15679 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15680
15681 MSP430: Fix whitespace errors and incorrect indentation in
15682 config/msp430/*.{c,h} files
15683
15684 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15685 (msp430_select_hwmult_lib): Likewise.
15686 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15687 (msp430_extract_mcu_data): Likewise.
15688 (struct t_msp430_mcu_data): Likewise.
15689 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15690 before left square bracket.
15691 (msp430_option_override): Fix indentation.
15692 (msp430_hard_regno_nregs_with_padding): Likewise.
15693 (msp430_initial_elimination_offset): Likewise.
15694 (msp430_special_register_convention_p): Remove whitespace before left
15695 square bracket and after exclamation mark.
15696 (msp430_evaluate_arg): Likewise.
15697 (msp430_callee_copies): Fix indentation.
15698 (msp430_gimplify_va_arg_expr): Likewise.
15699 (msp430_function_arg_advance): Remove whitespace before left square
15700 bracket.
15701 (reg_ok_for_addr): Likewise.
15702 (msp430_preserve_reg_p): Likewise.
15703 (msp430_compute_frame_info): Likewise.
15704 (msp430_asm_output_addr_const_extra): Add space between function name
15705 and open parenthesis.
15706 (has_section_name): Fix indentation.
15707 (msp430_attr): Remove trailing whitespace.
15708 (msp430_section_attr): Likewise.
15709 (msp430_data_attr): Likewise.
15710 (struct msp430_attribute_table): Fix comment and whitespace.
15711 (msp430_start_function): Remove whitespace before left square bracket.
15712 Add space between function name and open parenthesis.
15713 (msp430_select_section): Remove trailing whitespace.
15714 (msp430_section_type_flags): Remove trailing whitespace.
15715 (msp430_unique_section): Remove space before closing parenthesis.
15716 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15717 (msp430_builtins): Remove whitespace before left square bracket.
15718 (msp430_init_builtins): Fix indentation.
15719 (msp430_expand_prologue): Remove whitespace before left square bracket.
15720 Remove space before closing parenthesis.
15721 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15722 (msp430_split_movsi): Remove space before closing parenthesis.
15723 (helper_function_name_mappings): Fix indentation.
15724 (msp430_use_f5_series_hwmult): Fix whitespace.
15725 (use_32bit_hwmult): Likewise.
15726 (msp430_no_hwmult): Likewise.
15727 (msp430_output_labelref): Remove whitespace before left square bracket.
15728 (msp430_print_operand_raw): Likewise.
15729 (msp430_print_operand_addr): Likewise.
15730 (msp430_print_operand): Add two spaces after '.' in comment.
15731 Fix trailing whitespace.
15732 (msp430x_extendhisi): Fix indentation.
15733 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15734 tab.
15735 (PC_REGNUM): Likewise.
15736 (STACK_POINTER_REGNUM): Likewise.
15737 (CC_REGNUM): Likewise.
15738
15739 2019-08-15 Richard Biener <rguenther@suse.de>
15740
15741 PR target/91454
15742 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15743 helper.
15744 (general_scalar_chain::make_vector_copies): Use it.
15745
15746 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15747
15748 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15749
15750 2019-08-15 Martin Liska <mliska@suse.cz>
15751
15752 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15753 operators with no arguments.
15754 (eliminate_unnecessary_stmts): Likewise here.
15755
15756 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15757
15758 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15759 <case COMPARE>: Revert 2019-08-14 change.
15760 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15761 for (TARGET_64BIT || mode != DImode).
15762
15763 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15764
15765 * tree-vrp.c (value_range_base::set): Merge in code from
15766 value_range_base::set_and_canonicalize.
15767 Enforce canonicalization at set time.
15768 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15769 (value_range_base::set_undefined): Inline call to set().
15770 (value_range_base::set_varying): Same.
15771 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15772 (vrp_val_max): New argument handle_pointers.
15773 (vrp_val_min): Same.
15774 (ranges_from_anti_range): Same.
15775 (extract_range_into_wide_ints): Use tree argument instead of sign
15776 and precision.
15777 (extract_range_from_multiplicative_op): Take in tree type instead
15778 of precision and sign. Adapt function for canonicalized ranges.
15779 (extract_range_from_binary_expr): Pass type to
15780 extract_range_from_multiplicative_op.
15781 Adapt for canonicalized ranges.
15782 (extract_range_from_unary_expr): Same.
15783 (value_range_base::intersect_helper): Adjust for canonicalized
15784 ranges.
15785 (value_range_base::union_helper): Same.
15786 (value_range_base::normalize_symbolics): New.
15787 * tree-vrp.h (class value_range_base): Remove
15788 set_and_canonicalize.
15789 New prototype for normalize_symbolics.
15790 (class value_range): Remove set_and_canonicalize.
15791 (vrp_val_min): Adjust prototype.
15792 (vrp_val_max): Same.
15793 * vr-values.c
15794 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15795 instead of set_and_canonicalize.
15796
15797 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15798
15799 PR middle-end/91444
15800 * tree-vect-stmts.c (vectorizable_call): Check that the function
15801 is a BUILT_IN_MD function before passing it to
15802 targetm.vectorize.builtin_md_vectorized_function.
15803
15804 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15805
15806 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15807 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15808 (aarch64_select_early_remat_modes): Use it.
15809
15810 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15811
15812 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15813 16 for SVE predicates even if they are fixed-length.
15814
15815 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15816
15817 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15818 operand order match the MOV /Z alias.
15819
15820 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15821
15822 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15823 the vector pattern as an aarch64_svpattern argument. Update the
15824 overloaded caller accordingly.
15825 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15826 (aarch64_output_sve_vector_inc_dec): Likewise.
15827
15828 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15829
15830 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15831 multiplication case, try to compute VG * (lowest set bit) directly
15832 rather than always basing the multiplication on VG. Use
15833 expand_mult for the multiplication if we can.
15834
15835 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15836
15837 * config/aarch64/aarch64-protos.h
15838 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15839 (aarch64_sve_inc_dec_immediate_p): Rename to...
15840 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15841 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15842 (aarch64_output_sve_scalar_inc_dec): Declare.
15843 (aarch64_output_sve_inc_dec_immediate): Rename to...
15844 (aarch64_output_sve_vector_inc_dec): ...this.
15845 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15846 (aarch64_output_sve_scalar_inc_dec): New functions.
15847 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15848 arguments. Only handle true ADDVL and ADDPL instructions;
15849 don't emit an INC or DEC.
15850 (aarch64_sve_inc_dec_immediate_p): Rename to...
15851 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15852 (aarch64_output_sve_inc_dec_immediate): Rename to...
15853 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15854 aarch64_sve_vector_inc_dec_immediate_p.
15855 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15856 (aarch64_sve_plus_immediate): New predicates.
15857 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15858 rather than aarch64_sve_addvl_addpl_immediate.
15859 (aarch64_sve_inc_dec_immediate): Rename to...
15860 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15861 aarch64_sve_vector_inc_dec_immediate_p.
15862 (aarch64_sve_add_operand): Update accordingly.
15863 * config/aarch64/constraints.md (Uai): New constraint.
15864 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15865 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15866 operand into a register if it satisfies aarch64_sve_plus_immediate.
15867 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15868 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15869 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15870 aarch64_output_sve_vector_inc_dec instead of
15871 aarch64_output_sve_inc_dec_immediate.
15872
15873 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15874
15875 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15876 (UNSPEC_REVW): New constants.
15877 (elem_bits): New mode attribute.
15878 (SVE_INT_UNARY): New int iterator.
15879 (optab): Handle UNSPEC_REV[BHW].
15880 (sve_int_op): New int attribute.
15881 (min_elem_bits): Handle VNx16QI and the predicate modes.
15882 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15883 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15884 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15885 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15886 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15887 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15888 unspecs based on the total width of the reversed data.
15889 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15890 reinterpret followed by a subreg on big-endian targets.
15891
15892 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15893 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15894
15895 * config/aarch64/aarch64-sve.md
15896 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15897 alternatives in which one of the inputs is in the same register
15898 as the output.
15899
15900 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15901
15902 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15903 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15904
15905 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15906
15907 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15908 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15909
15910 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15911 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15912
15913 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15914 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15915 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15916
15917 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15918 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15919
15920 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15921 Add an alternative that uses reversed shifts.
15922
15923 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15924
15925 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15926 struct.
15927
15928 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15929
15930 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15931 a commutativity marker.
15932
15933 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15934 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15935
15936 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15937 (aarch64_prepare_sve_cond_int_fma): Declare.
15938 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15939 (aarch64_prepare_sve_int_fma): New functions.
15940 (aarch64_prepare_sve_cond_int_fma): Likewise.
15941 * config/aarch64/aarch64-sve.md
15942 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15943 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15944 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15945 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15946 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15947 (*madd<mode>): Rename to...
15948 (*fma<mode>4): ...this.
15949 (*msub<mode>): Rename to...
15950 (*fnma<mode>4): ...this.
15951
15952 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15953 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15954
15955 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15956 Print 2.0 naturally.
15957 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15958 * config/aarch64/predicates.md
15959 (aarch64_sve_float_negated_arith_immediate): New predicate,
15960 renamed from aarch64_sve_float_arith_with_sub_immediate.
15961 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15962 positive and negative constants.
15963 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15964 or an aarch64_sve_float_arith_with_sub_immediate.
15965 * config/aarch64/constraints.md (vsN): Use
15966 aarch64_sve_float_negated_arith_immediate.
15967 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15968 iterator.
15969 (sve_pred_fp_rhs2_immediate): New int attribute.
15970 * config/aarch64/aarch64-sve.md
15971 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15972 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15973 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15974 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15975 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15976 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15977
15978 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15979 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15980
15981 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15982 (*aarch64_cond_abd<SVE_F:mode>_3)
15983 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15984
15985 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15986 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15987
15988 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15989 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15990
15991 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15992 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15993
15994 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15995 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15996 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15997 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15998 optabs.
15999 * optabs.h (create_convert_operand_from): Expand comment.
16000 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16001 when mapping scalar rtxes to vector operands.
16002 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16003 ashiftrt and lshiftrt.
16004 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16005 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16006 (*cond_<optab><mode>_any_const): New patterns.
16007
16008 2019-08-15 Martin Liska <mliska@suse.cz>
16009
16010 PR ipa/91438
16011 * cgraph.c (cgraph_node::remove): When setting
16012 n->origin = NULL for all nested functions, reset
16013 also next_nested.
16014
16015 2019-08-15 Martin Liska <mliska@suse.cz>
16016
16017 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16018 and next_nested.
16019
16020 2019-08-15 Martin Liska <mliska@suse.cz>
16021
16022 PR ipa/91404
16023 * passes.c (order): Remove.
16024 (uid_hash_t): Likewise).
16025 (remove_cgraph_node_from_order): Remove from set
16026 of pointers (cgraph_node *).
16027 (insert_cgraph_node_to_order): New.
16028 (duplicate_cgraph_node_to_order): New.
16029 (do_per_function_toporder): Register all 3 cgraph hooks.
16030 Skip removed_nodes now as we know about all of them.
16031
16032 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16033
16034 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16035 <case E_V8QImode>: Use vector_set path for
16036 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16037 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16038 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16039
16040 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16041
16042 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16043
16044 2019-08-14 Martin Sebor <msebor@redhat.com>
16045
16046 PR tree-optimization/91294
16047 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16048 source length as exact.
16049
16050 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16051
16052 * doc/extend.texi: Add "noinit" attribute documentation.
16053 * doc/sourcebuild.texi: Add noinit effective target documentation.
16054 * varasm.c (default_section_type_flags): Add support for "noinit"
16055 section.
16056 (default_elf_select_section): Add support for "noinit" attribute.
16057 * config/msp430/msp430.c (msp430_attribute_table): Remove
16058 "noinit" entry.
16059
16060 2019-08-14 Richard Biener <rguenther@suse.de>
16061 Uroš Bizjak <ubizjak@gmail.com>
16062
16063 PR target/91154
16064 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16065 mode arguments.
16066 (scalar_chain::smode): New member.
16067 (scalar_chain::vmode): Likewise.
16068 (dimode_scalar_chain): Rename to...
16069 (general_scalar_chain): ... this.
16070 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16071 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16072 base with TImode and V1TImode.
16073 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16074 (general_scalar_chain::vector_const_cost): Adjust for SImode
16075 chains.
16076 (general_scalar_chain::compute_convert_gain): Likewise. Add
16077 {S,U}{MIN,MAX} support.
16078 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16079 (general_scalar_chain::make_vector_copies): Likewise. Handle
16080 non-DImode chains appropriately.
16081 (general_scalar_chain::convert_reg): Likewise.
16082 (general_scalar_chain::convert_op): Likewise.
16083 (general_scalar_chain::convert_insn): Likewise. Add
16084 fatal_insn_not_found if the result is not recognized.
16085 (convertible_comparison_p): Pass in the scalar mode and use that.
16086 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16087 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16088 (scalar_to_vector_candidate_p): Remove by inlining into single
16089 caller.
16090 (general_remove_non_convertible_regs): Rename from
16091 dimode_remove_non_convertible_regs.
16092 (remove_non_convertible_regs): Remove by inlining into single caller.
16093 (convert_scalars_to_vector): Handle SImode and DImode chains
16094 in addition to TImode chains.
16095 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16096 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16097 (*<maxmin>di3_doubleword): Likewise.
16098
16099 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16100 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16101
16102 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16103 (*cond_bic<mode>_any): New patterns.
16104
16105 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16106
16107 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16108 take the equivalent mask, as well as a bit count.
16109 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16110 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16111 (aarch64_sve_pred_and_operand): New predicates.
16112 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16113 code attribute.
16114 * config/aarch64/aarch64-sve.md
16115 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16116 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16117
16118 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16119
16120 * config/aarch64/aarch64-sve.md
16121 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16122 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16123 New patterns.
16124
16125 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16126 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16127
16128 * config/aarch64/aarch64-sve.md
16129 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16130 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16131
16132 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16133 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16134
16135 * config/aarch64/aarch64-sve.md
16136 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16137 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16138
16139 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16140
16141 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16142 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16143 New pattern.
16144
16145 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16146 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16147
16148 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16149
16150 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16151 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16152
16153 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16154 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16155 (aarch64_print_operand): Add support for %I.
16156 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16157 Bitcast floating-point constants to the corresponding integer constant.
16158 (aarch64_float_const_representable_p): Handle vectors as well
16159 as scalars.
16160 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16161 for the new vcond_mask_<mode><vpred> expander.
16162 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16163 test aarch64_float_const_representable_p.
16164 (aarch64_sve_reg_or_dup_imm): New predicate.
16165 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16166 gen_vcond_mask_<mode><vpred> instead of
16167 gen_aarch64_sve_dup<mode>_const.
16168 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16169 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16170 for operands 1 and 2 respectively. Force operand 2 into a
16171 register if operand 1 is a register. Fold old define_insn...
16172 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16173 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16174 floating-point constants that can be moved as integers. Add
16175 alternatives for MOV /M and FMOV /M.
16176 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16177 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16178 1 and 2 respectively.
16179 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16180 as scalars.
16181 (vss): New constraint.
16182
16183 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16184
16185 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16186 (aarch64_sve_float_maxmin_operand): New predicates.
16187 * config/aarch64/constraints.md (vsB): New constraint.
16188 (vsM): Fix typo.
16189 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16190 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16191 UNSPEC_COND_FMINNM.
16192 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16193 Use aarch64_sve_float_maxmin_operand for operand 2.
16194 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16195 Add alternatives for the constant forms.
16196
16197 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16198
16199 * config/aarch64/constraints.md (vsb): New constraint.
16200 (vsm): Generalize description.
16201 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16202 iterator.
16203 (sve_imm_con): Handle smax, smin, umax and umin.
16204 (sve_imm_prefix): New code attribute.
16205 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16206 (aarch64_sve_vsb_operand): New predicates.
16207 (aarch64_sve_mul_immediate): Rename to...
16208 (aarch64_sve_vsm_immediate): ...this.
16209 (aarch64_sve_mul_operand): Rename to...
16210 (aarch64_sve_vsm_operand): ...this.
16211 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16212 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16213 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16214 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16215 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16216 add movprfx support for the immediate alternatives.
16217 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16218 of the above.
16219 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16220 for operand 3.
16221
16222 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16223
16224 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16225 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16226 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16227
16228 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16229
16230 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16231 (optab, sve_int_op): Handle them.
16232 * config/aarch64/aarch64-sve.md: Expand comment.
16233
16234 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16235
16236 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16237 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16238 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16239
16240 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16241
16242 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16243 (aarch64_expand_sve_const_pred_trn): New functions.
16244 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16245 use the above functions when the parameter is true.
16246 (aarch64_expand_sve_const_pred): Update call accordingly.
16247 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16248 Rename to...
16249 (@aarch64_sve_<perm_insn><mode>): ...this.
16250
16251 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16252
16253 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16254 Declare.
16255 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16256 (aarch64_sve_emit_int_cmp): New functions.
16257 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16258 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16259 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16260 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16261 (UNSPEC_PRED_Z): New unspec.
16262 (set_clobber_cc_nzc): Delete.
16263 * config/aarch64/aarch64-sve.md: Add a block comment about
16264 UNSPEC_PRED_Z.
16265 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16266 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16267 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16268 UNSPEC_MERGE_PTRUE.
16269 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16270 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16271 check for compatible predicates.
16272 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16273 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16274 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16275 comparisons above.
16276
16277 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16278
16279 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16280 * config/aarch64/aarch64-sve.md: Add a section describing it.
16281 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16282 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16283 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16284 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16285 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16286 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16287 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16288 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16289 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16290 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16291 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16292 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16293 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16294 (aarch64_evpc_rev_local): Update accordingly.
16295
16296 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16297
16298 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16299 iterators.
16300 (SVE_BHSI, SVE_SDI): Tweak comment.
16301 (SVE_HSDI): Likewise. Fix definition.
16302 (SVE_SDF): New mode iterator.
16303 (elem_bits): New mode attribute.
16304 (SVE_COND_FCVT): New int iterator.
16305 * config/aarch64/aarch64-sve.md
16306 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16307 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16308 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16309 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16310 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16311 ...these new patterns.
16312 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16313 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16314 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16315 Merge into...
16316 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16317 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16318 ...these new patterns.
16319 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16320 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16321 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16322 ...this new pattern.
16323 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16324 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16325 ...this new pattern.
16326 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16327
16328 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16329
16330 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16331 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16332 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16333 unspecs.
16334 (optab, su): Handle them.
16335 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16336 * config/aarch64/aarch64-sve.md
16337 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16338 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16339 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16340 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16341 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16342 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16343 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16344 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16345 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16346 FIXUORS.
16347 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16348 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16349 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16350 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16351 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16352 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16353 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16354 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16355 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16356 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16357 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16358 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16359 of UNSPEC_FLOAT_CONVERT.
16360 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16361 aarch64_sve_extend<mode><Vwide>2.
16362
16363 2019-08-14 Richard Biener <rguenther@suse.de>
16364
16365 PR target/91154
16366 * config/i386/i386-features.c
16367 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16368 individual instruction gain. Fix reg-reg copy GRP cost. Use
16369 ix86_cost->sse_op for vector instruction costs.
16370
16371 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16372
16373 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16374 (cmp_op): Handle it.
16375 (SVE_COND_FP_CMP): Rename to...
16376 (SVE_COND_FP_CMP_I0): ...this.
16377 (SVE_FP_CMP): Remove.
16378 * config/aarch64/aarch64-sve.md
16379 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16380 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16381 using unspecs to represent the comparison.
16382 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16383 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16384 accordingly.
16385 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16386 (aarch64_unspec_cond_code): Move after integer code. Handle
16387 UNORDERED.
16388 (aarch64_emit_sve_predicated_cond): Replace with...
16389 (aarch64_emit_sve_fp_cond): ...this new function.
16390 (aarch64_emit_sve_or_conds): Replace with...
16391 (aarch64_emit_sve_or_fp_conds): ...this new function.
16392 (aarch64_emit_sve_inverted_cond): Replace with...
16393 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16394 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16395
16396 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16397
16398 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16399 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16400 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16401 SVE_HSD instead of SVE_SD.
16402
16403 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16404 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16405
16406 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16407 iterator.
16408 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16409 attributes.
16410 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16411 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16412 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16413 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16414 (*div<SVE_F:mode>3): Generalize to...
16415 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16416
16417 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16418 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16419
16420 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16421 constants.
16422 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16423 predicate.
16424 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16425 Declare.
16426 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16427 function.
16428 * config/aarch64/aarch64-sve.md: Add a block comment about the
16429 handling of predicated FP operations.
16430 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16431 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16432 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16433 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16434 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16435 operand.
16436 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16437 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16438 operand.
16439 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16440 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16441 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16442 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16443 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16444 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16445 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16446 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16447 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16448 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16449 strictness operands. Use aarch64_sve_pred_dominates_p to check
16450 whether the predicate on the conditional operation is suitable
16451 for merging. Split patterns into the canonical equal-predicate form.
16452 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16453 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16454
16455 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16456 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16457
16458 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16459 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16460 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16461 rtx codes.
16462 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16463 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16464 unspecs.
16465
16466 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16467 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16468
16469 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16470 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16471 actually has, rather than relying on REG_EQUAL notes.
16472 Make the insn operand order match the SVE operand order.
16473 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16474 the SVE operand order.
16475
16476 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16477
16478 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16479 (aarch64_emit_set_immediate): Likewise.
16480 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16481 (aarch64_pfalse_reg): Likewise.
16482 (aarch64_convert_sve_data_to_pred): New function.
16483 (aarch64_sve_move_pred_via_while): Take an optional target register
16484 and the required register mode.
16485 (aarch64_expand_sve_const_pred_1): New function.
16486 (aarch64_expand_sve_const_pred): Likewise.
16487 (aarch64_expand_mov_immediate): Build an all-true predicate
16488 if the significant bits of the immediate are all true. Use
16489 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16490 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16491 before register allocation.
16492 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16493 a VNx16BI PTRUE when splitting the memory alternative.
16494 (vec_duplicate<mode>): Update accordingly.
16495 (*pred_cmp<cmp_op><mode>): Rename to...
16496 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16497
16498 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16499
16500 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16501 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16502 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16503 (UNSPEC_PTEST): New unspec.
16504 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16505 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16506 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16507 * config/aarch64/aarch64-sve.md: Add a new section describing the
16508 handling of UNSPEC_PTEST.
16509 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16510 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16511 (ptest_ptrue<mode>): Replace with...
16512 (aarch64_ptest<mode>): ...this new pattern.
16513 (cbranch<mode>4): Update after above changes.
16514 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16515 UNSPEC_PTEST_PTRUE.
16516 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16517 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16518 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16519
16520 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16521
16522 PR lto/91287
16523 * builtins.c (builtin_with_linkage_p): New function.
16524 * builtins.h (builtin_with_linkage_p): New function.
16525 * symtab.c (write_symbol): Remove redundant assert.
16526 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16527 Remove FIXME and use builtin_with_linkage_p.
16528
16529 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16530
16531 PR middle-end/91421
16532 * tree-core.h (function_decl::function_code): Change type to
16533 unsigned int.
16534 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16535 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16536 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16537 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16538 is BUILT_IN_NORMAL.
16539 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16540 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16541 (fndecl_built_in_p): Change the type of the "name" argument to
16542 unsigned int.
16543 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16544 after check for DECL_BUILT_IN_CLASS.
16545 * cgraphclones.c (build_function_decl_skip_args): Use
16546 set_decl_built_in_function.
16547 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16548 * ipa-split.c (split_function): Likewise.
16549 * langhooks.c (add_builtin_function_common): Likewise.
16550 * omp-simd-clone.c (simd_clone_create): Likewise.
16551 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16552 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16553 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16554 DECL_FUNCTION_CODE.
16555 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16556 instead of DECL_FUNCTION_CODE.
16557 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16558 instead of DECL_FUNCTION_CODE.
16559 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16560 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16561 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16562 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16563 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16564 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16565 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16566 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16567 (alpha_gimple_fold_builtin): Likewise.
16568 * config/arc/arc.c (arc_expand_builtin): Likewise.
16569 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16570 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16571 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16572 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16573 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16574 * config/frv/frv.c (frv_expand_builtin): Likewise.
16575 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16576 (gcn_expand_builtin): Likewise.
16577 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16578 (fold_builtin_cpu): Likewise.
16579 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16580 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16581 (ix86_gimple_fold_builtin): Likewise.
16582 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16583 (ia64_expand_builtin): Likewise.
16584 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16585 * config/mips/mips.c (mips_expand_builtin): Likewise.
16586 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16587 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16588 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16589 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16590 * config/pa/pa.c (pa_expand_builtin): Likewise.
16591 * config/pru/pru.c (pru_expand_builtin): Likewise.
16592 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16593 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16594 Likewise.
16595 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16596 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16597 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16598 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16599 (rs6000_builtin_reciprocal): Likewise.
16600 * config/rx/rx.c (rx_expand_builtin): Likewise.
16601 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16602 * config/s390/s390.c (s390_expand_builtin): Likewise.
16603 * config/sh/sh.c (sh_expand_builtin): Likewise.
16604 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16605 (sparc_fold_builtin): Likewise.
16606 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16607 * config/spu/spu.c (spu_expand_builtin): Likewise.
16608 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16609 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16610 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16611 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16612 (xtensa_expand_builtin): Likewise.
16613
16614 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16615
16616 PR middle-end/91421
16617 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16618 before the DECL_FUNCTION_CODE.
16619 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16620 to check for a BUILT_IN_ALLOCA call.
16621 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16622 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16623 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16624 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16625 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16626 for BUILT_IN_NORMAL functions.
16627 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16628 test for BUILT_IN_TM_ABORT.
16629 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16630 to check for a BUILT_IN_STACK_RESTORE call.
16631 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16632 * tree-ssa-threadedge.c
16633 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16634 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16635 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16636 test for a BUILT_IN_NORMAL call instead of a negative test for
16637 an internal function call.
16638
16639 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16640
16641 * tree.h (build_vector_a_then_b): Declare.
16642 * tree.c (build_vector_a_then_b): New function.
16643 * fold-const-call.c (fold_while_ult): Likewise.
16644 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16645 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16646 (aarch64_svpattern): New enum.
16647 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16648 constants through aarch64_expand_mov_immediate.
16649 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16650 than general_operand as the predicate for operand 1.
16651 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16652 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16653 insn_type.
16654 (simd_immediate_info::simd_immediate_info): New overload that
16655 takes a scalar_int_mode and an svpattern.
16656 (simd_immediate_info::u): Add a "pattern" field.
16657 (svpattern_token): New function.
16658 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16659 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16660 (aarch64_sve_move_pred_via_while): New functions.
16661 (aarch64_expand_mov_immediate): Try using
16662 aarch64_sve_move_pred_via_while for predicates that contain N ones
16663 followed by M zeros but that do not correspond to a VLnnn pattern.
16664 (aarch64_sve_pred_valid_immediate): New function.
16665 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16666 with PTRUE and PFALSE.
16667 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16668 forms.
16669
16670 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16671
16672 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16673 flag.
16674 (darwin_override_options): Likewise.
16675 * config/darwin.h: Likewise.
16676 * config/darwin.opt: Likewise.
16677 * config/i386/i386.c (output_pic_addr_const): Likewise.
16678 * config/rs6000/darwin.h: Likewise.
16679 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16680 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16681 ... this TARGET_MACHO_SYMBOL_STUBS.
16682 (FUNCTION_PROFILER):Likewise.
16683 * config/i386/i386.h: Likewise.
16684
16685 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16686
16687 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16688 <case E_V2SImode>: Use vec_extr path for
16689 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16690 <case E_V8QImode>: Ditto.
16691 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16692 Use SWI48 mode iterator. Use %k to output operand 0.
16693 (*mmx_pextrw): New insn pattern.
16694 (*mmx_pextrb): Ditto.
16695 (*mmx_pextrb_zext): Ditto.
16696
16697 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16698
16699 * target.def (libc_has_function, libc_has_fast_function): Improve
16700 documentation strings.
16701 * doc/tm.texi: Regenerate.
16702
16703 2019-08-13 Caroline Tice <cmtice@google.com>
16704
16705 PR other/91396
16706 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16707 vtv_end.o or vtv_end_preinit.o files if !static.
16708
16709 2019-08-13 Olivier Hainque <hainque@adacore.com>
16710
16711 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16712
16713 2019-08-13 Olivier Hainque <hainque@adacore.com>
16714
16715 * rtlanal.c (tablejump_casesi_pattern): New function, to
16716 determine if a tablejump insn is a casesi dispatcher. Extracted
16717 from patch_jump_insn.
16718 * rtl.h (tablejump_casesi_pattern): Declare.
16719 * cfgrtl.c (patch_jump_insn): Use it.
16720 * dwarf2cfi.c (create_trace_edges): Use it.
16721
16722 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16723
16724 PR target/81800
16725 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16726 operand is larger than a long int.
16727
16728 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16729
16730 * machmode.h (opt_mode::else_mode): New function.
16731 (opt_mode::else_blk): Use it.
16732 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16733 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16734 (aarch64_gen_stepped_int_parallel): Likewise.
16735 (aarch64_stepped_int_parallel_p): Likewise.
16736 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16737 argument.
16738 * config/aarch64/aarch64.c
16739 (aarch64_expand_sve_widened_duplicate): Delete.
16740 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16741 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16742 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16743 argument. Use early returns in the !CONST_INT_P handling.
16744 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16745 than handling some inline.
16746 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16747 from...
16748 (aarch64_simd_container_mode): ...here.
16749 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16750 (aarch64_sve_ld1rq_operand_p): New functions.
16751 * config/aarch64/predicates.md (descending_int_parallel)
16752 (aarch64_sve_ld1rq_operand): New predicates.
16753 * config/aarch64/constraints.md (UtQ): New constraint.
16754 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16755 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16756 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16757 (@aarch64_sve_reinterpret<mode>): New expander.
16758 (*aarch64_sve_reinterpret<mode>): New pattern.
16759 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16760 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16761 (*sve_ld1rq<Vesize>): Replace with...
16762 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16763
16764 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16765
16766 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16767 16:12.
16768
16769 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16770
16771 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16772 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16773 (msp430_check_path_for_devices): New.
16774 (parse_devices_csv_1): New.
16775 (parse_devices_csv): New.
16776 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16777 MCU data in devices.csv before using the hard-coded data.
16778 Warn if devices.csv isn't found and the MCU wasn't found in the
16779 hard-coded data either.
16780 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16781 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16782 Search for devices.csv on -I and -L paths.
16783 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16784 msp430_set_driver_var.
16785 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16786 -mdevices-csv-loc=.
16787 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16788 searched for devices.csv.
16789 (mwarn-devices-csv): Document option.
16790
16791 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16792
16793 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16794 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16795 Use a single Dn alternative instead of separate Dz and Dm
16796 alternatives. Use aarch64_output_sve_move_immediate.
16797 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16798 function.
16799 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16800 for predicates too.
16801 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16802 (aarch64_output_ptrue): Delete.
16803
16804 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16805
16806 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16807 INDEX.
16808 (simd_immediate_info::value, simd_immediate_info::step)
16809 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16810 with...
16811 (simd_immediate_info::u): ...this new union.
16812 (simd_immediate_info::simd_immediate_info): Update accordingly.
16813 (aarch64_output_simd_mov_immediate): Likewise.
16814 (aarch64_output_sve_mov_immediate): Likewise.
16815
16816 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16817
16818 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16819 extra_gcc_objs.
16820 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16821 (msp430_select_cpu): New spec function.
16822 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16823 MCU data.
16824 * config/msp430/msp430-devices.c: New file.
16825 * config/msp430/msp430-devices.h: New file.
16826 * config/msp430/msp430.c: Remove msp430_mcu_data.
16827 (msp430_option_override): Use msp430_extract_mcu_data to extract
16828 MCU data.
16829 (msp430_use_f5_series_hwmult): Likewise.
16830 (use_32bit_hwmult): Likewise.
16831 (msp430_no_hwmult): Likewise.
16832 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16833 assembler.
16834 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16835 and -mcpu option.
16836 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16837 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16838 Remove hard-coded MCU multilib data.
16839
16840 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16841
16842 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16843 based on the mode instead of testing properties of it.
16844
16845 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16846
16847 * doc/md.texi: Document the x and y constraints for AArch64.
16848 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16849 (FP_LO8_REGS): New reg_class.
16850 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16851 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16852 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16853 * config/aarch64/predicates.md (aarch64_simd_register): Use
16854 FP_REGNUM_P instead of checking the classes manually.
16855 * config/aarch64/constraints.md (y): New constraint.
16856
16857 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16858
16859 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16860 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16861 * config/aarch64/aarch64-simd.md
16862 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16863 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16864 from the asm template.
16865 * config/aarch64/aarch64-sve.md
16866 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16867 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16868 from the asm template.
16869 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16870 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16871 from the asm template.
16872 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16873
16874 2019-08-13 Martin Liska <mliska@suse.cz>
16875
16876 * value-prof.c (gimple_ic_transform): Add new line.
16877 Print details with MSG_NOTE.
16878
16879 2019-08-13 Martin Liska <mliska@suse.cz>
16880
16881 * doc/invoke.texi: Document automatic detection of jobserver.
16882 * lto-wrapper.c (run_gcc): Detect jobserver always.
16883
16884 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16885
16886 * config/i386/i386-expand.c (ix86_expand_vector_set)
16887 <case E_V2SImode>: Use vec_merge path for
16888 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16889 <case E_V8QImode>: Ditto.
16890 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16891 (*mmx_pinsrb): Ditto.
16892
16893 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16894
16895 PR target/83250
16896 PR target/91340
16897 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16898 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16899 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16900 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16901 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16902
16903 2019-08-12 Richard Biener <rguenther@suse.de>
16904
16905 PR lto/91375
16906 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16907 flag_devirtualize.
16908
16909 2019-08-12 Richard Biener <rguenther@suse.de>
16910
16911 PR driver/91130
16912 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16913 lang_mask option, always use CL_DRIVER.
16914 (get_options_from_collect_gcc_options): Adjust.
16915 (find_and_merge_options): Likewise.
16916 (run_gcc): Likewise.
16917
16918 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16919
16920 * ipa-predicate.c (add_condition): Restore inverted test.
16921
16922 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16923
16924 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16925 (enum omp_clause_device_type_kind): New enum.
16926 (struct tree_omp_clause): Add subcode.device_type_kind.
16927 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16928 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16929 for device_type clause.
16930 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16931 * tree-pretty-print.c (dump_omp_clause): Likewise.
16932
16933 PR target/91408
16934 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16935 vector_operand.
16936
16937 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16938
16939 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16940 handling spilled pseudos.
16941
16942 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16943
16944 PR target/91386
16945 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16946 to preserve the contents of the original insns.
16947
16948 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16949
16950 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16951 (addsi3_compare_op2): Likewise.
16952
16953 2019-08-09 Martin Liska <mliska@suse.cz>
16954
16955 * alias.c (alias_ptr_types_compatible_p): Strengten
16956 type comparison in LTO mode.
16957
16958 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16959
16960 PR middle-end/90313
16961 * tree-tailcall.c (find_tail_calls): Reject calls that might
16962 read from an escaped RESULT_DECL.
16963
16964 2019-08-09 Martin Liska <mliska@suse.cz>
16965
16966 * doc/invoke.texi: Document the option value.
16967 * lto-wrapper.c (run_gcc): Set auto_parallel
16968 only with -flto=auto.
16969
16970 2019-08-09 Martin Liska <mliska@suse.cz>
16971
16972 * opts.c (common_handle_option): Error for an invalid argument
16973 to -flto=.
16974
16975 2019-08-09 Martin Liska <mliska@suse.cz>
16976
16977 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16978 use dump_printf to report optimization.
16979 (sem_variable::merge): Likwise.
16980 (sem_item_optimizer::merge_classes): Use dump_printf to report
16981 ICF hits.
16982
16983 2019-08-09 Martin Liska <mliska@suse.cz>
16984
16985 * value-prof.c (gimple_divmod_fixed_value_transform):
16986 Use dump_printf_loc.
16987 (gimple_mod_pow2_value_transform): Likewise.
16988 (gimple_mod_subtract_transform): Likewise.
16989 (init_node_map): Likewise.
16990 (gimple_ic_transform): Likewise.
16991 (gimple_stringops_transform): Likewise.
16992
16993 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16994
16995 * doc/extend.texi: Add const qualifier to ld intrinsics.
16996
16997 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16998
16999 * config/rs6000/dfp.md (D64_D128): Rename to ...
17000 (DDTD): ... this, throughout.
17001 (dfp_suffix): Rename to ...
17002 (q): ... this, throughout.
17003
17004 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17005
17006 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17007 (dfp_suffix): Ditto.
17008 (adddd3, addtd3): Merge to ...
17009 (add<mode>3 for D64_D128): ... this.
17010 (subdd3, subtd3): Merge to ...
17011 (sub<mode>3 for D64_D128): ... this.
17012 (muldd3, multd3): Merge to ...
17013 (mul<mode>3 for D64_D128): ... this.
17014 (divdd3, divtd3): Merge to ...
17015 (div<mode>3 for D64_D128): ... this.
17016 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17017 (*cmp<mode>_internal1 for D64_D128): ... this.
17018 (ftruncdd2, ftrunctd2): Merge to ...
17019 (ftrunc<mode>2 for D64_D128): ... this.
17020 (fixdddi2, fixtddi2): Merge to ...
17021 (fix<mode>di2 for D64_D128): ... this.
17022
17023 2019-08-08 Jim Wilson <jimw@sifive.com>
17024
17025 PR target/91229
17026 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17027 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17028 Pass into recursive call.
17029 (riscv_flatten_aggregate_argument): New arg. Pass to
17030 riscv_flatten_aggregate_field.
17031 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17032 riscv_flatten_aggregate_argument twice, with false and true as last
17033 arg. Process result twice. Compare results and warn if different.
17034 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17035
17036 2019-08-08 Martin Liska <mliska@suse.cz>
17037
17038 PR bootstrap/91352
17039 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17040 * lto-wrapper.c (jobserver_active_p): Likewise.
17041
17042 2019-08-08 Martin Liska <mliska@suse.cz>
17043
17044 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17045 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17046 (create_version_clone_with_body): Likewise.
17047
17048 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17049
17050 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17051 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17052 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17053 GOVD_EXPLICIT flags.
17054 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17055 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17056 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17057 call install_var_field with mask 11 instead of 3.
17058 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17059 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17060
17061 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17062
17063 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17064 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17065
17066 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17067
17068 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17069 MOVPRFX alternatives. Make the GPR alternatives more expensive
17070 than the FPR ones.
17071
17072 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17073
17074 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17075 Disparage the GPR alternative relative to the FPR one.
17076 Fix handling of 8-bit and 16-bit FPR values.
17077
17078 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17079
17080 * config/aarch64/iterators.md (BITWISEV): Delete.
17081 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17082 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17083 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17084 UNSPEC_FMINNMV, UNSPEC_FMINV.
17085 (bit_reduc_op): Delete.
17086 (sve_int_op): New int attribute.
17087 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17088 UNSPEC_FMINNMV, UNSPEC_FMINV.
17089 * config/aarch64/aarch64-sve.md
17090 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17091 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17092 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17093 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17094 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17095 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17096 new patterns.
17097 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17098 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17099 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17100 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17101 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17102 new patterns.
17103
17104 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17105
17106 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17107 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17108 (fms<mode>4, *fms<mode>4): Replace with...
17109 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17110 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17111 Use unspecs instead of rtx codes.
17112 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17113 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17114
17115 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17116
17117 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17118 int iterator.
17119 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17120 * config/aarch64/aarch64-sve.md
17121 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17122 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17123 use a single unspec for the rhs.
17124 (*<su><maxmin><mode>3): Delete.
17125 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17126
17127 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17128
17129 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17130 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17131 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17132 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17133 (optab, sve_fp_op): Handle them.
17134 (SVE_FP_UNARY): Delete.
17135 (optab): Remove sqrt entry.
17136 (sve_fp_op): Remove neg, abs and sqrt entries.
17137 (SVE_COND_FP_UNARY): New int iterator.
17138 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17139 (*<frint_pattern><mode>2): Delete.
17140 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17141 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17142 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17143 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17144
17145 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17146
17147 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17148
17149 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17150
17151 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17152 (UNSPEC_COND_FADD): ...this.
17153 (UNSPEC_COND_SUB): Rename to...
17154 (UNSPEC_COND_FSUB): ...this.
17155 (UNSPEC_COND_MUL): Rename to...
17156 (UNSPEC_COND_FMUL): ...this.
17157 (UNSPEC_COND_DIV): Rename to...
17158 (UNSPEC_COND_FDIV): ...this.
17159 (UNSPEC_COND_MAX): Rename to...
17160 (UNSPEC_COND_FMAXNM): ...this.
17161 (UNSPEC_COND_MIN): Rename to...
17162 (UNSPEC_COND_FMINNM): ...this.
17163 (UNSPEC_COND_LT): Rename to...
17164 (UNSPEC_COND_FCMLT): ...this.
17165 (UNSPEC_COND_LE): Rename to...
17166 (UNSPEC_COND_FCMLE): ...this.
17167 (UNSPEC_COND_EQ): Rename to...
17168 (UNSPEC_COND_FCMEQ): ...this.
17169 (UNSPEC_COND_NE): Rename to...
17170 (UNSPEC_COND_FCMNE): ...this.
17171 (UNSPEC_COND_GE): Rename to...
17172 (UNSPEC_COND_FCMGE): ...this.
17173 (UNSPEC_COND_GT): Rename to...
17174 (UNSPEC_COND_FCMGT): ...this.
17175 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17176 (sve_fp_op_rev): Update accordingly.
17177 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17178
17179 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17180
17181 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17182 banner comments.
17183 * config/aarch64/check-sve-md.awk: New file.
17184 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17185 (insn-conditions.md): Depend on it.
17186
17187 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17188
17189 PR target/91385
17190 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17191 (*negsi2_cmpz_zext): Ditto.
17192
17193 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17194
17195 * config/aarch64/iterators.md (commutative): Remove.
17196
17197 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17198
17199 PR driver/91130
17200 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17201 processing COLLECT_GCC_OPTIONS.
17202 (run_gcc): Likewise.
17203
17204 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17205
17206 PR tree-optimization/91109
17207 * lra-remat.c (update_scratch_ops): Remove assignment of the
17208 hard register.
17209
17210 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17211
17212 * data-streamer.h (streamer_write_poly_uint64): Declare.
17213 (streamer_read_poly_uint64): Likewise.
17214 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17215 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17216 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17217 (add_condition): Take a poly_int64 size.
17218 * ipa-predicate.c (add_condition): Likewise.
17219 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17220 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17221 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17222 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17223 condition::size as a poly_int64.
17224 (unmodified_parm_1): Take a poly_int64 size pointer.
17225 (unmodified_parm): Likewise.
17226 (unmodified_parm_or_parm_agg_item): Likewise.
17227 (set_cond_stmt_execution_predicate): Update accordingly.
17228 (set_switch_stmt_execution_predicate): Likewise.
17229 (will_be_nonconstant_expr_predicate): Likewise.
17230 (will_be_nonconstant_predicate): Likewise.
17231 (inline_read_section): Stream condition::size as a poly_int.
17232 (ipa_fn_summary_write): Likewise.
17233
17234 2019-08-07 Martin Liska <mliska@suse.cz>
17235
17236 * fold-const.c (twoval_comparison_p): Replace int
17237 with bool as a return type.
17238 (simple_operand_p): Likewise.
17239 (operand_equal_p): Replace int with bool as a return type.
17240 * fold-const.h (operand_equal_p): Likewise.
17241
17242 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17243
17244 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17245 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17246 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17247 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17248 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17249 * tree-pretty-print.c (dump_omp_clause): Likewise.
17250 * tree-nested.c (convert_nonlocal_omp_clauses,
17251 convert_local_omp_clauses): Likewise.
17252 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17253 Likewise.
17254 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17255 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17256 clause with array or reference to array types, no matter what type
17257 except for reference it has.
17258
17259 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17260
17261 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17262
17263 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17264
17265 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17266 (arch_canonicalize): Support rv32g and rv64g and fix error
17267 handling.
17268
17269 2019-08-06 Martin Liska <mliska@suse.cz>
17270
17271 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17272 and DECL_IS_OPERATOR_DELETE_P.
17273
17274 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17275
17276 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17277 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17278 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17279 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17280 (gimplify_omp_for): Don't do C++ random access iterator clause
17281 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17282 don't predetermine the artificial iterator in case of C++ random
17283 access iterators as lastprivate, but private. For OMP_LOOP, force
17284 bind expr around simd body and force for_pre_body before the
17285 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17286 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17287 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17288 diff var of C++ random access iterators. Handle
17289 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17290 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17291 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17292 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17293 * omp-low.c (lower_rec_input_clauses): For
17294 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17295 variables instead of default constructing them.
17296 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17297 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17298 is_taskloop_ctx check from the assert to the guarding condition.
17299
17300 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17301
17302 * config/riscv/multilib-generator: (canonical_order): New.
17303 (arch_canonicalize): Dito.
17304 Apply arch_canonicalize for alts.
17305
17306 2019-08-05 Martin Sebor <msebor@redhat.com>
17307
17308 * doc/extend.texi (Common Variable Attributes): Document alias
17309 attribute.
17310
17311 2019-08-05 Marek Polacek <polacek@redhat.com>
17312
17313 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17314 * doc/invoke.texi: Document -Wcomma-subscript.
17315
17316 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17317
17318 * tree-core.h (tree_function_decl): Make function_code an
17319 independent field. Group the remaining bitfields into bytes
17320 and move decl_type so that it contines to be at a byte boundary.
17321 Leave 12 bits for future expansion.
17322
17323 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17324
17325 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17326 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17327 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17328 IFN_MASK_STORE.
17329
17330 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17331
17332 * gimple.h (gimple_move_vops): Declare.
17333 * gimple.c (gimple_move_vops): New function
17334 * gimple-fold.c (replace_call_with_call_and_fold)
17335 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17336 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17337 (gimple_fold_call): Use it.
17338 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17339 * tree-call-cdce.c (use_internal_fn): Likewise.
17340 * tree-if-conv.c (predicate_load_or_store): Likewise.
17341 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17342 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17343 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17344 (update_call_from_tree): Likewise.
17345 * tree-vect-stmts.c (vectorizable_load): Likewise.
17346 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17347
17348 2019-08-05 Martin Liska <mliska@suse.cz>
17349
17350 PR c++/91334
17351 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17352 with not arguments.
17353 (eliminate_unnecessary_stmts): Likewise.
17354
17355 2019-08-05 Richard Biener <rguenther@suse.de>
17356
17357 PR middle-end/91169
17358 * fold-const.c (get_array_ctor_element_at_index): Create
17359 offset_ints according to the sign of the index type and treat
17360 that as signed if it is obviously so.
17361
17362 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17363
17364 PR target/91341
17365 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17366 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17367 _mm256_storeu2_m128i): New function.
17368
17369 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17370
17371 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17372 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17373
17374 2019-08-05 Alan Modra <amodra@gmail.com>
17375
17376 PR target/91349
17377 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17378 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17379
17380 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17381
17382 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17383 bug that was fixed in Tcl 8.6.1.
17384
17385 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17386
17387 * config/rs6000/future.md: New file.
17388 * config/rs6000/rs6000.md: Include future.md.
17389 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17390
17391 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17392
17393 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17394 check to use targetm.slow_unaligned_access instead.
17395
17396 * function.c (assign_param_data_one): Remove unused data members.
17397
17398 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17399
17400 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17401 build_distinct_type_copy.
17402 (simd_clone_adjust_argument_types): Ditto.
17403 (simd_clone_adjust): Call build_distinct_type_copy here.
17404 (expand_simd_clones): Ditto.
17405
17406 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17407
17408 PR target/91201
17409 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17410
17411 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17412
17413 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17414 from 'const void *'.
17415 (sort_locs_in_loop_postorder_cmp): Likewise.
17416
17417 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17418
17419 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17420 (hot-bb-count-ws-permille): Likewise.
17421 (hot-bb-frequency-fraction): Likewise.
17422 (unlikely-bb-count-fraction): Likewise.
17423 * params.def (hot-bb-count-fraction): Rework description.
17424 (hot-bb-count-ws-permille): Likewise.
17425 (hot-bb-frequency-fraction): Likewise.
17426 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17427 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17428
17429 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17430
17431 PR target/91323
17432 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17433 Return false.
17434
17435 2019-08-02 Richard Biener <rguenther@suse.de>
17436
17437 * vec.h (vec::sort): Add gcc_qsort_r support.
17438 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17439 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17440 to gcc_qsort_r style callback.
17441 (sort_locs_in_loop_postorder_cmp): Likewise.
17442 (analyze_memory_references): Use gcc_sort_r interfaces.
17443 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17444
17445 2019-08-02 Martin Liska <mliska@suse.cz>
17446
17447 PR lto/91313
17448 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17449 to detect working job server.
17450 (driver::detect_jobserver): Test whether jobserver
17451 is active from GCC driver. That will prevent situation where
17452 GCC is invoked from a LD plugin and the linker already uses
17453 file descriptors suggested by make. That leads to a wrong
17454 detection.
17455 * gcc.h (driver): Add detect_jobserver.
17456 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17457 not scanning for --jobserver-auth prefix.
17458
17459 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17460
17461 PR tree-optimization/91201
17462 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17463 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17464 extraction.
17465
17466 2019-08-01 Martin Sebor <msebor@redhat.com>
17467
17468 PR c++/90947
17469 * tree.c (type_initializer_zero_p): Define.
17470 * tree.h (type_initializer_zero_p): New function.
17471
17472 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17473
17474 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17475
17476 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17477
17478 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17479 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17480 * predict.c (maybe_hot_count_p): Likewise.
17481 (maybe_hot_bb_p): Tweak comment.
17482 (maybe_hot_edge_p): Likewise.
17483 (probably_never_executed): Likewise. Minor tweak.
17484 (probably_never_executed_bb_p): Likewise.
17485 (unlikely_executed_edge_p): Likewise.
17486 (probably_never_executed_edge_p): Likewise.
17487 (optimize_function_for_size_p): Likewise.
17488 (optimize_function_for_speed_p): Likewise.
17489 (function_optimization_type): Likewise.
17490 (optimize_bb_for_size_p): Likewise.
17491 (optimize_bb_for_speed_p): Likewise.
17492 (bb_optimization_type): Likewise.
17493 (optimize_edge_for_size_p): Likewise.
17494 (optimize_edge_for_speed_p): Likewise.
17495 (optimize_insn_for_size_p): Likewise.
17496 (optimize_insn_for_speed_p): Likewise.
17497 (optimize_loop_for_size_p): Likewise.
17498 (optimize_loop_for_speed_p): Likewise.
17499 (optimize_loop_nest_for_speed_p): Likewise.
17500 (optimize_loop_nest_for_size_p): Likewise.
17501 (predictable_edge_p): Likewise.
17502 (handle_missing_profiles): Minor tweak.
17503
17504 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17505
17506 * config/rs6000/predicates.md (pcrel_external_address): Update
17507 comment.
17508
17509 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17510
17511 PR target/85693
17512 * config/i386/mmx.md (usadv8qi): New expander.
17513
17514 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17515
17516 PR c++/90590
17517 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17518 with reserved names that are in a system header.
17519
17520 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17521
17522 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17523 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17524 (*vec_extractv2si_0_zext): Ditto.
17525 (*vec_extractv2si_1): Add (rm,x) alternative.
17526 (*vec_extractv2si_1_zext): New insn pattern.
17527 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17528 insn constraint.
17529
17530 2019-08-01 Richard Biener <rguenther@suse.de>
17531
17532 * domwalk.c (bb_postorder): Remove static variable.
17533 (cmp_bb_postorder): Adjust.
17534 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17535 (dom_walker::walk): Adjust.
17536
17537 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17538
17539 * sort.cc (sort_r_ctx): New struct.
17540 (reorder23): Make templated on context type.
17541 (reorder45): Ditto.
17542 (cmp1): Ditto. Adjust signature.
17543 (netsort): Ditto.
17544 (mergesort): Ditto.
17545 [CHECKING_P] (cmp2to3): New static function. Use it...
17546 (gcc_qsort) [CHECKING_P]: ...here.
17547 (gcc_sort_r): New function.
17548 * system.h (sort_r_cmp_fn): New function typedef.
17549 (qsort_chk): Adjust signature.
17550 (gcc_sort_r): Declare.
17551 * vec.c (qsort_chk_error): Adjust.
17552 (qsort_chk): Adjust.
17553
17554 2019-08-01 Richard Biener <rguenther@suse.de>
17555
17556 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17557 (compute_antic): Localize it here.
17558
17559 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17560
17561 * common/config/riscv/riscv-common.c: Check -march string ends
17562 with null.
17563
17564 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17565
17566 * ipa-devirt.c (type_warning_cmp): Make static.
17567 (decl_warning_cmp): Ditto.
17568
17569 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17570
17571 PR target/91050
17572 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17573 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17574 use of deleted rs6000_dejagnu_cpu_index variable.
17575 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17576 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17577 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17578 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17579 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17580 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17581
17582 2019-07-31 Richard Biener <rguenther@suse.de>
17583
17584 PR tree-optimization/91280
17585 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17586 Decompose MEM_REF manually for offset handling.
17587
17588 2019-07-31 Richard Biener <rguenther@suse.de>
17589
17590 PR tree-optimization/91293
17591 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17592 of reduction stmts.
17593
17594 2019-07-31 Matt Thomas <matt@3am-software.com>
17595 Nick Hudson <nick@nthcliff.demon.co.uk>
17596 Matthew Green <mrg@eterna.com.au>
17597 Maya Rashish <coypu@sdf.org>
17598
17599 * config.gcc (hppa*-*-netbsd*): New target.
17600 * config/pa/pa-netbsd.h: New file.
17601 * config/pa/pa32-netbsd.h: New file.
17602
17603 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17604
17605 PR tree-optimization/91201
17606 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17607
17608 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17609
17610 * config/gcn/gcn-valu.md
17611 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17612 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17613 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17614 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17615 struct ilist. Add nops for delayeduse insns.
17616 * config/gcn/gcn.md (delayeduse): New attribute.
17617 (*movbi): Remove s_waitcnt from stores.
17618 (*mov<mode>_insn): Likewise.
17619 (*movti_insn): Likewise. Add delayeduse attribute.
17620 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17621 (atomic_store<mode>): Remove or adjust s_waitcnt.
17622
17623 2019-07-31 Richard Biener <rguenther@suse.de>
17624
17625 * vr-values.h (vr_values::swap_vr_value): New.
17626 (vr_values::free_value_range): likewise.
17627 * vr-values.c (vr_values::swap_vr_value): Implement.
17628 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17629 Do not return a range or take a var.
17630 (evrp_range_analyzer::stack): Change back to recording a non-const
17631 value_range *.
17632 * gimple-ssa-evrp-analyze.c
17633 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17634 value-range.
17635 (evrp_range_analyzer::pop_to_marker): Adjust.
17636 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17637 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17638 no longer needed value-range.
17639
17640 2019-07-31 Martin Liska <mliska@suse.cz>
17641
17642 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17643 have size and (or) alignment as 2nd and later arguments.
17644 Mark all of them as necessary.
17645
17646 2019-07-31 Richard Biener <rguenther@suse.de>
17647
17648 PR tree-optimization/91178
17649 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17650 Use tail-recursion.
17651
17652 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17653
17654 PR tree-optimization/91201
17655 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17656 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17657 TARGET_AVX512F.
17658 (reduc_plus_scal_<mode>): Improve formatting by introducing
17659 a temporary.
17660
17661 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17662
17663 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17664 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17665 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17666 (aarch64_init_tme_builtins): New.
17667 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17668 (aarch64_expand_builtin_tme): New.
17669 (aarch64_expand_builtin): Handle TME builtins.
17670 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17671 __ARM_FEATURE_TME when enabled.
17672 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17673 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17674 (TARGET_TME): New.
17675 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17676 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17677 UNSPECV_TCANCEL.
17678 (tstart, ttest, tcommit, tcancel): New instructions.
17679 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17680 (__tcancel, __ttest): New.
17681 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17682 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17683 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17684 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17685 * config/arm/types.md: Add new tme type attr.
17686 * doc/invoke.texi: Document "tme".
17687
17688 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17689
17690 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17691 warn_unused_result attribute.
17692 (cmse_check_address_range): Add warn_unused_result attribute.
17693
17694 2019-07-31 Richard Biener <rguenther@suse.de>
17695
17696 PR tree-optimization/91257
17697 * tree-vrp.c (union_ranges): Unify equality and less tests
17698 by using compare_values. Re-order cheap tests first.
17699
17700 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17701
17702 PR middle-end/91301
17703 * gimplify.c (gimplify_omp_for): If for class iterator on
17704 distribute parallel for there is no data sharing clause
17705 on inner_for_stmt, look for private clause on combined
17706 parallel too and if found, move it to inner_for_stmt.
17707
17708 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17709
17710 * lra-int.h (lra_operand_data): Remove early_clobber field.
17711 (lra_insn_reg): Likewise.
17712 * lra.c (debug_operand_data): Update accordingly.
17713 (setup_operand_alternative): Likewise.
17714 (new_insn_reg): Likewise. Remove early_clobber parameter.
17715 (collect_non_operand_hard_regs): Update call accordingly.
17716 Don't assign to lra_insn_reg::early_clobber.
17717 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17718 and update calls to new_insn_reg.
17719 (lra_update_insn_regno_info): Update calls accordingly.
17720 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17721 alternative number as a parameter and test whether the operand
17722 is earlyclobbered in that particular alternative.
17723 (process_alt_operands): Update call accordingly. Use per-alternative
17724 checks for earyclobber here too.
17725 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17726 against zero for IRA_UNKNOWN_ALT.
17727
17728 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17729
17730 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17731
17732 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17733
17734 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17735 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17736
17737 2019-07-30 Martin Liska <mliska@suse.cz>
17738
17739 PR ipa/89330
17740 * cgraph.c (cgraph_edge::make_direct): Use
17741 edge->indirect_unknown_callee as edge->resolve_speculation can
17742 deallocate edge which is this pointer.
17743
17744 2019-07-30 Richard Biener <rguenther@suse.de>
17745
17746 PR tree-optimization/91257
17747 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17748
17749 2019-07-30 Martin Liska <mliska@suse.cz>
17750
17751 * doc/invoke.texi: Document new behavior.
17752 * lto-wrapper.c (cpuset_popcount): New function
17753 is a copy of libgomp/config/linux/proc.c.
17754 (init_num_threads): Likewise.
17755 (run_gcc): Automatically detect core count for -flto.
17756 (jobserver_active_p): New function.
17757
17758 2019-07-30 Richard Biener <rguenther@suse.de>
17759
17760 PR tree-optimization/91257
17761 * bitmap.h (bitmap_ior_into_and_free): Declare.
17762 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17763 whether to add the unliked element to the freelist.
17764 (bitmap_list_insert_element_after): Add defaulted param for
17765 an already allocated element.
17766 (bitmap_ior_into_and_free): New function.
17767 * tree-ssa-structalias.c (condense_visit): Reduce the
17768 ponts-to and edge bitmaps of the SCC members in a
17769 logarithmic fashion rather than all to one.
17770
17771 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17772
17773 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17774 parameter. When nonnull, make sure that the addition or subtraction
17775 has the same condition.
17776 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17777 for CFN_COND_MUL too.
17778
17779 2019-07-30 Richard Biener <rguenther@suse.de>
17780
17781 PR tree-optimization/91291
17782 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17783 constant values.
17784
17785 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17786
17787 PR middle-end/91216
17788 * omp-low.c (global_nonaddressable_vars): New variable.
17789 (use_pointer_for_field): For global decls, if they are non-addressable,
17790 remember it in the global_nonaddressable_vars bitmap, if they are
17791 addressable and in the global_nonaddressable_vars bitmap, ignore their
17792 TREE_ADDRESSABLE bit.
17793 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17794 vars in global_nonaddressable_vars bitmap.
17795 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17796
17797 PR target/91150
17798 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17799 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17800 comparison to unsigned HOST_WIDE_INT before shifting it left.
17801
17802 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17803
17804 * config/i386/i386.md (movstrict<mode>): Use register_operand
17805 predicate for operand 0. Add expander condition. Assert that
17806 operand 0 is a SUBREG RTX.
17807 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17808 Update operand constraints and insn condition.
17809 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17810 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17811 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17812 Update operand 0 constraints.
17813 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17814
17815 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17816
17817 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17818 when -m{code,data}-region are used without -mlarge.
17819 * config/msp430/msp430.c (msp430_option_override): Error when a
17820 non-default code or data region is used without -mlarge.
17821 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17822 attributes when they are used without -mlarge.
17823
17824 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17825
17826 PR target/70320
17827 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17828
17829 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17830
17831 PR middle-end/91242
17832 * wide-int.h (generic_wide_int::sext_elt): New function.
17833 * inchash.h (hash::add_wide_int): Use it instead of elt.
17834
17835 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17836
17837 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17838 CODE_FOR_arm_##.
17839 * config/arm/arm.md (<crc_variant>): Rename to...
17840 (arm_<crc_variant>): ... This.
17841 (<cdp>): Rename to...
17842 (arm_<cdp>): ... This.
17843 (<ldc>): Rename to...
17844 (arm_<ldc>): ... This.
17845 (<stc>): Rename to...
17846 (arm_<stc>): ... This.
17847 (<mcr>): Rename to...
17848 (arm_<mcr>): ... This.
17849 (<mrc>): Rename to...
17850 (arm_<mrc>): ... This.
17851 (<mcrr>): Rename to...
17852 (arm_<mcrr>): ... This.
17853 (<mrrc>): Rename to...
17854 (arm_<mrrc>): ... This.
17855
17856 2019-07-29 Richard Biener <rguenther@suse.de>
17857
17858 PR tree-optimization/91257
17859 * tree-ssa-sccvn.h (struct vn_avail): New.
17860 (struct vn_ssa_aux): Add avail member.
17861 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17862 member, add m_avail_freelist one.
17863 (rpo_elim::~rpo_elim): Remove.
17864 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17865 data structure.
17866 (rpo_elim::eliminate_push_avail): Likewise.
17867 (do_unwind): Likewise.
17868 (do_rpo_vn): Likewise.
17869
17870 2019-07-29 Richard Biener <rguenther@suse.de>
17871
17872 PR tree-optimization/91257
17873 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17874 most cases, instead call compare_values which handles the
17875 symbolic ranges we handle specially.
17876 (compare_values_warnv): Do not call operand_less_p but open-code
17877 the effective fold calls. Avoid converting so much.
17878
17879 2019-07-29 Martin Liska <mliska@suse.cz>
17880
17881 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17882 remove LHS of operator new call. It's handled latter.
17883
17884 2019-07-29 Richard Biener <rguenther@suse.de>
17885
17886 PR tree-optimization/91267
17887 * vr-values.c (vr_values::update_value_range): Add early return
17888 for effectively VARYING lattice entry.
17889
17890 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17891
17892 PR debug/86638
17893 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17894 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17895 necessary if keep_all_vdefs_p is true.
17896 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17897 that keep_all_vdefs_p is false.
17898 (mark_all_reaching_defs_necessary): Likewise.
17899 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17900
17901 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17902
17903 * common.opt (Og): Change the initial value of flag_dse to 0.
17904 * opts.c (default_options_table): Move OPT_ftree_dse from
17905 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17906 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17907 entry before the OPT_ftree_sra entry.
17908 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17909 of flags disabled by Og.
17910
17911 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17912
17913 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17914 variables for -Og.
17915
17916 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17917
17918 * doc/sourcebuild.texi (check-function-bodies): Document.
17919
17920 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17921
17922 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17923 VEC_DUPLICATE of a fixed-length vector even if the result
17924 is variable-length. Likewise fold a duplicate of a
17925 variable-length vector if the variable-length vector is
17926 itself a duplicate of a fixed-length sequence.
17927 (test_vector_ops_duplicate): Test more cases.
17928
17929 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17930
17931 * vector-builder.h (vector_builder): Add a shape template parameter.
17932 (vector_builder::new_unary_operation): New function, generalizing
17933 the old tree_vector_builder function.
17934 (vector_builder::new_binary_operation): Likewise.
17935 (vector_builder::binary_encoded_nelts): Likewise.
17936 * int-vector-builder.h (int_vector_builder): Update template
17937 parameters to vector_builder.
17938 (int_vector_builder::shape_nelts): New function.
17939 * rtx-vector-builder.h (rtx_vector_builder): Update template
17940 parameters to vector_builder.
17941 (rtx_vector_builder::shape_nelts): New function.
17942 (rtx_vector_builder::nelts_of): Likewise.
17943 (rtx_vector_builder::npatterns_of): Likewise.
17944 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17945 * tree-vector-builder.h (tree_vector_builder): Update template
17946 parameters to vector_builder.
17947 (tree_vector_builder::shape_nelts): New function.
17948 (tree_vector_builder::nelts_of): Likewise.
17949 (tree_vector_builder::npatterns_of): Likewise.
17950 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17951 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17952 (tree_vector_builder::new_binary_operation): Delete.
17953 (tree_vector_builder::binary_encoded_nelts): Likewise.
17954 * simplify-rtx.c: Include rtx-vector-builder.h.
17955 (distributes_over_addition_p): New function.
17956 (simplify_const_unary_operation)
17957 (simplify_const_binary_operation): Generalize handling of vector
17958 constants to include variable-length vectors.
17959 (test_vector_ops_series): Add more tests.
17960
17961 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17962
17963 PR lto/91222
17964 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17965 than INDENTIFIER_POINTER.
17966
17967 2019-07-28 Martin Liska <mliska@suse.cz>
17968
17969 PR ipa/89330
17970 * cgraph.c (symbol_table::create_edge): Always allocate
17971 a cgraph_edge.
17972 (symbol_table::free_edge): Store summary_id to
17973 edge_released_summary_ids if != -1;
17974 * cgraph.h (NEXT_FREE_NODE): Remove.
17975 (SET_NEXT_FREE_NODE): Likewise.
17976 (NEXT_FREE_EDGE): Likewise.
17977 (symbol_table::release_symbol): Store summary_id to
17978 cgraph_released_summary_ids if != -1;
17979 (symbol_table::allocate_cgraph_symbol): Always allocate
17980 a cgraph_node.
17981
17982 2019-07-28 Alan Modra <amodra@gmail.com>
17983
17984 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17985 gen_sibcall.
17986
17987 2019-07-28 Alan Modra <amodra@gmail.com>
17988
17989 PR target/91135
17990 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17991 define.
17992 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17993 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17994 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17995
17996 2019-07-28 Alan Modra <amodra@gmail.com>
17997
17998 PR target/91050
17999 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18000 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18001 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18002 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18003 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18004 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18005 in asm_default spec.
18006 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18007 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18008
18009 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18010
18011 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18012
18013 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18014
18015 PR target/89517
18016 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18017 * config/aarch64/aarch64-option-extensions.def: Add new comments
18018 and restore easier to read options.
18019
18020 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18021
18022 * convert.c (convert_to_real_1): Move part of conversion code...
18023 * match.pd: ...To here.
18024
18025 2019-07-26 Martin Jambor <mjambor@suse.cz>
18026
18027 PR ipa/89330
18028 * ipa-inline-transform.c (check_speculations_1): New function.
18029 (push_all_edges_in_set_to_vec): Likewise.
18030 (check_speculations): Use check_speculations_1, new parameter
18031 new_edges.
18032 (inline_call): Pass new_edges to check_speculations.
18033 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18034 NULL.
18035 (speculation_useful_p): Early return true if edge is inlined, remove
18036 later checks for inline_failed.
18037
18038 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18039
18040 PR rtl-optimization/91223
18041 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18042 matching with INOUT operand.
18043
18044 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18045
18046 * stmt.c (expand_case): Try to narrow the index type if it's larger
18047 than a word. Tidy up.
18048
18049 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18050
18051 * cif-code.def (NEVER_CALL): New code.
18052 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18053 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18054
18055 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18056
18057 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18058 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18059
18060 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18061
18062 * ipa-devirt.c (add_type_duplicate): Fix return value.
18063
18064 2019-07-25 Richard Biener <rguenther@suse.de>
18065
18066 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18067 type parameter and use it instead of guessing expression
18068 type from the first operand.
18069 (extract_range_from_binary_expr): Pass expr_type down.
18070
18071 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18072
18073 * config/arm/arm.md (SATrev): Change to code attribute.
18074 (*satsi_<SAT:code>): Adjust for the above.
18075 (*satsi_<SAT:code>_shift): Likewise.
18076
18077 2019-07-25 Richard Biener <rguenther@suse.de>
18078
18079 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18080 Make value_range * temporary const.
18081 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18082 Likewise.
18083 (evrp_range_analyzer::record_ranges_from_): Likewise.
18084 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18085 deal with having recorded a const one.
18086 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18087 Return a const value_range *.
18088 (evrp_range_analyzer::pop_value_range): Likewise.
18089 (evrp_range_analyzer::stack): Record const value_range *s.
18090 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18091 Adjust.
18092 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18093 (format_integer): Likewise.
18094 (sprintf_dom_walker::handle_gimple_call): Likewise.
18095 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18096 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18097 (vrp_prop::get_value_range): Adjust.
18098 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18099 modifying the lattice in-place.
18100 (vrp_prop::visit_stmt): Likewise.
18101 * vr-values.c (vr_values::get_lattice_entry): New private method.
18102 (vr_values::get_value_range): Wrap it and return a const
18103 value_range *.
18104 (vr_values::set_def_to_varying): New.
18105 (vr_values::set_defs_to_varying): Use it.
18106 (vr_values::update_value_range): Likewise.
18107 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18108 (values::op_with_constant_singleton_va): Likewise.
18109 (vr_values::extract_range_for_var_from_co): Likewise.
18110 (vr_values::extract_range_from_ssa_name): Likewise.
18111 (vr_values::extract_range_from_cond_expr): Likewise.
18112 (vr_values::extract_range_basic): Likewise.
18113 (compare_ranges): Take const value_range *, adjust.
18114 (compare_range_with_value): Likewise.
18115 (vrp_valueize): Adjust.
18116 (vrp_valueize_1): Likewise.
18117 (vr_values::get_vr_for_comparison): Return a const value_range *.
18118 (vr_values::compare_name_with_value): Adjust.
18119 (vr_values::compare_names): Likewise.
18120 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18121 Likewise.
18122 (vr_values::vrp_evaluate_conditional): Likewise.
18123 (find_case_label_ranges): Take a const value_range *.
18124 (vr_values::vrp_visit_switch_stmt): Adjust.
18125 (vr_values::extract_range_from_phi_node): Likewise.
18126 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18127 (vr_values::simplify_abs_using_ranges): Likewise.
18128 (test_for_singularity): Take a const value_range *.
18129 (range_fits_type_p): Likewise.
18130 (vr_values::simplify_cond_using_ranges_1): Adjust.
18131 (vr_values::simplify_cond_using_ranges_2): Likewise.
18132 (vr_values::simplify_switch_using_ranges): Likewise.
18133 (vr_values::simplify_float_conversion_usi): Likewise.
18134 (vr_values::two_valued_val_range_p): Likewise.
18135 * vr-values.h (vr_values::get_value_range): Return a const
18136 value_range *.
18137 (vr_values::set_def_to_varying): New.
18138 (vr_values::get_lattice_entry): New private method.
18139 (vr_values::get_vr_for_comparison): Return a const value_range *.
18140
18141 2019-07-25 Martin Liska <mliska@suse.cz>
18142 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18143
18144 PR c++/23383
18145 * common.opt: Add -fallocation-dce
18146 * gimple.c (gimple_call_operator_delete_p): New.
18147 * gimple.h (gimple_call_operator_delete_p): Likewise.
18148 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18149 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18150 DECL_IS_OPERATOR_DELETE_P.
18151 (mark_all_reaching_defs_necessary_1): Likewise.
18152 (propagate_necessity): Likewise.
18153 (eliminate_unnecessary_stmts): Handle
18154 gimple_call_operator_delete_p.
18155 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18156 Add packing of OPERATOR_DELETE.
18157 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18158 Similarly here.
18159 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18160 (DECL_SET_IS_OPERATOR_DELETE): New.
18161 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18162
18163 2019-07-25 Martin Liska <mliska@suse.cz>
18164
18165 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18166 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18167 * coverage.c (coverage_begin_function): Likewise.
18168 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18169 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18170 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18171 (sem_item::hash_referenced_symbol_properties): Likewise.
18172 * lto-streamer-out.c (hash_tree): Likewise.
18173 * predict.c (expr_expected_value_1): Likewise.
18174 * tree-inline.c (expand_call_inline): Likewise.
18175 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18176 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18177 * tree-core.h (enum function_decl_type): New enum.
18178 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18179 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18180 (set_function_decl_type): Likewise.
18181 (DECL_IS_OPERATOR_NEW_P): New.
18182 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18183 (DECL_LAMBDA_FUNCTION): Likewise.
18184 (DECL_LAMBDA_FUNCTION_P): Likewise.
18185 (DECL_IS_OPERATOR_NEW): Remove.
18186 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18187
18188 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18189
18190 * ipa-profile.c (get_most_common_single_value): Use
18191 get_nth_most_common_value.
18192 * profile.c (sort_hist_value): New function.
18193 (compute_value_histograms): Call sort_hist_value to sort the
18194 values after loading from disk.
18195 * value-prof.c (get_most_common_single_value): Rename to ...
18196 get_nth_most_common_value. Add input params n, return
18197 the n_th value and count.
18198 (gimple_divmod_fixed_value_transform): Use
18199 get_nth_most_common_value.
18200 (gimple_ic_transform): Likewise.
18201 (gimple_stringops_transform): Likewise.
18202 * value-prof.h (get_most_common_single_value): Add input params
18203 n, default to 0.
18204
18205 2019-07-25 Richard Biener <rguenther@suse.de>
18206
18207 PR tree-optimization/91236
18208 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18209 size of CONSTRUCTOR write. Fix buffer size we pass to
18210 native_encode_expr.
18211
18212 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18213
18214 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18215 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18216 r273773.
18217
18218 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18219
18220 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18221 explicitly disabled with --disable-initfini-array.
18222
18223 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18224
18225 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18226 if-exists.
18227
18228 2019-07-24 Martin Sebor <msebor@redhat.com>
18229
18230 PR tree-optimization/91183
18231 PR tree-optimization/86688
18232 * builtins.c (compute_objsize): Handle MEM_REF.
18233 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18234 (get_min_string_length): Remove.
18235 (count_nonzero_bytes): New function.
18236 (handle_char_store): Rename...
18237 (handle_store): to this. Handle multibyte stores via integer types.
18238 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18239 function name.
18240
18241 2019-07-24 Martin Sebor <msebor@redhat.com>
18242
18243 PR driver/80545
18244 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18245 (diagnostic_report_diagnostic): Same.
18246 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18247 (diagnostic_context::lang_mask): New data member.
18248 * ipa-pure-const.c (suggest_attribute): Use
18249 lang_hooks.option_lang_mask ().
18250 * opts-common.c (option_enabled): Handle new argument.
18251 (get_option_state): Pass an additional argument.
18252 * opts.c (print_filtered_help): Print supported languages for
18253 unsupported options. Adjust printing of current state.
18254 * opts.h (option_enabled): Add argument.
18255 * toplev.c (print_switch_values): Use lang_mask.
18256 (general_init): Set global_dc->lang_mask.
18257
18258 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18259
18260 PR bootstrap/87030
18261 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18262
18263 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18264
18265 * cgraphunit.c (symbol_table::compile): Start and stop
18266 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18267 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18268
18269 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18270
18271 * gimplify.c (flag_instrument_functions_exclude_p): Include
18272 namespace/class information in the printable name.
18273 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18274 to tokens entered into the vector.
18275
18276 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18277
18278 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18279 (get_static_chain): Call it instead of build_simple_mem_ref.
18280 (get_frame_field): Likewise.
18281 (get_nonlocal_debug_decl): Likewise.
18282 (convert_nonlocal_reference_op): Likewise.
18283
18284 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18285
18286 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18287 declaration.
18288 (arc_compute_frame_size): Millicode is disabled when compiling
18289 ISR.
18290 (arc_return_address_register): Likewise.
18291 (arc_compute_function_type): Likewise.
18292 (arc_compute_frame_size): Likewise.
18293 (secondary_reload_info): Likewise.
18294 (arc_get_unalign): Likewise.
18295 (arc_can_use_return_insn): Declare.
18296 * config/arc/arc.c (AUX_LP_START): Define
18297 (AUX_LP_END): Likewise.
18298 (arc_frame_info): Update gmask member to 64-bit datum.
18299 (GMASK_LEN): Update.
18300 (arc_compute_function_type): Make it static, move it forward.
18301 (arc_must_save_register): Update, consider the extra regs.
18302 (arc_compute_millicode_save_restore_regs): Update to use the 64
18303 bit gmask.
18304 (arc_compute_frame_size): Likewise.
18305 (arc_enter_leave_p): Likewise.
18306 (arc_save_callee_saves): Likewise.
18307 (arc_restore_callee_saves): Likewise.
18308 (arc_save_callee_enter): Likewise.
18309 (arc_restore_callee_leave): Likewise.
18310 (arc_save_callee_milli): Likewise.
18311 (arc_restore_callee_milli): Likewise.
18312 (arc_expand_prologue): Add new interrupt handling.
18313 (arc_return_address_register): Make it static, move it forward.
18314 (arc_expand_epilogue): Add new interrupt handling.
18315 (arc_get_unalign): Delete.
18316 (arc_epilogue_uses): Make sure we do not remove the extra
18317 saved/restored registers when interrupt.
18318 (arc_can_use_return_insn): New function.
18319 (push_reg): Likewise.
18320 (pop_reg): Likewise.
18321 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18322 procedures.
18323 (arc_restore_callee_saves): Likewise, but restoring.
18324 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18325 (R33_REG): Likewise.
18326 (R34_REG): Likewise.
18327 (R35_REG): Likewise.
18328 (R36_REG): Likewise.
18329 (R37_REG): Likewise.
18330 (R38_REG): Likewise.
18331 (R39_REG): Likewise.
18332 (R45_REG): Likewise.
18333 (R46_REG): Likewise.
18334 (R47_REG): Likewise.
18335 (R48_REG): Likewise.
18336 (R49_REG): Likewise.
18337 (R50_REG): Likewise.
18338 (R51_REG): Likewise.
18339 (R52_REG): Likewise.
18340 (R53_REG): Likewise.
18341 (R54_REG): Likewise.
18342 (R55_REG): Likewise.
18343 (R56_REG): Likewise.
18344 (R58_REG): Likewise.
18345 (type): Add rtie attribute.
18346 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18347 (movsi_insn): Accept moves to lp_count.
18348 (rtie): Update pattern.
18349 (simple_return): Simplify it, don't use this pattern as a return
18350 from an interrupt.
18351 (arc600_rtie): New pattern.
18352 (p_return_i): Clean up.
18353 (return): Likewise.
18354 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18355 family CPUs.
18356 * config/arc/predicates.md (move_src_operand): Consider lp_count
18357 as a register.
18358
18359 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18360
18361 * config/s390/predicates.md (addv_const_operand): New predicate.
18362 * config/s390/s390-modes.def (CCO): New condition code mode.
18363 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18364 (s390_branch_condition_mask): Likewise.
18365 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18366 ("mulv<mode>4"): New expanders.
18367 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18368 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18369 pattern definitions.
18370
18371 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18372
18373 PR middle-end/91166
18374 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18375 (define_predicates): Add entry for uniform_vector_p.
18376 (vec_same_elem_p): New match pattern.
18377
18378 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18379
18380 PR bootstrap/87030
18381 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18382 * config/i386/darwin32-biarch.h .. to here.
18383 * config/i386/darwin64-biarch.h: Adjust comments.
18384 * config/rs6000/darwin32-biarch.h: Likewise.
18385 * config/rs6000/darwin64-biarch.h: Likewise.
18386 * config.gcc: Missed commit from r273746
18387 (*-*-darwin*): Don't include CPU t-darwin here.
18388 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18389 an error message if i686-darwin configuration is attempted for
18390 Darwin >= 18.
18391
18392 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18393
18394 PR bootstrap/87030
18395 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18396 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18397 an error message if i686-darwin configuration is attempted for
18398 Darwin >= 18.
18399 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18400 (powerpc-*-darwin*): Use biarch files where needed.
18401 (powerpc64-*-darwin*): Likewise.
18402 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18403 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18404 arch case.
18405 * config/i386/darwin32-biarch.h: New.
18406 * config/i386/darwin64.h: Rename.
18407 * config/i386/darwin64-biarch.h: To this.
18408 * config/i386/t-darwin: Rename.
18409 * config/i386/t-darwin32-biarch: To this.
18410 * config/i386/t-darwin64: Rename.
18411 * config/i386/t-darwin64-biarch: To this.
18412 * config/rs6000/darwin32-biarch.h: New.
18413 * config/rs6000/darwin64.h: Rename.
18414 * config/rs6000/darwin64-biarch.h: To this.
18415 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18416 arch case.
18417 * config/rs6000/t-darwin8: Rename.
18418 * config/rs6000/t-darwin32-biarch: To this.
18419 * config/rs6000/t-darwin64 Rename.
18420 * config/rs6000/t-darwin64-biarch: To this.
18421
18422 2019-07-23 Martin Sebor <msebor@redhat.com>
18423
18424 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18425
18426 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18427
18428 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18429 (rh): New alias for it.
18430
18431 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18432
18433 * gdbhooks.py: Pass replace=True to
18434 gdb.printing.register_pretty_printer.
18435
18436 2019-07-23 Richard Biener <rguenther@suse.de>
18437
18438 PR debug/91231
18439 * lto-streamer-in.c (input_function): Drop inline-entry markers
18440 that ended up with an unknown location block.
18441
18442 2019-07-23 Richard Biener <rguenther@suse.de>
18443
18444 PR tree-optimization/83518
18445 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18446 init from a constant even when partial defs are already recorded.
18447
18448 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18449
18450 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18451 * config/i386/znver1.md: Enable patterns for znver2 and add store
18452 variants which use extra AGU unit.
18453
18454 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18455
18456 * config/i386/i386-options.c (ix86_option_override_internal): Default
18457 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18458 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18459 for ZNVER2.
18460
18461 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18462
18463 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18464 (znver2_costs): Update 256 bit SSE costs and multiplication.
18465
18466 2019-07-23 Jan Beulich <jbeulich@suse.com>
18467
18468 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18469 Require only AVX512F.
18470 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18471 alternative expanding to vpternlog.
18472
18473 2019-07-23 Martin Liska <mliska@suse.cz>
18474
18475 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18476 to -flto in dwarf producer string.
18477
18478 2019-07-23 Richard Biener <rguenther@suse.de>
18479
18480 * tree-cfg.c (label_for_bb): Remove global var.
18481 (main_block_label): Take label_for_bb as argument.
18482 (cleanup_dead_labels_eh): Likewise, adjust.
18483 (cleanup_dead_labels): Adjust.
18484
18485 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18486
18487 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18488 Configurations): Add documentation for __builtin_mtfsf.
18489
18490 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18491
18492 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18493 * config/riscv/riscv.c (riscv_constant_alignment): Use
18494 riscv_align_data_type.
18495 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18496 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18497 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18498 * config/riscv/riscv.opt (malign-data): New.
18499 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18500
18501 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18502
18503 * cgraph.c (dump_graphviz): New function.
18504 * cgraph.h (dump_graphviz): New function.
18505 * symtab.c (dump_graphviz): New function.
18506
18507 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18508
18509 * config/aarch64/aarch64-simd.md
18510 (*aarch64_simd_sra<mode>): New.
18511 * config/aarch64/iterators.md
18512 (SHIFTRT): New iterator.
18513 (sra_op): New attribute.
18514
18515 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18516
18517 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18518 callee-saved regs R4->R10 in an interrupt function that calls another
18519 function.
18520
18521 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18522
18523 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18524 (_mm_blendv_epi8): New.
18525
18526 2019-07-22 Richard Biener <rguenther@suse.de>
18527
18528 PR tree-optimization/91221
18529 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18530 restrict partial-def handling of empty constructors and
18531 memset to refs with known offset.
18532
18533 2019-07-22 Jan Beulich <jbeulich@suse.com>
18534
18535 * config/i386/sse.md (ternlogsuffix): New.
18536 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18537 AVX512F is in use.
18538 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18539
18540 2019-07-22 Martin Liska <mliska@suse.cz>
18541
18542 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18543 comment.
18544 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18545
18546 2019-07-22 Martin Liska <mliska@suse.cz>
18547
18548 * lto-section-in.c (lto_get_section_data):
18549 Use new function get_compression.
18550 * lto-streamer-out.c (produce_lto_section): Use
18551 set_compression to encode compression algorithm.
18552 * lto-streamer.h (struct lto_section): Do not
18553 use bitfields in the format.
18554
18555 2019-07-22 Martin Liska <mliska@suse.cz>
18556
18557 PR driver/91172
18558 * opts-common.c (decode_cmdline_option): Decode
18559 argument of -Werror and check it for a wrong language.
18560 * opts-global.c (complain_wrong_lang): Remove such case.
18561
18562 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18563
18564 * config/arc/arc.c (prepare_move_operands): Always use an
18565 intermediate register when storing a TLS symbols.
18566
18567 2019-07-22 Stafford Horne <shorne@gmail.com>
18568
18569 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18570 force_reg.
18571
18572 2019-07-22 Stafford Horne <shorne@gmail.com>
18573
18574 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18575 and munordered-float validations.
18576 * config/or1k/constraints.md (d): New register constraint.
18577 * config/or1k/predicates.md (fp_comparison_operator): New.
18578 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18579 operands.
18580 (or1k_expand_compare): Normalize unordered comparisons.
18581 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18582 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18583 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18584 * config/or1k/or1k.md (type): Add fpu.
18585 (fpu): New instruction reservation.
18586 (F, f, fr, fi, FI, FOP, fop): New.
18587 (<fop><F:mode>3): New ALU instruction definition.
18588 (float<fi><F:mode>2): New conversion instruction definition.
18589 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18590 (fpcmpcc): New code iterator.
18591 (*sf_fp_insn): New instruction definition.
18592 (cstore<F:mode>4): New expand definition.
18593 (cbranch<F:mode>4): New expand definition.
18594 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18595 munordered-float): New options.
18596 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18597 munordered-float.
18598
18599 2019-07-22 Stafford Horne <shorne@gmail.com>
18600
18601 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18602 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18603 documenation to be more clear.
18604 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18605 more clear.
18606 * config/or1k/or1k.opt (mrori): New option.
18607 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18608 msfimm, mshftimm): Rewrite documentation to be more clear.
18609 * config/or1k/or1k.md (insn_support): Add ror and rori.
18610 (enabled): Add conditions for ror and rori.
18611 (rotrsi3): Replace condition for shftimm with ror and rori.
18612
18613 2019-07-22 Stafford Horne <shorne@gmail.com>
18614
18615 PR target/90363
18616 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18617 (extend<mode>si2): Update predicate.
18618 * config/or1k/predicates.md (volatile_mem_operand): New.
18619 (reg_or_mem_operand): New.
18620
18621 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18622
18623 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18624 * config/rs6000/rs6000-call.c: ... to here.
18625
18626 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18627
18628 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18629 memory.
18630
18631 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18632
18633 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18634
18635 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18636
18637 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18638
18639 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18640
18641 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18642 (any_memory_operand): New predicate.
18643 (reg_or_mem_operand): Use it.
18644
18645 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18646
18647 PR target/91204
18648 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18649
18650 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18651
18652 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18653 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18654
18655 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18656
18657 * tree.def (OMP_LOOP): New tree code.
18658 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18659 (enum omp_clause_bind_kind): New enum.
18660 (struct tree_omp_clause): Add subcode.bind_kind.
18661 * tree.h (OMP_LOOP_CHECK): Rename to ...
18662 (OMP_LOOPING_CHECK): ... this.
18663 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18664 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18665 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18666 (OMP_CLAUSE_BIND_KIND): Define.
18667 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18668 bind clause entries.
18669 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18670 * tree-pretty-print.c (dump_omp_clause): Likewise.
18671 (dump_generic_node): Handle OMP_LOOP.
18672 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18673 (in_omp_construct): New variable.
18674 (is_gimple_stmt): Handle OMP_LOOP.
18675 (gimplify_scan_omp_clauses): For lastprivate don't set
18676 check_non_private if code == OMP_LOOP. For reduction clause
18677 on OMP_LOOP combined with parallel or teams propagate as shared
18678 on the combined construct. Handle OMP_CLAUSE_BIND.
18679 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18680 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18681 for constructs from a loop construct to gimplify_scan_omp_clauses.
18682 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18683 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18684 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18685 to match the implicit ORT_TARGET construct around whole body.
18686 Temporarily clear in_omp_construct when processing body.
18687 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18688 etc. temporarily set in_omp_construct when processing body.
18689 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18690 * omp-low.c (struct omp_context): Add loop_p.
18691 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18692 in that the original var might be private.
18693 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18694 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18695 addition of loop construct.
18696 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18697
18698 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18699 lastprivate non-addressable iterator of a collapse(1) simd.
18700
18701 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18702
18703 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18704 as in rs6000.c.
18705
18706 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18707
18708 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18709 refer to default conditions. Warn for the 'y' spec which is ignored
18710 by current linkers.
18711
18712 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18713
18714 * config/rs6000/rs6000.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 rs6000-call.c.
18758 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18759 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18760 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18761 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18762 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18763 init_cumulative_args, rs6000_promote_function_mode,
18764 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18765 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18766 rs6000_function_arg_boundary, rs6000_parm_offset,
18767 rs6000_parm_start, rs6000_arg_size,
18768 rs6000_darwin64_record_arg_advance_flush,
18769 rs6000_darwin64_record_arg_advance_recurse,
18770 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18771 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18772 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18773 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18774 rs6000_finish_function_arg, rs6000_function_arg,
18775 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18776 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18777 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18778 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18779 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18780 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18781 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18782 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18783 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18784 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18785 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18786 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18787 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18788 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18789 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18790 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18791 get_element_number, altivec_expand_vec_set_builtin,
18792 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18793 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18794 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18795 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18796 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18797 rs6000_expand_builtin, rs6000_vector_type,
18798 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18799 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18800 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18801 to here from rs6000.c.
18802 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18803 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18804 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18805 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18806 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18807 rs6000_return_in_memory, rs6000_return_in_msb,
18808 rs6000_pass_by_reference, setup_incoming_varargs,
18809 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18810 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18811 rs6000_function_arg_padding, rs6000_function_arg,
18812 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18813 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18814 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18815 rs6000_passes_long_double, rs6000_passes_vector,
18816 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18817 altivec_builtin_mask_for_load) Add declarations.
18818 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18819 * config/config.gcc: Add new source file rs6000-call.c to garbage
18820 collector and extra_objs.
18821
18822 2019-07-19 Jeff Law <law@redhat.com>
18823
18824 PR tree-optimization/86061
18825 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18826 strncpy. Drop some trivial dead code.
18827 (maybe_trim_memstar_call): Handle strncpy.
18828
18829 2019-07-19 Richard Biener <rguenther@suse.de>
18830
18831 PR tree-optimization/91211
18832 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18833 memset encoding size.
18834
18835 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18836
18837 PR target/91204
18838 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18839
18840 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18841
18842 PR ipa/91194
18843 * ipa-inline.c (recursive_inlining): Fix limits check.
18844
18845 2019-07-19 Richard Biener <rguenther@suse.de>
18846
18847 PR tree-optimization/91200
18848 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18849 no PHI nodes in middle-bb.
18850
18851 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18852
18853 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18854 to +sve-bitperm.
18855 * config/aarch64/aarch64-option-extensions.def: Likewise.
18856
18857 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18858
18859 PR middle-end/91190
18860 * function.c (insert_temp_slot_address): Store into the hash table
18861 a copy of address to avoid RTL sharing issues.
18862
18863 2019-07-19 Richard Biener <rguenther@suse.de>
18864
18865 PR tree-optimization/91207
18866 Revert
18867 2019-07-17 Richard Biener <rguenther@suse.de>
18868
18869 PR tree-optimization/91178
18870 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18871 loads with a gap larger than the vector size always use
18872 VMAT_STRIDED_SLP.
18873 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18874 avoid loading vectors that are only contained in the gap
18875 and thus are not needed.
18876
18877 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18878
18879 * config/i386/i386.md (*addqi_2_slp): Remove.
18880 (*<code>qi_2_slp): Ditto.
18881
18882 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18883
18884 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18885 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18886 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18887 Rename function from rs6000_prefixed_address.
18888 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18889 TARGET_HAS_TOC.
18890 (TARGET_TOC): Likewise.
18891 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18892 rs6000.h.
18893 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18894 TARGET_HAS_TOC.
18895 (TARGET_TOC): Likewise.
18896 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18897 rs6000.h.
18898 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18899 TARGET_HAS_TOC.
18900 (TARGET_TOC): Likewise.
18901 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18902 check to require -mcmodel=medium for pc-relative addressing.
18903 (create_TOC_reference): Add assertion for TARGET_TOC.
18904 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18905 TARGET_NO_TOC.
18906 (rs6000_emit_move): Likewise.
18907 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18908 to 'TOC_alias_set'.
18909 (get_TOC_alias_set): Likewise.
18910 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18911 TARGET_NO_TOC.
18912 (rs6000_can_eliminate): Likewise.
18913 (rs6000_prefixed_address_mode_p): Rename function from
18914 rs6000_prefixed_address.
18915 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18916 TARGET_HAS_TOC and not pc-relative.
18917 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18918 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18919 TARGET_HAS_TOC.
18920 (TARGET_TOC): Likewise.
18921 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18922 rs6000.h.
18923
18924 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18925
18926 PR target/91188
18927 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18928 for operand 0. Do not use (match_dup) to match operand 1 with
18929 operand 0. Add check in insn constraint that either input operand
18930 matches operand 0. Use SWI12 mode iterator to also handle
18931 HImode operands.
18932 (*and<mode>_1_slp): Ditto.
18933 (*<code>qi_1_slp): Ditto.
18934 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18935 Do not use (match_dup) to match operand 1 with operand 0. Add
18936 check in insn constraint that operand 1 matches operand 0.
18937 Use SWI12 mode iterator to also handle HImode operands.
18938 (*ashl<mode>3_1_slp): Ditto.
18939 (*<shift_insn><mode>3_1_slp): Ditto.
18940 (*<rotate_insn><mode>3_1_slp): Ditto.
18941
18942 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18943
18944 * config/arm/arm-builtins.c
18945 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18946 (arm_expand_unop_builtin): Likewise.
18947 * config/arm/crypto.md
18948 (crypto_sha1h): Convert from define_insn to define_expand.
18949 (crypto_<crypto_pattern>): Likewise.
18950 (crypto_sha1h_lb): New define_insn.
18951 (crypto_<crypto_pattern>_lb): Likewise.
18952
18953 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18954
18955 PR target/90317
18956 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18957 (vsha1cq_u32): Likewise.
18958 (vsha1pq_u32): Likewise.
18959 (vsha1mq_u32): Likewise.
18960 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18961 vec select.
18962 (crypto_sha1c): Correct vec select.
18963 (crypto_sha1m): Likewise.
18964 (crypto_sha1p): Likewise.
18965
18966 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18967
18968 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18969 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18970 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18971 (subdi_zesidi_zesidi): Likewise.
18972 (negdi2_compare, negdi2_insn): Likewise.
18973 (negdi_extensidi): Likewise.
18974 (negdi_zero_extendsidi): Likewise.
18975 (arm_cmpdi_insn): Likewise.
18976 (subsi3_carryin): Use arm_borrow_operation.
18977 (subsi3_carryin_const): Likewise.
18978 (subsi3_carryin_const0): Likewise.
18979 (subsi3_carryin_compare): Likewise.
18980 (subsi3_carryin_compare_const): Likewise.
18981 (subsi3_carryin_compare_const0): Likewise.
18982 (subsi3_carryin_shift): Likewise.
18983 (rsbsi3_carryin_shift): Likewise.
18984 (negsi2_carryin_compare): Likewise.
18985
18986 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18987
18988 PR tree-optimization/91137
18989 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18990 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18991 Init, use and fini the above new field.
18992 (determine_base_object_1): New function.
18993 (determine_base_object): Reimplement using walk_tree.
18994
18995 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18996
18997 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18998 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18999 CLEANUP_FORCE_FAST_DCE is set.
19000 * ifcvt.c (rest_of_handle_if_conversion): Pass
19001 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19002 if-conversion succeeded.
19003
19004 2019-07-18 Richard Biener <rguenther@suse.de>
19005
19006 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19007 branches to make code less indented.
19008
19009 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19010
19011 PR middle-end/81824
19012 * attribs.c (decls_mismatched_attributes): Simplify the logic
19013 that avoids duplicates and false positives.
19014
19015 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19016
19017 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19018 data into data section when generating PIC code.
19019 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19020 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19021 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19022 return 2 for SOM and 0 for other targets.
19023
19024 2019-07-17 Jeff Law <law@redhat.com>
19025
19026 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19027 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19028 avoid unexpected switch statement fallthru.
19029
19030 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19031
19032 * config/i386/i386.md (*add<dwi>3_doubleword):
19033 Remove redundant constraints.
19034 (*add<mode>_1): Ditto.
19035 (*addhi_1): Ditto.
19036 (*addqi_1): Ditto.
19037 (*addqi_1_slp): Ditto.
19038 (*add<mode>_2): Ditto.
19039 (*addv<mode>4): Ditto.
19040 (*sub<dwi>3_doubleword): Ditto.
19041 (*sub<mode>_1): Ditto.
19042 (*subqi_1_slp): Ditto.
19043 (*sub<mode>_2): Ditto.
19044 (*subv<mode>4): Ditto.
19045 (*sub<mode>_3): Ditto.
19046 (@add<mode>3_carry): Ditto.
19047 (@sub<mode>3_carry): Ditto.
19048 (*add<mode>3_cc_overflow_1): Ditto.
19049 (*add<mode>3_zext_cc_overflow_2): Ditto.
19050 (*anddi_1): Ditto.
19051 (*and<mode>_1): Ditto.
19052 (*andqi_1): Ditto.
19053 (*andqi_1_slp): Ditto.
19054 (*anddi_2): Ditto.
19055 (*andqi_2_maybe_si): Ditto.
19056 (*and<mode>_2): Ditto.
19057 (*andqi_2_slp): Ditto.
19058 (*<code><mode>_1): Ditto.
19059 (*<code>qi_1): Ditto.
19060 (*<code>qi_1_slp): Ditto.
19061 (*<code><mode>_2): Ditto.
19062 (*<code>qi_2_slp): Ditto.
19063
19064 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19065
19066 * alias.c (record_component_aliases): Do not simplify pointed-to
19067 types of ODR types.
19068
19069 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19070
19071 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19072 partial reg stall on alternative 2.
19073
19074 2019-07-17 Richard Biener <rguenther@suse.de>
19075
19076 PR tree-optimization/91178
19077 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19078 lower SSA names to avoid quadratic behavior in the common case.
19079 * tree-data-ref.c (split_constant_offset): Add limit argument
19080 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19081 (split_constant_offset_1): Add limit argument and use it to
19082 limit SSA def walking. Optimize the common plus/minus case.
19083
19084 2019-07-17 Richard Biener <rguenther@suse.de>
19085
19086 PR tree-optimization/91178
19087 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19088 loads with a gap larger than the vector size always use
19089 VMAT_STRIDED_SLP.
19090 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19091 avoid loading vectors that are only contained in the gap
19092 and thus are not needed.
19093
19094 2019-07-17 Richard Biener <rguenther@suse.de>
19095
19096 PR tree-optimization/91180
19097 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19098 computation for memset partial defs.
19099
19100 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19101
19102 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19103 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19104 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19105 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19106 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19107 * omp-grid.c (grid_process_grid_body,
19108 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19109 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19110 == GF_OMP_FOR_KIND_SIMD.
19111 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19112 check_omp_nesting_restrictions, scan_omp_1_stmt,
19113 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19114 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19115 omp_find_scan): Likewise.
19116 * omp-expand.c (expand_omp_for): Likewise.
19117 * omp-general.c (omp_extract_for_data): Likewise.
19118
19119 PR tree-optimization/91157
19120 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19121 a vector boolean with scalar mode.
19122 (expand_vector_condition): Handle first operand being a vector boolean
19123 with scalar mode.
19124 (expand_vector_operations_1): For comparisons, don't bail out early
19125 if the return type is vector boolean with scalar mode, but comparison
19126 operand type is not.
19127
19128 2019-07-17 Richard Biener <rguenther@suse.de>
19129
19130 PR tree-optimization/91181
19131 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19132 IFN_LOADs as calls.
19133
19134 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19135
19136 * config/i386/i386.md (*testdi_1): Match CCZmode for
19137 constants that might have the SImode sign bit set.
19138 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19139 Use correct constraints for pentium pairing.
19140 (*test<mode>_1): Ditto.
19141
19142 2019-07-16 Jeff Law <law@redhat.com>
19143
19144 PR rtl-optimization/91173
19145 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19146 SSA_NAME with a constant value, fold its value into the offset
19147 and clear the base before calling gen_addr_rtx.
19148
19149 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19150
19151 PR rtl-optimization/91164
19152 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19153 invalidate dominance info.
19154
19155 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19156
19157 * read-md.h (md_reader::record_potential_iterator_use): Add a
19158 file_location parameter.
19159 * read-rtl.c (attribute_use::loc): New field.
19160 (map_attr_string): Take a file_location parameter. Report cases
19161 in which attributes map to multiple distinct values.
19162 (apply_attribute_uses): Update call accordingly.
19163 (md_reader::handle_overloaded_name): Likewise.
19164 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19165 nonnull strings.
19166 (record_attribute_use): Take a file_location parameter.
19167 Initialize attribute_use::loc.
19168 (md_reader::record_potential_iterator_use): Take a file_location
19169 parameter. Update call to record_attribute_use.
19170 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19171 (rtx_reader::read_rtx_code): Likewise.
19172 (rtx_reader::read_rtx_operand): Likewise. Record a location
19173 for implicitly-expanded empty strings.
19174
19175 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19176
19177 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19178 Use file_location instead of separate fields.
19179 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19180 separate filename and line number.
19181 * read-md.c (ptr_loc): As above.
19182 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19183 (md_reader::fprint_md_ptr_loc): Likewise.
19184 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19185 instead of a separate filename and line number.
19186 (md_reader::read_string): Update call accordingly.
19187
19188 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19189
19190 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19191 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19192 leaving the choice between SFDF and P implicit.
19193 (*mov<mode>_update2): Likewise.
19194 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19195 rather than leaving the choice betweem IBM128 and GPR implicit.
19196 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19197 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19198 QHSI implicit.
19199 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19200 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19201 * config/rs6000/vsx.md
19202 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19203 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19204 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19205 and VSX_EXTRACT_I implicit.
19206
19207 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19208
19209 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19210 Explicitly use <MOVEP1:MODE> for the mode attribute.
19211
19212 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19213
19214 PR bootstrap/91176
19215 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19216
19217 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19218
19219 PR target/91050
19220 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19221 .machine directive.
19222
19223 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19224
19225 * config/i386/i386.md (@test<mode>_ccno_1):
19226 Rename from test<mode>_ccno_1.
19227 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19228 (*testqi_1_maybe_si): Remove modrm attribute.
19229 (*test<mode>_1): Ditto.
19230 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19231 gen_test_ccno_1 and gen_extend_insn.
19232
19233 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19234
19235 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19236 to 0.
19237
19238 2019-07-15 Richard Biener <rguenther@suse.de>
19239
19240 PR middle-end/91162
19241 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19242 node make sure to replace all uses with something valid.
19243
19244 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19245
19246 PR tree-optimization/88497
19247 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19248 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19249 function undistribute_bitref_for_vector.
19250 (undistribute_bitref_for_vector): New function.
19251 (cleanup_vinfo_map): Likewise.
19252 (sort_by_mach_mode): Likewise.
19253
19254 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19255
19256 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19257 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19258 and testdi_ccno_1 using SWI48 mode attribute.
19259 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19260 x86_64_szext_general_operand.
19261 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19262 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19263 instead of genera_operand mode attribute.
19264
19265 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19266
19267 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19268 fopen and fclose to their respective types.
19269 (DotFn.invoke): Ditto.
19270
19271 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19272
19273 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19274 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19275 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19276 (array_index_predicate): Remove.
19277 (analyze_function_body): Account cost for variable ofsetted array
19278 indexing.
19279 (estimate_node_size_and_time): Do not compute array index hint.
19280 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19281 (inline_read_section): Do not read array index hint.
19282 (ipa_fn_summary_write): Do not write array index hint.
19283 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19284 * ipa-cp.c (hint_time_bonus): Remove.
19285 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19286 (ipa_fnsummary): Remove array_index.
19287 * ipa-inline.c (want_inline_small_function_p): Do not use
19288 array_index.
19289 (edge_badness): Likewise.
19290 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19291
19292 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19293
19294 PR target/91148
19295 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19296 superfluous "builtin function" phrasing.
19297
19298 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19299
19300 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19301 Break out from ...
19302 (aliasing_component_refs_walk): Break out from ...
19303 (aliasing_component_refs_p): ... here.
19304
19305 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19306
19307 PR target/91148
19308 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19309 "builtin function" phrasing.
19310
19311 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19312
19313 PR target/90723
19314 * recog.h (temporary_volatile_ok): New class.
19315 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19316 volatile_ok temporarily to true using temporary_volatile_ok.
19317 * expr.c (emit_block_move_via_cpymem): Likewise.
19318 * optabs.c (maybe_legitimize_operand): Likewise.
19319
19320 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19321
19322 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19323 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19324 uses inside of order(concurrent) constructs.
19325 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19326 OMP_CLAUSE_ORDER is seen.
19327 * omp-low.c (struct omp_context): Add order_concurrent member.
19328 (scan_sharing_clauses): Set ctx->order_concurrent if
19329 OMP_CLAUSE_ORDER is seen.
19330 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19331 of simd order(concurrent). Diagnose constructs not allowed inside of
19332 for order(concurrent).
19333 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19334 complaining about static double setjmp (double); or class static
19335 methods or non-global namespace setjmps.
19336 (omp_runtime_api_call): New function.
19337 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19338 order(concurrent) loops.
19339
19340 2019-07-12 Martin Sebor <msebor@redhat.com>
19341
19342 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19343 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19344 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19345 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19346
19347 2019-07-12 Jan Hubicka <jh@suse.cz>
19348
19349 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19350 (indirect_refs_may_alias_p): ... here.
19351 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19352 mem refs in the access paths.
19353
19354 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19355
19356 PR tree-optimization/89430
19357 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19358 store elimination for local variable without address escape.
19359
19360 2019-07-12 Jeff Law <law@redhat.com>
19361
19362 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19363 for the ".far" section.
19364
19365 2019-07-12 Richard Biener <rguenther@suse.de>
19366
19367 PR tree-optimization/91145
19368 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19369 chain check.
19370
19371 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19372
19373 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19374 rather than this_state as the lowering context for the ELSE
19375 seq in a GIMPLE_EH_ELSE.
19376
19377 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19378
19379 * vector-builder.h (vector_builder::elt): Allow already-supplied
19380 elements to be read back before building is complete.
19381
19382 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19383
19384 PR rtl-optimization/91136
19385 * df-core.c (ACCESSING REFS): Fix typos in comment.
19386 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19387 the beginning of the block to the initial set of live registers.
19388
19389 2019-07-12 Richard Biener <rguenther@suse.de>
19390
19391 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19392 * fold-const.c (get_array_ctor_element_at_index): Add
19393 ctor_idx output parameter informing the caller where in
19394 the constructor the element was (not) found. Add early exit
19395 for when the ctor is sorted.
19396 * gimple-fold.c (fold_array_ctor_reference): Support constant
19397 folding across multiple array elements.
19398
19399 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19400
19401 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19402 doesn't have location, set the current location to the function's end.
19403
19404 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19405
19406 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19407 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19408 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19409 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19410 * config/aarch64/aarch64-simd.md
19411 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19412 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19413 * config/aarch64/aarch64-sve.md
19414 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19415 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19416
19417 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19418
19419 * doc/md.texi: Document that @ patterns can have different
19420 numbers of operands.
19421 * genemit.c (handle_overloaded_gen): Handle this case.
19422 * genopinit.c (handle_overloaded_gen): Likewise.
19423 * gensupport.c (replace_operands_with_dups): Iterate over
19424 the new rtx's format rather than the old one's.
19425
19426 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19427
19428 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19429 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19430 order clause entries.
19431 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19432 * tree-pretty-print.c (dump_omp_clause): Likewise.
19433 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19434 Likewise.
19435 * omp-low.c (scan_sharing_clauses): Likewise.
19436 * tree-nested.c (convert_nonlocal_omp_clauses,
19437 convert_local_omp_clauses): Likewise.
19438
19439 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19440
19441 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19442 fallthrough target of current basic block isn't the placed
19443 right next.
19444
19445 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19446
19447 PR target/90980
19448 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19449 (_mm512_storeu_epi64): Likewise.
19450 (_mm512_loadu_epi32): Likewise.
19451 (_mm512_storeu_epi32): Likewise.
19452 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19453 (_mm_storeu_epi64): Likewise.
19454 (_mm256_storeu_epi32): Likewise.
19455 (_mm_storeu_epi32): Likewise.
19456
19457 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19458
19459 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19460
19461 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19462
19463 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19464 Handle Modula-2.
19465
19466 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19467
19468 PR target/91124
19469 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19470 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19471 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19472 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19473 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19474 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19475 define_insns.
19476 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19477 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19478 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19479 define_insns.
19480 (sse2_cvttpd2dq<mask_name>): Change into ...
19481 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19482 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19483 (*sse2_cvtpd2dq<mask_name>): Change into ...
19484 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19485 Add "C" constraint to const0_operand.
19486 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19487 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19488 changes.
19489
19490 PR target/91124
19491 * config/i386/i386-builtin-types.def
19492 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19493 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19494 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19495 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19496 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19497 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19498 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19499 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19500 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19501 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19502 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19503 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19504 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19505 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19506 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19507 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19508 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19509 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19510 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19511 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19512 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19513 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19514 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19515 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19516 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19517 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19518 __builtin_ia32_vpdpbusd_v4si_maskz,
19519 __builtin_ia32_vpdpbusds_v16si_mask,
19520 __builtin_ia32_vpdpbusds_v16si_maskz,
19521 __builtin_ia32_vpdpbusds_v8si_mask,
19522 __builtin_ia32_vpdpbusds_v8si_maskz,
19523 __builtin_ia32_vpdpbusds_v4si_mask,
19524 __builtin_ia32_vpdpbusds_v4si_maskz,
19525 __builtin_ia32_vpdpwssd_v16si_mask,
19526 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19527 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19528 __builtin_ia32_vpdpwssd_v4si_maskz,
19529 __builtin_ia32_vpdpwssds_v16si_mask,
19530 __builtin_ia32_vpdpwssds_v16si_maskz,
19531 __builtin_ia32_vpdpwssds_v8si_mask,
19532 __builtin_ia32_vpdpwssds_v8si_maskz,
19533 __builtin_ia32_vpdpwssds_v4si_mask,
19534 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19535 suffixed types rather than *_INT.
19536 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19537 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19538 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19539 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19540 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19541 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19542
19543 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19544
19545 * tree-vrp.c (intersect_ranges): If we know the intersection is
19546 empty, there is no need to conservatively add anything else to
19547 the set.
19548
19549 2019-07-11 Richard Biener <rguenther@suse.de>
19550
19551 PR middle-end/91131
19552 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19553 when the object is volatile and we have not cleared it even though
19554 there are no nonzero elements.
19555
19556 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19557
19558 * config/rs6000/predicates.md (cint34_operand): Update
19559 SIGNED_34BIT_OFFSET_P call.
19560 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19561 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19562 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19563 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19564 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19565 argument.
19566 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19567 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19568 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19569 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19570 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19571
19572 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19573
19574 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19575 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19576 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19577 (DEF_MIN_OSX_VERSION): New.
19578
19579 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19580
19581 * fold-const.c (fold_relational_const): Fix folding of
19582 vector-to-scalar NE_EXPRs.
19583 (test_vector_folding): Add more tests.
19584
19585 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19586
19587 PR target/91060
19588 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19589 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19590 (vec_setv2di_internal): Reexpress as...
19591 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19592 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19593 rather than gen_neon_vset_lane<mode>.
19594
19595 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19596
19597 PR target/91102
19598 * lra-constraints.c (process_alt_operands): Don't match user
19599 defined regs only if they are early clobbers.
19600
19601 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19602
19603 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19604
19605 2019-07-10 Richard Biener <rguenther@suse.de>
19606
19607 PR tree-optimization/91126
19608 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19609 native encoding offset for BYTES_BIG_ENDIAN.
19610 (vn_reference_lookup_3): Likewise.
19611
19612 2019-07-10 Richard Biener <rguenther@suse.de>
19613
19614 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19615 LHS whenever possible.
19616
19617 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19618
19619 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19620 from ...; work also on duplicated types.
19621 (nonoverlapping_component_refs_since_match): ... here
19622 (ncr_type_uid): Break out from ...
19623 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19624 available.
19625 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19626 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19627
19628 2019-07-09 Martin Sebor <msebor@redhat.com>
19629
19630 PR tree-optimization/90989
19631 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19632 optimization to just single character stores.
19633
19634 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19635
19636 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19637 Swap operands only once.
19638
19639 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19640
19641 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19642 for both call instructions.
19643
19644 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19645
19646 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19647 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19648
19649 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19650
19651 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19652 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19653 function from rs6000-logue.c back to rs6000.c.
19654 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19655
19656 2019-07-09 Martin Sebor <msebor@redhat.com>
19657
19658 PR c++/61339
19659 * auto-profile.c: Change class-key of PODs to struct and others
19660 to class.
19661 * basic-block.h: Same.
19662 * bitmap.c (bitmap_alloc): Same.
19663 * bitmap.h: Same.
19664 * builtins.c (expand_builtin_prefetch): Same.
19665 (expand_builtin_interclass_mathfn): Same.
19666 (expand_builtin_strlen): Same.
19667 (expand_builtin_mempcpy_args): Same.
19668 (expand_cmpstr): Same.
19669 (expand_builtin___clear_cache): Same.
19670 (expand_ifn_atomic_bit_test_and): Same.
19671 (expand_builtin_thread_pointer): Same.
19672 (expand_builtin_set_thread_pointer): Same.
19673 * caller-save.c (setup_save_areas): Same.
19674 (replace_reg_with_saved_mem): Same.
19675 (insert_restore): Same.
19676 (insert_save): Same.
19677 (add_used_regs): Same.
19678 * cfg.c (get_bb_copy): Same.
19679 (set_loop_copy): Same.
19680 * cfg.h: Same.
19681 * cfganal.h: Same.
19682 * cfgexpand.c (alloc_stack_frame_space): Same.
19683 (add_stack_var): Same.
19684 (add_stack_var_conflict): Same.
19685 (add_scope_conflicts_1): Same.
19686 (update_alias_info_with_stack_vars): Same.
19687 (expand_used_vars): Same.
19688 * cfghooks.c (redirect_edge_and_branch_force): Same.
19689 (delete_basic_block): Same.
19690 (split_edge): Same.
19691 (make_forwarder_block): Same.
19692 (force_nonfallthru): Same.
19693 (duplicate_block): Same.
19694 (lv_flush_pending_stmts): Same.
19695 * cfghooks.h: Same.
19696 * cfgloop.c (flow_loops_cfg_dump): Same.
19697 (flow_loop_nested_p): Same.
19698 (superloop_at_depth): Same.
19699 (get_loop_latch_edges): Same.
19700 (flow_loop_dump): Same.
19701 (flow_loops_dump): Same.
19702 (flow_loops_free): Same.
19703 (flow_loop_nodes_find): Same.
19704 (establish_preds): Same.
19705 (flow_loop_tree_node_add): Same.
19706 (flow_loop_tree_node_remove): Same.
19707 (flow_loops_find): Same.
19708 (find_subloop_latch_edge_by_profile): Same.
19709 (find_subloop_latch_edge_by_ivs): Same.
19710 (mfb_redirect_edges_in_set): Same.
19711 (form_subloop): Same.
19712 (merge_latch_edges): Same.
19713 (disambiguate_multiple_latches): Same.
19714 (disambiguate_loops_with_multiple_latches): Same.
19715 (flow_bb_inside_loop_p): Same.
19716 (glb_enum_p): Same.
19717 (get_loop_body_with_size): Same.
19718 (get_loop_body): Same.
19719 (fill_sons_in_loop): Same.
19720 (get_loop_body_in_dom_order): Same.
19721 (get_loop_body_in_custom_order): Same.
19722 (release_recorded_exits): Same.
19723 (get_loop_exit_edges): Same.
19724 (num_loop_branches): Same.
19725 (remove_bb_from_loops): Same.
19726 (find_common_loop): Same.
19727 (delete_loop): Same.
19728 (cancel_loop): Same.
19729 (verify_loop_structure): Same.
19730 (loop_preheader_edge): Same.
19731 (loop_exit_edge_p): Same.
19732 (single_exit): Same.
19733 (loop_exits_to_bb_p): Same.
19734 (loop_exits_from_bb_p): Same.
19735 (get_loop_location): Same.
19736 (record_niter_bound): Same.
19737 (get_estimated_loop_iterations_int): Same.
19738 (max_stmt_executions_int): Same.
19739 (likely_max_stmt_executions_int): Same.
19740 (get_estimated_loop_iterations): Same.
19741 (get_max_loop_iterations): Same.
19742 (get_max_loop_iterations_int): Same.
19743 (get_likely_max_loop_iterations): Same.
19744 * cfgloop.h (simple_loop_desc): Same.
19745 (get_loop): Same.
19746 (loop_depth): Same.
19747 (loop_outer): Same.
19748 (loop_iterator::next): Same.
19749 (loop_outermost): Same.
19750 * cfgloopanal.c (mark_irreducible_loops): Same.
19751 (num_loop_insns): Same.
19752 (average_num_loop_insns): Same.
19753 (expected_loop_iterations_unbounded): Same.
19754 (expected_loop_iterations): Same.
19755 (mark_loop_exit_edges): Same.
19756 (single_likely_exit): Same.
19757 * cfgloopmanip.c (fix_bb_placement): Same.
19758 (fix_bb_placements): Same.
19759 (remove_path): Same.
19760 (place_new_loop): Same.
19761 (add_loop): Same.
19762 (scale_loop_frequencies): Same.
19763 (scale_loop_profile): Same.
19764 (create_empty_if_region_on_edge): Same.
19765 (create_empty_loop_on_edge): Same.
19766 (loopify): Same.
19767 (unloop): Same.
19768 (fix_loop_placements): Same.
19769 (copy_loop_info): Same.
19770 (duplicate_loop): Same.
19771 (duplicate_subloops): Same.
19772 (loop_redirect_edge): Same.
19773 (can_duplicate_loop_p): Same.
19774 (duplicate_loop_to_header_edge): Same.
19775 (mfb_keep_just): Same.
19776 (has_preds_from_loop): Same.
19777 (create_preheader): Same.
19778 (create_preheaders): Same.
19779 (lv_adjust_loop_entry_edge): Same.
19780 (loop_version): Same.
19781 * cfgloopmanip.h: Same.
19782 * cgraph.h: Same.
19783 * cgraphbuild.c: Same.
19784 * combine.c (make_extraction): Same.
19785 * config/i386/i386-features.c: Same.
19786 * config/i386/i386-features.h: Same.
19787 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19788 (ix86_emit_outlined_ms2sysv_restore): Same.
19789 (ix86_noce_conversion_profitable_p): Same.
19790 (ix86_init_cost): Same.
19791 (ix86_simd_clone_usable): Same.
19792 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19793 Wstruct-not-pod.
19794 * coretypes.h: Same.
19795 * data-streamer-in.c (string_for_index): Change class-key of PODs
19796 to struct and others to class.
19797 (streamer_read_indexed_string): Same.
19798 (streamer_read_string): Same.
19799 (bp_unpack_indexed_string): Same.
19800 (bp_unpack_string): Same.
19801 (streamer_read_uhwi): Same.
19802 (streamer_read_hwi): Same.
19803 (streamer_read_gcov_count): Same.
19804 (streamer_read_wide_int): Same.
19805 * data-streamer.h (streamer_write_bitpack): Same.
19806 (bp_unpack_value): Same.
19807 (streamer_write_char_stream): Same.
19808 (streamer_write_hwi_in_range): Same.
19809 (streamer_write_record_start): Same.
19810 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19811 (add_cross_iteration_register_deps): Same.
19812 (build_intra_loop_deps): Same.
19813 * df-core.c (df_analyze): Same.
19814 (loop_post_order_compute): Same.
19815 (loop_inverted_post_order_compute): Same.
19816 * df-problems.c (df_rd_alloc): Same.
19817 (df_rd_simulate_one_insn): Same.
19818 (df_rd_local_compute): Same.
19819 (df_rd_init_solution): Same.
19820 (df_rd_confluence_n): Same.
19821 (df_rd_transfer_function): Same.
19822 (df_rd_free): Same.
19823 (df_rd_dump_defs_set): Same.
19824 (df_rd_top_dump): Same.
19825 (df_lr_alloc): Same.
19826 (df_lr_reset): Same.
19827 (df_lr_local_compute): Same.
19828 (df_lr_init): Same.
19829 (df_lr_confluence_n): Same.
19830 (df_lr_free): Same.
19831 (df_lr_top_dump): Same.
19832 (df_lr_verify_transfer_functions): Same.
19833 (df_live_alloc): Same.
19834 (df_live_reset): Same.
19835 (df_live_init): Same.
19836 (df_live_confluence_n): Same.
19837 (df_live_finalize): Same.
19838 (df_live_free): Same.
19839 (df_live_top_dump): Same.
19840 (df_live_verify_transfer_functions): Same.
19841 (df_mir_alloc): Same.
19842 (df_mir_reset): Same.
19843 (df_mir_init): Same.
19844 (df_mir_confluence_n): Same.
19845 (df_mir_free): Same.
19846 (df_mir_top_dump): Same.
19847 (df_word_lr_alloc): Same.
19848 (df_word_lr_reset): Same.
19849 (df_word_lr_init): Same.
19850 (df_word_lr_confluence_n): Same.
19851 (df_word_lr_free): Same.
19852 (df_word_lr_top_dump): Same.
19853 (df_md_alloc): Same.
19854 (df_md_simulate_one_insn): Same.
19855 (df_md_reset): Same.
19856 (df_md_init): Same.
19857 (df_md_free): Same.
19858 (df_md_top_dump): Same.
19859 * df-scan.c (df_insn_delete): Same.
19860 (df_insn_rescan): Same.
19861 (df_notes_rescan): Same.
19862 (df_sort_and_compress_mws): Same.
19863 (df_install_mws): Same.
19864 (df_refs_add_to_chains): Same.
19865 (df_ref_create_structure): Same.
19866 (df_ref_record): Same.
19867 (df_def_record_1): Same.
19868 (df_find_hard_reg_defs): Same.
19869 (df_uses_record): Same.
19870 (df_get_conditional_uses): Same.
19871 (df_get_call_refs): Same.
19872 (df_recompute_luids): Same.
19873 (df_get_entry_block_def_set): Same.
19874 (df_entry_block_defs_collect): Same.
19875 (df_get_exit_block_use_set): Same.
19876 (df_exit_block_uses_collect): Same.
19877 (df_mws_verify): Same.
19878 (df_bb_verify): Same.
19879 * df.h (df_scan_get_bb_info): Same.
19880 * doc/tm.texi: Same.
19881 * dse.c (record_store): Same.
19882 * dumpfile.h: Same.
19883 * emit-rtl.c (const_fixed_hasher::equal): Same.
19884 (set_mem_attributes_minus_bitpos): Same.
19885 (change_address): Same.
19886 (adjust_address_1): Same.
19887 (offset_address): Same.
19888 * emit-rtl.h: Same.
19889 * except.c (dw2_build_landing_pads): Same.
19890 (sjlj_emit_dispatch_table): Same.
19891 * explow.c (allocate_dynamic_stack_space): Same.
19892 (emit_stack_probe): Same.
19893 (probe_stack_range): Same.
19894 * expmed.c (store_bit_field_using_insv): Same.
19895 (store_bit_field_1): Same.
19896 (store_integral_bit_field): Same.
19897 (extract_bit_field_using_extv): Same.
19898 (extract_bit_field_1): Same.
19899 (emit_cstore): Same.
19900 * expr.c (emit_block_move_via_cpymem): Same.
19901 (expand_cmpstrn_or_cmpmem): Same.
19902 (set_storage_via_setmem): Same.
19903 (emit_single_push_insn_1): Same.
19904 (expand_assignment): Same.
19905 (store_constructor): Same.
19906 (expand_expr_real_2): Same.
19907 (expand_expr_real_1): Same.
19908 (try_casesi): Same.
19909 * flags.h: Same.
19910 * function.c (try_fit_stack_local): Same.
19911 (assign_stack_local_1): Same.
19912 (assign_stack_local): Same.
19913 (cut_slot_from_list): Same.
19914 (insert_slot_to_list): Same.
19915 (max_slot_level): Same.
19916 (move_slot_to_level): Same.
19917 (temp_address_hasher::equal): Same.
19918 (remove_unused_temp_slot_addresses): Same.
19919 (assign_temp): Same.
19920 (combine_temp_slots): Same.
19921 (update_temp_slot_address): Same.
19922 (preserve_temp_slots): Same.
19923 * function.h: Same.
19924 * fwprop.c: Same.
19925 * gcc-rich-location.h: Same.
19926 * gcov.c: Same.
19927 * genattrtab.c (check_attr_test): Same.
19928 (check_attr_value): Same.
19929 (convert_set_attr_alternative): Same.
19930 (convert_set_attr): Same.
19931 (check_defs): Same.
19932 (copy_boolean): Same.
19933 (get_attr_value): Same.
19934 (expand_delays): Same.
19935 (make_length_attrs): Same.
19936 (min_fn): Same.
19937 (make_alternative_compare): Same.
19938 (simplify_test_exp): Same.
19939 (tests_attr_p): Same.
19940 (get_attr_order): Same.
19941 (clear_struct_flag): Same.
19942 (gen_attr): Same.
19943 (compares_alternatives_p): Same.
19944 (gen_insn): Same.
19945 (gen_delay): Same.
19946 (find_attrs_to_cache): Same.
19947 (write_test_expr): Same.
19948 (walk_attr_value): Same.
19949 (write_attr_get): Same.
19950 (eliminate_known_true): Same.
19951 (write_insn_cases): Same.
19952 (write_attr_case): Same.
19953 (write_attr_valueq): Same.
19954 (write_attr_value): Same.
19955 (write_dummy_eligible_delay): Same.
19956 (next_comma_elt): Same.
19957 (find_attr): Same.
19958 (make_internal_attr): Same.
19959 (copy_rtx_unchanging): Same.
19960 (gen_insn_reserv): Same.
19961 (check_tune_attr): Same.
19962 (make_automaton_attrs): Same.
19963 (handle_arg): Same.
19964 * genextract.c (gen_insn): Same.
19965 (VEC_char_to_string): Same.
19966 * genmatch.c (print_operand): Same.
19967 (lower): Same.
19968 (parser::parse_operation): Same.
19969 (parser::parse_capture): Same.
19970 (parser::parse_c_expr): Same.
19971 (parser::parse_simplify): Same.
19972 (main): Same.
19973 * genoutput.c (output_operand_data): Same.
19974 (output_get_insn_name): Same.
19975 (compare_operands): Same.
19976 (place_operands): Same.
19977 (process_template): Same.
19978 (validate_insn_alternatives): Same.
19979 (validate_insn_operands): Same.
19980 (gen_expand): Same.
19981 (note_constraint): Same.
19982 * genpreds.c (write_one_predicate_function): Same.
19983 (add_constraint): Same.
19984 (process_define_register_constraint): Same.
19985 (write_lookup_constraint_1): Same.
19986 (write_lookup_constraint_array): Same.
19987 (write_insn_constraint_len): Same.
19988 (write_reg_class_for_constraint_1): Same.
19989 (write_constraint_satisfied_p_array): Same.
19990 * genrecog.c (optimize_subroutine_group): Same.
19991 * gensupport.c (process_define_predicate): Same.
19992 (queue_pattern): Same.
19993 (remove_from_queue): Same.
19994 (process_rtx): Same.
19995 (is_predicable): Same.
19996 (change_subst_attribute): Same.
19997 (subst_pattern_match): Same.
19998 (alter_constraints): Same.
19999 (alter_attrs_for_insn): Same.
20000 (shift_output_template): Same.
20001 (alter_output_for_subst_insn): Same.
20002 (process_one_cond_exec): Same.
20003 (subst_dup): Same.
20004 (process_define_cond_exec): Same.
20005 (mnemonic_htab_callback): Same.
20006 (gen_mnemonic_attr): Same.
20007 (read_md_rtx): Same.
20008 * ggc-page.c: Same.
20009 * gimple-loop-interchange.cc (dump_reduction): Same.
20010 (dump_induction): Same.
20011 (loop_cand::~loop_cand): Same.
20012 (free_data_refs_with_aux): Same.
20013 (tree_loop_interchange::interchange_loops): Same.
20014 (tree_loop_interchange::map_inductions_to_loop): Same.
20015 (tree_loop_interchange::move_code_to_inner_loop): Same.
20016 (compute_access_stride): Same.
20017 (compute_access_strides): Same.
20018 (proper_loop_form_for_interchange): Same.
20019 (tree_loop_interchange_compute_ddrs): Same.
20020 (prune_datarefs_not_in_loop): Same.
20021 (prepare_data_references): Same.
20022 (pass_linterchange::execute): Same.
20023 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20024 (unroll_jam_possible_p): Same.
20025 (fuse_loops): Same.
20026 (adjust_unroll_factor): Same.
20027 (tree_loop_unroll_and_jam): Same.
20028 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20029 (loop_versioning::expensive_stmt_p): Same.
20030 (loop_versioning::version_for_unity): Same.
20031 (loop_versioning::dump_inner_likelihood): Same.
20032 (loop_versioning::find_per_loop_multiplication): Same.
20033 (loop_versioning::analyze_term_using_scevs): Same.
20034 (loop_versioning::record_address_fragment): Same.
20035 (loop_versioning::analyze_expr): Same.
20036 (loop_versioning::analyze_blocks): Same.
20037 (loop_versioning::prune_conditions): Same.
20038 (loop_versioning::merge_loop_info): Same.
20039 (loop_versioning::add_loop_to_queue): Same.
20040 (loop_versioning::decide_whether_loop_is_versionable): Same.
20041 (loop_versioning::make_versioning_decisions): Same.
20042 (loop_versioning::implement_versioning_decisions): Same.
20043 * gimple-ssa-evrp-analyze.c
20044 (evrp_range_analyzer::record_ranges_from_phis): Same.
20045 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20046 (count_multiple_uses): Same.
20047 (split_group): Same.
20048 (imm_store_chain_info::output_merged_store): Same.
20049 (pass_store_merging::process_store): Same.
20050 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20051 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20052 (is_max): Same.
20053 (alloca_call_type): Same.
20054 (pass_walloca::execute): Same.
20055 * gimple-streamer-in.c (input_phi): Same.
20056 (input_gimple_stmt): Same.
20057 * gimple-streamer.h: Same.
20058 * godump.c (go_force_record_alignment): Same.
20059 (go_format_type): Same.
20060 (go_output_type): Same.
20061 (go_output_fndecl): Same.
20062 (go_output_typedef): Same.
20063 (keyword_hash_init): Same.
20064 (find_dummy_types): Same.
20065 * graph.c (draw_cfg_nodes_no_loops): Same.
20066 (draw_cfg_nodes_for_loop): Same.
20067 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20068 * hsa-brig.c: Same.
20069 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20070 * hsa-dump.c (dump_hsa_cfun): Same.
20071 * hsa-gen.c (gen_function_def_parameters): Same.
20072 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20073 * input.c (dump_line_table_statistics): Same.
20074 (test_lexer): Same.
20075 * input.h: Same.
20076 * internal-fn.c (get_multi_vector_move): Same.
20077 (expand_load_lanes_optab_fn): Same.
20078 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20079 (expand_GOMP_SIMT_EXIT): Same.
20080 (expand_GOMP_SIMT_LAST_LANE): Same.
20081 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20082 (expand_GOMP_SIMT_VOTE_ANY): Same.
20083 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20084 (expand_GOMP_SIMT_XCHG_IDX): Same.
20085 (expand_addsub_overflow): Same.
20086 (expand_neg_overflow): Same.
20087 (expand_mul_overflow): Same.
20088 (expand_call_mem_ref): Same.
20089 (expand_mask_load_optab_fn): Same.
20090 (expand_scatter_store_optab_fn): Same.
20091 (expand_gather_load_optab_fn): Same.
20092 * ipa-cp.c (ipa_get_parm_lattices): Same.
20093 (print_all_lattices): Same.
20094 (ignore_edge_p): Same.
20095 (build_toporder_info): Same.
20096 (free_toporder_info): Same.
20097 (push_node_to_stack): Same.
20098 (ipcp_lattice<valtype>::set_contains_variable): Same.
20099 (set_agg_lats_to_bottom): Same.
20100 (ipcp_bits_lattice::meet_with): Same.
20101 (set_single_call_flag): Same.
20102 (initialize_node_lattices): Same.
20103 (ipa_get_jf_ancestor_result): Same.
20104 (ipcp_verify_propagated_values): Same.
20105 (propagate_scalar_across_jump_function): Same.
20106 (propagate_context_across_jump_function): Same.
20107 (propagate_bits_across_jump_function): Same.
20108 (ipa_vr_operation_and_type_effects): Same.
20109 (propagate_vr_across_jump_function): Same.
20110 (set_check_aggs_by_ref): Same.
20111 (set_chain_of_aglats_contains_variable): Same.
20112 (merge_aggregate_lattices): Same.
20113 (agg_pass_through_permissible_p): Same.
20114 (propagate_aggs_across_jump_function): Same.
20115 (call_passes_through_thunk_p): Same.
20116 (propagate_constants_across_call): Same.
20117 (devirtualization_time_bonus): Same.
20118 (good_cloning_opportunity_p): Same.
20119 (context_independent_aggregate_values): Same.
20120 (gather_context_independent_values): Same.
20121 (perform_estimation_of_a_value): Same.
20122 (estimate_local_effects): Same.
20123 (value_topo_info<valtype>::add_val): Same.
20124 (add_all_node_vals_to_toposort): Same.
20125 (value_topo_info<valtype>::propagate_effects): Same.
20126 (ipcp_propagate_stage): Same.
20127 (ipcp_discover_new_direct_edges): Same.
20128 (same_node_or_its_all_contexts_clone_p): Same.
20129 (cgraph_edge_brings_value_p): Same.
20130 (gather_edges_for_value): Same.
20131 (create_specialized_node): Same.
20132 (find_more_scalar_values_for_callers_subset): Same.
20133 (find_more_contexts_for_caller_subset): Same.
20134 (copy_plats_to_inter): Same.
20135 (intersect_aggregates_with_edge): Same.
20136 (find_aggregate_values_for_callers_subset): Same.
20137 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20138 (decide_about_value): Same.
20139 (decide_whether_version_node): Same.
20140 (spread_undeadness): Same.
20141 (identify_dead_nodes): Same.
20142 (ipcp_store_vr_results): Same.
20143 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20144 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20145 (redirect_to_unreachable): Same.
20146 (edge_set_predicate): Same.
20147 (evaluate_conditions_for_known_args): Same.
20148 (evaluate_properties_for_edge): Same.
20149 (ipa_fn_summary_t::duplicate): Same.
20150 (ipa_call_summary_t::duplicate): Same.
20151 (dump_ipa_call_summary): Same.
20152 (ipa_dump_fn_summary): Same.
20153 (eliminated_by_inlining_prob): Same.
20154 (set_cond_stmt_execution_predicate): Same.
20155 (set_switch_stmt_execution_predicate): Same.
20156 (compute_bb_predicates): Same.
20157 (will_be_nonconstant_expr_predicate): Same.
20158 (phi_result_unknown_predicate): Same.
20159 (analyze_function_body): Same.
20160 (compute_fn_summary): Same.
20161 (estimate_edge_devirt_benefit): Same.
20162 (estimate_edge_size_and_time): Same.
20163 (estimate_calls_size_and_time): Same.
20164 (estimate_node_size_and_time): Same.
20165 (remap_edge_change_prob): Same.
20166 (remap_edge_summaries): Same.
20167 (ipa_merge_fn_summary_after_inlining): Same.
20168 (ipa_fn_summary_generate): Same.
20169 (inline_read_section): Same.
20170 (ipa_fn_summary_read): Same.
20171 (ipa_fn_summary_write): Same.
20172 * ipa-fnsummary.h: Same.
20173 * ipa-hsa.c (ipa_hsa_read_section): Same.
20174 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20175 * ipa-icf.c (sem_function::param_used_p): Same.
20176 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20177 * ipa-inline.c (edge_badness): Same.
20178 (inline_small_functions): Same.
20179 * ipa-polymorphic-call.c
20180 (ipa_polymorphic_call_context::stream_out): Same.
20181 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20182 (predicate::remap_after_inlining): Same.
20183 (predicate::stream_out): Same.
20184 * ipa-predicate.h: Same.
20185 * ipa-profile.c (ipa_profile_read_summary): Same.
20186 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20187 (count_formal_params): Same.
20188 (ipa_dump_param): Same.
20189 (ipa_alloc_node_params): Same.
20190 (ipa_print_node_jump_functions_for_edge): Same.
20191 (ipa_print_node_jump_functions): Same.
20192 (ipa_load_from_parm_agg): Same.
20193 (get_ancestor_addr_info): Same.
20194 (ipa_compute_jump_functions_for_edge): Same.
20195 (ipa_analyze_virtual_call_uses): Same.
20196 (ipa_analyze_stmt_uses): Same.
20197 (ipa_analyze_params_uses_in_bb): Same.
20198 (update_jump_functions_after_inlining): Same.
20199 (try_decrement_rdesc_refcount): Same.
20200 (ipa_impossible_devirt_target): Same.
20201 (update_indirect_edges_after_inlining): Same.
20202 (combine_controlled_uses_counters): Same.
20203 (ipa_edge_args_sum_t::duplicate): Same.
20204 (ipa_write_jump_function): Same.
20205 (ipa_write_indirect_edge_info): Same.
20206 (ipa_write_node_info): Same.
20207 (ipa_read_edge_info): Same.
20208 (ipa_prop_read_section): Same.
20209 (read_replacements_section): Same.
20210 * ipa-prop.h (ipa_get_param_count): Same.
20211 (ipa_get_param): Same.
20212 (ipa_get_type): Same.
20213 (ipa_get_param_move_cost): Same.
20214 (ipa_set_param_used): Same.
20215 (ipa_get_controlled_uses): Same.
20216 (ipa_set_controlled_uses): Same.
20217 (ipa_get_cs_argument_count): Same.
20218 * ipa-pure-const.c (analyze_function): Same.
20219 (pure_const_read_summary): Same.
20220 * ipa-ref.h: Same.
20221 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20222 * ipa-split.c (test_nonssa_use): Same.
20223 (dump_split_point): Same.
20224 (dominated_by_forbidden): Same.
20225 (split_part_set_ssa_name_p): Same.
20226 (find_split_points): Same.
20227 * ira-build.c (finish_loop_tree_nodes): Same.
20228 (low_pressure_loop_node_p): Same.
20229 * ira-color.c (ira_reuse_stack_slot): Same.
20230 * ira-int.h: Same.
20231 * ira.c (setup_reg_equiv): Same.
20232 (print_insn_chain): Same.
20233 (ira): Same.
20234 * loop-doloop.c (doloop_condition_get): Same.
20235 (add_test): Same.
20236 (record_reg_sets): Same.
20237 (doloop_optimize): Same.
20238 * loop-init.c (loop_optimizer_init): Same.
20239 (fix_loop_structure): Same.
20240 * loop-invariant.c (merge_identical_invariants): Same.
20241 (compute_always_reached): Same.
20242 (find_exits): Same.
20243 (may_assign_reg_p): Same.
20244 (find_invariants_bb): Same.
20245 (find_invariants_body): Same.
20246 (replace_uses): Same.
20247 (can_move_invariant_reg): Same.
20248 (free_inv_motion_data): Same.
20249 (move_single_loop_invariants): Same.
20250 (change_pressure): Same.
20251 (mark_ref_regs): Same.
20252 (calculate_loop_reg_pressure): Same.
20253 * loop-iv.c (biv_entry_hasher::equal): Same.
20254 (iv_extend_to_rtx_code): Same.
20255 (check_iv_ref_table_size): Same.
20256 (clear_iv_info): Same.
20257 (latch_dominating_def): Same.
20258 (iv_get_reaching_def): Same.
20259 (iv_constant): Same.
20260 (iv_subreg): Same.
20261 (iv_extend): Same.
20262 (iv_neg): Same.
20263 (iv_add): Same.
20264 (iv_mult): Same.
20265 (get_biv_step): Same.
20266 (record_iv): Same.
20267 (analyzed_for_bivness_p): Same.
20268 (record_biv): Same.
20269 (iv_analyze_biv): Same.
20270 (iv_analyze_expr): Same.
20271 (iv_analyze_def): Same.
20272 (iv_analyze_op): Same.
20273 (iv_analyze): Same.
20274 (iv_analyze_result): Same.
20275 (biv_p): Same.
20276 (eliminate_implied_conditions): Same.
20277 (simplify_using_initial_values): Same.
20278 (shorten_into_mode): Same.
20279 (canonicalize_iv_subregs): Same.
20280 (determine_max_iter): Same.
20281 (check_simple_exit): Same.
20282 (find_simple_exit): Same.
20283 (get_simple_loop_desc): Same.
20284 * loop-unroll.c (report_unroll): Same.
20285 (decide_unrolling): Same.
20286 (unroll_loops): Same.
20287 (loop_exit_at_end_p): Same.
20288 (decide_unroll_constant_iterations): Same.
20289 (unroll_loop_constant_iterations): Same.
20290 (compare_and_jump_seq): Same.
20291 (unroll_loop_runtime_iterations): Same.
20292 (decide_unroll_stupid): Same.
20293 (unroll_loop_stupid): Same.
20294 (referenced_in_one_insn_in_loop_p): Same.
20295 (reset_debug_uses_in_loop): Same.
20296 (analyze_iv_to_split_insn): Same.
20297 * lra-eliminations.c (lra_debug_elim_table): Same.
20298 (setup_can_eliminate): Same.
20299 (form_sum): Same.
20300 (lra_get_elimination_hard_regno): Same.
20301 (lra_eliminate_regs_1): Same.
20302 (eliminate_regs_in_insn): Same.
20303 (update_reg_eliminate): Same.
20304 (init_elimination): Same.
20305 (lra_eliminate): Same.
20306 * lra-int.h: Same.
20307 * lra-lives.c (initiate_live_solver): Same.
20308 * lra-remat.c (create_remat_bb_data): Same.
20309 * lra-spills.c (lra_spill): Same.
20310 * lra.c (lra_set_insn_recog_data): Same.
20311 (lra_set_used_insn_alternative_by_uid): Same.
20312 (init_reg_info): Same.
20313 (expand_reg_info): Same.
20314 * lto-cgraph.c (output_symtab): Same.
20315 (read_identifier): Same.
20316 (get_alias_symbol): Same.
20317 (input_node): Same.
20318 (input_varpool_node): Same.
20319 (input_ref): Same.
20320 (input_edge): Same.
20321 (input_cgraph_1): Same.
20322 (input_refs): Same.
20323 (input_symtab): Same.
20324 (input_offload_tables): Same.
20325 (output_cgraph_opt_summary): Same.
20326 (input_edge_opt_summary): Same.
20327 (input_cgraph_opt_section): Same.
20328 * lto-section-in.c (lto_free_raw_section_data): Same.
20329 (lto_create_simple_input_block): Same.
20330 (lto_free_function_in_decl_state_for_node): Same.
20331 * lto-streamer-in.c (lto_tag_check_set): Same.
20332 (lto_location_cache::revert_location_cache): Same.
20333 (lto_location_cache::input_location): Same.
20334 (lto_input_location): Same.
20335 (stream_input_location_now): Same.
20336 (lto_input_tree_ref): Same.
20337 (lto_input_eh_catch_list): Same.
20338 (input_eh_region): Same.
20339 (lto_init_eh): Same.
20340 (make_new_block): Same.
20341 (input_cfg): Same.
20342 (fixup_call_stmt_edges): Same.
20343 (input_struct_function_base): Same.
20344 (input_function): Same.
20345 (lto_read_body_or_constructor): Same.
20346 (lto_read_tree_1): Same.
20347 (lto_read_tree): Same.
20348 (lto_input_scc): Same.
20349 (lto_input_tree_1): Same.
20350 (lto_input_toplevel_asms): Same.
20351 (lto_input_mode_table): Same.
20352 (lto_reader_init): Same.
20353 (lto_data_in_create): Same.
20354 * lto-streamer-out.c (output_cfg): Same.
20355 * lto-streamer.h: Same.
20356 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20357 (generate_prolog_epilog): Same.
20358 (mark_loop_unsched): Same.
20359 (dump_insn_location): Same.
20360 (loop_canon_p): Same.
20361 (sms_schedule): Same.
20362 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20363 (expand_omp_for_generic): Same.
20364 (expand_omp_for_static_nochunk): Same.
20365 (expand_omp_for_static_chunk): Same.
20366 (expand_omp_simd): Same.
20367 (expand_omp_taskloop_for_inner): Same.
20368 (expand_oacc_for): Same.
20369 (expand_omp_atomic_pipeline): Same.
20370 (mark_loops_in_oacc_kernels_region): Same.
20371 * omp-offload.c (oacc_xform_loop): Same.
20372 * omp-simd-clone.c (simd_clone_adjust): Same.
20373 * optabs-query.c (get_traditional_extraction_insn): Same.
20374 * optabs.c (expand_vector_broadcast): Same.
20375 (expand_binop_directly): Same.
20376 (expand_twoval_unop): Same.
20377 (expand_twoval_binop): Same.
20378 (expand_unop_direct): Same.
20379 (emit_indirect_jump): Same.
20380 (emit_conditional_move): Same.
20381 (emit_conditional_neg_or_complement): Same.
20382 (emit_conditional_add): Same.
20383 (vector_compare_rtx): Same.
20384 (expand_vec_perm_1): Same.
20385 (expand_vec_perm_const): Same.
20386 (expand_vec_cond_expr): Same.
20387 (expand_vec_series_expr): Same.
20388 (maybe_emit_atomic_exchange): Same.
20389 (maybe_emit_sync_lock_test_and_set): Same.
20390 (expand_atomic_compare_and_swap): Same.
20391 (expand_atomic_load): Same.
20392 (expand_atomic_store): Same.
20393 (maybe_emit_op): Same.
20394 (valid_multiword_target_p): Same.
20395 (create_integer_operand): Same.
20396 (maybe_legitimize_operand_same_code): Same.
20397 (maybe_legitimize_operand): Same.
20398 (create_convert_operand_from_type): Same.
20399 (can_reuse_operands_p): Same.
20400 (maybe_legitimize_operands): Same.
20401 (maybe_gen_insn): Same.
20402 (maybe_expand_insn): Same.
20403 (maybe_expand_jump_insn): Same.
20404 (expand_insn): Same.
20405 * optabs.h (create_expand_operand): Same.
20406 (create_fixed_operand): Same.
20407 (create_output_operand): Same.
20408 (create_input_operand): Same.
20409 (create_convert_operand_to): Same.
20410 (create_convert_operand_from): Same.
20411 * optinfo.h: Same.
20412 * poly-int.h: Same.
20413 * predict.c (optimize_insn_for_speed_p): Same.
20414 (optimize_loop_for_size_p): Same.
20415 (optimize_loop_for_speed_p): Same.
20416 (optimize_loop_nest_for_speed_p): Same.
20417 (get_base_value): Same.
20418 (predicted_by_loop_heuristics_p): Same.
20419 (predict_extra_loop_exits): Same.
20420 (predict_loops): Same.
20421 (predict_paths_for_bb): Same.
20422 (predict_paths_leading_to): Same.
20423 (propagate_freq): Same.
20424 (pass_profile::execute): Same.
20425 * predict.h: Same.
20426 * profile-count.c (profile_count::differs_from_p): Same.
20427 (profile_probability::differs_lot_from_p): Same.
20428 * profile-count.h: Same.
20429 * profile.c (branch_prob): Same.
20430 * regrename.c (free_chain_data): Same.
20431 (mark_conflict): Same.
20432 (create_new_chain): Same.
20433 (merge_overlapping_regs): Same.
20434 (init_rename_info): Same.
20435 (merge_chains): Same.
20436 (regrename_analyze): Same.
20437 (regrename_do_replace): Same.
20438 (scan_rtx_reg): Same.
20439 (record_out_operands): Same.
20440 (build_def_use): Same.
20441 * regrename.h: Same.
20442 * reload.h: Same.
20443 * reload1.c (init_reload): Same.
20444 (maybe_fix_stack_asms): Same.
20445 (copy_reloads): Same.
20446 (count_pseudo): Same.
20447 (count_spilled_pseudo): Same.
20448 (find_reg): Same.
20449 (find_reload_regs): Same.
20450 (select_reload_regs): Same.
20451 (spill_hard_reg): Same.
20452 (fixup_eh_region_note): Same.
20453 (set_reload_reg): Same.
20454 (allocate_reload_reg): Same.
20455 (compute_reload_subreg_offset): Same.
20456 (reload_adjust_reg_for_icode): Same.
20457 (emit_input_reload_insns): Same.
20458 (emit_output_reload_insns): Same.
20459 (do_input_reload): Same.
20460 (inherit_piecemeal_p): Same.
20461 * rtl.h: Same.
20462 * sanopt.c (maybe_get_dominating_check): Same.
20463 (maybe_optimize_ubsan_ptr_ifn): Same.
20464 (can_remove_asan_check): Same.
20465 (maybe_optimize_asan_check_ifn): Same.
20466 (sanopt_optimize_walker): Same.
20467 * sched-deps.c (add_dependence_list): Same.
20468 (chain_to_prev_insn): Same.
20469 (add_insn_mem_dependence): Same.
20470 (create_insn_reg_set): Same.
20471 (maybe_extend_reg_info_p): Same.
20472 (sched_analyze_reg): Same.
20473 (sched_analyze_1): Same.
20474 (get_implicit_reg_pending_clobbers): Same.
20475 (chain_to_prev_insn_p): Same.
20476 (deps_analyze_insn): Same.
20477 (deps_start_bb): Same.
20478 (sched_free_deps): Same.
20479 (init_deps): Same.
20480 (init_deps_reg_last): Same.
20481 (free_deps): Same.
20482 * sched-ebb.c: Same.
20483 * sched-int.h: Same.
20484 * sched-rgn.c (add_branch_dependences): Same.
20485 (concat_insn_mem_list): Same.
20486 (deps_join): Same.
20487 (sched_rgn_compute_dependencies): Same.
20488 * sel-sched-ir.c (reset_target_context): Same.
20489 (copy_deps_context): Same.
20490 (init_id_from_df): Same.
20491 (has_dependence_p): Same.
20492 (change_loops_latches): Same.
20493 (bb_top_order_comparator): Same.
20494 (make_region_from_loop_preheader): Same.
20495 (sel_init_pipelining): Same.
20496 (get_loop_nest_for_rgn): Same.
20497 (make_regions_from_the_rest): Same.
20498 (sel_is_loop_preheader_p): Same.
20499 * sel-sched-ir.h (inner_loop_header_p): Same.
20500 (get_all_loop_exits): Same.
20501 * selftest.h: Same.
20502 * sese.c (sese_build_liveouts): Same.
20503 (sese_insert_phis_for_liveouts): Same.
20504 * sese.h (defined_in_sese_p): Same.
20505 * sreal.c (sreal::stream_out): Same.
20506 * sreal.h: Same.
20507 * streamer-hooks.h: Same.
20508 * target-globals.c (save_target_globals): Same.
20509 * target-globals.h: Same.
20510 * target.def: Same.
20511 * target.h: Same.
20512 * targhooks.c (default_has_ifunc_p): Same.
20513 (default_empty_mask_is_expensive): Same.
20514 (default_init_cost): Same.
20515 * targhooks.h: Same.
20516 * toplev.c: Same.
20517 * tree-affine.c (aff_combination_mult): Same.
20518 (aff_combination_expand): Same.
20519 (aff_combination_constant_multiple_p): Same.
20520 * tree-affine.h: Same.
20521 * tree-cfg.c (build_gimple_cfg): Same.
20522 (replace_loop_annotate_in_block): Same.
20523 (replace_uses_by): Same.
20524 (remove_bb): Same.
20525 (dump_cfg_stats): Same.
20526 (gimple_duplicate_sese_region): Same.
20527 (gimple_duplicate_sese_tail): Same.
20528 (move_block_to_fn): Same.
20529 (replace_block_vars_by_duplicates): Same.
20530 (move_sese_region_to_fn): Same.
20531 (print_loops_bb): Same.
20532 (print_loop): Same.
20533 (print_loops): Same.
20534 (debug): Same.
20535 (debug_loops): Same.
20536 * tree-cfg.h: Same.
20537 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20538 (chrec_fold_multiply_poly_poly): Same.
20539 (chrec_evaluate): Same.
20540 (chrec_component_in_loop_num): Same.
20541 (reset_evolution_in_loop): Same.
20542 (is_multivariate_chrec): Same.
20543 (chrec_contains_symbols): Same.
20544 (nb_vars_in_chrec): Same.
20545 (chrec_convert_1): Same.
20546 (chrec_convert_aggressive): Same.
20547 * tree-chrec.h: Same.
20548 * tree-core.h: Same.
20549 * tree-data-ref.c (dump_data_dependence_relation): Same.
20550 (canonicalize_base_object_address): Same.
20551 (data_ref_compare_tree): Same.
20552 (prune_runtime_alias_test_list): Same.
20553 (get_segment_min_max): Same.
20554 (create_intersect_range_checks): Same.
20555 (conflict_fn_no_dependence): Same.
20556 (object_address_invariant_in_loop_p): Same.
20557 (analyze_ziv_subscript): Same.
20558 (analyze_siv_subscript_cst_affine): Same.
20559 (analyze_miv_subscript): Same.
20560 (analyze_overlapping_iterations): Same.
20561 (build_classic_dist_vector_1): Same.
20562 (add_other_self_distances): Same.
20563 (same_access_functions): Same.
20564 (build_classic_dir_vector): Same.
20565 (subscript_dependence_tester_1): Same.
20566 (subscript_dependence_tester): Same.
20567 (access_functions_are_affine_or_constant_p): Same.
20568 (get_references_in_stmt): Same.
20569 (loop_nest_has_data_refs): Same.
20570 (graphite_find_data_references_in_stmt): Same.
20571 (find_data_references_in_bb): Same.
20572 (get_base_for_alignment): Same.
20573 (find_loop_nest_1): Same.
20574 (find_loop_nest): Same.
20575 * tree-data-ref.h (dr_alignment): Same.
20576 (ddr_dependence_level): Same.
20577 * tree-if-conv.c (fold_build_cond_expr): Same.
20578 (add_to_predicate_list): Same.
20579 (add_to_dst_predicate_list): Same.
20580 (phi_convertible_by_degenerating_args): Same.
20581 (idx_within_array_bound): Same.
20582 (all_preds_critical_p): Same.
20583 (pred_blocks_visited_p): Same.
20584 (predicate_bbs): Same.
20585 (build_region): Same.
20586 (if_convertible_loop_p_1): Same.
20587 (is_cond_scalar_reduction): Same.
20588 (predicate_scalar_phi): Same.
20589 (remove_conditions_and_labels): Same.
20590 (combine_blocks): Same.
20591 (version_loop_for_if_conversion): Same.
20592 (versionable_outer_loop_p): Same.
20593 (ifcvt_local_dce): Same.
20594 (tree_if_conversion): Same.
20595 (pass_if_conversion::gate): Same.
20596 * tree-if-conv.h: Same.
20597 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20598 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20599 (free_rdg): Same.
20600 (stmt_has_scalar_dependences_outside_loop): Same.
20601 (copy_loop_before): Same.
20602 (create_bb_after_loop): Same.
20603 (const_with_all_bytes_same): Same.
20604 (generate_memset_builtin): Same.
20605 (generate_memcpy_builtin): Same.
20606 (destroy_loop): Same.
20607 (build_rdg_partition_for_vertex): Same.
20608 (compute_access_range): Same.
20609 (data_ref_segment_size): Same.
20610 (latch_dominated_by_data_ref): Same.
20611 (compute_alias_check_pairs): Same.
20612 (fuse_memset_builtins): Same.
20613 (finalize_partitions): Same.
20614 (find_seed_stmts_for_distribution): Same.
20615 (prepare_perfect_loop_nest): Same.
20616 * tree-parloops.c (lambda_transform_legal_p): Same.
20617 (loop_parallel_p): Same.
20618 (reduc_stmt_res): Same.
20619 (add_field_for_name): Same.
20620 (create_call_for_reduction_1): Same.
20621 (replace_uses_in_bb_by): Same.
20622 (transform_to_exit_first_loop_alt): Same.
20623 (try_transform_to_exit_first_loop_alt): Same.
20624 (transform_to_exit_first_loop): Same.
20625 (num_phis): Same.
20626 (gen_parallel_loop): Same.
20627 (gather_scalar_reductions): Same.
20628 (get_omp_data_i_param): Same.
20629 (try_create_reduction_list): Same.
20630 (oacc_entry_exit_single_gang): Same.
20631 (parallelize_loops): Same.
20632 * tree-pass.h: Same.
20633 * tree-predcom.c (determine_offset): Same.
20634 (last_always_executed_block): Same.
20635 (split_data_refs_to_components): Same.
20636 (suitable_component_p): Same.
20637 (valid_initializer_p): Same.
20638 (find_looparound_phi): Same.
20639 (insert_looparound_copy): Same.
20640 (add_looparound_copies): Same.
20641 (determine_roots_comp): Same.
20642 (predcom_tmp_var): Same.
20643 (initialize_root_vars): Same.
20644 (initialize_root_vars_store_elim_1): Same.
20645 (initialize_root_vars_store_elim_2): Same.
20646 (finalize_eliminated_stores): Same.
20647 (initialize_root_vars_lm): Same.
20648 (remove_stmt): Same.
20649 (determine_unroll_factor): Same.
20650 (execute_pred_commoning_cbck): Same.
20651 (base_names_in_chain_on): Same.
20652 (combine_chains): Same.
20653 (pcom_stmt_dominates_stmt_p): Same.
20654 (try_combine_chains): Same.
20655 (prepare_initializers_chain_store_elim): Same.
20656 (prepare_initializers_chain): Same.
20657 (prepare_initializers): Same.
20658 (prepare_finalizers_chain): Same.
20659 (prepare_finalizers): Same.
20660 (insert_init_seqs): Same.
20661 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20662 (compute_overall_effect_of_inner_loop): Same.
20663 (add_to_evolution_1): Same.
20664 (add_to_evolution): Same.
20665 (follow_ssa_edge_binary): Same.
20666 (follow_ssa_edge_expr): Same.
20667 (backedge_phi_arg_p): Same.
20668 (follow_ssa_edge_in_condition_phi_branch): Same.
20669 (follow_ssa_edge_in_condition_phi): Same.
20670 (follow_ssa_edge_inner_loop_phi): Same.
20671 (follow_ssa_edge): Same.
20672 (analyze_evolution_in_loop): Same.
20673 (analyze_initial_condition): Same.
20674 (interpret_loop_phi): Same.
20675 (interpret_condition_phi): Same.
20676 (interpret_rhs_expr): Same.
20677 (interpret_expr): Same.
20678 (interpret_gimple_assign): Same.
20679 (analyze_scalar_evolution_1): Same.
20680 (analyze_scalar_evolution): Same.
20681 (analyze_scalar_evolution_for_address_of): Same.
20682 (get_instantiated_value_entry): Same.
20683 (loop_closed_phi_def): Same.
20684 (instantiate_scev_name): Same.
20685 (instantiate_scev_poly): Same.
20686 (instantiate_scev_binary): Same.
20687 (instantiate_scev_convert): Same.
20688 (instantiate_scev_not): Same.
20689 (instantiate_scev_r): Same.
20690 (instantiate_scev): Same.
20691 (resolve_mixers): Same.
20692 (initialize_scalar_evolutions_analyzer): Same.
20693 (scev_reset_htab): Same.
20694 (scev_reset): Same.
20695 (derive_simple_iv_with_niters): Same.
20696 (simple_iv_with_niters): Same.
20697 (expression_expensive_p): Same.
20698 (final_value_replacement_loop): Same.
20699 * tree-scalar-evolution.h (block_before_loop): Same.
20700 * tree-ssa-address.h: Same.
20701 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20702 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20703 (record_edge_info): Same.
20704 * tree-ssa-live.c (var_map_base_fini): Same.
20705 (remove_unused_locals): Same.
20706 * tree-ssa-live.h: Same.
20707 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20708 (pass_ch_vect::execute): Same.
20709 (pass_ch::process_loop_p): Same.
20710 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20711 (movement_possibility): Same.
20712 (outermost_invariant_loop): Same.
20713 (stmt_cost): Same.
20714 (determine_max_movement): Same.
20715 (invariantness_dom_walker::before_dom_children): Same.
20716 (move_computations): Same.
20717 (may_move_till): Same.
20718 (force_move_till_op): Same.
20719 (force_move_till): Same.
20720 (memref_free): Same.
20721 (record_mem_ref_loc): Same.
20722 (set_ref_stored_in_loop): Same.
20723 (mark_ref_stored): Same.
20724 (sort_bbs_in_loop_postorder_cmp): Same.
20725 (sort_locs_in_loop_postorder_cmp): Same.
20726 (analyze_memory_references): Same.
20727 (mem_refs_may_alias_p): Same.
20728 (find_ref_loc_in_loop_cmp): Same.
20729 (rewrite_mem_ref_loc::operator): Same.
20730 (first_mem_ref_loc_1::operator): Same.
20731 (sm_set_flag_if_changed::operator): Same.
20732 (execute_sm_if_changed_flag_set): Same.
20733 (execute_sm): Same.
20734 (hoist_memory_references): Same.
20735 (ref_always_accessed::operator): Same.
20736 (refs_independent_p): Same.
20737 (record_dep_loop): Same.
20738 (ref_indep_loop_p_1): Same.
20739 (ref_indep_loop_p): Same.
20740 (can_sm_ref_p): Same.
20741 (find_refs_for_sm): Same.
20742 (loop_suitable_for_sm): Same.
20743 (store_motion_loop): Same.
20744 (store_motion): Same.
20745 (fill_always_executed_in): Same.
20746 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20747 (estimated_unrolled_size): Same.
20748 (loop_edge_to_cancel): Same.
20749 (remove_exits_and_undefined_stmts): Same.
20750 (remove_redundant_iv_tests): Same.
20751 (unloop_loops): Same.
20752 (estimated_peeled_sequence_size): Same.
20753 (try_peel_loop): Same.
20754 (canonicalize_loop_induction_variables): Same.
20755 (canonicalize_induction_variables): Same.
20756 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20757 (name_info): Same.
20758 (stmt_after_inc_pos): Same.
20759 (contains_abnormal_ssa_name_p): Same.
20760 (niter_for_exit): Same.
20761 (find_bivs): Same.
20762 (mark_bivs): Same.
20763 (find_givs_in_bb): Same.
20764 (find_induction_variables): Same.
20765 (find_interesting_uses_cond): Same.
20766 (outermost_invariant_loop_for_expr): Same.
20767 (idx_find_step): Same.
20768 (add_candidate_1): Same.
20769 (add_iv_candidate_derived_from_uses): Same.
20770 (alloc_use_cost_map): Same.
20771 (prepare_decl_rtl): Same.
20772 (generic_predict_doloop_p): Same.
20773 (computation_cost): Same.
20774 (determine_common_wider_type): Same.
20775 (get_computation_aff_1): Same.
20776 (get_use_type): Same.
20777 (determine_group_iv_cost_address): Same.
20778 (iv_period): Same.
20779 (difference_cannot_overflow_p): Same.
20780 (may_eliminate_iv): Same.
20781 (determine_set_costs): Same.
20782 (cheaper_cost_pair): Same.
20783 (compare_cost_pair): Same.
20784 (iv_ca_cand_for_group): Same.
20785 (iv_ca_recount_cost): Same.
20786 (iv_ca_set_remove_invs): Same.
20787 (iv_ca_set_no_cp): Same.
20788 (iv_ca_set_add_invs): Same.
20789 (iv_ca_set_cp): Same.
20790 (iv_ca_add_group): Same.
20791 (iv_ca_cost): Same.
20792 (iv_ca_compare_deps): Same.
20793 (iv_ca_delta_reverse): Same.
20794 (iv_ca_delta_commit): Same.
20795 (iv_ca_cand_used_p): Same.
20796 (iv_ca_delta_free): Same.
20797 (iv_ca_new): Same.
20798 (iv_ca_free): Same.
20799 (iv_ca_dump): Same.
20800 (iv_ca_extend): Same.
20801 (iv_ca_narrow): Same.
20802 (iv_ca_prune): Same.
20803 (cheaper_cost_with_cand): Same.
20804 (iv_ca_replace): Same.
20805 (try_add_cand_for): Same.
20806 (get_initial_solution): Same.
20807 (try_improve_iv_set): Same.
20808 (find_optimal_iv_set_1): Same.
20809 (create_new_iv): Same.
20810 (rewrite_use_compare): Same.
20811 (remove_unused_ivs): Same.
20812 (determine_scaling_factor): Same.
20813 * tree-ssa-loop-ivopts.h: Same.
20814 * tree-ssa-loop-manip.c (create_iv): Same.
20815 (compute_live_loop_exits): Same.
20816 (add_exit_phi): Same.
20817 (add_exit_phis): Same.
20818 (find_uses_to_rename_use): Same.
20819 (find_uses_to_rename_def): Same.
20820 (find_uses_to_rename_in_loop): Same.
20821 (rewrite_into_loop_closed_ssa): Same.
20822 (check_loop_closed_ssa_bb): Same.
20823 (split_loop_exit_edge): Same.
20824 (ip_end_pos): Same.
20825 (ip_normal_pos): Same.
20826 (copy_phi_node_args): Same.
20827 (gimple_duplicate_loop_to_header_edge): Same.
20828 (can_unroll_loop_p): Same.
20829 (determine_exit_conditions): Same.
20830 (scale_dominated_blocks_in_loop): Same.
20831 (niter_for_unrolled_loop): Same.
20832 (tree_transform_and_unroll_loop): Same.
20833 (rewrite_all_phi_nodes_with_iv): Same.
20834 * tree-ssa-loop-manip.h: Same.
20835 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20836 (number_of_iterations_ne): Same.
20837 (assert_no_overflow_lt): Same.
20838 (assert_loop_rolls_lt): Same.
20839 (number_of_iterations_lt): Same.
20840 (adjust_cond_for_loop_until_wrap): Same.
20841 (tree_simplify_using_condition): Same.
20842 (simplify_using_initial_conditions): Same.
20843 (simplify_using_outer_evolutions): Same.
20844 (loop_only_exit_p): Same.
20845 (ssa_defined_by_minus_one_stmt_p): Same.
20846 (number_of_iterations_popcount): Same.
20847 (number_of_iterations_exit): Same.
20848 (find_loop_niter): Same.
20849 (finite_loop_p): Same.
20850 (chain_of_csts_start): Same.
20851 (get_val_for): Same.
20852 (loop_niter_by_eval): Same.
20853 (derive_constant_upper_bound_ops): Same.
20854 (do_warn_aggressive_loop_optimizations): Same.
20855 (record_estimate): Same.
20856 (get_cst_init_from_scev): Same.
20857 (record_nonwrapping_iv): Same.
20858 (idx_infer_loop_bounds): Same.
20859 (infer_loop_bounds_from_ref): Same.
20860 (infer_loop_bounds_from_array): Same.
20861 (infer_loop_bounds_from_pointer_arith): Same.
20862 (infer_loop_bounds_from_signedness): Same.
20863 (bound_index): Same.
20864 (discover_iteration_bound_by_body_walk): Same.
20865 (maybe_lower_iteration_bound): Same.
20866 (estimate_numbers_of_iterations): Same.
20867 (estimated_loop_iterations): Same.
20868 (estimated_loop_iterations_int): Same.
20869 (max_loop_iterations): Same.
20870 (max_loop_iterations_int): Same.
20871 (likely_max_loop_iterations): Same.
20872 (likely_max_loop_iterations_int): Same.
20873 (estimated_stmt_executions_int): Same.
20874 (max_stmt_executions): Same.
20875 (likely_max_stmt_executions): Same.
20876 (estimated_stmt_executions): Same.
20877 (stmt_dominates_stmt_p): Same.
20878 (nowrap_type_p): Same.
20879 (loop_exits_before_overflow): Same.
20880 (scev_var_range_cant_overflow): Same.
20881 (scev_probably_wraps_p): Same.
20882 (free_numbers_of_iterations_estimates): Same.
20883 * tree-ssa-loop-niter.h: Same.
20884 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20885 (idx_analyze_ref): Same.
20886 (analyze_ref): Same.
20887 (gather_memory_references_ref): Same.
20888 (mark_nontemporal_store): Same.
20889 (emit_mfence_after_loop): Same.
20890 (may_use_storent_in_loop_p): Same.
20891 (mark_nontemporal_stores): Same.
20892 (should_unroll_loop_p): Same.
20893 (volume_of_dist_vector): Same.
20894 (add_subscript_strides): Same.
20895 (self_reuse_distance): Same.
20896 (insn_to_prefetch_ratio_too_small_p): Same.
20897 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20898 (patch_loop_exit): Same.
20899 (find_or_create_guard_phi): Same.
20900 (easy_exit_values): Same.
20901 (connect_loop_phis): Same.
20902 (connect_loops): Same.
20903 (compute_new_first_bound): Same.
20904 (split_loop): Same.
20905 (tree_ssa_split_loops): Same.
20906 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20907 (is_maybe_undefined): Same.
20908 (tree_may_unswitch_on): Same.
20909 (simplify_using_entry_checks): Same.
20910 (tree_unswitch_single_loop): Same.
20911 (tree_unswitch_loop): Same.
20912 (tree_unswitch_outer_loop): Same.
20913 (empty_bb_without_guard_p): Same.
20914 (used_outside_loop_p): Same.
20915 (get_vop_from_header): Same.
20916 (hoist_guard): Same.
20917 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20918 (get_lsm_tmp_name): Same.
20919 * tree-ssa-loop.h: Same.
20920 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20921 (build_and_add_sum): Same.
20922 (no_side_effect_bb): Same.
20923 (get_ops): Same.
20924 (linearize_expr): Same.
20925 (should_break_up_subtract): Same.
20926 (linearize_expr_tree): Same.
20927 * tree-ssa-scopedtables.c: Same.
20928 * tree-ssa-scopedtables.h: Same.
20929 * tree-ssa-structalias.c (condense_visit): Same.
20930 (label_visit): Same.
20931 (dump_pred_graph): Same.
20932 (perform_var_substitution): Same.
20933 (move_complex_constraints): Same.
20934 (remove_preds_and_fake_succs): Same.
20935 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20936 (determine_bb_domination_status): Same.
20937 (duplicate_thread_path): Same.
20938 (thread_through_all_blocks): Same.
20939 * tree-ssa-threadupdate.h: Same.
20940 * tree-streamer-in.c (streamer_read_string_cst): Same.
20941 (input_identifier): Same.
20942 (unpack_ts_type_common_value_fields): Same.
20943 (unpack_ts_block_value_fields): Same.
20944 (unpack_ts_translation_unit_decl_value_fields): Same.
20945 (unpack_ts_omp_clause_value_fields): Same.
20946 (streamer_read_tree_bitfields): Same.
20947 (streamer_alloc_tree): Same.
20948 (lto_input_ts_common_tree_pointers): Same.
20949 (lto_input_ts_vector_tree_pointers): Same.
20950 (lto_input_ts_poly_tree_pointers): Same.
20951 (lto_input_ts_complex_tree_pointers): Same.
20952 (lto_input_ts_decl_minimal_tree_pointers): Same.
20953 (lto_input_ts_decl_common_tree_pointers): Same.
20954 (lto_input_ts_decl_non_common_tree_pointers): Same.
20955 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20956 (lto_input_ts_field_decl_tree_pointers): Same.
20957 (lto_input_ts_function_decl_tree_pointers): Same.
20958 (lto_input_ts_type_common_tree_pointers): Same.
20959 (lto_input_ts_type_non_common_tree_pointers): Same.
20960 (lto_input_ts_list_tree_pointers): Same.
20961 (lto_input_ts_vec_tree_pointers): Same.
20962 (lto_input_ts_exp_tree_pointers): Same.
20963 (lto_input_ts_block_tree_pointers): Same.
20964 (lto_input_ts_binfo_tree_pointers): Same.
20965 (lto_input_ts_constructor_tree_pointers): Same.
20966 (lto_input_ts_omp_clause_tree_pointers): Same.
20967 (streamer_read_tree_body): Same.
20968 * tree-streamer.h: Same.
20969 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20970 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20971 (vect_analyze_possibly_independent_ddr): Same.
20972 (vect_analyze_data_ref_dependence): Same.
20973 (vect_compute_data_ref_alignment): Same.
20974 (vect_enhance_data_refs_alignment): Same.
20975 (vect_analyze_data_ref_access): Same.
20976 (vect_check_gather_scatter): Same.
20977 (vect_find_stmt_data_reference): Same.
20978 (vect_create_addr_base_for_vector_ref): Same.
20979 (vect_setup_realignment): Same.
20980 (vect_supportable_dr_alignment): Same.
20981 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20982 (adjust_phi_and_debug_stmts): Same.
20983 (vect_set_loop_mask): Same.
20984 (add_preheader_seq): Same.
20985 (vect_maybe_permute_loop_masks): Same.
20986 (vect_set_loop_masks_directly): Same.
20987 (vect_set_loop_condition_masked): Same.
20988 (vect_set_loop_condition_unmasked): Same.
20989 (slpeel_duplicate_current_defs_from_edges): Same.
20990 (slpeel_add_loop_guard): Same.
20991 (slpeel_can_duplicate_loop_p): Same.
20992 (create_lcssa_for_virtual_phi): Same.
20993 (iv_phi_p): Same.
20994 (vect_update_ivs_after_vectorizer): Same.
20995 (vect_gen_vector_loop_niters_mult_vf): Same.
20996 (slpeel_update_phi_nodes_for_loops): Same.
20997 (slpeel_update_phi_nodes_for_guard1): Same.
20998 (find_guard_arg): Same.
20999 (slpeel_update_phi_nodes_for_guard2): Same.
21000 (slpeel_update_phi_nodes_for_lcssa): Same.
21001 (vect_do_peeling): Same.
21002 (vect_create_cond_for_alias_checks): Same.
21003 (vect_loop_versioning): Same.
21004 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21005 (vect_inner_phi_in_double_reduction_p): Same.
21006 (vect_analyze_scalar_cycles_1): Same.
21007 (vect_fixup_scalar_cycles_with_patterns): Same.
21008 (vect_get_loop_niters): Same.
21009 (bb_in_loop_p): Same.
21010 (vect_get_max_nscalars_per_iter): Same.
21011 (vect_verify_full_masking): Same.
21012 (vect_compute_single_scalar_iteration_cost): Same.
21013 (vect_analyze_loop_form_1): Same.
21014 (vect_analyze_loop_form): Same.
21015 (vect_active_double_reduction_p): Same.
21016 (vect_analyze_loop_operations): Same.
21017 (neutral_op_for_slp_reduction): Same.
21018 (vect_is_simple_reduction): Same.
21019 (vect_model_reduction_cost): Same.
21020 (get_initial_def_for_reduction): Same.
21021 (get_initial_defs_for_reduction): Same.
21022 (vect_create_epilog_for_reduction): Same.
21023 (vectorize_fold_left_reduction): Same.
21024 (vectorizable_reduction): Same.
21025 (vectorizable_induction): Same.
21026 (vectorizable_live_operation): Same.
21027 (loop_niters_no_overflow): Same.
21028 (vect_get_loop_mask): Same.
21029 (vect_transform_loop_stmt): Same.
21030 (vect_transform_loop): Same.
21031 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21032 (vect_determine_precisions): Same.
21033 (vect_pattern_recog_1): Same.
21034 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21035 * tree-vect-stmts.c (stmt_vectype): Same.
21036 (process_use): Same.
21037 (vect_init_vector_1): Same.
21038 (vect_truncate_gather_scatter_offset): Same.
21039 (get_group_load_store_type): Same.
21040 (vect_build_gather_load_calls): Same.
21041 (vect_get_strided_load_store_ops): Same.
21042 (vectorizable_simd_clone_call): Same.
21043 (vectorizable_store): Same.
21044 (permute_vec_elements): Same.
21045 (vectorizable_load): Same.
21046 (vect_transform_stmt): Same.
21047 (supportable_widening_operation): Same.
21048 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21049 (vec_info::free_stmt_vec_info): Same.
21050 (vect_free_loop_info_assumptions): Same.
21051 (vect_loop_vectorized_call): Same.
21052 (set_uid_loop_bbs): Same.
21053 (vectorize_loops): Same.
21054 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21055 * tree.c (add_tree_to_fld_list): Same.
21056 (fld_type_variant_equal_p): Same.
21057 (fld_decl_context): Same.
21058 (fld_incomplete_type_of): Same.
21059 (free_lang_data_in_binfo): Same.
21060 (need_assembler_name_p): Same.
21061 (find_decls_types_r): Same.
21062 (get_eh_types_for_runtime): Same.
21063 (find_decls_types_in_eh_region): Same.
21064 (find_decls_types_in_node): Same.
21065 (assign_assembler_name_if_needed): Same.
21066 * value-prof.c (stream_out_histogram_value): Same.
21067 * value-prof.h: Same.
21068 * var-tracking.c (use_narrower_mode): Same.
21069 (prepare_call_arguments): Same.
21070 (vt_expand_loc_callback): Same.
21071 (resolve_expansions_pending_recursion): Same.
21072 (vt_expand_loc): Same.
21073 * varasm.c (const_hash_1): Same.
21074 (compare_constant): Same.
21075 (tree_output_constant_def): Same.
21076 (simplify_subtraction): Same.
21077 (get_pool_constant): Same.
21078 (output_constant_pool_2): Same.
21079 (output_constant_pool_1): Same.
21080 (mark_constants_in_pattern): Same.
21081 (mark_constant_pool): Same.
21082 (get_section_anchor): Same.
21083 * vr-values.c (compare_range_with_value): Same.
21084 (vr_values::extract_range_from_phi_node): Same.
21085 * vr-values.h: Same.
21086 * web.c (unionfind_union): Same.
21087 * wide-int.h: Same.
21088
21089 2019-07-09 Martin Sebor <msebor@redhat.com>
21090
21091 PR c++/61339
21092 * align.h: Change class-key from class to struct and vice versa
21093 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21094 * alloc-pool.h: Same.
21095 * asan.c (shadow_mem_size): Same.
21096 * auto-profile.c: Same.
21097 * basic-block.h: Same.
21098 * bitmap.h: Same.
21099 * cfgexpand.c (set_rtl): Same.
21100 (expand_one_stack_var_at): Same.
21101 * cfghooks.h: Same.
21102 * cfgloop.h: Same.
21103 * cgraph.h: Same.
21104 * config/i386/i386.h: Same.
21105 * df-problems.c (df_print_bb_index): Same.
21106 * df-scan.c: Same.
21107 * df.h (df_single_use): Same.
21108 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21109 (layout::annotation_line_showed_range_p): Same.
21110 (get_printed_columns): Same.
21111 (correction::ensure_terminated): Same.
21112 (line_corrections::~line_corrections): Same.
21113 * dojump.h: Same.
21114 * dse.c: Same.
21115 * dump-context.h: Same.
21116 * dumpfile.h: Same.
21117 * dwarf2out.c: Same.
21118 * edit-context.c: Same.
21119 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21120 * flags.h: Same.
21121 * function.c (assign_stack_local): Same.
21122 * function.h: Same.
21123 * gcc.c: Same.
21124 * gcov.c (block_info::block_info): Same.
21125 * genattrtab.c: Same.
21126 * genextract.c: Same.
21127 * genmatch.c (comparison_code_p): Same.
21128 (id_base::id_base): Same.
21129 (decision_tree::print): Same.
21130 * genoutput.c: Same.
21131 * genpreds.c (write_one_predicate_function): Same.
21132 * genrecog.c (validate_pattern): Same.
21133 (find_operand_positions): Same.
21134 (optimize_subroutine_group): Same.
21135 (merge_pattern_transition::merge_pattern_transition): Same.
21136 (merge_pattern_info::merge_pattern_info): Same.
21137 (merge_state_result::merge_state_result): Same.
21138 (merge_into_state): Same.
21139 * gensupport.c: Same.
21140 * gensupport.h: Same.
21141 * ggc-common.c (init_ggc_heuristics): Same.
21142 * ggc-tests.c (test_union): Same.
21143 * gimple-loop-interchange.cc (dump_induction): Same.
21144 * gimple-loop-versioning.cc: Same.
21145 * gimple-match.h (gimple_match_cond::any_else): Same.
21146 * gimple-ssa-backprop.c: Same.
21147 * gimple-ssa-sprintf.c: Same.
21148 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21149 Same.
21150 (store_immediate_info::store_immediate_info): Same.
21151 (merged_store_group::apply_stores): Same.
21152 (get_location_for_stmts): Same.
21153 * gimple-ssa-strength-reduction.c: Same.
21154 * gimple-ssa-warn-alloca.c: Same.
21155 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21156 * godump.c (go_type_decl): Same.
21157 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21158 * hash-map.h: Same.
21159 * hash-set-tests.c (test_set_of_strings): Same.
21160 * hsa-brig.c: Same.
21161 * hsa-common.h: Same.
21162 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21163 * input.c (assert_loceq): Same.
21164 * input.h: Same.
21165 * ipa-cp.c: Same.
21166 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21167 * ipa-fnsummary.h: Same.
21168 * ipa-inline.h: Same.
21169 * ipa-prop.h: Same.
21170 * ipa-split.c (visit_bb): Same.
21171 * ira-int.h (minmax_set_iter_next): Same.
21172 * loop-invariant.c: Same.
21173 * loop-iv.c: Same.
21174 * lra-eliminations.c: Same.
21175 * lra-int.h: Same.
21176 * lra-lives.c (mark_regno_dead): Same.
21177 * lra-remat.c: Same.
21178 * lra-spills.c: Same.
21179 * lto-streamer.h: Same.
21180 * mem-stats.h: Same.
21181 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21182 * omp-low.c (omp_clause_aligned_alignment): Same.
21183 * optabs-query.h (get_vcond_eq_icode): Same.
21184 * optabs.h: Same.
21185 * opts.c (wrap_help): Same.
21186 * poly-int.h: Same.
21187 * predict.c (predict_paths_leading_to_edge): Same.
21188 * pretty-print.h: Same.
21189 * profile-count.h: Same.
21190 * read-md.h: Same.
21191 * read-rtl-function.c: Same.
21192 * ree.c: Same.
21193 * reginfo.c: Same.
21194 * regrename.c: Same.
21195 * regrename.h: Same.
21196 * reload.h: Same.
21197 * rtl-iter.h: Same.
21198 * rtl.h (costs_add_n_insns): Same.
21199 * sanopt.c: Same.
21200 * sched-int.h: Same.
21201 * sel-sched-ir.h: Same.
21202 * selftest.h: Same.
21203 * sese.h (vec_find): Same.
21204 * stmt.c: Same.
21205 * target-globals.h: Same.
21206 * tree-affine.c (aff_combination_find_elt): Same.
21207 * tree-affine.h: Same.
21208 * tree-data-ref.h: Same.
21209 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21210 * tree-predcom.c: Same.
21211 * tree-scalar-evolution.c (find_var_scev_info): Same.
21212 * tree-ssa-alias.h: Same.
21213 * tree-ssa-ccp.c: Same.
21214 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21215 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21216 (rewrite_mem_refs): Same.
21217 (execute_sm_if_changed): Same.
21218 (hoist_memory_references): Same.
21219 * tree-ssa-loop-ivopts.c (operator<=): Same.
21220 * tree-ssa-loop.h: Same.
21221 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21222 * tree-ssa-structalias.c: Same.
21223 * tree-switch-conversion.h (cluster::cluster): Same.
21224 (simple_cluster::simple_cluster): Same.
21225 * tree-vect-patterns.c (type_conversion_p): Same.
21226 * tree-vectorizer.c (dump_stmt_cost): Same.
21227 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21228 * tree.c (protected_set_expr_location): Same.
21229 * tree.h (desired_pro_or_demotion_p): Same.
21230 (fndecl_built_in_p): Same.
21231 * unique-ptr-tests.cc: Same.
21232 * var-tracking.c (delete_variable_part): Same.
21233 * varasm.c (assemble_real): Same.
21234 (tree_output_constant_def): Same.
21235 * vec.c: Same.
21236 * wide-int-bitmask.h: Same.
21237 * wide-int.h (decompose): Same.
21238
21239 2019-07-09 Richard Biener <rguenther@suse.de>
21240
21241 PR tree-optimization/91114
21242 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21243 find a vector type isn't fatal.
21244
21245 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21246
21247 * config/aarch64/aarch64-simd.md
21248 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21249 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21250 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21251 (*aarch64_crypto_aese_fused,
21252 *aarch64_crypto_aesd_fused): Update to new definition.
21253 * config/aarch64/aarch64.c
21254 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21255
21256 2019-07-09 Richard Biener <rguenther@suse.de>
21257
21258 * gimple-match.h (gimple_match_op::resimplify): New.
21259 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21260 gimple_resimplify4, gimple_resimplify5): Remove.
21261 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21262 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21263 Make static.
21264 (gimple_match_op::resimplify): New.
21265 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21266 according to availability. Use gimple_match_op::resimplify.
21267
21268 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21269
21270 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21271
21272 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21273
21274 * config/arm/crypto.md:
21275 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21276 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21277 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21278 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21279 * config/arm/arm.c
21280 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21281 * config/arm/aarch-common-protos.h
21282 (aarch_crypto_can_dual_issue): Remove.
21283 * config/arm/aarch-common.c
21284 (aarch_crypto_can_dual_issue): Likewise.
21285 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21286 * config/arm/cortex-a53.md: Likewise.
21287 * config/arm/cortex-a57.md: Likewise.
21288 * config/arm/iterators.md:
21289 (CRYPTO_BINARY): Redefine.
21290 (CRYPTO_UNARY): Removed.
21291 (CRYPTO_AES, CRYPTO_AESMC): New.
21292
21293 2019-07-09 Richard Biener <rguenther@suse.de>
21294
21295 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21296 (vn_reference_lookup_3): If the main ref has no access path recorded
21297 but orig_ref has use it to do access-path based disambiguation.
21298 (vn_reference_lookup_pieces): Adjust.
21299 (vn_reference_lookup): Pass down original ref if we valueized.
21300
21301 2019-07-09 Martin Liska <mliska@suse.cz>
21302
21303 * doc/extend.texi: Document influence on loop
21304 optimizers.
21305
21306 2019-07-09 Martin Liska <mliska@suse.cz>
21307
21308 * lto-compress.c (lto_normalized_zstd_level): Do not use
21309 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21310 of libzstd. One can use 0 as a default compression level.
21311
21312 2019-07-09 Martin Liska <mliska@suse.cz>
21313
21314 * doc/invoke.texi: Add link from -fprofile-dir option.
21315 Use better wording for 'gcno filename'.
21316
21317 2019-07-08 Martin Sebor <msebor@redhat.com>
21318
21319 PR middle-end/71924
21320 PR middle-end/90549
21321 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21322 comment.
21323 (args_loc_t): New type.
21324 (args_loc_t, locmap_t): same.
21325 (diag_returned_locals): New function.
21326 (is_addr_local): Same.
21327 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21328 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21329 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21330
21331 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21332
21333 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21334 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21335 and casts in offset when different, both through gimple stmts
21336 and through trees. Rewritten using loops to minimize code duplication
21337 for each operand.
21338
21339 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21340
21341 * emit-rtl.c (set_insn_locations): New function moved from...
21342 * function.c (set_insn_locations): ...here.
21343 * ira-emit.c (emit_moves): Propagate location of the first instruction
21344 to the inserted move instructions.
21345 * reg-stack.c (compensate_edge): Set the location if the sequence is
21346 inserted on the edge.
21347 * rtl.h (set_insn_locations): Declare.
21348
21349 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21350
21351 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21352 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21353 .machine string.
21354
21355 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21356
21357 PR rtl-optimization/88233
21358 * common.opt (fsplit-wide-types-early): New option.
21359 * common/config/rs6000/rs6000-common.c
21360 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21361 OPT_LEVELS_ALL.
21362 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21363 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21364 flag_split_wide_types_early.
21365 (pass_data_lower_subreg3): New.
21366 (pass_lower_subreg3): New.
21367 (make_pass_lower_subreg3): New.
21368 * passes.def (pass_lower_subreg2): Move after the loop passes.
21369 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21370 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21371 the pass pipeline; its previous place is taken by ...
21372 (make_pass_lower_subreg3): ... this.
21373
21374 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21375
21376 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21377 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21378
21379 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21380
21381 * config/s390/constraints.md: Add new jsc constraint.
21382 * config/s390/predicates.md: New predicates.
21383 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21384 * config/s390/s390.c (s390_valid_shift_count): New function.
21385 (print_shift_count_operand): Use s390_valid_shift_count.
21386 (print_operand): Likewise.
21387 * config/s390/s390.md: Use new predicate.
21388 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21389 * config/s390/vector.md: Use new predicate.
21390
21391 2019-07-08 Andrew Waterman <andrew@sifive.com>
21392 Jim Wilson <jimw@sifive.com>
21393
21394 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21395 bitsize instead of BITS_PER_WORD.
21396
21397 2019-07-08 Martin Liska <mliska@suse.cz>
21398
21399 * collect2.c (defined): Revert to before r254460.
21400 (scan_prog_file): Revert to before r254460.
21401
21402 2019-07-08 Richard Biener <rguenther@suse.de>
21403
21404 PR tree-optimization/83518
21405 * tree-ssa-sccvn.c: Include splay-tree.h.
21406 (struct pd_range, struct pd_data): New.
21407 (struct vn_walk_cb_data): Add data to track partial definitions.
21408 (vn_walk_cb_data::~vn_walk_cb_data): New.
21409 (vn_walk_cb_data::push_partial_def): New.
21410 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21411 (vn_reference_lookup_2): When partial defs are registered give up.
21412 (vn_reference_lookup_3): Track partial defs for memset and
21413 constructor zeroing and for defs from constants.
21414
21415 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21416
21417 * doc/install.texi (bootstrap-Og): Document.
21418
21419 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21420
21421 * config/riscv/pic.md (*local_pic_load_s<mode>)
21422 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21423 referenced by <mode>, giving...
21424 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21425 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21426 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21427 use <X:MODE> for the mode attribute.
21428
21429 2019-07-07 Jeff Law <law@redhat.com>
21430
21431 PR tree-optimization/91090
21432 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21433 in handling of ranges to simplify switch statements.
21434
21435 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21436
21437 * config/darwin.c (darwin_override_options): Make a final check on PIC
21438 options.
21439
21440 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21441
21442 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21443 on for kernel code.
21444
21445 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21446
21447 PR target/91068
21448 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21449 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21450 instead of matching them to "l" output operands.
21451
21452 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21453
21454 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21455 and check whether addr.reg is nonnull before using it.
21456
21457 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21458
21459 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21460 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21461 variable(s). For conditional lastprivate look through outer
21462 GIMPLE_OMP_SCAN context.
21463 (lower_omp_1): For conditional lastprivate look through outer
21464 GIMPLE_OMP_SCAN context.
21465
21466 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21467 member to combined_into_simd_safelen1.
21468 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21469 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21470 clauses if ctx->combined_into_simd_safelen1 put statements after the
21471 predicate conditionalized block rather than into it.
21472
21473 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21474
21475 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21476 operand 1.
21477 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21478 Make the choice of <mode> explicit, giving...
21479 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21480
21481 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21482
21483 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21484 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21485 of .md attributes.
21486 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21487 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21488 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21489 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21490 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21491 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21492 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21493 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21494 (*avx512f_scatterdi<mode>): Likewise.
21495 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21496
21497 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21498
21499 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21500 specify the mode iterator referenced by <mode>, giving...
21501 (*push1_h8300hs_<QHI:mode>): ...this.
21502
21503 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21504
21505 * config/gcn/gcn-valu.md
21506 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21507 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21508 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21509 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21510 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21511 but using the _exec comparison patterns.
21512 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21513 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21514 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21515 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21516 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21517 but using the _exec comparison patterns.
21518
21519 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21520
21521 * config/arm/sync.md
21522 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21523 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21524 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21525 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21526 <SIDI:cas_cmp_str>.
21527
21528 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21529
21530 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21531 (maybe_lookup_ctx): Add forward declaration.
21532 (omp_find_scan): Likewise. Walk into body of simd if composited
21533 with worksharing loop.
21534 (scan_omp_simd_scan): New function.
21535 (scan_omp_1_stmt): Call it.
21536 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21537 ctx->for_simd_scan_phase.
21538 (lower_rec_input_clauses): Do much less work for inscan reductions
21539 in ctx->for_simd_scan_phase is_simd regions.
21540 (lower_omp_scan): Set is_simd also on simd constructs composited
21541 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21542 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21543 emit their body after in simd constructs composited with worksharing
21544 loop.
21545 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21546
21547 * omp-low.c (omp_find_scan): Make static.
21548 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21549 the second loop, var2 represents the first partial sum and so needs
21550 to go before rprivb[ivar].
21551
21552 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21553
21554 * config/rs6000/rs6000-logue.c: Remove unused code.
21555
21556 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21557
21558 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21559
21560 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21561
21562 PR target/90712
21563 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21564 check with a frame laid out check.
21565
21566 2019-07-05 Richard Biener <rguenther@suse.de>
21567
21568 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21569 when comparing against a store with possibly the same value.
21570
21571 2019-07-05 Richard Biener <rguenther@suse.de>
21572
21573 PR tree-optimization/91091
21574 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21575 (walk_non_aliased_vuses): Likewise.
21576 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21577 (get_continuation_for_phi): New tbaa_p parameter and pass
21578 it down.
21579 (walk_non_aliased_vuses): Likewise.
21580 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21581 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21582 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21583 Likewise.
21584 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21585 (adjust_offsets_for_equal_base_address): New function.
21586 (vn_reference_lookup_3): Use it to catch more base equivalences.
21587 Handle and pass down tbaa_p flag.
21588 (vn_reference_lookup_pieces): Adjust.
21589 (vn_reference_lookup): Remove alias-set altering, instead pass
21590 down false as tbaa_p.
21591
21592 2019-07-05 Richard Biener <rguenther@suse.de>
21593
21594 PR tree-optimization/91091
21595 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21596 accesses can happen with -fno-strict-aliasing.
21597
21598 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21599
21600 * tree-ssa-alias.c (alias_stats): Add
21601 nonoverlapping_component_refs_since_match_p_must_overlap.
21602 (dump_alias_stats): Print it.
21603 (nonoverlapping_component_refs_since_match_p): Add early exit.
21604 (nonoverlapping_component_refs_p): Do not account early exit.
21605
21606 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21607
21608 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21609 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21610 (emit_eh_dispatch): Delete.
21611 (lower_catch): Emit the eh_dispatch manually and set the location of
21612 the first catch statement onto it.
21613 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21614 (lower_eh_dispatch): Propagate location.
21615 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21616 (eliminate_build): Likewise.
21617
21618 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21619
21620 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21621 phi nodes if possible.
21622 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21623 location info on the newly created statement.
21624 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21625 newly created increment if needed.
21626
21627 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21628
21629 PR middle-end/78884
21630 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21631 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21632 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21633 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21634 ctx->add_safelen1 is set.
21635
21636 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21637 GOMP_loop_start at the start of second worksharing loop in a scan.
21638 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21639 worksharing loop in a scan even if there are conditional lastprivates,
21640 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21641
21642 2019-07-04 Jan Hubicka <jh@suse.cz>
21643
21644 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21645 Fix check for match in the ref walk.
21646
21647 2019-07-04 Martin Liska <mliska@suse.cz>
21648
21649 * tree-ssa-loop-niter.c
21650 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21651 (estimate_numbers_of_iterations):
21652 Support __builtin_expect_with_probability for analysis
21653 of # of loop iterations.
21654
21655 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21656
21657 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21658 * except.c: Likewise.
21659 * expr.c (expand_expr_real_1): Reject it.
21660 * gimplify.c (gimplify_expr): Gimplify it, within
21661 TRY_FINALLY_EXPR.
21662 * tree-dump.c (dequeue_and_dump): Dump it.
21663 * tree-pretty-print.c (dump_generic_node): Likewise.
21664 * tree.c (block_may_fallthru): Handle it.
21665 * tree.def (EH_ELSE_EXPR): Introduce it.
21666 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21667 with GIMPLE_EH_ELSE as try/finally/else.
21668
21669 2019-07-04 Richard Biener <rguenther@suse.de>
21670
21671 PR ipa/91062
21672 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21673 parameter whether to disable GC collection.
21674 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21675 honor it.
21676 (execute_all_ipa_transforms): Likewise and pass it down.
21677 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21678 collection from applying IPA transforms.
21679 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21680 from applying IPA transforms.
21681
21682 2019-07-04 Richard Biener <rguenther@suse.de>
21683
21684 PR tree-optimization/90911
21685 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21686 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21687 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21688 scalar_loop_scaling.
21689 (vect_transform_loop): Scale scalar loop profile if needed.
21690 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21691 the loop copy from if-conversion adjust edge probabilities
21692 and scale the vectorized loop body profile, queue the scalar
21693 profile for updating after peeling.
21694
21695 2019-07-04 Jan Hubicka <jh@suse.cz>
21696
21697 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21698 parameters; return early for must-alias.
21699 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21700 outer types match, try nonoverlapping_component_refs
21701 if must-alias is not obvious.
21702 (indirect_refs_may_alias_p): Likewise.
21703 (refs_may_alias_p_2): Likewise.
21704
21705 2019-07-04 Richard Biener <rguenther@suse.de>
21706
21707 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21708 argument.
21709 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21710 globals into...
21711 (struct vn_walk_cb_data): New callback data struct.
21712 (vn_reference_lookup_2): Adjust.
21713 (vn_reference_lookup_3): Likewise.
21714 (vn_reference_lookup_pieces): Likewise.
21715 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21716 (visit_reference_op_load): Adjust.
21717
21718 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21719
21720 PR tree-optimization/91063
21721 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21722 stmt from stmts sequence before calling vect_init_vector_1.
21723 Formatting fix.
21724
21725 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21726
21727 PR target/88833
21728 * fwprop.c (reg_single_def_p): New function.
21729 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21730 (forward_propagate_into): New parameter reg_prop_only
21731 with default value false.
21732 Propagate def's src into loop only if SET_SRC and SET_DEST
21733 of def_set have single definitions.
21734 Likewise if reg_prop_only is set to true.
21735 (fwprop): New param fwprop_addr_p.
21736 Integrate fwprop_addr into fwprop.
21737 (fwprop_addr): Remove.
21738 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21739 to true.
21740 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21741 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21742 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21743
21744 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21745
21746 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21747 in worksharing loop scans.
21748
21749 PR tree-optimization/91074
21750 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21751 temporary.
21752
21753 PR rtl-optimization/90756
21754 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21755 for VECTOR_TYPE_P.
21756
21757 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21758
21759 * config/aarch64/aarch64.md: Remove redundant constraints from
21760 define_expand but keep some patterns untouched if they are
21761 specially selected by TARGET_SECONDARY_RELOAD hook.
21762 * config/aarch64/aarch64-sve.md: Likewise.
21763 * config/aarch64/atomics.md: Remove redundant constraints from
21764 define_expand.
21765 * config/aarch64/aarch64-simd.md: Likewise.
21766
21767 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21768
21769 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21770 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21771 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21772 clauses.
21773 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21774 DARWIN_NOPIE_SPEC.
21775
21776 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21777
21778 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21779 (STARTFILE_SPEC): Split crt3 into a separate spec.
21780 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21781 (DARWIN_CRT2_SPEC): New.
21782 (DARWIN_CRT3_SPEC): New.
21783 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21784 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21785 (DARWIN_CRT3_SPEC): New.
21786
21787 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21788
21789 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21790 Change the RTL attribute "length" from "4" to "*" to allow the
21791 length attribute to be adjusted automatically for prefixed load,
21792 store, and add immediate instructions.
21793 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21794 Likewise.
21795 (extendsi<mode>2, EXTSI iterator): Likewise.
21796 (movsi_internal1): Likewise.
21797 (movsi_from_sf): Likewise.
21798 (movdi_from_sf_zero_ext): Likewise.
21799 (mov<mode>_internal): Likewise.
21800 (movcc_internal1, QHI iterator): Likewise.
21801 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21802 (movsf_from_si): Likewise.
21803 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21804 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21805 (mov<mode>, FMOVE128 iterator): Likewise.
21806 (movdi_internal64): Likewise.
21807 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21808 Likewise.
21809 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21810 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21811 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21812 (vsx_splat_v4sf): Likewise.
21813
21814 2019-07-03 Mark Wielaard <mark@klomp.org>
21815
21816 PR debug/90981
21817 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21818 DW_AT_addr_base if there is actually a .debug_addr section with
21819 addresses.
21820 (output_addr_table): Add DWARF5 table header generation here after
21821 checking there are actually any addresses from...
21822 (dwarf2out_finish): ...here.
21823
21824 2019-07-03 Richard Biener <rguenther@suse.de>
21825
21826 PR middle-end/91069
21827 * match.pd (vec_perm -> bit_insert): Fix element read from
21828 first vector.
21829
21830 2019-07-03 Martin Liska <mliska@suse.cz>
21831
21832 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21833 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21834 condition.
21835 * generic-match-head.c: Include dbgcnt.h.
21836 * gimple-match-head.c: Likewise.
21837
21838 2019-07-03 Martin Liska <mliska@suse.cz>
21839
21840 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21841 (GCOV_COUNTER_V_TOPN): New.
21842 (GCOV_COUNTER_V_INDIR): Use _topn.
21843 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21844 (GCOV_TOPN_VALUES): New.
21845 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21846 (GCOV_TOPN_VALUES_COUNTERS): New.
21847 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21848 * tree-profile.c:
21849 (gimple_init_gcov_profiler): Rename variables from one_value
21850 to topn_values.
21851 (gimple_gen_one_value_profiler): Remove.
21852 (gimple_gen_topn_values_profiler): New function.
21853 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21854 names instead of SINGLE_VALUE.
21855 (stream_out_histogram_value): Likewise.
21856 (stream_in_histogram_value): Likewise.
21857 (get_most_common_single_value): Likewise.
21858 (gimple_divmod_fixed_value_transform): Likewise.
21859 (gimple_stringops_transform): Likewise.
21860 (gimple_divmod_values_to_profile): Likewise.
21861 (gimple_stringops_values_to_profile): Likewise.
21862 (gimple_find_values_to_profile): Likewise.
21863 * value-prof.h (enum hist_type): Rename to TOPN.
21864 (gimple_gen_one_value_profiler): Remove.
21865 (gimple_gen_topn_values_profiler): New.
21866
21867 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21868
21869 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21870 if it has the DW_AT_data_member_location attribute.
21871
21872 2019-07-03 Richard Biener <rguenther@suse.de>
21873
21874 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21875 dumping.
21876
21877 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21878
21879 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21880 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21881 (tlsdesc_small_sve_<mode>): Likewise.
21882
21883 2019-07-03 Martin Liska <mliska@suse.cz>
21884
21885 * Makefile.in: Define ZSTD_LIB.
21886 * common.opt: Adjust compression level
21887 to support also zstd levels.
21888 * config.in: Regenerate.
21889 * configure: Likewise.
21890 * configure.ac: Add --with-zstd and --with-zstd-include options
21891 and detect ZSTD.
21892 * doc/install.texi: Mention zstd dependency.
21893 * gcc.c: Print supported LTO compression algorithms.
21894 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21895 (lto_compression_zstd): Likewise.
21896 (lto_uncompression_zstd): Likewise.
21897 (lto_end_compression): Dispatch in between zlib and zstd.
21898 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21899 (lto_uncompression_zlib): Make it static.
21900 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21901 * lto-section-in.c (lto_get_section_data): Pass info
21902 about used compression.
21903 * lto-streamer-out.c: By default use zstd when possible.
21904 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21905 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21906
21907 2019-07-03 Martin Liska <mliska@suse.cz>
21908
21909 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21910 * lto-section-out.c (lto_destroy_simple_output_block): Never
21911 compress LTO_section_lto section.
21912 * lto-streamer-out.c (produce_asm): Do not set major_version
21913 and minor_version.
21914 (lto_output_toplevel_asms): Likewise.
21915 (produce_lto_section): New function.
21916 (lto_output): Call produce_lto_section.
21917 (lto_write_mode_table): Do not set major_version and
21918 minor_version.
21919 (produce_asm_for_decls): Likewise.
21920 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21921 type.
21922 (struct lto_header): Remove.
21923 (struct lto_section): New struct.
21924 (struct lto_simple_header): Do not inherit from lto_header.
21925 (struct lto_file_decl_data): Add lto_section_header field.
21926
21927 2019-07-03 Martin Liska <mliska@suse.cz>
21928
21929 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21930 dead assignemts.
21931 * reg-stack.c (check_asm_stack_operands): Likewise.
21932 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21933 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21934 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21935 force_expand_binop.
21936
21937 2019-07-03 Martin Liska <mliska@suse.cz>
21938
21939 PR tree-optimization/90892
21940 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21941 in string constants.
21942
21943 2019-07-03 Martin Liska <mliska@suse.cz>
21944
21945 PR middle-end/90899
21946 * multiple_target.c (create_dispatcher_calls): Add to comdat
21947 group only if set for ifunc.
21948
21949 2019-07-03 Martin Liska <mliska@suse.cz>
21950
21951 PR target/88056
21952 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21953 Define local_object_name in outer scope in order to handle
21954 use-after-scope issue.
21955
21956 2019-07-03 Martin Liska <mliska@suse.cz>
21957
21958 * common.opt: Add fprofile-note.
21959 * coverage.c (coverage_init): Append the option
21960 to bbg_file_name.
21961 * doc/invoke.texi: Document -fprofile-note.
21962
21963 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21964
21965 PR tree-optimization/91033
21966 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21967 vect_analyze_data_refs): Add bool * arguments.
21968 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21969 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21970 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21971 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21972 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21973 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21974 vect_analyze_data_refs caller.
21975
21976 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21977 clause.
21978 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21979 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21980 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21981 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21982 OMP_CLAUSE__SCANTEMP_ entry.
21983 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21984 * tree-pretty-print.c (dump_omp_clause): Likewise.
21985 * tree-nested.c (convert_nonlocal_omp_clauses,
21986 convert_local_omp_clauses): Likewise.
21987 * omp-general.h (struct omp_for_data): Add have_scantemp and
21988 have_nonctrl_scantemp members.
21989 * omp-general.c (omp_extract_for_data): Initialize them.
21990 * omp-low.c (struct omp_context): Add scan_exclusive member.
21991 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21992 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21993 ctx->scan_exclusive.
21994 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21995 of !ctx->scan_inclusive.
21996 (lower_rec_input_clauses): Simplify gimplification of dtors using
21997 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21998 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21999 loops. Don't add barrier for reduction_omp_orig_ref if
22000 ctx->scan_??xclusive.
22001 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22002 (lower_omp_scan): Use ctx->scan_exclusive instead
22003 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22004 reductions. Use new_vard != new_var instead of repeated
22005 omp_is_reference calls.
22006 (omp_find_scan, lower_omp_for_scan): New functions.
22007 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22008 inscan reductions.
22009 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22010 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22011 and fd->have_scantemp.
22012
22013 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22014 on worksharing loop propagate it as shared clause to containing
22015 combined parallel.
22016
22017 * omp-expand.c (expand_omp_for_static_nochunk,
22018 expand_omp_for_static_chunk): For nowait worksharing loop with
22019 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22020 at the end.
22021
22022 2019-07-02 qing zhao <qing.zhao@oracle.com>
22023
22024 PR preprocessor/90581
22025 * doc/cppopts.texi: Add document for -fmax-include-depth.
22026 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22027
22028 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22029
22030 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22031 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22032 (mmx_packssdw): Ditto.
22033 (mmx_punpckhbw): Ditto.
22034 (mmx_punpcklbw): Ditto.
22035 (mmx_punpckhwd): Ditto.
22036 (mmx_punpcklwd): Ditto.
22037 (mmx_punpckhdq): Ditto.
22038 (mmx_punpckldq): Ditto.
22039 (*vec_dupv4hi): Ditto.
22040 (*vec_dupv2si): Ditto.
22041 (mmx_pmovmskb): Ditto.
22042 * config/i386/sse.md (sse_cvtpi2ps): Use
22043 TARGET_SSE2 && SSE_REG_P in split condition.
22044 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22045 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22046 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22047 (ssse3_pshufbv8qi3): Ditto.
22048 (ssse3_palignrdi): Ditto.
22049
22050 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22051
22052 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22053 with inlined save and restore.
22054
22055 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22056
22057 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22058 to be inserted on single successor edge of the entry block. Then call
22059 commit_edge_insertions instead of inserting the instructions manually.
22060 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22061 RTL expansion and rebuild jump labels chain.
22062
22063 2019-07-02 Richard Biener <rguenther@suse.de>
22064
22065 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22066 TI_CHREC_KNOWN.
22067 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22068 Define here.
22069 * tree.c (build_common_tree_nodes): Initialize them.
22070 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22071 Make declarations comments.
22072 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22073 chrec_known): Remove definitions.
22074 (initialize_scalar_evolutions_analyzer): Remove.
22075 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22076 * tree-streamer.c (preload_common_nodes): Do not preload
22077 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22078
22079 2019-07-02 Jan Hubicka <jh@suse.cz>
22080
22081 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22082 sanity check.
22083
22084 2019-07-02 Jan Hubicka <jh@suse.cz>
22085
22086 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22087 to ..
22088 (nonoverlapping_component_refs_since_match_p): ... this one;
22089 handle also non-decl bases; return -1 if search gave up.
22090 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22091 nonoverlapping_component_refs_of_decl_p_no_alias to
22092 nonoverlapping_component_refs_since_match_p_may_alias,
22093 nonoverlapping_component_refs_since_match_p_no_alias.
22094 (dump_alias_stats): Update dumping.
22095 (aliasing_matching_component_refs_p): Break out from ...;
22096 dispatch to nonoverlapping_component_refs_for_decl_p
22097 and nonoverlapping_component_refs_since_match_p.
22098 (aliasing_component_refs_p): ... here; call
22099 nonoverlapping_component_refs_p in scenarios where we can not
22100 precisely determine base match.
22101 (decl_refs_may_alias_p): Use
22102 nonoverlapping_component_refs_since_match_p.
22103 (indirect_ref_may_alias_decl_p): Do not call
22104 nonoverlapping_component_refs_p.
22105 (indirect_refs_may_alias_p): Likewise.
22106
22107 2019-07-02 Jan Hubicka <jh@suse.cz>
22108
22109 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22110 to clobber of return value.
22111
22112 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22113
22114 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22115 for is_neon_type instructions that have not already been categorized.
22116
22117 2019-07-02 Richard Biener <rguenther@suse.de>
22118
22119 PR tree-optimization/58483
22120 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22121 for MEM_REF base hashing.
22122 (equal_mem_array_ref_p): Likewise for base comparison.
22123
22124 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22125
22126 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22127 parameterized name.
22128 (signbit<mode>2): Use that name. Simplify.
22129
22130 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22131
22132 PR middle-end/66726
22133 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22134 Tune heuristic from PR71016 to allow MIN / MAX.
22135
22136 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22137
22138 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22139 parameterized name.
22140 (abs<mode>2): Use that name. Simplify.
22141
22142 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22143
22144 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22145 parameterized name.
22146 (neg<mode>2): Use that name. Simplify.
22147
22148 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22149
22150 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22151 name.
22152 (abs<mode>2): Use that name. Simplify.
22153
22154 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22155
22156 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22157 name.
22158 (neg<mode>2): Use that name. Simplify.
22159
22160 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22161
22162 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22163 ("enabled" attribute): Handle sse_noavx isa attribute.
22164 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22165 Use TARGET_SSE && SSE_REGNO_P in split condition.
22166 (*vec_dupv2sf): Ditto.
22167
22168 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22169
22170 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22171 name.
22172 (floatsi<mode>2): Use that name. Simplify.
22173
22174 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22175
22176 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22177 parameterized name.
22178 (extenddf<mode>2_vsx): Make this a parameterized name.
22179 (extenddf<mode>2): Use those names. Simplify.
22180
22181 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22182
22183 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22184 name.
22185 (eh_return): Use that name. Simplify.
22186
22187 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22188
22189 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22190 (doloop_end): Use that name. Simplify.
22191
22192 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22193
22194 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22195 parameterized name.
22196 (indirect_jump): Use that name. Simplify.
22197
22198 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22199
22200 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22201 parameterized name.
22202 (abs<mode>2): Use that name. Simplify.
22203
22204 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22205
22206 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22207 parameterized name.
22208 (fix_trunc<mode>si2): Use that name. Simplify.
22209
22210 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22211
22212 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22213 (allocate_stack): Use that name. Simplify.
22214
22215 2019-07-01 Martin Sebor <msebor@redhat.com>
22216
22217 PR middle-end/90923
22218 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22219 (hash_map::get_or_insert): Same. Reformat comment.
22220 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22221 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22222 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22223 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22224 (hash_table::hash_table (const hash_table&)): Use copy ctor
22225 instead of assignment to copy elements.
22226
22227 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22228 John David Anglin <danglin@gcc.gnu.org>
22229
22230 PR target/90963
22231 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22232 using saved frame pointer.
22233
22234 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22235
22236 PR middle-end/64242
22237 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22238 Add frame clobber and schedule blockage.
22239
22240 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22241
22242 * doc/invoke.texi (Link Options): Further editorial changes to
22243 -flinker-output docs.
22244
22245 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22246
22247 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22248 Load both operands of a PLUS into registers separately.
22249
22250 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22251
22252 * config/s390/vector.md: Fix shift count operand printing.
22253
22254 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22255
22256 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22257
22258 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22259
22260 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22261 Use recog_data to test for an output operand.
22262
22263 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22264
22265 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22266 exclude any others that are disparaged or that are bound to need
22267 a reload or spill.
22268 (ira_get_dup_out_num): Expand comment.
22269
22270 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22271
22272 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22273 constraint string for each operand/alternative combo. Only handle
22274 '%' at the start of constraint strings, and look for it outside
22275 the main loop.
22276
22277 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22278
22279 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22280 alternative_mask instead of HARD_REG_SET to represent a
22281 bitmask of alternatives.
22282 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22283 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22284
22285 2019-07-01 Martin Liska <mliska@suse.cz>
22286
22287 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22288 use () for a constructor call.
22289 (test_applying_fixits_line_out_of_range): Likewise.
22290 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22291 argument.
22292 (free_page): Likewise.
22293
22294 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22295
22296 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22297 parameter names to match usage (no functional change).
22298 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22299
22300 2019-07-01 Richard Biener <rguenther@suse.de>
22301
22302 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22303 pass parameter.
22304 (pass_fre::execute): Honor it.
22305 * passes.def: Adjust pass_fre invocations to allow iterating,
22306 add non-iterating pass_fre before late threading/dom.
22307
22308 2019-07-01 Richard Biener <rguenther@suse.de>
22309
22310 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22311 TARGET_MEM_REF handling to also handle address-taken ones.
22312
22313 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22314
22315 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22316 hardware attributes): Document avx512vp2intersect.
22317
22318 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22319
22320 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22321 (abs<mode>2): New expander.
22322 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22323 Use CODE_FOR_ssse3_absv8qi2.
22324 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22325 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22326
22327 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22328
22329 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22330 to sse, sse_noavx and avx. Update all uses.
22331
22332 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22333
22334 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22335 (*mmx_<plusminus_insn><mode>3): Ditto.
22336 (*mmx_mulv4hi3"): Ditto.
22337 (*mmx_smulv4hi3_highpart): Ditto.
22338 (*mmx_umulv4hi3_highpart): Ditto.
22339 (*mmx_pmaddwd): Ditto.
22340 (*sse2_umulv1siv1di3): Ditto.
22341 (*mmx_<code>v4hi3): Ditto.
22342 (*mmx_<code>v8qi3): Ditto.
22343 (mmx_ashr<mode>3): Ditto.
22344 ("mmx_<shift_insn><mode>3): Ditto.
22345 (*mmx_eq<mode>3): Ditto.
22346 (mmx_gt<mode>3): Ditto.
22347 (mmx_andnot<mode>3): Ditto.
22348 (*mmx_<code><mode>3): Ditto.
22349 (*mmx_pinsrw): Ditto.
22350 (*mmx_pextrw): Ditto.
22351 (mmx_pshufw_1): Ditto.
22352 (*mmx_uavgv8qi3): Ditto.
22353 (*mmx_uavgv4hi3): Ditto.
22354 ("mmx_psadbw): Ditto.
22355 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22356 (sse_cvttps2pi): Ditto.
22357 (ssse3_pmaddubsw): Ditto.
22358 (*ssse3_pmulhrswv4hi3): Ditto.
22359 (ssse3_psign<mode>3): Ditto.
22360
22361 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22362
22363 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22364 adjustment for bit-fields to all aggregate types.
22365
22366 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22367
22368 * config/rs6000/predicates.md (pcrel_address): Use
22369 SYMBOL_REF_LOCAL_P to determine if a label is local.
22370 (pcrel_external_address): New predicate.
22371 (non_prefixed_mem_operand): Delete, predicate not used.
22372 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22373 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22374 addressing.
22375 (SYMBOL_REF_PCREL_P): Likewise.
22376
22377 PR target/91009
22378 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22379 alternative.
22380 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22381 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22382 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22383
22384 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22385
22386 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22387 override on extra_headers.
22388
22389 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22390
22391 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22392 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22393 from warning.
22394 (darwin_driver_init): Likewise.
22395
22396 2019-06-28 Jan Beulich <jbeulich@suse.com>
22397
22398 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22399 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22400 Eliminate redundant alternative.
22401
22402 2019-06-28 Jan Beulich <jbeulich@suse.com>
22403
22404 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22405 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22406 Use vector_operand.
22407
22408 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22409
22410 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22411 having a lower cost regardless of the speed option.
22412
22413 2019-06-28 Jan Beulich <jbeulich@suse.com>
22414
22415 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22416 vector_operand plus, on both alternatives, "Bm" constraint.
22417
22418 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22419
22420 * config/arm/arm.md: Remove redundant constraints from
22421 define_expand but leave reload_inm and reload_outm patterns
22422 untouched since they need special constraints to work.
22423 * config/arm/arm-fixed.md: Remove redundant constraints from
22424 define_expand.
22425 * config/arm/iwmmxt.md: Likewise.
22426 * config/arm/neon.md: Likewise.
22427 * config/arm/sync.md: Likewise.
22428 * config/arm/thumb1.md: Likewise.
22429 * config/arm/vec-common.md: Likewise.
22430
22431 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22432
22433 * doc/install.texi: Document --disable-tm-clone-registry.
22434
22435 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22436
22437 PR c++/91024
22438 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22439 statements.
22440
22441 PR tree-optimization/91010
22442 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22443 return true. Otherwise, don't call operand_equal_p if offset1 or
22444 offset2 is NULL and just return false.
22445
22446 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22447
22448 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22449 user-specified float mode choice for kernel mode code.
22450
22451 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22452
22453 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22454 spec.
22455
22456 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22457
22458 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22459 use longcall for 64b code.
22460
22461 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22462
22463 * builtins.c (get_memory_rtx): Fix comment.
22464 * optabs.def (movmem_optab): Change to cpymem_optab.
22465 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22466 (emit_block_move_hints): Change movmem to cpymem.
22467 * defaults.h: Change movmem to cpymem.
22468 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22469 (default_use_by_pieces_infrastructure_p): Ditto.
22470 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22471 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22472 to cpymem.
22473 * config/aarch64/aarch64.h: Change movmem to cpymem.
22474 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22475 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22476 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22477 movmem to cpymem.
22478 * config/arc/arc-protos.h: Change movmem to cpymem.
22479 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22480 * config/arc/arc.h: Change movmem to cpymem in comment.
22481 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22482 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22483 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22484 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22485 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22486 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22487 * config/avr/avr-protos.h: Change movmem to cpymem.
22488 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22489 avr_out_movmem): Change movmem to cpymem.
22490 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22491 Change movmem to cpymem.
22492 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22493 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22494 Change movmem to cpymem.
22495 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22496 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22497 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22498 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22499 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22500 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22501 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22502 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22503 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22504 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22505 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22506 expand_small_cpymem_or_setmem,
22507 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22508 expand_set_or_cpymem_constant_prologue,
22509 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22510 * config/i386/i386-protos.h: Change movmem to cpymem.
22511 * config/i386/i386.h: Change movmem to cpymem in comment.
22512 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22513 (setmem<mode>): Change expansion function name.
22514 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22515 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22516 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22517 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22518 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22519 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22520 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22521 to cpymem.
22522 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22523 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22524 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22525 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22526 Change movmem to cpymem.
22527 * config/mips/mips.h: Change movmem to cpymem.
22528 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22529 * config/nds32/nds32-memory-manipulation.c
22530 (nds32_expand_movmemsi_loop_unknown_size,
22531 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22532 nds32_expand_movmemsi_unroll,
22533 nds32_expand_movmemsi): Change movmem to cpymem.
22534 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22535 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22536 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22537 (pa_adjust_insn_length): Change call to compute_movmem_length.
22538 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22539 movmemdi, movmemdi_prereload,
22540 movmemdi_postreload): Change movmem to cpymem.
22541 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22542 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22543 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22544 * config/riscv/riscv.h: Change movmem to cpymem.
22545 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22546 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22547 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22548 movmem to cpymem.
22549 * config/s390/s390-protos.h: Change movmem to cpymem.
22550 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22551 s390_expand_insv): Change movmem to cpymem.
22552 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22553 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22554 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22555 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22556 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22557 for nonexistent function.
22558 * config/vax/vax.h: Change movmem to cpymem in comment.
22559 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22560 * config/visium/visium.h: Change movmem to cpymem in comment.
22561 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22562 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22563 * doc/md.texi: Change movmem to cpymem and update description to match.
22564 * doc/rtl.texi: Change movmem to cpymem.
22565 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22566 * doc/tm.texi: Regenerate.
22567
22568 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22569
22570 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22571 -fvariable-expansion-in-unroller by default.
22572 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22573 default for Power.
22574
22575 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22576
22577 Revert
22578 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22579 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22580
22581 * config.gcc(rs6000-*-*): Define target_gtfiles.
22582
22583 2019-06-27 Jan Hubicka <jh@suse.cz>
22584
22585 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22586 (add_type_duplicate): When odr hash is not allocated, to nothing.
22587 (odr_based_tbaa_p): New function.
22588 (set_type_canonical_for_odr_type): New function.
22589 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22590 set_type_canonical_for_odr_type): New.
22591 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22592 ODR based TBAA are not equivalent to non-ODR types.
22593
22594 2019-06-27 Martin Liska <mliska@suse.cz>
22595
22596 PR tree-optimization/90974
22597 PR rtl-optimization/90975
22598 PR rtl-optimization/90976
22599 PR target/91016
22600 PR tree-optimization/91017
22601 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22602 unused tmp.
22603 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22604 initial commit of IRA.
22605 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22606 of op0 and op1.
22607 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22608 Remove unused mode1.
22609 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22610 to new_stmt_info.
22611
22612 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22613
22614 PR target/90991
22615 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22616 instead of register_operand for operands[1], add m to its constraints
22617 if operands[2] uses "C" constraint. Ensure in condition that if
22618 operands[2] is not 0, then operands[1] is not a MEM. For last two
22619 alternatives, use unaligned loads instead of aligned if operands[1] is
22620 misaligned_operand.
22621
22622 2019-06-27 Martin Liska <mliska@suse.cz>
22623
22624 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22625 dead assignments.
22626 * bt-load.c (move_btr_def): Likewise.
22627 * builtins.c (expand_builtin_apply_args_1): Likewise.
22628 (expand_builtin_apply): Likewise.
22629 * cfgexpand.c (expand_asm_stmt): Likewise.
22630 (construct_init_block): Likewise.
22631 * cfghooks.c (verify_flow_info): Likewise.
22632 * cfgloopmanip.c (remove_path): Likewise.
22633 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22634 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22635 * combine.c (simplify_if_then_else): Likewise.
22636 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22637 (choose_basereg): Likewise.
22638 (ix86_expand_prologue): Likewise.
22639 (ix86_preferred_output_reload_class): Likewise.
22640 * cselib.c (cselib_record_sets): Likewise.
22641 * df-scan.c (df_scan_alloc): Likewise.
22642 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22643 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22644 * emit-rtl.c (try_split): Likewise.
22645 * graphite-scop-detection.c (assign_parameter_index_in_region):
22646 Likewise.
22647 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22648 * ira-color.c (setup_profitable_hard_regs): Likewise.
22649 * ira.c (rtx_moveable_p): Likewise.
22650 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22651 * read-rtl.c (read_subst_mapping): Likewise.
22652 * regrename.c (scan_rtx): Likewise.
22653 * reorg.c (fill_slots_from_thread): Likewise.
22654 * tree-inline.c (tree_function_versioning): Likewise.
22655 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22656 * tree-ssa-sink.c (statement_sink_location): Likewise.
22657 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22658 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22659 (vect_create_epilog_for_reduction): Likewise.
22660 * tree.c (build_nonstandard_integer_type): Likewise.
22661
22662 2019-06-27 Richard Biener <rguenther@suse.de>
22663
22664 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22665
22666 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22667
22668 PR tree-optimization/89772
22669 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22670 out-of-bound accesses checking.
22671
22672 2019-06-27 Martin Liska <mliska@suse.cz>
22673
22674 PR tree-optimization/91014
22675 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22676 when LHS is NULL_TREE.
22677
22678 2019-06-27 Martin Liska <mliska@suse.cz>
22679
22680 * symbol-summary.h (traverse): Pass
22681 argument a to the call of callback.
22682 (gt_ggc_mx): Mark arguments as unused.
22683 (gt_pch_nx): Likewise.
22684
22685 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22686
22687 PR target/62147
22688 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22689 finiteness.
22690
22691 2019-06-26 Jeff Law <law@redhat.com>
22692
22693 PR tree-optimization/90883
22694 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22695 (delete_dead_or_redundant_assignment): Likewise.
22696
22697 PR tree-optimization/90883
22698 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22699 * tree-ssa-dse.c: Update various comments to distinguish between
22700 dead and redundant stores.
22701 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22702 (dse_optimize_redundant_stores): New function.
22703 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22704 Distinguish between dead and redundant calls in dump output. All
22705 callers updated.
22706 (delete_dead_or_redundant_assignment): Similarly for assignments.
22707 (dse_optimize_stmt): Handle _CHK variants. For statements which
22708 store 0 into multiple memory locations, try to prove a subsequent
22709 store is redundant.
22710
22711 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22712
22713 PR target/89021
22714 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22715 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22716
22717 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22718
22719 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22720 (branch_islands): New extern.
22721 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22722 * config/rs6000/rs6000.c: .. here.
22723
22724 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22725
22726 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22727 (powerpc*-*-*) ... to here.
22728
22729 2019-06-26 Jeff Law <law@redhat.com>
22730
22731 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22732 memcpy, memmove and memset builtins.
22733 (maybe_trim_memstar_call): Likewise.
22734
22735 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22736
22737 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22738
22739 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22740
22741 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22742
22743 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22744
22745 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22746 declaration.
22747 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22748 "static".
22749 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22750 declaration.
22751
22752 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22753
22754 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22755
22756 2019-06-26 Richard Biener <rguenther@suse.de>
22757
22758 PR ipa/90982
22759 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22760
22761 2019-06-26 Richard Biener <rguenther@suse.de>
22762
22763 * lto-streamer.h (lto_bitmap_alloc): Remove.
22764 (lto_bitmap_free): Likewise.
22765 * lto-streamer.c (lto_bitmap_alloc): Remove.
22766 (lto_bitmap_free): Likewise.
22767 (lto_obstack): Likewise.
22768 (lto_obstack_initialized): Likewise.
22769 * lto-streamer-out.c (lto_output): Use own obstack for local
22770 bitmap, free it consistently.
22771
22772 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22773
22774 PR target/90991
22775 * config/i386/sse.md
22776 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22777 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22778 insns if operands[2] is misaligned_operand.
22779
22780 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22781
22782 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22783 TARGET_POWERPC64.
22784 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22785 to GPR.
22786
22787 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22788
22789 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22790
22791 2019-06-26 Martin Liska <mliska@suse.cz>
22792
22793 PR tree-optimization/90973
22794 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22795 epilogue_cost_vec instead of prologue_cost_vec for
22796 a epilogue cost.
22797
22798 2019-06-26 Martin Liska <mliska@suse.cz>
22799
22800 * bb-reorder.c (connect_better_edge_p): Add missing else
22801 statement in the middle of if-else statements.
22802
22803 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22804 H.J. Lu <hongjiu.lu@intel.com>
22805 Olga Makhotina <olga.makhotina@intel.com>
22806
22807 * common/config/i386/i386-common.c
22808 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22809 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22810 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22811 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22812 (ix86_handle_option): Handle -mavx512vp2intersect.
22813 * config/i386/avx512vp2intersectintrin.h: New.
22814 * config/i386/avx512vp2intersectvlintrin.h: New.
22815 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22816 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22817 AVX512VP2INTERSECT.
22818 * config/i386/i386-builtin-types.def: Add new types.
22819 * config/i386/i386-builtin.def: Add new builtins.
22820 * config/i386/i386-builtins.c: (enum processor_features): Add
22821 F_AVX512VP2INTERSECT.
22822 (static const _isa_names_table isa_names_table): Ditto.
22823 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22824 __AVX512VP2INTERSECT__.
22825 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22826 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22827 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22828 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22829 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22830 * config/i386/i386-options.c (ix86_target_string): Add
22831 -mavx512vp2intersect.
22832 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22833 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22834 P2HImode and P2QImode.
22835 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22836 number for P2QImode and P2HImode.
22837 (ix86_regmode_natural_size): New function.
22838 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22839 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22840 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22841 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22842 * config/i386/i386.opt: Add -mavx512vp2intersect.
22843 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22844 avx512vp2intersectvlintrin.h.
22845 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22846 (define_mode_iterator VI48_AVX512VP2VL): New.
22847 (avx512vp2intersect_2intersect<mode>,
22848 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22849 * config.gcc: Add avx512vp2intersectvlintrin.h and
22850 avx512vp2intersectintrin.h to extra_headers.
22851 * doc/invoke.texi: Document -mavx512vp2intersect.
22852
22853 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22854
22855 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22856
22857 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22858
22859 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22860 savres_routine_syms, savres_routine_name, morestack_ref,
22861 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22862 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22863 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22864 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22865 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22866 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22867 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22868 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22869 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22870 get_stack_clash_protection_probe_interval,
22871 get_stack_clash_protection_guard_size,
22872 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22873 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22874 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22875 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22876 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22877 gen_frame_mem_offset, rs6000_savres_routine_name,
22878 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22879 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22880 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22881 rs6000_global_entry_point_prologue_needed_p,
22882 rs6000_get_separate_components, rs6000_components_for_bb,
22883 rs6000_disqualify_components, rs6000_emit_prologue_components,
22884 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22885 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22886 rs6000_output_savres_externs, rs6000_output_function_prologue,
22887 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22888 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22889 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22890 rs6000_output_function_epilogue, gen_add3_const,
22891 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22892 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22893 to rs6000-logue.c.
22894 (machine_function): Moved to rs6000.h.
22895 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22896 rs6000-internal.h.
22897 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22898 savres_routine_syms, savres_routine_name, morestack_ref,
22899 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22900 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22901 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22902 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22903 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22904 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22905 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22906 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22907 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22908 get_stack_clash_protection_probe_interval,
22909 get_stack_clash_protection_guard_size,
22910 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22911 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22912 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22913 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22914 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22915 gen_frame_mem_offset, rs6000_savres_routine_name,
22916 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22917 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22918 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22919 rs6000_global_entry_point_prologue_needed_p,
22920 rs6000_get_separate_components, rs6000_components_for_bb,
22921 rs6000_disqualify_components, rs6000_emit_prologue_components,
22922 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22923 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22924 rs6000_output_savres_externs, rs6000_output_function_prologue,
22925 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22926 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22927 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22928 rs6000_output_function_epilogue, gen_add3_const,
22929 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22930 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22931 to here from rs6000.c.
22932 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22933 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22934 quad_address_offset_p) Moved to here from rs6000.c.
22935 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22936 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22937 collector.
22938
22939 2019-06-25 Martin Liska <mliska@suse.cz>
22940
22941 * hash-table.c (hashtab_chk_error): Move here from ...
22942 * hash-table.h (hashtab_chk_error): ... here.
22943
22944 2019-06-25 Martin Liska <mliska@suse.cz>
22945
22946 PR tree-optimization/90978
22947 * df-scan.c (df_update_entry_block_defs): Remove dead else
22948 branch.
22949 (df_update_exit_block_uses): Likewise.
22950
22951 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22952 Andrew Stubbs <ams@codesourcery.com>
22953
22954 * config.gcc (thread_file): Set to gcn for AMD GCN.
22955 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22956 (TARGET_EMUTLS_VAR_INIT): New hook.
22957
22958 2019-06-25 Martin Jambor <mjambor@suse.cz>
22959
22960 PR ipa/90939
22961 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22962
22963 2019-06-25 Richard Biener <rguenther@suse.de>
22964
22965 PR tree-optimization/90930
22966 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22967 into parallel form in the last pass instance.
22968
22969 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22970
22971 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22972 (arc_legitimize_pic_address): Simplify and cleanup the function.
22973 (SYMBOLIC_CONST): Remove.
22974 (prepare_pic_move): Likewise.
22975 (prepare_move_operands): Handle complex mov cases here.
22976 (arc_legitimize_address_0): Remove call to
22977 arc_legitimize_pic_address.
22978 (arc_legitimize_address): Remove call to
22979 arc_legitimize_tls_address.
22980 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22981 (movhi_insn): Likewise.
22982
22983 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22984
22985 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22986 PTRDIFF_TYPE.
22987 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22988 format of "__intN" types for UINTMAX_TYPE.
22989 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22990 format of "__intN" types for SIZETYPE.
22991 * tree.c (build_common_tree_nodes): Accept "__intN__"
22992 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22993 * doc/invoke.texi: Document that __intN__ disables pedantic
22994 warnings.
22995
22996 2019-06-25 Jan Hubicka <jh@suse.cz>
22997
22998 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22999 base2_alias_set is non-zero before doing TBAA based disambiguation.
23000
23001 2019-06-25 Martin Liska <mliska@suse.cz>
23002
23003 PR tree-optimization/90973
23004 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23005 of prologue and epilogue.
23006
23007 2019-06-24 Jan Hubicka <jh@suse.cz>
23008
23009 * ipa-utils.h (type_with_linkage_p): Verify that type is
23010 CXX_ODR_P.
23011 (odr_type_p): Remove extra return.
23012 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23013 hash STRING_FLAG only for arrays and integers.
23014 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23015 Update analogously.
23016 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23017 Likewise.
23018 * print-tree.c (print_node): Print cxx-odr-p
23019 and string-flag.
23020 * tree.c (need_assembler_name_p): Also check that type
23021 is CXX_ODR_TYPE_P
23022 (verify_type_variant): Update verification of SRING_FLAG;
23023 also check CXX_ODR_P.
23024 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23025 (TYPE_STRING_FLAG): Use it.
23026 (TYPE_CXX_ODR_P): New macro.
23027 * dwarf2out.c (gen_array_type_die): First check that type
23028 is an array and then test string flag.
23029
23030 2019-06-24 Richard Biener <rguenther@suse.de>
23031
23032 PR tree-optimization/90972
23033 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23034 in common code, dealing with STRING_CST properly.
23035
23036 2019-06-24 Richard Biener <rguenther@suse.de>
23037
23038 PR tree-optimization/90930
23039 PR tree-optimization/90316
23040 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23041 decrement of limit.
23042
23043 2019-06-24 Martin Sebor <msebor@redhat.com>
23044
23045 * tree-pretty-print.h: Remove unnecessary punctuation characters
23046 from a diagnostic.
23047 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23048
23049 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23050
23051 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23052 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23053 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23054
23055 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23056
23057 * config/rs6000/darwin.h: Handle GCC target pragma.
23058
23059 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23060
23061 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23062
23063 2019-06-22 Jeff Law <law@redhat.com>
23064
23065 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23066
23067 2019-06-22 Jan Hubicka <jh@suse.cz>
23068
23069 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23070 give up on bitfields; continue searching for different refs
23071 appearing later.
23072
23073 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23074
23075 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23076 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23077 containing the offset as possible simd lane access. Look through
23078 widening conversion. Move the
23079 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23080
23081 2019-06-21 Richard Biener <rguenther@suse.de>
23082
23083 PR tree-optimization/90930
23084 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23085 flag on new stmts to avoid re-processing them.
23086
23087 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23088
23089 PR c++/90875 - added -Wswitch-outside-range option
23090 * doc/invoke.texi (Wswitch-outside-range): Document.
23091
23092 2019-06-21 Jeff Law <law@redhat.com>
23093
23094 PR tree-optimization/90949
23095 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23096 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23097
23098 2019-06-21 Richard Biener <rguenther@suse.de>
23099
23100 PR debug/90914
23101 * dwarf2out.c (prune_unused_types_walk): Always consider
23102 function-local extern declarations as used.
23103
23104 2019-06-21 Richard Biener <rguenther@suse.de>
23105
23106 PR tree-optimization/90913
23107 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23108 the scalar variant of if-conversion versioning.
23109
23110 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23111
23112 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23113 create another "omp scan inscan exclusive" array if
23114 !ctx->scan_inclusive.
23115 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23116 (lower_omp_scan): Likewise.
23117 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23118 2-bit bitfield for simd_lane_access_p member.
23119 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23120 aux == (void *)-4 as simd lane access.
23121 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23122 comment with permutations to show the canonical permutation order.
23123 (vectorizable_scan_store): Handle exclusive scan.
23124 (vectorizable_store): Call vectorizable_scan_store even for
23125 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23126
23127 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23128 "omp simd array" arrays with one byte elements.
23129
23130 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23131
23132 * config/alpha/alpha.md (@unaligned_store<mode>):
23133 Rename from unaligned_store<mode>.
23134 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23135 * config/alpha/sync.md (@load_locked_<mode>): Rename
23136 from load_locked_<mode>.
23137 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23138 (@atomic_compare_and_swap<mode>_1): Rename
23139 from atomic_compare_and_swap<mode>_1.
23140 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23141 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23142 Use gen_reload_in_aligned and gen_unaligned_store.
23143 (emit_load_locked): Remove.
23144 (emit_store_conditional): Ditto.
23145 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23146 (alpha_split_compare_and_swap): Ditto.
23147 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23148 (alpha_split_compare_and_swap_12): Use gen_load_locked
23149 and gen_store_conditional.
23150 (alpha_split_atomic_exchange): Ditto.
23151 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23152 (alpha_split_atomic_exchange_12): Use gen_load_locked
23153 and gen_store_conditional.
23154
23155 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23156
23157 * config/aarch64/aarch64-errata.h: New file.
23158 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23159 (CA53_ERR_843419_SPEC): Delete.
23160 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23161 * config/aarch64/aarch64-linux.h: Likewise.
23162 * config/aarch64/aarch64-netbsd.h: Likewise.
23163 * config/aarch64/aarch64-freebsd.h: Likewise.
23164
23165 2019-06-20 Marek Polacek <polacek@redhat.com>
23166
23167 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23168
23169 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23170
23171 * config/rs6000/rs6000.md (isa attribute): Add support for
23172 for a future processor.
23173
23174 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23175
23176 PR target/54855
23177 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23178 standard scalar operation pattern for V2DF.
23179 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23180 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23181 (*ieee_<ieee_maxmin><mode>3): Likewise.
23182 (vec_setv2df_0): Likewise.
23183
23184 2019-06-20 Jan Hubicka <jh@suse.cz>
23185
23186 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23187 parameter; it has no use in gimple memory model.
23188 (indirect_ref_may_alias_decl_p): Update.
23189
23190 2019-06-20 Martin Liska <mliska@suse.cz>
23191
23192 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23193 to 10.
23194
23195 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23196
23197 * tree-vect-stmts.c (enum scan_store_kind): New type.
23198 (scan_store_can_perm_p): Change last argument from int * to
23199 vec<enum scan_store_kind> *, record precisely which permutations
23200 need whole vector left shift or that plus VEC_COND_EXPR.
23201 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23202 and additional VEC_COND_EXPR only for those iterations that need it.
23203
23204 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23205
23206 * config.gcc: Fix ARM --with-fpu checking and error message.
23207
23208 2019-06-19 Marek Polacek <polacek@redhat.com>
23209
23210 PR c++/60364 - noreturn after first decl not diagnosed.
23211 * attribs.c (get_attribute_namespace): No longer static.
23212 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23213 attributes.
23214 (attr_noreturn_exclusions): Make it extern.
23215 * attribs.h (get_attribute_namespace): Declare.
23216 * tree-inline.c (function_attribute_inlinable_p): Use
23217 get_attribute_name.
23218
23219 2019-06-19 Martin Sebor <msebor@redhat.com>
23220
23221 PR tree-optimization/90626
23222 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23223
23224 PR tree-optimization/90626
23225 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23226 (handle_builtin_string_cmp): Call it.
23227
23228 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23229
23230 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23231 and DARWIN_NOPIE_SPEC.
23232 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23233 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23234 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23235 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23236 (DARWIN_EXPORT_DYNAMIC): Delete.
23237 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23238 and pie options processing to darwin.h.
23239 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23240
23241 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23242
23243 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23244 in computing the number of options to be moved.
23245
23246 2019-06-19 Maya Rashish <coypu@sdf.org>
23247
23248 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23249 (CLEAR_INSN_CACHE) Use it.
23250
23251 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23252
23253 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23254
23255 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23256
23257 PR middle-end/84521
23258 * builtins.c (expand_builtin_setjmp_setup): Save
23259 hard_frame_pointer_rtx.
23260 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23261 restore fp.
23262 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23263 non-local goto.
23264 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23265 elimination code.
23266 (remove_reg_equal_offset_note): Remove unused function.
23267 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23268 code.
23269 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23270 (arc_builtin_setjmp_frame_value): Remove function.
23271 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23272 (avr_builtin_setjmp_frame_value): Remove function.
23273 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23274 (ix86_builtin_setjmp_frame_value): Remove function.
23275 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23276 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23277 (sparc_builtin_setjmp_frame_value): Remove function.
23278 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23279 (vax_builtin_setjmp_frame_value): Remove function.
23280 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23281 pointer if has_nonlocal_label.
23282
23283 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23284
23285 * doc/md.texi: Document vec_shl_<mode> pattern.
23286 * optabs.def (vec_shl_optab): New optab.
23287 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23288 argument, if == vec_shl_optab, check for left whole vector shift
23289 pattern rather than right shift.
23290 (expand_vec_perm_const): Add vec_shl_optab support.
23291 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23292 in the comment.
23293 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23294 can be handled by vec_shl_optab.
23295 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23296 (check_scan_store): Use it.
23297 (vectorizable_scan_store): If target can't do normal permutations,
23298 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23299 after it.
23300 * config/i386/sse.md (vec_shl_<mode>): New expander.
23301
23302 * omp-low.c (lower_rec_input_clauses): Handle references properly
23303 in inscan clauses.
23304 (lower_omp_scan): Likewise.
23305
23306 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23307
23308 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23309 mem_mode is BLKmode.
23310
23311 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23312
23313 PR target/90922
23314 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23315 pointer adjustment for the case of no callee-saved registers and
23316 stack frame bigger than 128 bytes.
23317
23318 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23319
23320 PR middle-end/90862
23321 * omp-low.c (check_omp_nesting_restrictions): Handle
23322 GF_OMP_TARGET_KIND_OACC_DECLARE.
23323
23324 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23325
23326 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23327 (@add<mode>3_carry): Rename from add<mode>3_carry.
23328 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23329 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23330 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23331 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23332 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23333 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23334 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23335 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23336 (cmpstrnsi): Use gen_cmp_1.
23337 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23338 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23339 (@umonitor_<mode>): Rename from umonitor_<mode>.
23340 * config/i386/i386-expand.c (ix86_expand_copysign):
23341 Use gen_copysign3_const and gen_copysign3_var.
23342 (ix86_expand_xorsign): Use gen_xorsign3_1.
23343 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23344 gen_sub3_carry_ccgz and gen_cmp1.
23345 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23346 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23347 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23348 (ix86_split_lshr): Ditto.
23349 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23350
23351 2019-06-18 Jason Merrill <jason@redhat.com>
23352
23353 * tree.c (build_constructor): Add MEM_STAT_DECL.
23354
23355 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23356
23357 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23358 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23359 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23360 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23361 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23362 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23363 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23364 Use CC_NZC instead of CC.
23365 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23366 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23367 (aarch64_print_operand): Handle E_CC_NZCmode.
23368 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23369 of gen_set_clobber_cc.
23370
23371 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23372
23373 * config/aarch64/aarch64-sve.md: Tabify file.
23374
23375 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23376
23377 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23378 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23379 * config/aarch64/aarch64-sve.md: Use it.
23380
23381 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23382
23383 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23384 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23385 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23386 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23387 (aarch64_expand_sve_vec_cmp_int): Use it.
23388 (aarch64_expand_sve_vec_cmp_float): Likewise.
23389 * config/aarch64/aarch64-sve.md: Likewise throughout.
23390
23391 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23392 Kugan Vivekanandarajah <kuganv@linaro.org>
23393
23394 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23395 (*cond_<optab><mode>_z): Fold into...
23396 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23397 operand 4 can be tied to operand 0 (either inherently or via RA).
23398
23399 2019-06-18 Richard Biener <rguenther@suse.de>
23400
23401 PR debug/90900
23402 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23403 as if optimized away.
23404
23405 2019-06-18 Tom de Vries <tdevries@suse.de>
23406
23407 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23408 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23409 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23410 Rename to ...
23411 (define_insn "@set_softstack_<mode>"): ... this.
23412 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23413 (define_insn "@omp_simt_enter_<mode>"): ... this.
23414 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23415 (define_insn "@omp_simt_exit_<mode>"): ... this.
23416
23417 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23418
23419 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23420 vf parameter. Restore the previous iv step of nscalars_step,
23421 but give it iv_type rather than compare_type. Tweak code order
23422 to match the comments.
23423 (vect_set_loop_condition_masked): Update accordingly.
23424 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23425 for iv_precision. Tweak comment formatting.
23426
23427 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23428
23429 * config/darwin.c: Strip trailing whitespace.
23430
23431 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23432
23433 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23434 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23435
23436 2019-06-18 Martin Jambor <mjambor@suse.cz>
23437
23438 PR ipa/90889
23439 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23440 caller does not have flag_ipa_cp set.
23441
23442 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23443
23444 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23445 from "*fold_left_plus_<mode>", updated operands order.
23446 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23447 * internal-fn.c (mask_fold_left_direct): New define.
23448 (expand_mask_fold_left_optab_fn): Likewise.
23449 (direct_mask_fold_left_optab_supported_p): Likewise.
23450 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23451 * optabs.def (mask_fold_left_plus_optab): New optab.
23452 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23453 masked internal_fn for a reduction ifn.
23454 (vectorize_fold_left_reduction): Add support for masking reductions.
23455
23456 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23457
23458 PR middle-end/80791
23459 * target.def (predict_doloop_p): New hook.
23460 * targhooks.h (default_predict_doloop_p): New declaration.
23461 * targhooks.c (default_predict_doloop_p): New function.
23462 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23463 * doc/tm.texi: Regenerate.
23464 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23465 (TARGET_PREDICT_DOLOOP_P): New macro.
23466 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23467
23468 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23469
23470 * omp-low.c (struct omp_context): Add scan_inclusive field.
23471 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23472 if inclusive scan.
23473 (struct omplow_simd_context): Add lastlane member.
23474 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23475 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23476 1 or 2 argument.
23477 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23478 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23479 (lower_omp_scan): New function.
23480 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23481 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23482 check 3rd argument if present rather than 2nd.
23483 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23484 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23485 2-bit bitfield.
23486 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23487 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23488 than 2nd.
23489 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23490 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23491 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23492 init.
23493 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23494 IFN_GOMP_SIMD_LANE argument.
23495 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23496 encoded ->aux value.
23497 * tree-vect-stmts.c: Include attribs.h.
23498 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23499 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23500 functions.
23501 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23502 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23503
23504 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23505
23506 PR target/62055
23507 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23508 (*nabs<mode>2_1): Ditto.
23509 (nabs sse-reg splitter): New splitter.
23510 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23511
23512 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23513
23514 PR bootstrap/90873.
23515 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23516 TMR index check.
23517
23518 2019-06-17 Tom de Vries <tdevries@suse.de>
23519
23520 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23521 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23522 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23523 ...
23524 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23525 match_operand 0.
23526 (define_insn "omp_simt_enter_insn"): Rename to ...
23527 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23528 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23529 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23530 gen_omp_simt_enter_si.
23531 (define_expand "omp_simt_exit"): New.
23532 (define_insn "omp_simt_exit"): Rename to ...
23533 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23534 match_operand 0.
23535
23536 2019-06-17 Matthew Green <mrg@eterna.com.au>
23537 Maya Rashish <coypu@sdf.org>
23538
23539 * config.gcc (aarch64*-*-netbsd*): New target.
23540 * config/aarch64/aarch64-netbsd.h: New file.
23541 * config/aarch64/t-aarch64-netbsd: Likewise.
23542
23543 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23544
23545 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23546 the access path from base to first VIEW_CONVERT_EXPR or
23547 BIT_FIELD_REF.
23548
23549 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23550
23551 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23552 access path on BIT_FIELD_REFs.
23553
23554 2019-06-17 Martin Liska <mliska@suse.cz>
23555
23556 PR ipa/90874
23557 * ipa-utils.h (odr_type_p): Remove dead code.
23558
23559 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23560
23561 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23562 alternative Solaris 11.4 format.
23563 * configure: Regenerate.
23564
23565 2019-06-17 Tom de Vries <tdevries@suse.de>
23566
23567 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23568 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23569 match_operand 0.
23570 (define_insn "call_value_insn"): Rename to ...
23571 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23572 match_operand 0.
23573 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23574 DI.
23575
23576 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23577
23578 PR middle-end/64242
23579 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23580 frame clobbers and schedule block.
23581 (builtin_longjmp): Likewise.
23582
23583 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23584
23585 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23586 describe how to perform MSPABI compliant 64-bit shift.
23587 * config/msp430/msp430.md (ashldi3): New define_expand.
23588 (ashrdi3): New define_expand.
23589 (lshrdi3): New define_expand.
23590
23591 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23592
23593 * doc/sourcebuild.texi: Document new effective target keyword
23594 longlong64.
23595
23596 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23597
23598 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23599 indirect_refs_may_alias_p): Revert accidental commits.
23600
23601 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23602 at the end of structures.
23603
23604 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23605
23606 * config/darwin.c (machopic_indirect_call_target): Use renamed
23607 darwin_picsymbol_stubs to decide on output.
23608 (darwin_override_options): Handle darwin_picsymbol_stubs.
23609 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23610 (LD64_VERSION): Revise default.
23611 * config/darwin.opt: (mpic-symbol-stubs): New option.
23612 (darwin_picsymbol_stubs): New variable.
23613 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23614 rename to TARGET_MACHO_PICSYM_STUBS.
23615 * config/i386/i386.c (output_pic_addr_const): Likewise.
23616 * config/i386/i386.h Likewise.
23617 * config/rs6000/darwin.h: Likewise.
23618 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23619 darwin_picsymbol_stubs.
23620
23621 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23622
23623 * config/darwin.opt (prebind, noprebind, seglinkedit,
23624 noseglinkedit): Add RejectNegative.
23625
23626 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23627
23628 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23629 in my previous patch.
23630
23631 2019-06-16 Tom de Vries <tdevries@suse.de>
23632
23633 PR tree-optimization/89376
23634 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23635
23636 2019-06-15 Maya Rashish <coypu@sdf.org>
23637
23638 * doc/invoke.texi (Spec Files): Update location of the
23639 Fortran spec file.
23640
23641 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23642
23643 * doc/extend.texi (Common Function Attributes): Clarify
23644 no_sanitize. Fix grammar.
23645
23646 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23647
23648 * tree-ssa-alias.c (alias_stats): Add
23649 nonoverlapping_component_refs_p_may_alias,
23650 nonoverlapping_component_refs_p_no_alias,
23651 nonoverlapping_component_refs_of_decl_p_may_alias,
23652 nonoverlapping_component_refs_of_decl_p_no_alias.
23653 (dump_alias_stats): Dump them.
23654 (nonoverlapping_component_refs_of_decl_p): Add stats.
23655 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23656 ARRAY_REF.
23657
23658 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23659
23660 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23661 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23662 only.
23663 (*anddi3_doubleword): Split before reload. Merge with
23664 anddi->zext pre-reload splitter.
23665 (*andndi3_doubleword): Split before reload.
23666 (*<code>di3_doubleword): Ditto.
23667 (*one_cmpldi2_doubleword): Ditto.
23668
23669 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23670
23671 PR middle-end/90779
23672 * gimplify.c: Include omp-offload.h and context.h.
23673 (gimplify_bind_expr): Add "omp declare target" attributes
23674 to static block scope variables inside of target region or target
23675 functions.
23676
23677 2019-06-15 Tom de Vries <tdevries@suse.de>
23678
23679 PR tree-optimization/90009
23680 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23681 Return NULL if bb contains IFN_UNIQUE.
23682
23683 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23684
23685 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23686 (un): New define_mode_attr.
23687 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23688 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23689 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23690 merge into ...
23691 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23692
23693 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23694
23695 * config/darwin.opt: Add RejectNegative where needed, reorder
23696 and add minimal functional descriptions.
23697
23698 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23699
23700 PR rtl-optimization/90765
23701 * calls.c (update_stack_alignment_for_call): New function.
23702 (expand_call): Call update_stack_alignment_for_call when
23703 outgoing parameter is passed in the stack.
23704 (emit_library_call_value_1): Likewise.
23705 * function.c (locate_and_pad_parm): Don't update
23706 stack_alignment_needed and preferred_stack_boundary.
23707
23708 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23709
23710 PR target/90877
23711 * config/i386/i386-features.c
23712 (dimode_scalar_chain::compute_convert_gain): Replace
23713 mmxsse_to_integer with sse_to_integer.
23714 * config/i386/i386.c (ix86_register_move_cost): Verify that
23715 moves between MMX and non-MMX units require secondary memory.
23716 Correct costs of moves between SSE and integer units.
23717 * config/i386/i386.h (processor_costs): Rename cost of moving
23718 SSE register to integer to sse_to_integer. Rename cost of
23719
23720 2019-06-14 Matt Thomas <matt@3am-software.com>
23721 Matthew Green <mrg@eterna.com.au>
23722 Nick Hudson <skrll@netbsd.org>
23723 Maya Rashish <coypu@sdf.org>
23724 Richard Earnshaw <rearnsha@arm.com>
23725
23726 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23727 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23728 * config/arm/netbsd-eabi.h: New file.
23729 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23730 redefining.
23731 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23732 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23733 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23734 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23735
23736 2019-06-14 Richard Biener <rguenther@suse.de>
23737
23738 * tree-loop-distribution.c (classify_partition): Return
23739 whether a reduction appeared in all partitions and do not
23740 stop builtin detection because of this.
23741 (distribute_loop): Sort a non-builtin partition last if
23742 there's a reduction in all partitions and make sure the
23743 partition prevailing as last is not a builtin.
23744
23745 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23746
23747 PR ipa/90401
23748 * ipa-prop.c (add_to_agg_contents_list): New function.
23749 (clobber_by_agg_contents_list_p): Likewise.
23750 (extract_mem_content): Likewise.
23751 (get_place_in_agg_contents_list): Delete.
23752 (determine_known_aggregate_parts): Renamed from
23753 determine_locally_known_aggregate_parts. New parameter
23754 aa_walk_budget_p.
23755
23756 2019-06-13 Martin Sebor <msebor@redhat.com>
23757
23758 PR tree-optimization/90662
23759 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23760 to the same type.
23761
23762 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23763
23764 PR bootstrap/90873
23765 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23766 dbase is not TARGET_MEM_REF.
23767
23768 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23769
23770 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23771 Update all uses.
23772 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23773 Do not generate DImode extends for 32bit targets.
23774 (and->zext post-reload splitter): Use gen_extend_insn
23775 instead of indirect functions.
23776 (anddi->zext pre-reload splitter): New.
23777 (*zext<mode>_doubleword_and): Remove.
23778 (*zext<mode>_doubleword): Ditto.
23779 (*zextsi_doubleword): Dittto.
23780
23781 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23782
23783 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23784 Use gen_sub3_insn instead of indirect function.
23785 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23786 indirect function.
23787 (ix86_adjust_counter): Ditto.
23788
23789 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23790 Lijia He <helijia@linux.ibm.com>
23791
23792 PR tree-optimization/77820
23793 * tree-ssa-threadedge.c
23794 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23795 function.
23796 (thread_across_edge): Add call to
23797 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23798
23799 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23800
23801 * config/darwin-driver.c (validate_macosx_version_min): New.
23802 (darwin_default_min_version): Cleanup and validate supplied version.
23803 (darwin_driver_init): Likewise and push cleaned version into opts.
23804
23805 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23806
23807 PR tree-optimization/90869
23808 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23809 converts in MEM_REF referencing decl rather than view converts
23810 from decl type to MEM_REF type.
23811
23812 2019-06-13 Richard Biener <rguenther@suse.de>
23813
23814 PR tree-optimization/90856
23815 * tree-sra.c (build_ref_for_model): Only use
23816 build_reconstructed_reference when address-spaces are the same.
23817
23818 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23819
23820 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23821 wrap ei variable name in the declaration in ()s.
23822 (nvptx_single): Actually use mode_label variable. Formatting fix.
23823
23824 2019-06-13 Richard Biener <rguenther@suse.de>
23825
23826 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23827 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23828 also return the condition stmt.
23829 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23830 loop we can version and version that, reusing the loop version
23831 created by if-conversion instead of versioning again.
23832
23833 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23834
23835 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23836 may_contain_p.
23837 * tree-vrp (value_range_base::may_contain_p): Call into
23838 value_inside_range.
23839 (value_inside_range): Make private inside value_range_base class.
23840 Take min/max from *this.
23841 (range_includes_p): Remove.
23842 * tree-vrp.h (value_range_base): Add value_inside_range.
23843 (range_includes_p): Remove.
23844 (range_includes_zero_p): Call may_contain_p.
23845 * vr-values.c (compare_range_with_value): Same.
23846
23847 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23848
23849 * doc/extend.texi (ARC Function Attributes): Update info.
23850
23851 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23852
23853 PR tree-optimization/89713
23854 * doc/invoke.texi (-ffinite-loops): Document new option.
23855 * common.opt (-ffinite-loops): New option.
23856 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23857 IFN_GOACC_LOOP calls as necessary.
23858 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23859 is finite.
23860 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23861 IFN_GOACC_LOOP call is not used.
23862 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23863
23864 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23865
23866 PR target/88838
23867 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23868 compare_type is not with Pmode size, we will create an IV with
23869 Pmode size with truncated use (i.e. converted to the correct type).
23870 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23871 (vect_iv_limit_for_full_masking): New. Factored out of
23872 vect_set_loop_condition_masked.
23873 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23874 (vect_iv_limit_for_full_masking): Declare.
23875
23876 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23877
23878 PR target/88834
23879 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23880 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23881 (get_alias_ptr_type_for_ptr_address): Likewise.
23882 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23883 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23884 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23885 allow_reg_index_p.
23886
23887 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23888
23889 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23890
23891 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23892
23893 * common/config/pru/pru-common.c: New file.
23894 * config.gcc: Add PRU target.
23895 * config/pru/alu-zext.md: New file.
23896 * config/pru/constraints.md: New file.
23897 * config/pru/predicates.md: New file.
23898 * config/pru/pru-opts.h: New file.
23899 * config/pru/pru-passes.c: New file.
23900 * config/pru/pru-pragma.c: New file.
23901 * config/pru/pru-protos.h: New file.
23902 * config/pru/pru.c: New file.
23903 * config/pru/pru.h: New file.
23904 * config/pru/pru.md: New file.
23905 * config/pru/pru.opt: New file.
23906 * config/pru/t-pru: New file.
23907 * doc/extend.texi: Document PRU pragmas.
23908 * doc/invoke.texi: Document PRU-specific options.
23909 * doc/md.texi: Document PRU asm constraints.
23910
23911 2019-06-12 Martin Sebor <msebor@redhat.com>
23912
23913 PR middle-end/90676
23914 * tree-pretty-print.c (dump_mem_ref): New function. Include
23915 MEM_REF type in output when different size than operand.
23916 (dump_generic_node): Move code to dump_mem_ref and call it.
23917
23918 2019-06-12 Martin Sebor <msebor@redhat.com>
23919
23920 PR tree-optimization/90662
23921 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23922 to arrays.
23923
23924 2019-06-12 Tom de Vries <tdevries@suse.de>
23925
23926 PR tree-optimization/90009
23927 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23928
23929 2019-06-12 Martin Liska <mliska@suse.cz>
23930
23931 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23932 the created map.
23933 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23934 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23935 Do not sanitize created maps.
23936
23937 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23938
23939 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23940 value_range::singleton_p.
23941 * tree-vrp.c (value_range_constant_singleton): Remove.
23942 * tree-vrp.h (value_range_constant_singleton): Remove.
23943 * vr-values.c (vr_values::singleton): Use
23944 value_range::singleton_p.
23945
23946 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23947
23948 PR target/90811
23949 * cfgexpand.c (align_local_variable): Add really_expand argument,
23950 don't SET_DECL_ALIGN if it is false.
23951 (add_stack_var): Add really_expand argument, pass it through to
23952 align_local_variable.
23953 (expand_one_stack_var_1): Pass true as really_expand to
23954 align_local_variable.
23955 (expand_one_ssa_partition): Pass true as really_expand to
23956 add_stack_var.
23957 (expand_one_var): Pass really_expand through to add_stack_var.
23958
23959 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23960
23961 * config/arm/iterators.md (VABAL): New int iterator.
23962 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23963 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23964 UNSPEC_VABAL_U values.
23965
23966 2019-06-12 Martin Liska <mliska@suse.cz>
23967
23968 * value-prof.c (stream_out_histogram_value): Only first value
23969 can't be negative.
23970
23971 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23972
23973 PR c/90760
23974 * symtab.c (symtab_node::set_section): Allow being called on aliases
23975 as long as they aren't analyzed yet.
23976
23977 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23978
23979 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23980 to `mips_set_text_contents_type' to indicate whether a
23981 non-debug insn follows.
23982
23983 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23984
23985 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23986 enabling -mpcrel by default.
23987 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23988 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23989 that the test against -mcpu=future is done first. Then test if
23990 -mprefixed-addr is on for -mpcrel.
23991 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23992
23993 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23994
23995 PR target/90811
23996 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23997 instead of and.u%d.
23998
23999 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24000
24001 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24002
24003 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24004
24005 PR c++/90449 - add -Winaccessible-base option.
24006 * doc/invoke.texi (Winaccessible-base): Document.
24007
24008 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24009
24010 PR tree-optimization/62041
24011 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24012
24013 2019-06-11 Jason Merrill <jason@redhat.com>
24014
24015 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24016 * tree.c (get_tree_code_name): Likewise.
24017 * print-tree.c (print_node): Only briefly print a node with an
24018 invalid code.
24019
24020 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24021
24022 PR bootstrap/90819
24023 * trans-mem.c (tm_memopt_compute_available): Add assertion
24024 that blocks is not empty. Formatting fix.
24025
24026 2019-06-11 Martin Liska <mliska@suse.cz>
24027
24028 PR c++/87847
24029 * hash-table.h: Extend create_gcc, add one parameter
24030 that is passed into hash_table::hash_table.
24031
24032 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24033
24034 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24035 New prototype.
24036 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24037 Emit clobber also for non-sse operations.
24038 (ix86_split_fp_absneg_operator): New function.
24039 * config/i386/i386.md (SSEMODEF): New mode iterator.
24040 (ssevecmodef): New mode attribute.
24041 (<code>tf2): Use absneg code iterator.
24042 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24043 Add three-operand AVX alternatives.
24044 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24045 Use absneg code iterator and X87MODEF mode iterator.
24046 (absneg fp_reg non-sse splitter): Call absneg code iterator
24047 and X87MODEF mode iterator.
24048 (absneg general_reg non-sse splitter): Use absneg code iterator
24049 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24050 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24051 code iterator. Add three-operand AVX alternative.
24052 (absneg sse_reg splitter): Use absneg code iterator
24053 and SSEMODEF mode iterator. Handle AVX operands.
24054 (absneg fp_reg splitter): Use absneg code iterator
24055 and MODEF mode iterator.
24056 (absneg general_reg splitter): Merge splitters using MODEF mode
24057 iterator. Use absneg code iterator. Call
24058 ix86_split_fp_absneg_operator.
24059 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24060 Do not enable for non-sse modes before reload.
24061 (CSGNMODE): Remove.
24062 (CSGNVMODE): Ditto.
24063 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24064 ssevecmodef mode attribute instaed of CSGNVMODE.
24065 (copysign<mode>3_const): Ditto.
24066 (copysign<mode>3_var): Ditto.
24067 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24068 Use absneg code iterator. Simplify code using std::swap.
24069 * config/i386/predicates.md (absneg_operator): Remove.
24070
24071 2019-06-10 Martin Sebor <msebor@redhat.com>
24072
24073 * gimple-fold.c (get_range_strlen): Update comment that didn't
24074 make it into r267503 or related commits.
24075
24076 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24077
24078 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24079 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24080
24081 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24082
24083 * tree.def (OMP_SCAN): New tree code.
24084 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24085 OMP_CLAUSE_EXCLUSIVE.
24086 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24087 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24088 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24089 OMP_CLAUSE_{IN,EX}CLUSIVE.
24090 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24091 * tree-nested.c (convert_nonlocal_reference_stmt,
24092 convert_local_reference_stmt, convert_gimple_call): Handle
24093 GIMPLE_OMP_SCAN.
24094 * tree-pretty-print.c (dump_omp_clause): Handle
24095 OMP_CLAUSE_{IN,EX}CLUSIVE.
24096 (dump_generic_node): Handle OMP_SCAN.
24097 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24098 * gimple.h (gomp_scan): New type.
24099 (is_a_helper <gomp_scan *>::test,
24100 is_a_helper <const gomp_scan *>::test): New templates.
24101 (gimple_build_omp_scan): Declare.
24102 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24103 gimple_omp_scan_set_clauses): New inline functions.
24104 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24105 * gimple.c (gimple_build_omp_scan): New function.
24106 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24107 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24108 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24109 GIMPLE_OMP_TASKGROUP.
24110 (dump_gimple_omp_scan): New function.
24111 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24112 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24113 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24114 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24115 (is_gimple_stmt): Handle OMP_SCAN.
24116 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24117 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24118 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24119 mentioned in nested #pragma omp scan. Handle
24120 OMP_CLAUSE_{IN,EX}CLUSIVE.
24121 (gimplify_expr): Handle OMP_SCAN.
24122 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24123 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24124 simd constructs.
24125 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24126 GIMPLE_OMP_SCAN.
24127
24128 2019-06-10 Martin Liska <mliska@suse.cz>
24129
24130 * ipa-cp.c (ignore_edge_p): New function.
24131 (build_toporder_info): Use it.
24132 * ipa-inline.c (ignore_edge_p): New function.
24133 (inline_small_functions): Use it.
24134 * ipa-pure-const.c (ignore_edge_for_nothrow):
24135 Verify opt_for_fn for caller and callee.
24136 (ignore_edge_for_pure_const): Likewise.
24137 * ipa-reference.c (ignore_edge_p): Extend to check
24138 for opt_for_fn.
24139 * ipa-utils.c (searchc): Refactor.
24140 * ipa-utils.h: Fix coding style.
24141
24142 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24143
24144 * config/arc/arc.c (arc_rtx_costs): Update costs.
24145
24146 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24147
24148 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24149 (arc_split_ior): Likewise.
24150 (arc_check_mov_const): Likewise.
24151 (arc_split_mov_const): Likewise.
24152 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24153 (arc_rtx_costs): Replace check Crr with Cax constraint.
24154 (prepare_move_operands): Cleanup, remove unused code.
24155 (arc_split_ior): New function.
24156 (arc_check_ior_const): Likewise.
24157 (arc_split_mov_const): Likewise.
24158 (arc_check_mov_const): Likewise.
24159 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24160 in define_insn_and_split pattern.
24161 (iorsi3): Likewise.
24162 (mulsi3_v2): Add new matching variant.
24163 (andsi3_i): Cleanup pattern.
24164 (rotrsi3_cnt1): Update pattern.
24165 (rotrsi3_cnt8): New pattern.
24166 (ashlsi2_cnt8): Likewise.
24167 (ashlsi2_cnt16): Likewise.
24168 * config/arc/constraints.md (C0p): Update constraint.
24169 (Crr): Remove it.
24170 (C0x): New pattern.
24171 (Cax): New pattern.
24172
24173 2019-06-10 Martin Liska <mliska@suse.cz>
24174
24175 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24176 Update coding style.
24177 (sem_item_optimizer::dump_cong_classes):
24178 Print how many items are in a non-singular class. Improve
24179 coding style.
24180
24181 2019-06-10 Martin Liska <mliska@suse.cz>
24182
24183 * value-prof.c (dump_histogram_value): Change dump format.
24184 (gimple_mod_subtract_transform): Remove legacy comment.
24185
24186 2019-06-10 Martin Liska <mliska@suse.cz>
24187
24188 * value-prof.c (dump_histogram_value): Print histogram values
24189 only if present.
24190
24191 2019-06-10 Martin Liska <mliska@suse.cz>
24192
24193 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24194 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24195 * ipa-profile.c (ipa_profile_generate_summary):
24196 Use get_most_common_single_value.
24197 * tree-profile.c (gimple_init_gcov_profiler):
24198 Instrument with __gcov_one_value_profiler_v2
24199 and __gcov_indirect_call_profiler_v4.
24200 * value-prof.c (dump_histogram_value):
24201 Print all values for HIST_TYPE_SINGLE_VALUE.
24202 (stream_out_histogram_value): Update assert for
24203 N values.
24204 (stream_in_histogram_value): Set number of
24205 counters for HIST_TYPE_SINGLE_VALUE.
24206 (get_most_common_single_value): New.
24207 (gimple_divmod_fixed_value_transform):
24208 Use get_most_common_single_value.
24209 (gimple_ic_transform): Likewise.
24210 (gimple_stringops_transform): Likewise.
24211 (gimple_find_values_to_profile): Set number
24212 of counters for HIST_TYPE_SINGLE_VALUE.
24213 * value-prof.h (get_most_common_single_value): New.
24214
24215 2019-06-10 Martin Liska <mliska@suse.cz>
24216
24217 * hash-map.h: Pass default value to hash_table ctor.
24218 * hash-table.h: Add default value to call of a ctor.
24219
24220 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24221
24222 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24223 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24224
24225 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24226
24227 PR target/90751
24228 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24229 Call pa_output_function_label.
24230 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24231 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24232 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24233 to declaration.
24234 (pa_linux_output_function_prologue): Declare.
24235 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24236 (pa_output_function_label): New.
24237 (pa_output_function_prologue): Revise to use pa_output_function_label.
24238 (pa_linux_output_function_prologue): New.
24239 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24240
24241 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24242
24243 * tree-vrp.h (value_range_base::intersect): New.
24244 (value_range::intersect_helper): Move from here...
24245 (value_range_base::intersect_helper): ...to here.
24246 * tree-vrp.c (value_range::intersect_helper): Rename to...
24247 (value_range_base::intersect_helper): ...this, and rewrite to
24248 return a value instead of modifying THIS in place.
24249 Also, move equivalence handling...
24250 (value_range::intersect): ...here, while calling intersect_helper.
24251 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24252 calling intersect.
24253 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24254 Same.
24255 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24256
24257 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24258
24259 * Makefile.in (genprogerr): Add condmd.
24260 (genprog): Remove it here.
24261
24262 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24263
24264 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24265
24266 2019-06-07 Richard Biener <rguenther@suse.de>
24267
24268 PR debug/90574
24269 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24270 that appear after user labels.
24271
24272 2019-06-07 Martin Liska <mliska@suse.cz>
24273
24274 * cselib.c (cselib_init): Disable hash table
24275 sanitization.
24276 * hash-set.h: Pass new default argument to m_table.
24277 * hash-table.c: Add global variable with hash table
24278 sanitization limit.
24279 * hash-table.h (Allocator>::hash_table): Add new argument
24280 to ctor.
24281 (hashtab_chk_error): New.
24282 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24283 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24284 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24285
24286 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24287
24288 * common.opt (flto-odr-type-merging): Ignore.
24289 * invoke.texi (-flto-odr-type-merging): Remove.
24290 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24291 (can_be_vtable_hashed_p): Remove.
24292 (hash_odr_vtable): Remove.
24293 (odr_vtable_hasher::hash): Remove.
24294 (types_same_for_odr): Remove.
24295 (types_odr_comparable): Remove.
24296 (odr_vtable_hasher::equal): Remove.
24297 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24298 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24299 (get_odr_type): Do not use vtable hash.
24300 (dump_odr_type): Remove commented out code.
24301 (build_type_inheritance_graph): Do not allocate vtable hash.
24302 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24303 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24304 (odr_type_p): Likewise.
24305 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24306 test.
24307
24308 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24309
24310 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24311 immediately after same_types_for_tbaa_p returns -1 and continue
24312 looking for possible exact match; if matching types are arrays
24313 watch for partial overlaps.
24314 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24315 (indirect_refs_may_alias_p): Do type based disambiguation first;
24316 update comment.
24317
24318 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24319
24320 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24321
24322 2019-06-07 Martin Liska <mliska@suse.cz>
24323
24324 * doc/invoke.texi: Remove param.
24325 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24326 Remove.
24327 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24328 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24329 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24330 * profile.c (instrument_values): Remove
24331 HIST_TYPE_INDIR_CALL_TOPN.
24332 * tree-profile.c (init_ic_make_global_vars):
24333 Always build __gcov_indirect_call only.
24334 (gimple_init_gcov_profiler): Remove usage
24335 of PARAM_INDIR_CALL_TOPN_PROFILE.
24336 (gimple_gen_ic_profiler): Likewise.
24337 * value-prof.c (dump_histogram_value): Likewise.
24338 (stream_in_histogram_value): Likewise.
24339 (gimple_indirect_call_to_profile): Likewise.
24340 (gimple_find_values_to_profile): Likewise.
24341 * value-prof.h (enum hist_type): Likewise.
24342
24343 2019-06-07 Martin Liska <mliska@suse.cz>
24344
24345 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24346 function.
24347
24348 2019-06-07 Martin Liska <mliska@suse.cz>
24349
24350 PR tree-optimization/78902
24351 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24352 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24353 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24354 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24355 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24356 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24357 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24358 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24359 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24360 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24361 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24362 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24363 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24364 New.
24365 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24366 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24367 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24368 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24369 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24370 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24371 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24372 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24373 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24374 warn_unused_result attribute.
24375 (BUILT_IN_STRDUP): Likewise.
24376 (BUILT_IN_STRNDUP): Likewise.
24377 (BUILT_IN_ALLOCA): Likewise.
24378 (BUILT_IN_CALLOC): Likewise.
24379 (BUILT_IN_MALLOC): Likewise.
24380 (BUILT_IN_REALLOC): Likewise.
24381
24382 2019-06-06 Jim Wilson <jimw@sifive.com>
24383
24384 PR target/89955
24385 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24386 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24387 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24388
24389 2019-06-06 Martin Sebor <msebor@redhat.com>
24390
24391 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24392 (handle_builtin_malloc): Remove trailing spaces.
24393 (handle_builtin_memset): Same.
24394 (handle_builtin_memcmp): Same.
24395 (compute_string_length): Same.
24396 (determine_min_objsize): Same.
24397 (handle_builtin_string_cmp): Same.
24398 (handle_char_store): Same. Break up excessively long line.
24399
24400 2019-06-06 Martin Jambor <mjambor@suse.cz>
24401
24402 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24403 check.
24404
24405 2019-06-06 Martin Jambor <mjambor@suse.cz>
24406
24407 * tree-sra.c (struct access): New field grp_same_access_path.
24408 (dump_access): Dump it.
24409 (build_reconstructed_reference): New function.
24410 (build_ref_for_model): Use it if possible.
24411 (path_comparable_for_same_access): New function.
24412 (same_access_path_p): Likewise.
24413 (sort_and_splice_var_accesses): Set the new flag.
24414 (analyze_access_subtree): Likewise.
24415 (propagate_subaccesses_across_link): Propagate zero value of the new
24416 flag down the access tree.
24417
24418 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24419
24420 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24421 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24422 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24423 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24424 Add gfx906.
24425
24426 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24427
24428 PR tree-optimization/90332
24429 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24430 Handle VALS containing two vectors.
24431 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24432 to...
24433 (@aarch64_combinez<mode>): ... This.
24434 (*aarch64_combinez_be<mode>): Rename to...
24435 (@aarch64_combinez_be<mode>): ... This.
24436 (vec_init<mode><Vhalf>): New define_expand.
24437 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24438
24439 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24440
24441 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24442 library functions only when not optimizing for size.
24443 (ashlsi3): Likewise.
24444 (ashrhi3): Likewise.
24445 (ashrsi3): Likewise.
24446 (lshrhi3): Likewise.
24447 (lshrsi3): Likewise.
24448
24449 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24450
24451 PR rtl-optimization/88751
24452 * ira.c (ira): Use the number of the actually referenced registers
24453 when calculating the threshold.
24454
24455 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24456
24457 * configure: Regenerate.
24458
24459 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24460
24461 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24462 register if it is in memory, so the shift can be emulated with a rotate
24463 instruction.
24464 (ashrhi3): Likewise.
24465 (lshrhi3): Likewise.
24466
24467 2019-06-06 Martin Liska <mliska@suse.cz>
24468
24469 PR tree-optimization/87954
24470 * match.pd: Simplify mult where both arguments are 0 or 1.
24471
24472 2019-06-06 Richard Biener <rguenther@suse.de>
24473
24474 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24475 put equivalences on UNDEFINED ranges.
24476 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24477 Make sure to drop defs of stmts added during simplification
24478 to VARYING.
24479
24480 2019-06-06 Richard Biener <rguenther@suse.de>
24481
24482 * tree-ssa-structalias.c: Include tree-cfg.h.
24483 (make_heapvar): Do not make heap vars artificial.
24484 (find_func_aliases_for_builtin_call): Handle stack allocation
24485 functions.
24486 (find_func_aliases): Delay processing of simple enough returns
24487 in non-IPA mode.
24488 (set_uids_in_ptset): Adjust.
24489 (find_what_var_points_to): Likewise.
24490 (solve_constraints): Do not dump points-to sets here.
24491 (compute_points_to_sets): Post-process return statements,
24492 amending the escaped solution. Dump points-to sets afterwards.
24493 (ipa_pta_execute): Dump points-to sets.
24494
24495 2019-06-06 Martin Liska <mliska@suse.cz>
24496
24497 PR web/87933
24498 * doc/install.texi: Fix HTML headers and
24499 titles for 'Installing GCC' pages.
24500
24501 2019-06-06 Martin Liska <mliska@suse.cz>
24502
24503 * ipa-icf-gimple.h (dump_message_1): Remove.
24504 (dump_message): Likewise.
24505 (return_false_with_message_1): Print also file.
24506 (return_false_with_msg): Likewise.
24507 (return_with_result): Likewise.
24508 (return_with_debug): Likewise.
24509 * ipa-icf.c (sem_function::equals_private): Remove call
24510 to dump_message.
24511
24512 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24513
24514 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24515 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24516 memory operand for it.
24517 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24518
24519 2019-06-05 Martin Sebor <msebor@redhat.com>
24520
24521 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24522 Adjust quoting and hyphenation.
24523 * convert.c (convert_to_real_1): Same.
24524 * gcc.c (driver_wrong_lang_callback): Same.
24525 (driver::handle_unrecognized_options): Same.
24526 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24527 * opts-common.c (cmdline_handle_error): Same.
24528 (read_cmdline_option): Same.
24529 * opts-global.c (complain_wrong_lang): Same.
24530 (print_ignored_options): Same.
24531 (handle_common_deferred_options): Same.
24532 * pretty-print.h: Same.
24533 * print-rtl.c (debug_bb_n_slim): Same.
24534 * sched-rgn.c (make_pass_sched_fusion): Same.
24535 * tree-cfg.c (verify_gimple_assign_unary): Same.
24536 (verify_gimple_label): Same.
24537 * tree-ssa-operands.c (verify_ssa_operands): Same.
24538 * varasm.c (do_assemble_alias): Same.
24539 (assemble_alias): Same.
24540
24541 2019-06-05 Richard Henderson <rth@twiddle.net>
24542
24543 * config/alpha/alpha.c (direct_return): Move down after
24544 struct machine_function definition; use saved frame_size;
24545 return bool.
24546 (struct machine_function): Add sa_mask, sa_size, frame_size.
24547 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24548 (alpha_compute_frame_layout): ... new function.
24549 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24550 (alpha_initial_elimination_offset): Use saved sa_size.
24551 (alpha_vms_initial_elimination_offset): Likewise.
24552 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24553 (alpha_expand_prologue): Use saved frame data. Merge integer
24554 and fp register save loops.
24555 (alpha_expand_epilogue): Likewise.
24556 (alpha_start_function): Use saved frame data.
24557 * config/alpha/alpha-protos.h (direct_return): Update.
24558 (alpha_sa_size): Remove.
24559
24560 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24561
24562 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24563 multiplication by a power-of-two value.
24564 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24565 and turn the modulo operation into a masking operation.
24566
24567 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24568
24569 PR debug/90733
24570 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24571 with VOIDmode inner operands.
24572
24573 2019-06-05 Richard Biener <rguenther@suse.de>
24574
24575 PR middle-end/90726
24576 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24577 turn an expression graph into a tree.
24578
24579 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24580
24581 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24582 member.
24583 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24584 treat it like explicit monotonic schedule modifier.
24585 (expand_omp_for): Initialize has_lastprivate_conditional.
24586 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24587 schedule modifier.
24588
24589 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24590 references, lookup in in hash map MEM_REF operand instead of the
24591 MEM_REF itself.
24592 (lower_omp_1): When looking for lastprivate conditional assignments,
24593 handle MEM_REFs with REFERENCE_TYPE operands.
24594
24595 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24596 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24597 and references a VLA. Handle references to non-VLAs if is_simd
24598 all privatization clauses like reductions.
24599 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24600 If omp_is_reference, use always omp simd arrays and set
24601 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24602 fails, emit reference initialization.
24603
24604 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24605
24606 PR target/89803
24607 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24608 _mm_mask_fpclass_sd_mask): New intrinsics.
24609 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24610 * config/i386/i386-builtin.def
24611 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24612 New builtins.
24613 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24614 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24615 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24616 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24617 case QI_FTYPE_V2SF_INT): Ditto.
24618 * config/i386/sse.md
24619 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24620 Extended to insnstructions with mask operands.
24621
24622 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24623
24624 * config/rs6000/constraints.md (define_register_constraint "wp"):
24625 Delete.
24626 (define_register_constraint "wq"): Delete.
24627 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24628 (rs6000_init_hard_regno_mode_ok): Adjust.
24629 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24630 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24631 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24632 (define_mode_attr VSa): Delete.
24633 (define_mode_attr VSisa): New.
24634 (rest of file): Adjust.
24635 * doc/md.texi (Machine Constraints): Adjust.
24636
24637 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24638
24639 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24640 (define_attr "enabled"): Handle those new isa values.
24641
24642 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24643
24644 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24645 (define_mode_attr VSr5): Delete.
24646 (define_mode_attr VStype_sqrt): Delete.
24647 (define_mode_iterator VSX_SPDP): Delete.
24648 (define_mode_attr VS_spdp_res): Delete.
24649 (define_mode_attr VS_spdp_insn): Delete.
24650 (define_mode_attr VS_spdp_type): Delete.
24651 (*vsx_sqrt<mode>2): Adjust.
24652 (vsx_<VS_spdp_insn>): Delete, split to...
24653 (vsx_xscvdpsp): ... this. New. And...
24654 (vsx_xvcvspdp): ... this. New. And...
24655 (vsx_xvcvdpsp): ... this. New.
24656
24657 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24658
24659 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24660 and V2DF.
24661 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24662 (rest of file): Adjust.
24663
24664 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24665
24666 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24667 (vsx_extract_<mode>_var): Ditto.
24668
24669 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24670
24671 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24672 with just "wa".
24673
24674 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24675
24676 * config/rs6000/constraints.md (define_register_constraint "ww"):
24677 Delete.
24678 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24679 (rs6000_init_hard_regno_mode_ok): Adjust.
24680 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24681 RS6000_CONSTRAINT_ww.
24682 * config/rs6000/rs6000.md: Adjust.
24683 * config/rs6000/vsx.md: Adjust.
24684 * doc/md.texi (Machine Constraints): Adjust.
24685
24686 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24687
24688 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24689 (define_mode_attr sd): New.
24690 (define_mode_attr s): New.
24691 (define_mode_attr Ftrad): Delete.
24692 (define_mode_attr Fvsx): Delete.
24693 (define_mode_attr Fs): Delete.
24694 (rest of file): Use the new mode attributes.
24695 * config.rs6000/vsx.md: Use the new mode attributes.
24696
24697 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24698
24699 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24700 with just "wa".
24701
24702 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24703
24704 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24705 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24706 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24707
24708 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24709
24710 PR target/78263
24711 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24712 C++ with strict ANSI requirements.
24713
24714 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24715
24716 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24717 computations when step is 1.
24718
24719 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24720
24721 * config/rs6000/constraints.md (define_register_constraint "wf"):
24722 Delete.
24723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24724 (rs6000_init_hard_regno_mode_ok): Adjust.
24725 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24726 RS6000_CONSTRAINT_wf.
24727 * config/rs6000/rs6000.md: Adjust.
24728 * config/rs6000/vsx.md: Adjust.
24729 * doc/md.texi (Machine Constraints): Adjust.
24730
24731 2019-06-04 Andrew Pinski <apinski@marvell.com>
24732
24733 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24734 Fix ILP32 value.
24735
24736 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24737
24738 * config/rs6000/constraints.md (define_register_constraint "wd"):
24739 Delete.
24740 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24741 (rs6000_init_hard_regno_mode_ok): Adjust.
24742 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24743 RS6000_CONSTRAINT_wd.
24744 * config/rs6000/rs6000.md: Adjust.
24745 * config/rs6000/vsx.md: Adjust.
24746 * doc/md.texi (Machine Constraints): Adjust.
24747
24748 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24749
24750 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24751 (rest of file): Adjust.
24752
24753 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24754
24755 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24756 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24757 (vsx_splat_<mode>_reg): Adjust.
24758
24759 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24760
24761 * config/rs6000/constraints.md (define_register_constraint "ws"):
24762 Delete.
24763 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24764 (rs6000_init_hard_regno_mode_ok): Adjust.
24765 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24766 RS6000_CONSTRAINT_ws.
24767 * config/rs6000/rs6000.md: Adjust.
24768 * config/rs6000/vsx.md: Adjust.
24769 * doc/md.texi (Machine Constraints): Adjust.
24770
24771 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24772
24773 * config/rs6000/constraints.md (define_register_constraint "wv"):
24774 Delete.
24775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24776 (rs6000_init_hard_regno_mode_ok): Adjust.
24777 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24778 RS6000_CONSTRAINT_wv.
24779 * config/rs6000/rs6000.md: Adjust.
24780 * config/rs6000/vsx.md: Adjust.
24781 * doc/md.texi (Machine Constraints): Adjust.
24782
24783 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24784
24785 * config/rs6000/constraints.md (define_register_constraint "wi"):
24786 Delete.
24787 (define_register_constraint "wt"): Delete.
24788 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24789 (rs6000_init_hard_regno_mode_ok): Adjust.
24790 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24791 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24792 * config/rs6000/rs6000.md: Adjust.
24793 * config/rs6000/vsx.md: Adjust.
24794 * doc/md.texi (Machine Constraints): Adjust.
24795
24796 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24797
24798 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24799 const.
24800 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24801 default_elf_asm_output_external.
24802
24803 2019-06-04 Martin Liska <mliska@suse.cz>
24804
24805 * ipa-icf.c (INCLUDE_LIST): Remove.
24806 (sem_item_optimizer::execute): Remove call to init_wpa.
24807 * ipa-icf.h (init_wpa): Remove.
24808
24809 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24810
24811 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24812 conditional on combined for simd.
24813 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24814 member.
24815 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24816 constructs, don't remove lastprivate_conditional_map, but instead set
24817 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24818 to parent construct temporaries.
24819 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24820 like !ctx->lastprivate_conditional_map.
24821 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24822 use up->outer context instead of up.
24823 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24824 gimple_omp_for_combined_p.
24825 (expand_omp_for_static_nochunk): Likewise.
24826 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24827 probably moved over into expand_omp_for_generic rather than being copied
24828 there.
24829
24830 2019-06-04 Martin Liska <mliska@suse.cz>
24831
24832 * value-prof.c (dump_histogram_value): Fix typo.
24833 (gimple_mod_subtract_transform): Likewise.
24834
24835 2019-06-04 Richard Biener <rguenther@suse.de>
24836
24837 PR middle-end/90726
24838 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24839 (tree_contains_chrecs): Likewise.
24840 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24841 exponential behaivor from ...
24842 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24843 ... here.
24844 (expression_expensive_p): Avoid exponential behavior and compute
24845 expanded size, rejecting any expansion.
24846 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24847 (idx_contains_abnormal_ssa_name_p): Likewise.
24848 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24849 (contains_abnormal_ssa_name_p): Simplify and use
24850 walk_tree_without_duplicates.
24851
24852 2019-06-04 Richard Biener <rguenther@suse.de>
24853
24854 PR tree-optimization/90738
24855 Revert
24856 2019-06-03 Richard Biener <rguenther@suse.de>
24857
24858 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24859 full reference tree and record in ref->ref.
24860 (vn_reference_lookup_3): Pass in original ref to
24861 ao_ref_init_from_vn_reference.
24862 (vn_reference_lookup): Likewise.
24863 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24864 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24865 Handle non-decl bases in the original reference.
24866
24867 2019-06-04 Martin Liska <mliska@suse.cz>
24868
24869 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24870 number of references.
24871 (sem_item_optimizer::do_congruence_step):
24872 (sem_item_optimizer::worklist_push): Dump how references
24873 a class has.
24874 (sem_item_optimizer::worklist_pop): Use heap.
24875 (sem_item_optimizer::process_cong_reduction): Likewise.
24876 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24877
24878 2019-06-04 Martin Liska <mliska@suse.cz>
24879
24880 * ipa-icf.h (struct sem_usage_pair_hash): New.
24881 (sem_usage_pair_hash::hash): Likewise.
24882 (sem_usage_pair_hash::equal): Likewise.
24883 (struct sem_usage_hash): Likewise.
24884 * ipa-icf.c (sem_item::sem_item): Initialize
24885 referenced_by_count.
24886 (sem_item::add_reference): Register a reference
24887 in ref_map and not in target->usages.
24888 (sem_item::setup): Remove initialization of
24889 dead vectors.
24890 (sem_item::~sem_item): Remove usage of dead vectors.
24891 (sem_item::dump): Remove dump of references.
24892 (sem_item_optimizer::sem_item_optimizer): Initialize
24893 m_references.
24894 (sem_item_optimizer::read_section): Remove useless
24895 dump.
24896 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24897 (sem_item_optimizer::build_graph): Pass m_references
24898 to ::add_reference.
24899 (sem_item_optimizer::verify_classes): Remove usage of dead
24900 vectors.
24901 (sem_item_optimizer::traverse_congruence_split): Return true
24902 when a class is split.
24903 (sem_item_optimizer::do_congruence_step_for_index): Use
24904 hash_map for look up of (sem_item *, index). That brings
24905 significant speed up.
24906 (sem_item_optimizer::do_congruence_step): Return true
24907 when a split is done.
24908 (congruence_class::is_class_used): Use referenced_by_count.
24909
24910 2019-06-04 Alan Modra <amodra@gmail.com>
24911
24912 PR target/90689
24913 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24914 error.
24915
24916 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24917
24918 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24919 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24920 (rs6000_secondary_reload_simple_move): Adjust.
24921 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24922 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24923 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24924 comment.
24925 (power6x): Adjust.
24926 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24927 (floatunssi<mode>2_lfiwzx): Adjust.
24928 (fix_trunc<mode>si2_stfiwx): Adjust.
24929 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24930 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24931 (mfpgpr): Mark as deprecated.
24932 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24933 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24934 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24935
24936 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24937
24938 * config/rs6000/constraints.md (define_register_constraint "wg"):
24939 Delete.
24940 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24941 RS6000_CONSTRAINT_wg.
24942 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24943 (rs6000_init_hard_regno_mode_ok): Adjust.
24944 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24945 Delete "wg" alternatives.
24946 * doc/md.texi (Machine Constraints): Adjust.
24947
24948 2019-06-03 Alan Modra <amodra@gmail.com>
24949
24950 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24951 (get_uncond_jump_length): Assert length less than INT_MAX and
24952 non-negative.
24953
24954 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24955
24956 PR middle-end/64242
24957 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24958 block.
24959 (expand_builtin_nonlocal_goto): Likewise.
24960
24961 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24962
24963 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24964 (aarch64_asm_output_external): Declare.
24965 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24966 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24967 (aarch64_asm_output_alias): New.
24968 (aarch64_asm_output_external): New.
24969 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24970 (ASM_OUTPUT_EXTERNAL): Define.
24971
24972 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24973 * tree-vrp.h (value_range_base::nonzero_p): New.
24974 (value_range_base::set_nonnull): Rename to...
24975 (value_range_base::set_nonzero): ...this.
24976 (value_range_base::set_null): Rename to...
24977 (value_range_base::set_zero): ...this.
24978 (value_range::set_nonnull): Remove.
24979 (value_range::set_null): Remove.
24980 * tree-vrp.c (range_is_null): Remove.
24981 (range_is_nonnull): Remove.
24982 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24983 instead of range_is_*null.
24984 (extract_range_from_unary_expr): Same.
24985 (value_range_base::set_nonnull): Rename to...
24986 (value_range_base::set_nonzero): ...this.
24987 (value_range::set_nonnull): Remove.
24988 (value_range_base::set_null): Rename to...
24989 (value_range_base::set_zero): ...this.
24990 (value_range::set_null): Remove.
24991 (extract_range_from_binary_expr): Rename set_*null uses to
24992 set_*zero.
24993 (extract_range_from_unary_expr): Same.
24994 (union_helper): Same.
24995 * vr-values.c (get_value_range): Use set_*zero instead of
24996 set_*null.
24997 (vr_values::extract_range_from_binary_expr): Same.
24998 (vr_values::extract_range_basic): Same.
24999
25000 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25001
25002 PR driver/90684
25003 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25004
25005 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25006
25007 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25008 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25009 Rename to...
25010 (aarch64_<su>abd<mode>_3): ... This.
25011 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25012
25013 2019-06-03 Richard Biener <rguenther@suse.de>
25014
25015 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25016 full reference tree and record in ref->ref.
25017 (vn_reference_lookup_3): Pass in original ref to
25018 ao_ref_init_from_vn_reference.
25019 (vn_reference_lookup): Likewise.
25020 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25021 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25022 Handle non-decl bases in the original reference.
25023
25024 2019-06-03 Martin Liska <mliska@suse.cz>
25025
25026 * doc/generic.texi: Remove Java Trees.
25027
25028 2019-06-03 Martin Liska <mliska@suse.cz>
25029
25030 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25031 returns 0 when operands are equal.
25032
25033 2019-06-03 Richard Biener <rguenther@suse.de>
25034
25035 PR tree-optimization/90716
25036 * tree-loop-distribution.c (destroy_loop): Process blocks in
25037 correct order.
25038
25039 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25040
25041 PR target/88837
25042 * vector-builder.h (vector_builder::count_dups): New method.
25043 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25044 Declare prototype.
25045 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25046 (vec_init<mode><Vel>): New pattern.
25047 * config/aarch64/aarch64.c (emit_insr): New function.
25048 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25049 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25050 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25051 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25052
25053 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25054
25055 PR tree-optimization/90681
25056 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25057 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25058 special case for SLP, but fail on non-groupped loads.
25059
25060 2019-06-03 Martin Liska <mliska@suse.cz>
25061
25062 * cfg.c (debug): Use TDF_DETAILS for debug and
25063 print edge info only once.
25064
25065 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25066
25067 PR fortran/90539
25068 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25069
25070 2019-06-01 Martin Sebor <msebor@redhat.com>
25071
25072 PR middle-end/90694
25073 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25074
25075 2019-05-31 Jan Hubicka <jh@suse.cz>
25076
25077 * alias.c: Include ipa-utils.h.
25078 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25079 * ipa-devirt.c (prevailing_odr_type): New.
25080 * ipa-utils.h (previaling_odr_type): Declare.
25081
25082 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25083 Hongtao Liu <hongtao.liu@intel.com>
25084
25085 PR target/89355
25086 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25087 NOTE_INSN_DELETED_LABEL check.
25088
25089 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25090 Robert Suchanek <robert.suchanek@mips.com>
25091
25092 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25093 and 3rd operands of the fmadd/fmsub/maddv builtin.
25094
25095 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25096
25097 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25098 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25099 on OMP_SIMD if not nested inside of worksharing loop that also has
25100 lastprivate conditional clause for the same decl.
25101 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25102 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25103 on simd.
25104 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25105 on simd construct.
25106 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25107 on simd construct.
25108 (lower_lastprivate_clauses): Likewise.
25109 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25110 calling lower_rec_input_clauses.
25111 (lower_omp_for): Likewise.
25112 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25113 clause on simd construct.
25114 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25115 OMP_CLAUSE__CONDTEMP_ clause is present.
25116
25117 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25118 ivar and lvar.
25119
25120 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25121
25122 PR c/43673
25123 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25124 TEX_D32, TEX_D64 or TEX_D128.
25125
25126 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25127
25128 * match.pd (~(vec?cst1:cst2)): New transformation.
25129
25130 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25131
25132 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25133 ((size_t)(A /[ex] B) CMP C): New transformation.
25134
25135 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25136
25137 * doc/md.texi: Document define_insn_and_rewrite.
25138 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25139 * gensupport.c (queue_elem): Update comment.
25140 (replace_operands_with_dups): New function.
25141 (gen_rewrite_sequence): Likewise.
25142 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25143 * read-rtl.c (apply_subst_iterator): Likewise.
25144 (add_condition_to_rtx, named_rtx_p): Likewise.
25145 (rtx_reader::read_rtx_operand): Likewise.
25146 * config/aarch64/aarch64-sve.md
25147 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25148 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25149 define_insn_and_rewrite.
25150 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25151 Remove separate define_split.
25152
25153 2019-05-31 Jan Hubicka <jh@suse.cz>
25154
25155 * tree-ssa-alias.c (type_has_components_p): New function.
25156 (aliasing_component_refs_p): Use it.
25157
25158 2019-05-31 Martin Liska <mliska@suse.cz>
25159
25160 * gdbhooks.py: Add const_tree to TreePrinter.
25161
25162 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25163
25164 PR debug/86964
25165 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25166 * doc/invoke.texi (Debugging Options): Document new default of
25167 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25168
25169 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25170
25171 PR tree-optimization/90671
25172 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25173 template_block used to be empty on the first call, don't use
25174 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25175 seq with bb_seq and set it with set_bb_seq.
25176
25177 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25178
25179 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25180
25181 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25182 Michael Meissner <meissner@linux.ibm.com>
25183
25184 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25185 (prefixed_mem_operand): Likewise.
25186 (non_prefixed_mem_operand): Likewise.
25187 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25188 prototype.
25189 * config/rs6000/rs6000.c (print_operand_address): Handle
25190 PC-relative addresses.
25191 (mode_supports_prefixed_address_p): New function.
25192 (rs6000_prefixed_address): New function.
25193 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25194 (SYMBOL_REF_PCREL_P): Likewise.
25195
25196 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25197
25198 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25199 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25200 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25201 is nested inside of parallel region, add _condtemp_ clause to both.
25202 * tree-nested.c (convert_nonlocal_omp_clauses,
25203 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25204 assertion failure.
25205 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25206 member.
25207 * omp-general.c (omp_extract_for_data): Compute it.
25208 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25209 (lower_rec_input_clauses): Likewise.
25210 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25211 clause is already present, just add one further one after it.
25212 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25213 (lower_send_shared_vars): Clear _condtemp_ vars.
25214 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25215 or section or taskgroup.
25216 * omp-expand.c (determine_parallel_type): Disallow combining only if
25217 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25218 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25219 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25220 expand_omp_for_static_chunk, expand_omp_for): Use
25221 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25222 determine if a special set of API routines are needed and if condtemp
25223 needs to be initialized, while always initialize cond_var if
25224 fd->lastprivate_conditional is non-zero.
25225
25226 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25227 Michael Meissner <meissner@linux.ibm.com>
25228
25229 * config/rs6000/constraints.md (eI): New constraint.
25230 * config/rs6000/predicates.md (cint34_operand): New predicate.
25231 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25232 (SIGNED_34BIT_OFFSET_P): Likewise.
25233 * doc/md.texi (eI): Document constraint.
25234
25235 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25236
25237 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25238
25239 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25240 Michael Meissner <meissner@linux.ibm.com>
25241
25242 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25243 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25244 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25245 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25246 (OTHER_FUTURE_MASKS): Likewise.
25247 (POWERPC_MASKS): Likewise.
25248 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25249 specified without -mprefixed-addr or -mcpu=future. Error if
25250 -mprefixed-addr is specified without -mcpu=future.
25251 (rs6000_opt_masks): Add entry for prefixed-addr.
25252 * rs6000.opt (mprefixed-addr): New option.
25253
25254 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25255
25256 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25257 cfun->is_thunk check.
25258
25259 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25260
25261 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25262 to length.
25263
25264 2019-05-30 Martin Liska <mliska@suse.cz>
25265
25266 * gdbinit.in: Fix 'ptc' command. Add trt
25267 that prints TREE_TYPE($).
25268
25269 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25270 Alan Modra <amodra@gmail.com>
25271
25272 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25273 calls here...
25274 (rs6000_indirect_call_template_1): ...and here.
25275 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25276 plt16_ha, plt16_lo, mtctr indirect calls. Use
25277 rs6000_pltseq_enum.
25278 (rs6000_decl_ok_for_sibcall): New function.
25279 (rs6000_function_ok_for_sibcall): Refactor.
25280 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25281 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25282 when pcrel. Reorganize.
25283 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25284 * rs6000.h (rs6000_pltseq_enum): New enum.
25285 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25286 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25287 (*pltseq_plt16_ha): Likewise.
25288 (*pltseq_plt16_lo): Likewise.
25289 (*pltseq_mtctr): Likewise.
25290 (*pltseq_plt_pcrel): New insn.
25291 (*call_local_aix): Handle @notoc calls.
25292 (*call_value_local_aix): Likewise.
25293 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25294 (*call_value_nonlocal_aix): Likewise.
25295 (*call_indirect_pcrel): New insn.
25296 (*call_value_indirect_pcrel): Likewise.
25297
25298 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25299
25300 * config/i386/sse.md (*save_multiple<mode>): Rename from
25301 save_multiple<mode>.
25302 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25303 (*restore_multiple_and_return<mode>): Rename from
25304 restore_multiple_and_return<mode>.
25305 (*restore_multiple_leave_return<mode>): Rename from
25306 restore_multiple_leave_return<mode>.
25307
25308 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25309
25310 * config.gcc (rx-*-linux*): New target.
25311 * config/rx/elf.opt: New file.
25312 * config/rx/linux.h: Likewise.
25313 * config/rx/t-linux: Likewise.
25314 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25315 make it zero.
25316 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25317 (ASM_APP_OFF): Likewise.
25318 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25319 moved elsewhere.
25320
25321 2019-05-29 Jan Hubicka <jh@suse.cz>
25322
25323 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25324 variants are pointer equivalent.
25325
25326 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25327
25328 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25329 * config/aarch64/aarch64-sve2.md: New file.
25330 (<u>avg<mode>3_floor): New pattern.
25331 (<u>avg<mode>3_ceil): Likewise.
25332 (*<sur>h<addsub><mode>): Likewise.
25333 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25334 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25335
25336 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25337
25338 PR bootstrap/90543
25339 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25340 for var_opt_string printing. In cl_optimization_print_diff, print
25341 (null) instead of invoking undefined behavior if one of the
25342 var_opt_string pointers is NULL and use && instead of first || in the
25343 guarding condition. For var_target_other options, handle const char *
25344 target variables similarly to const char * optimize node variables.
25345
25346 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25347
25348 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25349 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25350 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25351 Add autib1716 and pacib1716 initialisation.
25352 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25353 for autib1716 and pacib1716.
25354 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25355 aarch64_post_cfi_startproc): Define.
25356 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25357 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25358 aarch64_handle_pac_ret_protection): Set default sign key to A.
25359 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25360 aarch64_expand_prologue): Add check for b-key.
25361 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25362 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25363 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25364 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25365 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25366 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25367 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25368 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25369 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25370 pauth_hint_num_a with pauth_hint_num.
25371 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25372 pauth_hint_num_a with pauth_hint_num.
25373 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25374 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25375 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25376 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25377 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25378 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25379 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25380 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25381 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25382 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25383 UNSPEC_AUTIA1716 respectively.
25384 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25385 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25386 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25387 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25388 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25389 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25390
25391 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25392
25393 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25394 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25395 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25396 explicit clause on combined parallel into implicit shared clause.
25397 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25398 and firstprivate if the decl has one too from combined parallel to
25399 the worksharing construct.
25400
25401 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25402 Michael Meissner <meissner@linux.ibm.com>
25403
25404 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25405
25406 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25407
25408 * rtl.h (LABEL_REF_P): New #define.
25409
25410 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25411
25412 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25413
25414 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25415
25416 * internal-fn.c: Marked mask_load_direct as vectorizable.
25417 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25418 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25419 combined even if masks different with allow_slp_p param.
25420 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25421 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25422 dissolve SLP-only vectorizable groups when SLP has been discarded.
25423 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25424 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25425 masks.
25426 (vect_build_slp_tree_1): Fixed comment typo.
25427 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25428 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25429 loads for SLP only.
25430 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25431 vectorizable.
25432 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25433
25434 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25435
25436 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25437 Remove obsolete use_thunk reference.
25438 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25439 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25440 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25441 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25442 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25443 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25444 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25445 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25446 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25447
25448 2019-05-28 Nathan Sidwell <nathan@acm.org>
25449
25450 * tree.h (IDENTIFIER_ANON_P): New.
25451 (anon_aggrname_format, anon_aggname_p): Don't declare.
25452 (make_anon_name): Declare.
25453 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25454 (hash_tree): Likewise.
25455 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25456 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25457 (anon_cnt, make_anon_name): New.
25458
25459 2019-05-28 Martin Liska <mliska@suse.cz>
25460
25461 PR other/90315
25462 * opts-global.c (decode_options): Print help for all
25463 help_option_arguments.
25464 * opts.c (print_help): Add new argument.
25465 (common_handle_option): Remember all values into
25466 help_option_arguments.
25467 * opts.h (print_help): Add new argument.
25468
25469 2019-05-28 Martin Liska <mliska@suse.cz>
25470
25471 PR ipa/90555
25472 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25473 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25474 (func_checker::compare_bb): Call compare_loops.
25475
25476 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25477
25478 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25479 on sections construct.
25480 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25481 construct.
25482 (lower_omp_sections): Handle lastprivate conditional.
25483 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25484 lastprivate_conditional_map.
25485 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25486
25487 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25488 critical, taskgroup and section regions when looking for a region
25489 with non-NULL lastprivate_conditional_map.
25490
25491 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25492
25493 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25494 (*ix86_gen_sub3): Ditto.
25495 (*ix86_gen_sub3_carry): Ditto.
25496 (*ix86_gen_one_cmpl2): Ditto.
25497 (*ix86_gen_andsp): Ditto.
25498 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25499 (gen_and2_insn): New static function.
25500 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25501 Use gen_add3_insn instead of ix86_gen_add3.
25502 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25503 instead of ix86_gen_add3.
25504 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25505 Use gen_sub3_insn instead of ix86_gen_sub3.
25506 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25507 instead of ix86_gen_add3.
25508 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25509 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25510 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25511 * config/i386/i386-options.c (ix86_option_override_internal):
25512 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25513 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25514
25515 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25516
25517 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25518 and DW_OP_GNU_const_index opcodes.
25519
25520 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25521
25522 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25523
25524 2019-05-27 Richard Biener <rguenther@suse.de>
25525
25526 PR tree-optimization/90637
25527 * tree-ssa-sink.c (statement_sink_location): Honor the
25528 computed sink location for single-uses.
25529
25530 2019-05-27 Richard Biener <rguenther@suse.de>
25531
25532 PR middle-end/90610
25533 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25534 a bit-insert.
25535
25536 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25537
25538 * config/i386/i386.md (@sub<mode>3_carry): Rename
25539 from sub<mode>3_carry.
25540 (@leave_<mode>): New expander.
25541 (*leave): Rename from leave.
25542 (*leave_rex64): Rename from leave_rex64.
25543 (@monitorx_<mode>): Rename from monitorx_<mode>.
25544 (@clzero_<mode>): Rename from clzero_<mode>.
25545 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25546 from sse3_monitor_<mode>.
25547 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25548 (*ix86_gen_leave): Ditto.
25549 (*ix86_gen_monitor): Ditto.
25550 (*ix86_gen_monitorx): Ditto.
25551 (*ix86_gen_clzero): Ditto.
25552 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25553 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25554 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25555 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25556 Use gen_sse3_monitor instead of ix86_gen_monitor.
25557 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25558 instead of ix86_gen_monitorx.
25559 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25560 instead of ix86_gen_clzero.
25561 * config/i386/i386-options.c (ix86_option_override_internal):
25562 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25563 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25564
25565 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25566
25567 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25568 Rename from tls_global_dynamic_64_<mode>.
25569 (@tls_local_dynamic_base_64_<mode>): Rename from
25570 tls_local_dynamic_base_64_<mode>.
25571 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25572 Remove indirect function.
25573 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25574 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25575 instead of ix86_gen_tls_global_dynamic_64.
25576 Use gen_tls_local_dynamic_base_64 instead of
25577 ix86_gen_tls_local_dynamic_base_64.
25578 * config/i386/i386-options.c (ix86_option_override_internal):
25579 Do not initialize ix86_gen_tls_global_dynamic_64 and
25580 ix86_gen_tls_local_dynamic_base_64.
25581
25582 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25583
25584 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25585 Rename from pro_epilogue_adjust_stack_<mode>_add.
25586 (@pro_epilogue_adjust_stack_sub_<mode>)
25587 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25588 (@allocate_stack_worker_probe_<mode>):
25589 Rename from allocate_stack_worker_probe_<mode>.
25590 (allocate_stack): Use gen_allocate_stack_worker_probe.
25591 (probe_stack): Use gen_probe_stack_1.
25592 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25593 (@adjust_stack_and_probe_<mode>): Rename from
25594 adjust_stack_and_probe<mode>.
25595 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25596 (stack_protect_set): Use gen_stack_protect_set_1.
25597 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25598 (stack_protect_test): Use gen_stack_protect_test_1.
25599 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25600 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25601 Remove indirect function.
25602 (*ix86_gen_adjust_stack_and_probe): Ditto.
25603 (*ix86_gen_probe_stack_range): Ditto.
25604 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25605 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25606 (ix86_adjust_stack_and_probe_stack_clash): Use
25607 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25608 (ix86_adjust_stack_and_probe): Ditto.
25609 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25610 of ix86_gen_probe_stack_range.
25611 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25612 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25613 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25614 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25615 CODE_FOR_stack_protect_test_{si,di}.
25616 * config/i386/i386-options.c (ix86_option_override_internal):
25617 Do not initialize ix86_gen_allocate_stack_worker,
25618 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25619
25620 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25621
25622 * doc/invoke.texi (Link Options): Many editorial changes around
25623 -flinker-output.
25624
25625 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25626
25627 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25628 pre-Solaris 11 referene and most Studio compiler details.
25629
25630 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25631
25632 PR target/90530
25633 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25634 DImode to SImode in floating-point registers on 64-bit target.
25635 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25636 register_operand in xmpyu patterns.
25637
25638 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25639
25640 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25641 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25642 OMP_CLAUSE__REDUCTEMP_.
25643 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25644 OMP_CLAUSE__CONDTEMP_.
25645 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25646 * tree-pretty-print.c (dump_omp_clause): Likewise.
25647 * tree-nested.c (convert_nonlocal_omp_clauses,
25648 convert_local_omp_clauses): Likewise.
25649 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25650 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25651 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25652 on OMP_FOR.
25653 (gimplify_omp_for): Warn and disable conditional modifier from
25654 lastprivate on loop iterators.
25655 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25656 member.
25657 * omp-general.c (omp_extract_for_data): Initialize it.
25658 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25659 member.
25660 (delete_omp_context): Delete it.
25661 (lower_lastprivate_conditional_clauses): New function.
25662 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25663 handle lastprivate conditional clauses.
25664 (lower_reduction_clauses): Add CLIST argument, emit it into
25665 the critical section if any.
25666 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25667 lower_reduction_clauses callers.
25668 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25669 to lower_lastprivate_clauses.
25670 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25671 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25672 clist into a critical section if not emitted there already by
25673 lower_reduction_clauses.
25674 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25675 callers.
25676 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25677 conditional variables.
25678 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25679 clause is present.
25680 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25681 expand_omp_for_static_chunk): Handle lastprivate conditional.
25682 (expand_omp_for): Handle fd.lastprivate_conditional like
25683 fd.have_reductemp.
25684
25685 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25686
25687 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25688 kernel does not exit cleanly.
25689 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25690
25691 2019-05-24 Jason Merrill <jason@redhat.com>
25692
25693 Revert:
25694 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25695
25696 2019-05-24 Richard Biener <rguenther@suse.de>
25697
25698 PR testsuite/90607
25699 * tree-loop-distribution.c (struct partition): Add location
25700 member.
25701 (partition_alloc): Initialize all fields.
25702 (generate_memset_builtin): Use the location recorded in the
25703 partition for the generated call.
25704 (generate_memcpy_builtin): Likewise.
25705 (classify_partition): Record the location of a single store
25706 as location for the partition.
25707
25708 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25709
25710 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25711 for lo-part.
25712
25713 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25714
25715 PR target/90588
25716 * common/config/aarch64/aarch64-common.c
25717 (aarch64_rewrite_selected_cpu): Change local temporary variable
25718 type from unsigned long to uint64_t.
25719 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25720 aarch64_get_extension_string_for_isa_flags): Change declaration to
25721 match new definition by replacing unsigned long with uint64_t.
25722
25723 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25724
25725 PR target/90568
25726 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25727 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25728 Handle stack_protect_test_<mode> codegen similarly to corresponding
25729 sub instruction.
25730
25731 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25732
25733 * config/i386/darwin.h: Reject -mfentry*.
25734 * doc/sourcebuild.texi: Document mfentry target support.
25735
25736 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25737
25738 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25739 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25740 false for PC-relative functions.
25741 (rs6000_output_function_prologue): Change called function name to
25742 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25743 name,1" for PC-relative functions.
25744 (rs6000_elf_declare_function_name): Change called function name to
25745 rs6000_global_entry_point_prologue_needed_p.
25746
25747 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25748
25749 PR target/90552
25750 * config/i386/i386.c (gen_rtx_cost):
25751 Use ix86_tune_cost instead of ix86_cost.
25752
25753 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25754 Michael Meissner <meissner@linux.ibm.com>
25755 Segher Boessenkool <segher@kernel.crashing.org>
25756
25757 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25758 OPTION_MASK_PCREL.
25759 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25760 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25761 (rs6000_fndecl_pcrel_p): Likewise.
25762 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25763 error if -mpcrel is requested without -mcpu=future.
25764 (rs6000_opt_masks): Add entry for pcrel.
25765 (rs6000_fndecl_pcrel_p): New function.
25766 (rs6000_pcrel_p): Likewise.
25767 * config/rs6000/rs6000.opt (mpcrel): New option.
25768 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25769
25770 2019-05-23 Jan Hubicka <jh@suse.cz>
25771 Martin Liska <mliska@suse.cz>
25772
25773 PR tree-optimization/90576
25774 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25775 poly_int_tree_p.
25776 (aliasing_component_refs_p): Fix three way size compare conditional;
25777 give up earlier in case we can not decide on equivalence.
25778
25779 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25780 Michael Meissner <meissner@linux.ibm.com>
25781 Segher Boessenkool <segher@kernel.crashing.org>
25782
25783 * config.gcc: Add future cpu.
25784 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25785 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25786 #define.
25787 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25788 (RS6000_CPU): New instantiation for future cpu.
25789 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25790 PROCESSOR_FUTURE.
25791 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25792 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25793 * config/rs6000/rs6000-tables.opt: Regenerate.
25794 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25795 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25796 (rs6000_machine_from_flags): Handle future cpu.
25797 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25798 PROCESSOR_POWER9 for now.
25799 (rs6000_adjust_cost): Likewise.
25800 (rs6000_issue_rate): Likewise.
25801 (rs6000_register_move_cost): Likewise.
25802 (rs6000_opt_masks): Add entry for future.
25803 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25804 (MASK_FUTURE): New #define.
25805 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25806 * config/rs6000/rs6000.opt (mfuture): New target option.
25807 * doc/invoke.texi (mcpu): Add future cpu.
25808
25809 2019-05-23 Martin Liska <mliska@suse.cz>
25810
25811 PR c++/90587
25812 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25813 operation points to a temporary (pointed via tree_to_wide_ref)
25814 that is out of scope after the &.
25815
25816 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25817
25818 PR c++/90592
25819 * doc/extend.texi (Function Names): Add missing word.
25820
25821 2019-05-23 Richard Biener <rguenther@suse.de>
25822
25823 PR tree-optimization/88440
25824 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25825 at -O[2s]+.
25826 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25827 generated call.
25828 (generate_memcpy_builtin): Likewise.
25829 (distribute_loop): Pass in whether to only distribute patterns.
25830 (prepare_perfect_loop_nest): Also allow size optimization.
25831 (pass_loop_distribution::execute): When optimizing a loop
25832 nest for size allow pattern replacement.
25833
25834 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25835
25836 PR target/90568
25837 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25838 of xor.
25839
25840 2019-05-23 Martin Liska <mliska@suse.cz>
25841
25842 PR sanitizer/90570
25843 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25844 expression similarly to gimplify_decl_expr.
25845
25846 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25847
25848 * cse.c (cse_dump_path): s/dump_file/f.
25849
25850 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25851
25852 PR c++/90462
25853 * diagnostic-format-json.cc: Include "selftest.h".
25854 (json_from_expanded_location): Only add "file" key for non-NULL
25855 file strings.
25856 (json_from_location_range): Don't add "start" and "finish"
25857 children if they are UNKNOWN_LOCATION.
25858 (selftest::test_unknown_location): New selftest.
25859 (selftest::test_bad_endpoints): New selftest.
25860 (selftest::diagnostic_format_json_cc_tests): New function.
25861 * json.cc (json::object::get): New function.
25862 (selftest::test_object_get): New selftest.
25863 (selftest::json_cc_tests): Call it.
25864 * json.h (json::object::get): New decl.
25865 * selftest-run-tests.c (selftest::run_tests): Call
25866 selftest::diagnostic_format_json_cc_tests.
25867 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25868 decl.
25869
25870 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25871 Andrew Stubbs <amd@codesourcery.com>
25872
25873 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25874 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25875 (kernel): Rename to...
25876 (main_kernel): ... this.
25877 (load_image): Load _init_array and _fini_array kernels.
25878 (run): Add argument for kernel to run.
25879 (main): Run init_array_kernel before main_kernel, and
25880 fini_array_kernel after.
25881 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25882 amdgpu_hsa_kernel attribute on functions.
25883 (gcn_disable_constructors): Delete.
25884 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25885 * config/gcn/crt0.c (size_t): Define.
25886 (_init_array, _fini_array): New.
25887 (__preinit_array_start, __preinit_array_end,
25888 __init_array_start, __init_array_end,
25889 __fini_array_start, __fini_array_end): Declare weak references.
25890
25891 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25892
25893 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25894
25895 2019-05-22 Jason Merrill <jason@redhat.com>
25896
25897 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25898
25899 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25900
25901 PR target/88483
25902 * config/i386/i386-options.c (ix86_init_machine_status): Set
25903 stack_frame_required to true.
25904 * config/i386/i386.c (ix86_get_frame_size): New function.
25905 (ix86_frame_pointer_required): Replace get_frame_size with
25906 ix86_get_frame_size.
25907 (ix86_compute_frame_layout): Likewise.
25908 (ix86_find_max_used_stack_alignment): Changed to void. Set
25909 stack_frame_required.
25910 (ix86_finalize_stack_frame_flags): Always call
25911 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25912 ix86_get_frame_size.
25913 * config/i386/i386.h (machine_function): Add stack_frame_required.
25914
25915 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25916
25917 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25918
25919 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25920
25921 * common/config/aarch64/aarch64-common.c
25922 (struct aarch64_option_extension, struct processor_name_to_arch,
25923 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25924 aarch64_contains_opt,
25925 aarch64_get_extension_string_for_isa_flags): Change type of
25926 variables storing flags to uint64_t.
25927 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25928 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25929 * config/aarch64/aarch64.c (struct processor,
25930 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25931 aarch64_validate_march, aarch64_override_options,
25932 aarch64_option_print, aarch64_handle_attr_isa_flags,
25933 aarch64_declare_function_name, aarch64_start_file): Make flag
25934 variables uint64_t.
25935 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25936 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25937 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25938 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25939 * config/aarch64/driver-aarch64.c
25940 (struct aarch64_arch_extension, struct aarch64_core_data,
25941 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25942 flag variables uint64_t.
25943 * doc/invoke.texi: Add documentation for new arguments.
25944
25945 2019-05-22 Richard Biener <rguenther@suse.de>
25946
25947 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25948 rewrite ...
25949 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25950
25951 2019-05-22 Martin Liska <mliska@suse.cz>
25952
25953 PR lto/90500
25954 * doc/extend.texi: Document the change.
25955
25956 2019-05-22 Richard Biener <rguenther@suse.de>
25957
25958 PR tree-optimization/90450
25959 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25960 (mem_ref_hasher::equal): Check it.
25961 (mem_ref_alloc): Initialize it.
25962 (gather_mem_refs_stmt): Set it.
25963
25964 2019-05-22 Richard Biener <rguenther@suse.de>
25965
25966 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25967 Add ABS_EXPR.
25968 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25969 as ABSU_EXPR.
25970
25971 2019-05-22 Alan Modra <amodra@gmail.com>
25972
25973 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25974 (ASM_CPU_SPEC): Conditionally add -many.
25975 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25976 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25977 (rs6000_file_start): ..extracted from here, and modified to
25978 test all ISA bits.
25979 (rs6000_output_function_prologue): Emit .machine as necessary.
25980
25981 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25982
25983 PR middle-end/90553
25984 * ira-lives.c (process_bb_node_lives): Consider defs
25985 for a call insn to be die before the call, not after.
25986
25987 * function.c (assign_parm_setup_block): Raise alignment of
25988 stacked parameter only for STRICT_ALIGNMENT targets.
25989
25990 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25991
25992 * config/rs6000/constraints.md (define_register_constraint "wz"):
25993 Delete.
25994 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25995 RS6000_CONSTRAINT_wz.
25996 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25997 (rs6000_init_hard_regno_mode_ok): Adjust.
25998 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25999 * doc/md.texi (Machine Constraints): Adjust.
26000
26001 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26002
26003 * config/rs6000/constraints.md (define_register_constraint "wl"):
26004 Delete.
26005 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26006 RS6000_CONSTRAINT_wl.
26007 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26008 (rs6000_init_hard_regno_mode_ok): Adjust.
26009 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26010 * doc/md.texi (Machine Constraints): Adjust.
26011
26012 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26013
26014 * config/rs6000/constraints.md (define_register_constraint "wm"):
26015 Delete.
26016 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26017 RS6000_CONSTRAINT_wm.
26018 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26019 (rs6000_init_hard_regno_mode_ok): Adjust.
26020 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26021 * doc/md.texi (Machine Constraints): Adjust.
26022
26023 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26024
26025 * config/rs6000/constraints.md (define_register_constraint "wk"):
26026 Delete.
26027 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26028 RS6000_CONSTRAINT_wk.
26029 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26030 (rs6000_init_hard_regno_mode_ok): Adjust.
26031 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26032 * doc/md.texi (Machine Constraints): Adjust.
26033
26034 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26035
26036 * config/rs6000/constraints.md (define_register_constraint "wj"):
26037 Delete.
26038 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26039 RS6000_CONSTRAINT_wj.
26040 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26041 (rs6000_init_hard_regno_mode_ok): Adjust.
26042 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26043 (VS_64dm): Delete.
26044 * config/rs6000/vsx.md: Ditto.
26045 * doc/md.texi (Machine Constraints): Adjust.
26046
26047 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26048
26049 * config/rs6000/constraints.md (define_register_constraint "wh"):
26050 Delete.
26051 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26052 RS6000_CONSTRAINT_wh.
26053 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26054 (rs6000_init_hard_regno_mode_ok): Adjust.
26055 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26056 * doc/md.texi (Machine Constraints): Adjust.
26057
26058 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26059
26060 PR target/90547
26061 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26062 Avoid calling gen_lowpart with CONST operand.
26063
26064 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26065
26066 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26067 field template_last_to_copy.
26068 (ssa_create_duplicates): Set it, and use it. Attempt to
26069 preserve more debug stmts.
26070
26071 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26072
26073 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26074 (signbit<mode>2): New expander
26075
26076 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26077
26078 PR bootstrap/87338
26079 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26080 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26081
26082 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26083
26084 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26085 %ebx and %ecx bafore calling cpuid with leaf 1 or
26086 non-constant leaf argument.
26087
26088 2019-05-21 Alan Modra <amodra@gmail.com>
26089
26090 PR target/90545
26091 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26092 power9 direct move cost.
26093
26094 2019-05-21 Richard Biener <rguenther@suse.de>
26095
26096 PR middle-end/90510
26097 * fold-const.c (fold_read_from_vector): New function.
26098 * fold-const.h (fold_read_from_vector): Declare.
26099 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26100 single-element insert permutations. Canonicalize selector
26101 further and fix issue with last commit.
26102
26103 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26104
26105 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26106 parameter with default value false to declaration.
26107 (split_edges_for_insertion): New inline function. Wrapper for
26108 split_critical_edges with for_edge_insertion_p = true.
26109 * tree-cfg.c (split_critical_edges): Don't split non-critical
26110 edges if for_edge_insertion_p is false. Fix whitespace.
26111 * tree-ssa-pre.c (pass_pre::execute): Call
26112 split_edges_for_insertion instead of split_critical_edges.
26113 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26114 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26115 (pass_data_sink_code): Update function name in the comment.
26116
26117 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26118
26119 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26120 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26121 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26122 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26123 positives.
26124
26125 2019-05-21 Martin Liska <mliska@suse.cz>
26126
26127 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26128 an extra newline.
26129 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26130 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26131 vec_lvsr.
26132 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26133 Quote a C type.
26134 (rs6000_function_arg): Likewise.
26135 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26136 (rs6000_expand_ternop_builtin): Use interval syntax.
26137 (get_element_number): Likewise.
26138 (altivec_expand_builtin): Likewise.
26139 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26140
26141 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26142
26143 PR c++/59813
26144 PR target/90418
26145 * function.h (struct function): Add calls_eh_return member.
26146 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26147 gimplifying __builtin_eh_return call.
26148 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26149 to cfun.
26150 (expand_call_inline): Or in src_cfun->calls_eh_return into
26151 dst_cfun->calls_eh_return.
26152 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26153 cfun->calls_eh_return.
26154 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26155 * lto-streamer-out.c (output_struct_function_base): Write
26156 calls_eh_return.
26157
26158 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26159
26160 PR rtl-optimization/43147
26161 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26162 IX86_BUILTIN_SHUFPD.
26163
26164 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26165
26166 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26167 (refs_may_alias_p_1): ... here; update stats.
26168 (refs_may_alias_p): Do not update stats here.
26169
26170 2019-05-20 Richard Biener <rguenther@suse.de>
26171
26172 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26173 doesn't produce pointers.
26174 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26175 the first operand points to.
26176
26177 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26178
26179 * tree-ssa-alias.c (compare_sizes): New function.
26180 (sompare_type_sizes): New function
26181 (aliasing_component_refs_p): Use it.
26182 (indirect_ref_may_alias_decl_p): Likewise.
26183
26184 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26185
26186 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26187
26188 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26189
26190 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26191 (LIBLSAN_EARLY_SPEC): Likewise.
26192 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26193
26194 2019-05-20 Martin Liska <mliska@suse.cz>
26195
26196 * config/i386/i386.c (ix86_libc_has_fast_function):
26197 Add ATTRIBUTE_UNUSED for the argument.
26198
26199 2019-05-20 Richard Biener <rguenther@suse.de>
26200
26201 * gimple-match-head.c: Include vec-perm-indices.h.
26202 * generic-match-head.c: Likewise.
26203 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26204 is included.
26205 * fold-const.c (fold_vec_perm): Export.
26206 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26207 (match.pd): ...here.
26208
26209 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26210
26211 * cfgloop.h (struct loop): Add simdlen member.
26212 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26213 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26214 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26215 as new argument to autovectorize_vector_sizes target hook. If
26216 loop->simdlen, pick up vector size where the vectorization factor
26217 is equal to loop->simd, and if there is none, fall back to the first
26218 successful one.
26219 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26220 caller.
26221 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26222 * omp-general.c (omp_max_vf): Likewise.
26223 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26224 * tree-vect-slp.c (vect_slp_bb): Likewise.
26225 * target.def (autovectorize_vector_sizes): Add ALL argument and
26226 document it.
26227 * doc/tm.texi: Adjust documentation.
26228 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26229 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26230 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26231 bool argument.
26232 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26233 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26234 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26235 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26236 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26237 preferred vector size is not 512-bit or 256-bit, just put those
26238 unpreferred ones last.
26239
26240 2019-05-20 Martin Liska <mliska@suse.cz>
26241
26242 * targhooks.c (default_libc_has_fast_function): New function.
26243 * targhooks.h (default_libc_has_fast_function): Likewise.
26244
26245 2019-05-20 Martin Liska <mliska@suse.cz>
26246
26247 PR middle-end/90263
26248 * builtins.c (expand_builtin_memory_copy_args): When having a
26249 target with fast mempcpy implementation do now use memcpy.
26250 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26251 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26252 * doc/tm.texi: Likewise.
26253 * doc/tm.texi.in: Likewise.
26254 * target.def:
26255 * expr.c (emit_block_move_hints): Add 2 new arguments.
26256 * expr.h (emit_block_move_hints): Bail out when libcall
26257 to memcpy would be used.
26258
26259 2019-05-20 Martin Liska <mliska@suse.cz>
26260
26261 * profile-count.c: Add vertical spacing in order
26262 to separate functions.
26263 * profile-count.h: Likewise.
26264
26265 2019-05-20 Martin Liska <mliska@suse.cz>
26266
26267 * profile-count.h: Do not use full qualified
26268 names if possible.
26269 * profile-count.c (profile_count::to_frequency): Likewise.
26270
26271 2019-05-20 Martin Liska <mliska@suse.cz>
26272
26273 * profile-count.h (enum profile_quality): Use capital letters
26274 for enum value names. Use the adjusted names.
26275 * profile-count.c: Use the adjusted names.
26276
26277 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26278
26279 * config/rs6000/constraints.md (define_register_constraint "wH"):
26280 Delete.
26281 (define_register_constraint "wI"): Delete.
26282 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26283 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26284 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26285 (rs6000_init_hard_regno_mode_ok): Adjust.
26286 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26287 resp. "d", or with "wa" as appropriate, all with "p8v".
26288 * config/rs6000/vsx.md: Ditto.
26289 * doc/md.texi (Machine Constraints): Adjust.
26290
26291 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26292
26293 * config/rs6000/constraints.md (define_register_constraint "wy"):
26294 Delete.
26295 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26296 RS6000_CONSTRAINT_wy.
26297 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26298 (rs6000_init_hard_regno_mode_ok): Adjust.
26299 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26300 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26301 (define_mode_attr Fisa): New.
26302 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26303 * doc/md.texi (Machine Constraints): Adjust.
26304
26305 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26306
26307 * config/rs6000/constraints.md (define_register_constraint "wu"):
26308 Delete.
26309 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26310 RS6000_CONSTRAINT_wu.
26311 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26312 (rs6000_init_hard_regno_mode_ok): Adjust.
26313 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26314 both with "p8v".
26315 (define_mode_attr Fa): Delete.
26316 * config/rs6000/vsx.md: Ditto.
26317 * doc/md.texi (Machine Constraints): Adjust.
26318
26319 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26320
26321 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26322 Delete.
26323 (define_register_constraint "wK"): Delete.
26324 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26325 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26326 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26327 (rs6000_init_hard_regno_mode_ok): Adjust.
26328 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26329 Replace "wK" constraint by "wH" with "p9v".
26330 * config/rs6000/vsx.md: Ditto.
26331 * doc/md.texi (Machine Constraints): Adjust.
26332
26333 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26334
26335 * config/rs6000/constraints.md (define_register_constraint "wb"):
26336 Delete.
26337 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26338 RS6000_CONSTRAINT_wb.
26339 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26340 (rs6000_init_hard_regno_mode_ok): Adjust.
26341 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26342 * config/rs6000/vsx.md: Ditto.
26343 * doc/md.texi (Machine Constraints): Adjust.
26344
26345 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26346
26347 * config/rs6000/constraints.md (define_register_constraint "wo"):
26348 Delete.
26349 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26350 RS6000_CONSTRAINT_wo.
26351 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26352 (rs6000_init_hard_regno_mode_ok): Adjust.
26353 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26354 * config/rs6000/altivec.md: Ditto.
26355 * doc/md.texi (Machine Constraints): Adjust.
26356
26357 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26358
26359 * config/darwin-c.c (darwin_register_objc_includes): Do not
26360 prepend the sysroot when building gnu-runtime header search
26361 paths.
26362
26363 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26364
26365 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26366 instead of direct output of the asm.
26367
26368 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26369
26370 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26371 argument to be type bool (was int before).
26372 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26373 at first use. Use type bool for some variables. Fix a theoretical
26374 eh_return bug for svr4.
26375
26376 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26377
26378 * config/rs6000/rs6000.md (isa): New attribute.
26379 (enabled): New attribute.
26380
26381 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26382
26383 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26384 assemble_start_function and assemble_end_function.
26385
26386 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26387
26388 PR middle-end/89433
26389 * omp-general.c (oacc_verify_routine_clauses): Change formal
26390 parameters. Add checking if already marked with an OpenACC
26391 'routine' directive. Adjust all users.
26392
26393 PR middle-end/89433
26394 * omp-general.c (oacc_build_routine_dims): Move some of its
26395 processing into...
26396 (oacc_verify_routine_clauses): ... this new function.
26397 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26398
26399 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26400
26401 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26402 formating of picbase labels to match other ports.
26403
26404 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26405
26406 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26407 in the generated code.
26408
26409 2019-05-16 Martin Sebor <msebor@redhat.com>
26410
26411 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26412 identifiers, keywords, operators, and types in diagnostics. Correct
26413 quoting, spelling, and sentence capitalization issues.
26414 (expand_builtin_atomic_is_lock_free): Same.
26415 (fold_builtin_next_arg): Same.
26416 * cfgexpand.c (expand_one_var): Same.
26417 (tree_conflicts_with_clobbers_p): Same.
26418 (expand_asm_stmt): Same.
26419 (verify_loop_structure): Same.
26420 * cgraphunit.c (process_function_and_variable_attributes): Same.
26421 * collect-utils.c (collect_execute): Same.
26422 * collect2.c (maybe_run_lto_and_relink): Same.
26423 (is_lto_object_file): Same.
26424 (scan_prog_file): Same.
26425 * convert.c (convert_to_real_1): Same.
26426 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26427 * except.c (verify_eh_tree): Same.
26428 * gcc.c (execute): Same.
26429 (eval_spec_function): Same.
26430 (run_attempt): Same.
26431 (driver::set_up_specs): Same.
26432 (compare_debug_auxbase_opt_spec_function): Same.
26433 * gcov-tool.c (unlink_gcda_file): Same.
26434 (do_merge): Same.
26435 (do_rewrite): Same.
26436 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26437 * gimplify.c (gimplify_asm_expr): Same.
26438 (gimplify_adjust_omp_clauses): Same.
26439 * hsa-gen.c (gen_hsa_addr_insns): Same.
26440 (gen_hsa_insns_for_load): Same.
26441 (gen_hsa_cmp_insn_from_gimple): Same.
26442 (gen_hsa_insns_for_operation_assignment): Same.
26443 (gen_get_level): Same.
26444 (gen_hsa_alloca): Same.
26445 (omp_simple_builtin::generate): Same.
26446 (gen_hsa_atomic_for_builtin): Same.
26447 (gen_hsa_insns_for_call): Same.
26448 * input.c (dump_location_info): Same.
26449 * ipa-devirt.c (compare_virtual_tables): Same.
26450 * ira.c (ira_setup_eliminable_regset): Same.
26451 * lra-assigns.c (lra_assign): Same.
26452 * lra-constraints.c (lra_constraints): Same.
26453 * lto-streamer-in.c (lto_input_mode_table): Same.
26454 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26455 (merge_and_complain): Same.
26456 (compile_offload_image): Same.
26457 (compile_images_for_offload_targets): Same.
26458 (debug_objcopy): Same.
26459 (run_gcc): Same.
26460 (main): Same.
26461 * opts.c (print_specific_help): Same.
26462 (parse_no_sanitize_attribute): Same.
26463 (print_help): Same.
26464 (handle_param): Same.
26465 * plugin.c (add_new_plugin): Same.
26466 (parse_plugin_arg_opt): Same.
26467 (try_init_one_plugin): Same.
26468 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26469 operators, and types in diagnostics. Correct quoting and spelling
26470 issues.
26471 * read-rtl-function.c (parse_edge_flag_token): Same.
26472 (function_reader::parse_enum_value): Same.
26473 * reg-stack.c (check_asm_stack_operands): Same.
26474 * regcprop.c (validate_value_data): Same.
26475 * sched-rgn.c (make_pass_sched_fusion): Same.
26476 * stmt.c (check_unique_operand_names): Same.
26477 * targhooks.c (default_target_option_pragma_parse): Same.
26478 * tlink.c (recompile_files): Same.
26479 * toplev.c (process_options): Same.
26480 (do_compile): Same.
26481 * trans-mem.c (diagnose_tm_1): Same.
26482 (ipa_tm_scan_irr_block): Same.
26483 (ipa_tm_diagnose_transaction): Same.
26484 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26485 format a tree code name in a diagnostic.
26486 (verify_types_in_gimple_min_lval): Same.
26487 (verify_types_in_gimple_reference): Same.
26488 (verify_gimple_call): Same.
26489 (verify_gimple_assign_unary): Same.
26490 (verify_gimple_assign_binary): Same.
26491 (verify_gimple_assign_ternary): Same.
26492 (verify_gimple_assign_single): Same.
26493 (verify_gimple_switch): Same.
26494 (verify_gimple_label): Same.
26495 (verify_gimple_phi): Same.
26496 (verify_gimple_in_seq): Same.
26497 (verify_eh_throw_stmt_node): Same.
26498 (collect_subblocks): Same.
26499 (gimple_verify_flow_info): Same.
26500 (do_warn_unused_result): Same.
26501 * tree-inline.c (expand_call_inline): Same.
26502 * tree-into-ssa.c (update_ssa): Same.
26503 * tree.c (tree_int_cst_elt_check_failed): Same.
26504 (tree_vec_elt_check_failed): Same.
26505 (omp_clause_operand_check_failed): Same.
26506 (verify_type_variant): Same.
26507 (verify_type): Same.
26508 * value-prof.c (verify_histograms): Same.
26509 * varasm.c (assemble_start_function): Same.
26510
26511 2019-05-16 Martin Sebor <msebor@redhat.com>
26512
26513 * config/i386/i386-expand.c (get_element_number): Quote keywords
26514 and other internal names in diagnostics. Adjust other diagnostic
26515 formatting issues noted by -Wformat-diag.
26516 * config/i386/i386-features.c
26517 (ix86_mangle_function_version_assembler_name): Same.
26518 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26519 * config/i386/i386.c (ix86_function_type_abi): Same.
26520 (ix86_function_ms_hook_prologue): Same.
26521 (classify_argument): Same.
26522 (ix86_expand_prologue): Same.
26523 (ix86_md_asm_adjust): Same.
26524 (ix86_memmodel_check): Same.
26525
26526 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26527
26528 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26529 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26530 and fpxx modes.
26531
26532 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26533
26534 PR target/90497
26535 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26536 intrinsics without SSE/SSE2/SSSE3.
26537 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26538 check.
26539 (*mmx_uavgv8qi3): Likewise.
26540
26541 2019-05-17 Richard Biener <rguenther@suse.de>
26542
26543 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26544 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26545
26546 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26547
26548 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26549 vec_sldw insn pattern.
26550
26551 2019-05-17 Richard Biener <rguenther@suse.de>
26552
26553 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26554
26555 2019-05-17 Martin Liska <mliska@suse.cz>
26556
26557 PR driver/90496
26558 * toplev.c (output_stack_usage): With LTO and sanitizer it
26559 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26560 has no file location.
26561
26562 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26563
26564 PR c++/90484
26565 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26566 sz0 is equal to sz1, instead return false in that case.
26567
26568 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26569 has non-constant expression, force sctx.lane and use two
26570 argument IFN_GOMP_SIMD_LANE instead of single argument.
26571 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26572 two argument IFN_GOMP_SIMD_LANE without lhs.
26573 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26574 member.
26575 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26576 Define.
26577 (LOOP_REQUIRES_VERSIONING): Or in
26578 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26579 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26580 simd_if_cond.
26581 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26582 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26583 from simd if clause if needed.
26584
26585 2019-05-16 Richard Biener <rguenther@suse.de>
26586
26587 * tree-affine.c (expr_to_aff_combination): New function split
26588 out from...
26589 (tree_to_aff_combination): ... here.
26590 (aff_combination_expand): Avoid building a GENERIC tree.
26591
26592 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26593
26594 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26595 assemble_start_function and assemble_end_function calls.
26596 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26597 assemble_start_function and assemble_end_function.
26598 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26599 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26600 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26601 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26602 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26603 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26604 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26605 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26606 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26607 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26608 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26609 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26610 Likewise.
26611 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26612 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26613 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26614 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26615 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26616 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26617 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26618 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26619 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26620 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26621 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26622 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26623 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26624 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26625 Likewise.
26626 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26627 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26628 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26629
26630 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26631
26632 * tree-ssa-alias.c (alias_stats): Add
26633 aliasing_component_refs_p_may_alias and
26634 aliasing_component_refs_p_no_alias.
26635 (dump_alias_stats): Print aliasing_component_refs_p stats.
26636 (aliasing_component_refs_p): Update stats.
26637
26638 2019-05-16 Martin Liska <mliska@suse.cz>
26639
26640 PR lto/90500
26641 * multiple_target.c (expand_target_clones): Do not allow
26642 target_clones being used with a symbol that is an alias.
26643
26644 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26645
26646 PR tree-optimization/90394
26647 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26648 positives rather than ICE for cases where (code2 == NE_EXPR
26649 && code1 == BIT_AND_EXPR).
26650
26651 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26652
26653 PR fortran/90329
26654 * tree-core.h (struct tree_decl_common): Document
26655 decl_nonshareable_flag for PARM_DECLs.
26656 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26657 * calls.c (expand_call): Don't try tail call if caller
26658 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26659 passed on the stack and callee needs to pass any arguments on the
26660 stack.
26661 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26662 else if instead of series of mutually exclusive ifs. Handle
26663 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26664 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26665
26666 * lto-streamer.h (LTO_major_version): Bump to 9.
26667
26668 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26669
26670 PR tree-optimization/90106
26671 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26672 new parameter as new internal function call, also move it to new
26673 basic block.
26674 (use_internal_fn): Pass internal function call to
26675 shrink_wrap_one_built_in_call_with_conds.
26676
26677 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26678
26679 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26680 max_vf to 1.
26681 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26682 safelen_int and set loop->dont_vectorize.
26683
26684 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26685
26686 PR target/89021
26687 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26688 SSE/SSE2/SSSE3.
26689 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26690 Likewise.
26691 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26692 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26693 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26694 is defined.
26695
26696 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26697
26698 PR target/89021
26699 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26700 define_insn_and_split to support SSE emulation.
26701 (*vec_extractv2sf_0): Likewise.
26702 (*vec_extractv2sf_1): Likewise.
26703 (*vec_extractv2si_0): Likewise.
26704 (*vec_extractv2si_1): Likewise.
26705 (*vec_extractv2si_zext_mem): Likewise.
26706 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26707 (vec_extractv2sf_1 splitter): Likewise.
26708 (vec_extractv2sfsf): Likewise.
26709 (vec_setv2si): Likewise.
26710 (vec_extractv2si_1 splitter): Likewise.
26711 (vec_extractv2sisi): Likewise.
26712 (vec_setv4hi): Likewise.
26713 (vec_extractv4hihi): Likewise.
26714 (vec_setv8qi): Likewise.
26715 (vec_extractv8qiqi): Likewise.
26716 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26717 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26718 (vec_extractv2sisi): Likewise.
26719 (vec_extractv4hihi): Likewise.
26720 (vec_extractv8qiqi): Likewise.
26721 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26722 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26723 (vec_initv2sisi): Likewise.
26724 (vec_initv4hihi): Likewise.
26725 (vec_initv8qiqi): Likewise.
26726 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26727 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26728 (vec_setv4hi): Likewise.
26729 (vec_setv8qi): Likewise.
26730
26731 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26732
26733 PR target/89021
26734 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26735 TARGET_MMX_WITH_SSE.
26736 (MMXMODE:*mov<mode>_internal): Likewise.
26737 (MMXMODE:movmisalign<mode>): Likewise.
26738
26739 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26740
26741 PR target/89021
26742 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26743 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26744 (sse2_cvtpd2pi): Ditto.
26745 (sse2_cvttpd2pi): Ditto.
26746 (*vec_concatv2sf_sse4_1): Ditto.
26747 (*vec_concatv2sf_sse): Ditto.
26748 (*vec_concatv2si_sse4_1): Ditto.
26749 (*vec_concatv2si): Ditto.
26750 (*vec_concatv4si_0): Ditto.
26751 (*vec_concatv2di_0): Ditto.
26752
26753 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26754
26755 PR target/89021
26756 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26757
26758 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26759
26760 PR target/89021
26761 * config/i386/sse.md (ssse3_palignrdi): Changed to
26762 define_insn_and_split to support SSE emulation.
26763
26764 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26765
26766 PR target/89021
26767 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26768
26769 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26770
26771 PR target/89021
26772 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26773 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26774 SSE emulation.
26775
26776 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26777
26778 PR target/89021
26779 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26780 or TARGET_MMX_WITH_SSE.
26781 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26782
26783 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26784
26785 PR target/89021
26786 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26787
26788 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26789
26790 PR target/89021
26791 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26792 Changed to define_insn_and_split to support SSE emulation.
26793
26794 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26795
26796 PR target/89021
26797 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26798 Changed to define_insn_and_split to support SSE emulation.
26799
26800 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26801
26802 PR target/89021
26803 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26804 (*mmx_<emms>): This.
26805 (mmx_<emms>): New expander.
26806
26807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26808
26809 PR target/89021
26810 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26811 support.
26812 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26813
26814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26815
26816 PR target/89021
26817 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26818
26819 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26820
26821 PR target/89021
26822 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26823
26824 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26825
26826 PR target/89021
26827 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26828 TARGET_MMX_WITH_SSE.
26829 (*mmx_uavgv4hi3): 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_uavgv8qi3): Also check TARGET_MMX
26835 and TARGET_MMX_WITH_SSE.
26836 (*mmx_uavgv8qi3): Add SSE emulation.
26837
26838 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26839
26840 PR target/89021
26841 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26842 maskmovdqu for __MMX_WITH_SSE__.
26843
26844 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26845
26846 PR target/89021
26847 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26848 TARGET_MMX and TARGET_MMX_WITH_SSE.
26849 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26850
26851 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26852
26853 PR target/89021
26854 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26855 define_insn_and_split to support SSE emulation.
26856
26857 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26858
26859 PR target/89021
26860 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26861 and TARGET_MMX_WITH_SSE.
26862 (mmx_<code>v8qi3): Likewise.
26863 (smaxmin:<code>v4hi3): New.
26864 (umaxmin:<code>v8qi3): Likewise.
26865 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26866 (umaxmin:*mmx_<code>v8qi3): Likewise.
26867
26868 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26869
26870 PR target/89021
26871 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26872 TARGET_MMX_WITH_SSE.
26873 (*mmx_pinsrw): Add SSE emulation.
26874
26875 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26876
26877 PR target/89021
26878 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26879
26880 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26881
26882 PR target/89021
26883 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26884 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26885 SSE emulation.
26886
26887 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26888
26889 PR target/89021
26890 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26891 (sse_cvttps2pi): Likewise.
26892
26893 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26894
26895 PR target/89021
26896 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26897 TARGET_MMX_WITH_SSE.
26898 (mmx_pshufw_1): Add SSE emulation.
26899 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26900 TARGET_MMX_WITH_SSE to support SSE emulation.
26901
26902 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26903
26904 PR target/89021
26905 * config/i386/constraints.md (Yw): New constraint.
26906 * config/i386/mmx.md (*vec_dupv2si): Changed to
26907 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26908 support SSE emulation.
26909
26910 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26911
26912 PR target/89021
26913 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26914 TARGET_MMX_WITH_SSE.
26915 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26916 support.
26917 (mmx_gt<mode>3): Likewise.
26918
26919 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26920
26921 PR target/89021
26922 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26923 TARGET_MMX_WITH_SSE. Add SSE support.
26924
26925 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26926
26927 PR target/89021
26928 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26929 TARGET_MMX_WITH_SSE.
26930 (any_logic:<code><mode>3): New.
26931 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26932 Add SSE support.
26933
26934 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26935
26936 PR target/89021
26937 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26938 TARGET_MMX_WITH_SSE. Add SSE emulation.
26939 (mmx_<shift_insn><mode>3): Likewise.
26940 (ashr<mode>3): New.
26941 (<shift_insn><mode>3): Likewise.
26942
26943 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26944
26945 PR target/89021
26946 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26947 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26948
26949 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26950
26951 PR target/89021
26952 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26953 TARGET_MMX_WITH_SSE.
26954 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26955 SSE support.
26956
26957 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26958
26959 PR target/89021
26960 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26961 TARGET_MMX_WITH_SSE.
26962 (mulv4hi3): New.
26963 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26964 support.
26965
26966 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26967
26968 PR target/89021
26969 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26970 (plusminus:mmx_<plusminus_insn><mode>3): Check
26971 TARGET_MMX_WITH_SSE.
26972 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26973 (<plusminus_insn><mode>3): New.
26974 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26975 (*mmx_<plusminus_insn><mode>3): Likewise.
26976
26977 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26978
26979 PR target/89021
26980 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26981 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26982 prototype.
26983 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26984 define_insn_and_split to support SSE emulation.
26985 (mmx_punpcklbw): Likewise.
26986 (mmx_punpckhwd): Likewise.
26987 (mmx_punpcklwd): Likewise.
26988 (mmx_punpckhdq): Likewise.
26989 (mmx_punpckldq): Likewise.
26990
26991 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26992 Uros Bizjak <ubizjak@gmail.com>
26993
26994 PR target/89021
26995 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26996 New function.
26997 (ix86_split_mmx_pack): Likewise.
26998 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26999 New prototype.
27000 (ix86_split_mmx_pack): Likewise.
27001 * config/i386/i386.md (mmx_isa): New.
27002 (enabled): Also check mmx_isa.
27003 * config/i386/mmx.md (any_s_truncate): New code iterator.
27004 (s_trunsuffix): New code attr.
27005 (mmx_packsswb): Removed.
27006 (mmx_packssdw): Likewise.
27007 (mmx_packuswb): Likewise.
27008 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27009 MMX packsswb/packuswb with SSE2.
27010 (mmx_packssdw): Likewise.
27011 * config/i386/predicates.md (register_mmxmem_operand): New.
27012
27013 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27014
27015 PR target/89021
27016 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27017 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27018 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27019 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27020 (ix86_vector_mode_supported_p): Likewise.
27021 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27022
27023 2019-05-15 Martin Liska <mliska@suse.cz>
27024
27025 PR middle-end/90478
27026 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27027 Check for overflow.
27028
27029 2019-05-15 Richard Biener <rguenther@suse.de>
27030
27031 * tree-into-ssa.c (pass_build_ssa::execute): Run
27032 update_address_taken before going into SSA.
27033
27034 2019-05-15 Richard Biener <rguenther@suse.de>
27035
27036 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27037 as __BIT_FIELD_REF with type with -gimple.
27038
27039 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27040
27041 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27042 semantically equivalent branches (left over after prior refactorings).
27043
27044 2019-05-15 Richard Biener <rguenther@suse.de>
27045
27046 PR tree-optimization/88828
27047 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27048 bogus check.
27049
27050 2019-05-14 Richard Biener <rguenther@suse.de>
27051
27052 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27053 as __VIEW_CONVERT with -gimple.
27054
27055 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27056
27057 PR target/82920
27058 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27059 Darwin.
27060
27061 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27062
27063 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27064 define_split to become a define_insn_and_split.
27065
27066 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27067
27068 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27069 arguments.
27070 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27071 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27072 (sibcall_epilogue): Adjust.
27073 (epilogue): Adjust.
27074
27075 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27076
27077 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27078 to unsupported ones.
27079 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27080 * config.host: Likewise.
27081 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27082 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27083 __svr4__]: Remove "brand" fallback.
27084 [!KSTAT_DATA_STRING]: Remove.
27085 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27086 to *-*-solaris2*.
27087 (comdat_group): Likewise.
27088 (set_have_as_tls): Likewise.
27089 (gcc_cv_target_dl_iterate_phdr): Likewise.
27090 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27091 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27092 * configure: Regenerate.
27093 * doc/install.texi: Simplify Solaris target triplets.
27094 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27095 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27096 Remove Solaris 10 references.
27097 Remove obsolete Solaris bug reference.
27098 (Specific, sparc-sun-solaris2.10): Remove.
27099
27100 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27101
27102 * config/i386/i386.md (any_div): New code iterator.
27103 (paired_mod): New code attribute.
27104 (sgnprefix): Handle DIV and UDIV RTXes.
27105 (u): Ditto.
27106 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27107 and udivmod<mode>4 patterns using any_div code iterator.
27108 (divmod splitters): Macroize splitters using any_div code iterator.
27109 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27110 (*udivmodsi4_pow2_zext_2): Ditto.
27111 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27112 and *udivmod<mode>4_noext patterns using any_div code iterator.
27113 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27114 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27115 patterns using any_div code iterator.
27116 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27117 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27118 patterns using any_div code iterator.
27119 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27120 udivmodhiqi3 patterns using any_extend code iterator.
27121
27122 2019-05-14 Richard Biener <rguenther@suse.de>
27123 H.J. Lu <hongjiu.lu@intel.com>
27124
27125 PR tree-optimization/88828
27126 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27127 permuting in a single non-constant element not extracted
27128 from a vector.
27129
27130 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27131
27132 * internal-fn.def (SIGNBIT): New.
27133 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27134 defined.
27135 (signbitv4sf2): Likewise.
27136
27137 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27138
27139 PR target/90357
27140 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27141 next insn when the SRC reg is dead.
27142
27143 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27144
27145 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27146 (alloc_cand_and_find_basis): Ditto.
27147 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27148 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27149 (create_add_imm_cand, slsr_process_cast): Ditto.
27150 (slsr_process_copy, replace_mult_candidate): Ditto.
27151 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27152 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27153 (pass_strength_reduction::execute): Init the first NULL element.
27154
27155 2019-05-13 Nathan Sidwell <nathan@acm.org>
27156
27157 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27158 (run_attempt): Reformat line break.
27159
27160 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27161
27162 PR target/90418
27163 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27164 data registers in sibcall epilogues.
27165 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27166
27167 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27168
27169 PR target/89221
27170 * configure.ac (--enable-frame-pointer):
27171 Disable by default for cygwin and mingw.
27172 * configure: Regenerate.
27173
27174 2019-05-13 Nathan Sidwell <nathan@acm.org>
27175
27176 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27177 piece of code.
27178 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27179 (gen_member_die): Move abstract origin check earlier. Only VARs
27180 can be static_inline_p. Simplify splicing control flow.
27181
27182 2019-05-13 Richard Biener <rguenther@suse.de>
27183
27184 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27185 VIEW_CONVERT_EXPR.
27186 (vect_build_slp_tree_1): Likewise.
27187
27188 2019-05-13 Richard Biener <rguenther@suse.de>
27189
27190 PR tree-optimization/90402
27191 * tree-if-conv.c (tree_if_conversion): Value number only
27192 the loop body by making the latch an exit of the region
27193 as well.
27194 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27195 processing PHIs.
27196 (do_rpo_vn): Deal with multiple edges into the entry block
27197 that are not backedges inside the region by skipping PHIs
27198 of the entry block.
27199
27200 2019-05-13 Richard Biener <rguenther@suse.de>
27201
27202 PR tree-optimization/90316
27203 * tree-ssa-pre.c (insert_aux): Fold into ...
27204 (insert): ... this function. Use a RPO walk to reduce the
27205 number of required iterations.
27206
27207 2019-05-13 Martin Liska <mliska@suse.cz>
27208
27209 PR tree-optimization/90416
27210 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27211 string instead of passing the second part as va_arg argument.
27212
27213 2019-05-13 Martin Liska <mliska@suse.cz>
27214
27215 PR gcov-profile/90380
27216 * gcov.c (handle_cycle): Do not support zero cycle count,
27217 it should not be possible.
27218 (path_contains_zero_cycle_arc): New function.
27219 (circuit): Ignore zero cycle arc counts.
27220
27221 2019-05-13 Martin Liska <mliska@suse.cz>
27222
27223 PR gcov-profile/90380
27224 * gcov.c (enum loop_type): Remove the enum and
27225 the operator.
27226 (handle_cycle): Assert that we should not reach
27227 a negative count.
27228 (circuit): Use loop_found instead of a tri-state loop_type.
27229 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27230 happen.
27231
27232 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27233
27234 PR target/82920
27235 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27236 (ix86_output_indirect_branch_via_reg): Use output mechanism
27237 accounting for __USER_LABEL_PREFIX__.
27238 (ix86_output_indirect_branch_via_push): Likewise.
27239 (ix86_output_function_return): Likewise.
27240 (ix86_output_indirect_function_return): Likewise.
27241
27242 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27243
27244 * doc/md.texi: Document use of code attributes in rtx patterns.
27245 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27246 * read-rtl.c (find_code): Split out search loops into...
27247 (maybe_find_code): ...this new function.
27248 (check_code_iterator): Make the error message more informative.
27249 (check_code_attribute): New function.
27250 (rtx_reader::rtx_alloc_for_name): Likewise.
27251 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27252 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27253 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27254 <max_opp> directly as an rtx code instead of via a match_operator.
27255 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27256 (<su>abd<mode>_3): Update accordingly.
27257
27258 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27259
27260 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27261 is given, print the state of the EH "save world" computation for
27262 Darwin.
27263
27264 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27265
27266 PR c++/59813
27267 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27268 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27269
27270 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27271
27272 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27273 Use pinsrd for TARGET_SSE4_1.
27274 * config/i386/sse.md (movdi_to_sse): Ditto.
27275
27276 2019-05-10 Richard Biener <rguenther@suse.de>
27277
27278 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27279 (do_rpo_vn): Initialize next_value_id.
27280
27281 2019-05-10 Martin Liska <mliska@suse.cz>
27282
27283 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27284 Fix plural form.
27285
27286 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27287
27288 PR tree-optimization/90385
27289 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27290 arguments of the exit phis.
27291
27292 PR c++/90383
27293 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27294 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27295 id->do_not_fold.
27296 (copy_tree_body_r): Likewise.
27297 (copy_fn): Set id.do_not_fold to true.
27298
27299 2019-05-10 Martin Liska <mliska@suse.cz>
27300
27301 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27302 Reapply changes from r269790.
27303
27304 2019-05-10 Martin Liska <mliska@suse.cz>
27305
27306 PR middle-end/90340
27307 * doc/invoke.texi: New params.
27308 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27309 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27310 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27311 Use it.
27312 * tree-switch-conversion.h (struct jump_table_cluster):
27313 Likewise.
27314
27315 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27316
27317 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27318
27319 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27320
27321 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27322
27323 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27324
27325 PR rtl-optimization/88879
27326 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27327
27328 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27329
27330 PR target/90405
27331 * config/arm/arm.c (callee_saved_reg_p): Move before
27332 thumb_find_work_register.
27333 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27334 thumb_find_work_register. Only call df_get_live_out once.
27335 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27336 (thumb_find_work_register): Use
27337 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27338 algorithms to locate a spare call clobbered reg.
27339
27340 2019-05-09 Martin Liska <mliska@suse.cz>
27341
27342 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27343 and MAX_EXPR in GIMPLE FE format.
27344
27345 2019-05-09 Martin Liska <mliska@suse.cz>
27346
27347 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27348 * gimple-pretty-print.c (dump_gimple_bb_header):
27349 Dump BB count.
27350 (pp_cfg_jump): Dump edge probability.
27351 * profile-count.c (profile_quality_as_string): Simplify
27352 with a static array.
27353 (parse_profile_quality): New function.
27354 (profile_count::dump): Simplify with a static array.
27355 (profile_count::from_gcov_type): Add new argument.
27356 * profile-count.h (parse_profile_quality): Likewise.
27357 * predict.h (set_hot_bb_threshold): New.
27358 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27359 New param.
27360 * predict.c (get_hot_bb_threshold): Set from the new param.
27361 (set_hot_bb_threshold): New.
27362
27363 2019-05-09 Richard Biener <rguenther@suse.de>
27364
27365 PR tree-optimization/90395
27366 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27367 rewrite vector stores that throw internally.
27368
27369 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27370
27371 * cif-code.def (CHKP): Remove.
27372
27373 PR target/89221
27374 * configure.ac (--enable-frame-pointer): Disable by default for
27375 GNU systems.
27376 * configure: Regenerate.
27377
27378 2019-05-09 Alan Modra <amodra@gmail.com>
27379
27380 PR target/89271
27381 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27382 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27383 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27384 cost for general <-> vsx when direct moves are available.
27385 Cost union classes at minimal cost for any reg in the class.
27386 Correct calculation for moves between vsx, float, and altivec.
27387 Don't return a low cost for moves between special regs. Don't
27388 use hard coded register numbers.
27389 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27390 (rs6000_ira_change_pseudo_allocno_class): New function.
27391 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27392 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27393 alternatives.
27394 (movsi_internal1): Don't disparage vector alternatives.
27395 (mov<mode>_internal): Likewise, excepting alternative that
27396 will be split.
27397 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27398 we <- b alternative.
27399
27400 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27401
27402 PR c++/59813
27403 PR tree-optimization/89060
27404 * tree-ssa-live.h (live_vars_map): New typedef.
27405 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27406 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27407 (struct compute_live_vars_data): New type.
27408 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27409 live_vars_at_stmt, destroy_live_vars): New functions.
27410 * tree-tailcall.c: Include tree-ssa-live.h.
27411 (live_vars, live_vars_vec): New global variables.
27412 (find_tail_calls): Perform variable life analysis before punting.
27413 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27414 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27415 member.
27416 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27417 Perform variable life analysis to select variables that really need
27418 clobbers added.
27419 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27420 instead set id->eh_landing_pad_dest and assert it is the same.
27421 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27422
27423 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27424 Richard Earnshaw <rearnsha@arm.com>
27425
27426 PR target/88167
27427 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27428 function.
27429 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27430 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27431 register if both the epilogue and prologue can use call-clobbered
27432 regs.
27433 (thumb1_unexpanded_epilogue): Use
27434 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27435 picking temporaries for restoring high regs to match that of the
27436 prologue where possible.
27437 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27438 the list of work registers. Detect if the return address is still live
27439 at the end of the prologue and avoid using it for a work register if so.
27440 If the return address is not live, add LR to the list of pushable regs
27441 after the first pass.
27442
27443 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27444
27445 PR tree-optimization/90078
27446 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27447 (INFTY): Increase the value for infinite cost.
27448 (struct comp_cost): Promote type of members to int64_t.
27449 (infinite_cost): Don't set complexity in initialization.
27450 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27451 overflows to infinite_cost.
27452 (adjust_setup_cost): Promote type of parameter and cost computation
27453 to int64_t.
27454 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27455 int64_t.
27456 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27457 cost computation to int64_t.
27458 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27459 int64_t's format specifier in dump.
27460
27461 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27462
27463 PR tree-optimization/90240
27464 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27465 with respect to scaling factor pre-computed for each basic block.
27466 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27467 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27468 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27469 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27470 live range for array of loop's basic blocks. Cleanup aux field of
27471 loop's basic blocks.
27472
27473 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27474
27475 PR tree-optimization/90356
27476 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27477
27478 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27479
27480 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27481 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27482 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27483 (ix86_handle_option): Handle -mavx512bf16.
27484 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27485 to extra_headers.
27486 * config/i386/avx512bf16vlintrin.h: New.
27487 * config/i386/avx512bf16intrin.h: New.
27488 * config/i386/cpuid.h (bit_AVX512BF16): New.
27489 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27490 * config/i386/i386-builtin-types.def: Add new types.
27491 * config/i386/i386-builtin.def: Add new builtins.
27492 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27493 __AVX512BF16__.
27494 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27495 (ix86_option_override_internal): Handle BF16.
27496 (ix86_valid_target_attribute_inner_p): Ditto.
27497 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27498 * config/i386/i386-builtin.c (enum processor_features): Add
27499 F_AVX512BF16.
27500 (static const _isa_names_table isa_names_table): Ditto.
27501 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27502 (PTA_AVX512BF16): Ditto.
27503 * config/i386/i386.opt: Add -mavx512bf16.
27504 * config/i386/immintrin.h: Include avx512bf16intrin.h
27505 and avx512bf16vlintrin.h.
27506 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27507 avx512f_cvtneps2bf16_<mode><mask_name>,
27508 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27509 * config/i386/subst.md (mask_half): Add new subst.
27510 * doc/invoke.texi: Document -mavx512bf16.
27511
27512 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27513
27514 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27515 Delete declaration.
27516 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27517 (rs6000_debug_legitimize_reload_address): Delete.
27518 (rs6000_legitimize_reload_address_ptr): Delete.
27519 (rs6000_option_override_internal): Adjust.
27520 (mem_operand_gpr): Adjust comment.
27521 (legitimate_lo_sum_address_p): Ditto.
27522 (rs6000_legitimize_reload_address): Delete.
27523 (rs6000_debug_legitimize_reload_address): Delete.
27524 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27525
27526 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27527
27528 PR target/89765
27529 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27530 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27531 to compute vector element selector for both constant and variable
27532 operands.
27533
27534 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27535
27536 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27537 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27538 ashrdi3_cvt using SWI48 mode iterator.
27539
27540 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27541
27542 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27543 (aarch64_<su>abd<mode>_3): Likewise.
27544 (*aarch64_<su>abd<mode>_3): New define_insn.
27545 (<sur>sad<vsi2qi>): New define_expand.
27546 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27547 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27548 (build_vect_cond_expr): Likewise.
27549
27550 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27551
27552 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27553 clobbers outside of accessible_reg_set.
27554 * config/i386/i386.c (ix86_conditional_register_usage):
27555 Disable register sets by clearing corresponding bits in
27556 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27557 call_used_regs and don't clear corresponding reg_names array members.
27558
27559 2019-05-07 Richard Biener <rguenther@suse.de>
27560
27561 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27562 not specified still compute a comp_vectype for invariant
27563 compares.
27564
27565 2019-05-07 Richard Biener <rguenther@suse.de>
27566
27567 PR tree-optimization/90316
27568 * tree-ssa-pre.c (translate_vuse_through_block): When
27569 same_valid is NULL do not bother to search for a virtual
27570 PHI continuation.
27571 (phi_translate_1): When operands changed we cannot keep
27572 the same value-number so do not bother to ask whether
27573 that's possible from translate_vuse_through_block.
27574
27575 2019-05-07 Martin Liska <mliska@suse.cz>
27576
27577 * bitmap.c (bitmap_register): Come up with
27578 alloc_descriptor_max_uid and assign it for
27579 a new bitmap.
27580 (register_overhead): Use get_descriptor as
27581 a descriptor.
27582 (release_overhead): New.
27583 (bitmap_elem_to_freelist): Call it.
27584 (bitmap_elt_clear_from): Likewise.
27585 (bitmap_obstack_free): Likewise.
27586 (bitmap_move): Sensitively release memory.
27587 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27588 (bitmap_initialize): Initialize alloc_descriptor to zero.
27589 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27590
27591 2019-05-07 Richard Biener <rguenther@suse.de>
27592
27593 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27594 we build a SLP node. Remove max_size and limiting.
27595 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27596
27597 2019-05-07 Richard Biener <rguenther@suse.de>
27598
27599 PR tree-optimization/90316
27600 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27601 limit by reference.
27602 (walk_non_aliased_vuses): Take walking limit argument.
27603 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27604 walking if it is reached instead of just counting.
27605 (get_continuation_for_phi): Likewise.
27606 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27607 limiting to the callback.
27608 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27609 (vn_reference_lookup_3): Likewise.
27610 (vn_reference_lookup_pieces): Likewise.
27611 (vn_reference_lookup): Likewise.
27612 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27613 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27614 (avail_exprs_stack::lookup_avail_expr): Likewise.
27615
27616 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27617
27618 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27619 for comparaible types in the second direction even if first one
27620 hits incomparable type.
27621
27622 2019-05-07 Richard Biener <rguenther@suse.de>
27623
27624 PR lto/90369
27625 * lto-wrapper.c (debug_objcopy): Use the original filename
27626 including archive offset for the filename used for -save-temps.
27627
27628 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27629
27630 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27631 detection.
27632
27633 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27634 Hongtao Liu <hongtao.liu@intel.com>
27635
27636 PR target/89750
27637 PR target/86444
27638 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27639 Modified, original implementation isn't correct.
27640
27641 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27642
27643 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27644 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27645 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27646 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27647 (FRAME_POINTER_REGNUM): Change numbering.
27648 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27649 (alt_reg_names): Adjust.
27650 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27651 fixed.
27652 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27653 (DWARF_FRAME_REGISTERS): Delete.
27654 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27655 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27656 Adjust.
27657 (REG_ALLOC_ORDER): Adjust.
27658 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27659 (REG_CLASS_CONTENTS): Adjust.
27660 (RETURN_ADDR_RTX): Change comment.
27661 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27662 instead of 67.
27663 (REGISTER_NAMES): Adjust.
27664 (ADDITIONAL_REGISTER_NAMES): Adjust.
27665 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27666
27667 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27668
27669 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27670 Delete.
27671 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27672 (DWARF_FRAME_REGISTERS): Adjust.
27673 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27674 Adjust.
27675 (REG_ALLOC_ORDER): Adjust.
27676 (enum reg_class): Delete SPR_REGS.
27677 (REG_CLASS_NAMES): Delete SPR_REGS.
27678 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27679 (REGISTER_NAMES): Adjust.
27680 (ADDITIONAL_REGISTER_NAMES): Adjust.
27681 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27682 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27683 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27684 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27685 (htm_spr_regno): Delete.
27686 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27687 argument.
27688 (rs6000_dbx_register_number): Adjust.
27689
27690 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27691
27692 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27693
27694 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27695
27696 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27697 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27698
27699 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27700
27701 PR tree-optimization/88709
27702 PR tree-optimization/90271
27703 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27704 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27705 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27706 variable.
27707 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27708 of the store merging group is larger than
27709 PARAM_STORE_MERGING_MAX_SIZE parameter.
27710 (split_group): Add bzero_first argument. If set, always emit first
27711 the first store which must be = {} of the whole area and then for the
27712 rest of the stores consider all zero bytes as paddings.
27713 (imm_store_chain_info::output_merged_store): Check if first store
27714 is = {} of the whole area and if yes, determine which setting of
27715 bzero_first for split_group gives smaller number of stores. Adjust
27716 split_group callers.
27717 (lhs_valid_for_store_merging_p): Allow decls.
27718 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27719 no elts.
27720 (pass_store_merging::process_store): Likewise.
27721
27722 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27723
27724 PR target/89424
27725 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27726 handling of V1TImode.
27727
27728 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27729
27730 PR target/89221
27731 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27732 and enable_frame_pointer ...
27733 * configure.ac: ... here. Update help strings for
27734 --enable-frame-pointer.
27735 * configure: Regenerate.
27736 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27737 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27738 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27739 (USE_X86_64_FRAME_POINTER): Ditto.
27740
27741 2019-05-06 Martin Liska <mliska@suse.cz>
27742
27743 * config.gcc: Append to target_gtfiles and fix indentation.
27744
27745 2019-05-06 Richard Biener <rguenther@suse.de>
27746
27747 PR tree-optimization/90358
27748 * tree-vect-stmts.c (get_group_load_store_type): Properly
27749 detect unused upper half of load.
27750 (vectorizable_load): Likewise.
27751
27752 2019-05-06 Richard Biener <rguenther@suse.de>
27753
27754 PR tree-optimization/88828
27755 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27756 (simplify_vector_constructor): ...here. Handle constants in
27757 the constructor.
27758
27759 2019-05-06 Richard Biener <rguenther@suse.de>
27760
27761 PR tree-optimization/90328
27762 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27763 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27764 is valid in the loop nest before using it.
27765 (initialize_data_dependence_relation): Adjust.
27766 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27767 loop as loop-nest to dr_may_alias_p.
27768
27769 2019-05-06 Richard Biener <rguenther@suse.de>
27770
27771 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27772
27773 2019-05-06 Richard Biener <rguenther@suse.de>
27774
27775 PR tree-optimization/90316
27776 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27777 compute target on demand.
27778 (get_continuation_for_phi): Remove code walking stmts to
27779 get to a target virtual operand which could end up being
27780 quadratic.
27781
27782 2019-05-06 Martin Liska <mliska@suse.cz>
27783
27784 PR sanitizer/90312
27785 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27786 when -mabi is selected to a non-default version.
27787
27788 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27789 Martin Liska <mliska@suse.cz>
27790
27791 * Makefile.in: Add lto-dump.texi.
27792 * cgraph.h: Add new functions get_visibility_string and
27793 get_symtab_type_string.
27794 * doc/gcc.texi: Include lto-dump section.
27795 * doc/lto-dump.texi: New file.
27796 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27797 (parse_dump_option): Factor out this function.
27798 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27799 (parse_dump_option): Export the function.
27800 * symtab.c (symtab_node::get_visibility_string): New function.
27801 (symtab_node::get_symtab_type_string): Likewise.
27802
27803 2019-05-06 Martin Liska <mliska@suse.cz>
27804
27805 * config/i386/i386-builtins.c: New file.
27806 * config/i386/i386-builtins.h: New file.
27807 * config/i386/i386-expand.c: New file.
27808 * config/i386/i386-expand.h: New file.
27809 * config/i386/i386-features.c: New file.
27810 * config/i386/i386-features.h: New file.
27811 * config/i386/i386-options.c: New file.
27812 * config/i386/i386-options.h: New file.
27813 * config.gcc: Add new files into extra_objs and
27814 target_gtfiles.
27815 * config/i386/i386.c: Split content of the file
27816 into newly introduced files.
27817 * config/i386/i386.h: Declare common variables
27818 and macros.
27819 * config/i386/t-i386: Define dependencies for new files.
27820
27821 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27822
27823 PR target/89400
27824 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27825 Restrict 'all' variant to 32-bit configurations.
27826 (unaligned_loadhiu): Likewise.
27827 (unaligned_storehi): Likewise.
27828 (unaligned_storesi): Likewise.
27829 (unaligned_loadhis): Disable when compiling for thumb1.
27830
27831 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27832
27833 PR tree-optimization/90269
27834 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27835 Ignore clobbers.
27836
27837 2019-05-03 Martin Liska <mliska@suse.cz>
27838
27839 * hash-map.h: Add is_empty function.
27840 * hash-set.h: Likewise.
27841 * hash-table.h: Likewise.
27842 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27843 elements () == 0 (and similar usages).
27844 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27845 * gimplify.c (gimplify_bind_expr): Likewise.
27846 (gimplify_switch_expr): Likewise.
27847 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27848 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27849 * postreload-gcse.c (dump_hash_table): Likewise.
27850 (gcse_after_reload_main): Likewise.
27851 * predict.c (combine_predictions_for_bb): Likewise.
27852 * tree-parloops.c (reduction_phi): Likewise.
27853 (separate_decls_in_region): Likewise.
27854 (transform_to_exit_first_loop): Likewise.
27855 (gen_parallel_loop): Likewise.
27856 (gather_scalar_reductions): Likewise.
27857 (try_create_reduction_list): Likewise.
27858 * var-tracking.c (dump_vars): Likewise.
27859 (emit_notes_for_changes): Likewise.
27860 (vt_emit_notes): Likewise.
27861
27862 2019-05-03 Richard Biener <rguenther@suse.de>
27863
27864 PR tree-optimization/90316
27865 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27866 before running VN.
27867
27868 2019-05-03 Richard Biener <rguenther@suse.de>
27869
27870 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27871 peeling for gaps by loading only lower halves of vectors
27872 if possible.
27873 (vectorizable_load): Likewise.
27874
27875 2019-05-03 Richard Biener <rguenther@suse.de>
27876
27877 PR middle-end/89518
27878 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27879
27880 2019-05-03 Richard Biener <rguenther@suse.de>
27881
27882 PR middle-end/87314
27883 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27884 Handle STRING_CST vs DECL or STRING_CST.
27885
27886 2019-05-03 Richard Biener <rguenther@suse.de>
27887
27888 PR tree-optimization/88963
27889 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27890 vector loads feeding only BIT_FIELD_REFs to component
27891 loads. Rewrite stores fed by CONSTRUCTORs to component
27892 stores.
27893
27894 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27895
27896 * opts.h (finish_options): Remove lang_mask argument.
27897 (print_help, help_option_argument): Declare.
27898 * opts.c (print_help): Remove forward declaration, no longer static.
27899 (finish_options): Remove lang_mask argument, don't call print_help
27900 here.
27901 * opts-global.c (decode_options): Adjust finish_option caller, call
27902 print_help here.
27903
27904 PR tree-optimization/90303
27905 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27906 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27907
27908 2019-05-03 Richard Biener <rguenther@suse.de>
27909
27910 PR tree-optimization/89698
27911 * gimple-fold.c (canonicalize_constructor_val): Early out
27912 for constants, handle unfolded INTEGER_CSTs as they appear in
27913 C++ virtual table ctors.
27914
27915 2019-05-03 Richard Biener <rguenther@suse.de>
27916
27917 * passes.c (execute_function_todo): Remove dead code.
27918
27919 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27920
27921 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27922 the internal register number, for any "real" register.
27923
27924 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27925
27926 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27927 correct numbers for TFHAR, TFIAR, TEXASR.
27928
27929 2019-05-02 Richard Biener <rguenther@suse.de>
27930
27931 PR tree-optimization/89653
27932 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27933 update-address-taken before the pass.
27934 * passes.def (pass_tree_loop_init): Put comment before it.
27935
27936 2019-05-02 Richard Biener <rguenther@suse.de>
27937
27938 PR tree-optimization/89509
27939 * tree-ssa-structalias.c (compute_dependence_clique): Look
27940 at the first subvar when determining whether it is restrict.
27941
27942 2019-05-02 Richard Biener <rguenther@suse.de>
27943
27944 PR tree-optimization/90273
27945 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27946 useless debug stmts.
27947
27948 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27949
27950 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27951 ACLE branch.
27952 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27953 SVE ACLE branch.
27954 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27955 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27956 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27957 (vectorizable_reduction): Use the functions above to vectorize in a
27958 fully masked loop codes that don't have a conditional internal
27959 function.
27960
27961 2019-05-02 Martin Liska <mliska@suse.cz>
27962
27963 * cgraphclones.c: Call valid_attribute_p with 1 for
27964 target_clone.
27965 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27966 it's for target attribute.
27967 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27968 Add new boolean argument.
27969 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27970 Likewise.
27971 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27972 to ix86_valid_target_attribute_inner_p.
27973 (ix86_valid_target_attribute_p): Pass flags argument to
27974 ix86_valid_target_attribute_inner_p.
27975 (get_builtin_code_for_version): Use 0 as it's target attribute.
27976
27977 2019-05-02 Martin Liska <mliska@suse.cz>
27978
27979 * gcc.c (process_command): Add dummy file only
27980 if n_infiles == 0.
27981 * opts-global.c (decode_options): Pass lang_mask.
27982 * opts.c (print_help): New function.
27983 (finish_options): Print --help if help_option_argument
27984 is set.
27985 (common_handle_option): Factor out content of OPT__help_
27986 into print_help.
27987 * opts.h (finish_options): Add new argument.
27988
27989 2019-05-02 Martin Liska <mliska@suse.cz>
27990
27991 PR target/88809
27992 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27993 With -minline-all-stringops use inline expansion using 4B loop.
27994 * doc/invoke.texi: Document the change of
27995 -minline-all-stringops.
27996
27997 2019-05-01 Jeff Law <law@redhat.com>
27998
27999 PR tree-optimization/88797
28000 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28001 PHI feeds a conditional on the RHS of an assignment.
28002
28003 2019-04-30 Andrew Waterman <andrew@sifive.com>
28004 Jim Wilson <jimw@sifive.com>
28005
28006 * config/riscv/constraints.md (L): New.
28007 * config/riscv/predicates.md (lui_operand): New.
28008 (sfb_alu_operand): New.
28009 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28010 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28011 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28012 * config/riscv/risc.md (type): Add sfb_alu.
28013 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28014 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28015 (branch_zero<mode>): Delete.
28016 (mov<mode>cc): New.
28017 (mov<GPR:mode><X:mode>cc): Likewise.
28018 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28019
28020 2019-04-30 Nathan Sidwell <nathan@acm.org>
28021
28022 * tree.h (MARK_TS_EXP): New.
28023
28024 2019-04-30 Martin Liska <mliska@suse.cz>
28025
28026 * opts.c (enable_warning_as_error): Provide hints
28027 for unknown options.
28028
28029 2019-04-30 Martin Liska <mliska@suse.cz>
28030
28031 PR debug/90288
28032 * doc/invoke.texi: Add missing dash for gas-locview-support
28033 and gno-as-locview-support.
28034
28035 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28036
28037 PR target/89093
28038 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28039 whitespace at the start of target attribute string.
28040
28041 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28042
28043 PR target/86538
28044 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28045 Define __ARM_FEATURE_ATOMICS.
28046
28047 2019-04-30 Martin Liska <mliska@suse.cz>
28048
28049 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28050 into built_in_function enum. Remove code for endp == 2 and
28051 use BUILT_IN_* constants.
28052 (gimple_fold_builtin): Call the function with fcode.
28053
28054 2019-04-30 Martin Liska <mliska@suse.cz>
28055
28056 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28057 DECL_FUNCTION_CODE into ix86_builtins enum before
28058 the switch statement.
28059
28060 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28061
28062 PR tree-optimization/89475
28063 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28064 calls.
28065
28066 2019-04-30 Martin Liska <mliska@suse.cz>
28067
28068 PR translation/90274
28069 * opts.c (print_filtered_help): Wrap string in _(...).
28070
28071 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28072
28073 PR tree-optimization/90240
28074 Revert:
28075 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28076
28077 PR tree-optimization/90078
28078 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28079 checks for infinite_cost overflow.
28080
28081 2019-04-29 Jeff Law <law@redhat.com>
28082
28083 * passes.def: Move -Wrestrict pass after copy propagation.
28084
28085 2019-04-29 Maya Rashish <coypu@sdf.org>
28086
28087 * config.gcc (default_gnu_indirect_function): Default to yes
28088 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28089 sparc*-*-netbsd*, x86_64-*-netbsd*.
28090
28091 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28092
28093 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28094 where cond2 is NE_EXPR.
28095 (is_value_included_in): Update comment.
28096
28097 2019-04-29 Richard Biener <rguenther@suse.de>
28098
28099 PR tree-optimization/90278
28100 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28101 EH on comparison simplification.
28102
28103 2019-04-29 Jason Merrill <jason@redhat.com>
28104
28105 PR c++/82081 - tail call optimization breaks noexcept
28106 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28107 nothrow function to a might-throw function into a tail call.
28108
28109 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28110
28111 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28112 (DDR_INNER_LOOP): Likewise.
28113 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28114 (initialize_data_dependence_relation): Likewise.
28115 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28116
28117 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28118
28119 PR rtl-optimization/90257
28120 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28121 return value.
28122
28123 Revert the revert:
28124 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28125
28126 PR target/90178
28127 Revert:
28128 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28129
28130 Revert the revert:
28131 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28132
28133 Revert:
28134 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28135
28136 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28137
28138 2019-04-29 Richard Biener <rguenther@suse.de>
28139
28140 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28141 rhs issue a reset.
28142
28143 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28144
28145 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28146 varasm.h, and netbsd-protos.h.
28147
28148 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28149
28150 PR target/89261
28151 * config/i386/i386-protos.h (ix86_data_alignment): Change
28152 the second argument type to unsigned int.
28153 * config/i386/i386.c (ix86_data_alignment): Change "align"
28154 argument type to unsigned int.
28155
28156 2019-04-27 Martin Liska <mliska@suse.cz>
28157
28158 PR middle-end/90258
28159 * opt-suggestions.c (option_proposer::build_option_suggestions):
28160 When get_valid_option_values returns empty values, add the
28161 misspelling candidate.
28162
28163 2019-04-26 Jim Wilson <jimw@sifive.com>
28164
28165 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28166 parameter.
28167 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28168 Pass orig_mode to riscv_build_integer.
28169 (riscv_split_integer): Pass mode to riscv_move_integer.
28170 (riscv_legitimize_const_move): Likewise.
28171 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28172 promoted_mode. Replace force_reg call with code to load constant into
28173 promoted reg and then subreg it for the store.
28174 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28175 riscv_move_integer.
28176
28177 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28178
28179 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28180 corrupt codes.
28181
28182 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28183
28184 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28185 commentary about the encoding of precision.
28186
28187 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28188
28189 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28190 * config/i386/t-freebsd64: New file.
28191 * config.gcc: Add the t-freebsd64 for multilib support.
28192
28193 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28194
28195 * doc/extend.texi (vector_size): Add missing comma after @xref.
28196
28197 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28198
28199 * BASE-VER: Set to 10.0.0.
28200
28201 2019-04-25 Richard Biener <rguenther@suse.de>
28202
28203 PR middle-end/89765
28204 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28205 VIEW_CONVERT_EXPR into one operating on an rvalue.
28206
28207 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28208
28209 PR target/89929
28210 * config/i386/i386.c (feature_priority): Moved to file scope.
28211 (processor_features): Likewise.
28212 (processor_model): Likewise.
28213 (_arch_names_table): Likewise.
28214 (arch_names_table): Likewise.
28215 (_feature_list): Removed.
28216 (feature_list): Likewise.
28217 (_isa_names_table): Moved to file scope. Add priority.
28218 (isa_names_table): Likewise.
28219 (get_builtin_code_for_version): Replace feature_list with
28220 isa_names_table. Update error message for P_ZERO priority.
28221
28222 2019-04-25 Richard Biener <rguenther@suse.de>
28223
28224 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28225 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28226
28227 2019-04-24 Jeff Law <law@redhat.com>
28228
28229 PR tree-optimization/90037
28230 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28231 * passes.def: Replace all instance of phi-only cprop with the
28232 lattice propagator. Move propagation pass from after erroneous
28233 path isolation to before erroneous path isolation.
28234 * tree-ssa-phionlycprop.c: Remove.
28235
28236 2019-04-24 Richard Biener <rguenther@suse.de>
28237
28238 PR middle-end/90213
28239 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28240 by size and BITS_PER_UNIT on poly-wide-ints.
28241
28242 2019-04-25 Richard Biener <rguenther@suse.de>
28243
28244 PR middle-end/90194
28245 * match.pd: Add pattern to simplify view-conversion of an
28246 empty constructor.
28247
28248 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28249
28250 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28251 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28252 for Go on 32 bit AIX.
28253 * config/rs6000/aix72.h: Likewise.
28254
28255 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28256
28257 PR target/90193
28258 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28259 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28260
28261 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28262
28263 PR target/89952
28264 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28265 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28266 for restored hard frame pointer.
28267 (s390_sched_dependencies_evaluation): Implement new target hook.
28268 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28269
28270 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28271
28272 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28273 * config/arc/arc.c (arc_init): Cleanup warning message.
28274 (arc_override_options): Likewise.
28275
28276 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28277
28278 PR target/90187
28279 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28280 a register if both if_true and if_false are MEMs.
28281
28282 PR tree-optimization/90208
28283 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28284 after labels of new_bb, not before them.
28285
28286 PR tree-optimization/90211
28287 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28288 which are not SSA_NAMEs.
28289
28290 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28291
28292 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28293 AArch64.
28294 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28295
28296 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28297
28298 PR rtl-optimization/87979
28299 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28300 not equal zero.
28301
28302 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28303
28304 PR rtl-optimization/84032
28305 * modulo-sched.c (ps_insn_find_column): Change condition so that
28306 branch will always be the last insn in a row inside partial
28307 schedule.
28308
28309 2019-04-23 Richard Biener <rguenther@suse.de>
28310
28311 PR debug/90131
28312 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28313 dest_single_pred_p argument.
28314 (remove_forwarder_block): Adjust.
28315 (remove_forwarder_block_with_phi): Likewise.
28316
28317 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28318 Bernd Edlinger <bernd.edlinger@hotmail.de>
28319 Jakub Jelinek <jakub@redhat.com>
28320
28321 PR target/89093
28322 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28323 if used with general-regs-only.
28324 (arm_conditional_register_usage): Don't add non-general regs if
28325 general-regs-only.
28326 (arm_valid_target_attribute_rec): Handle general-regs-only.
28327 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28328 general-regs-only.
28329 (TARGET_HARD_FLOAT_SUB): Define.
28330 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28331 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28332 (TARGET_REALLY_IWMMXT2): Likewise.
28333 * config/arm/arm.opt: Add -mgeneral-regs-only.
28334 * doc/extend.texi: Document ARM general-regs-only target.
28335 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28336
28337 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28338
28339 PR tree-optimization/90078
28340 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28341 checks for infinite_cost overflow.
28342
28343 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28344
28345 PR tree-optimization/90021
28346 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28347 and check univariate against it.
28348 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28349 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28350
28351 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28352
28353 PR target/90178
28354 Revert:
28355 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28356
28357 Revert the revert:
28358 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28359
28360 Revert:
28361 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28362
28363 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28364
28365 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28366
28367 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28368 names using operand format, rather than hard-wired.
28369 (speculation_barrier): Likewise.
28370
28371 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28372
28373 PR tree-optimization/88055
28374 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28375 (gen_one_condition): Use it if !HONOR_NANS.
28376
28377 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28378
28379 PR middle-end/90139
28380 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28381 assign_temp instead of gen_reg_rtx.
28382
28383 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28384
28385 PR translation/90118
28386 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28387 Add missing space before %<.
28388
28389 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28390
28391 PR rtl-optimization/87871
28392 * ira-lives.c (make_object_dead): Don't add conflicts to
28393 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28394
28395 2019-04-18 Martin Sebor <msebor@redhat.com>
28396
28397 PR middle-end/89797
28398 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28399 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28400 assuming type size fits in SHWI.
28401
28402 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28403
28404 PR ipa/85051
28405 * ipa-inline.c (flatten_function): New parameter UPDATE.
28406 (ipa_inline, early_inliner): Use it.
28407
28408 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28409
28410 * fold-const.c (int_const_binop): Return early on failure.
28411
28412 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28413
28414 PR middle-end/85164
28415 * combine.c (force_int_to_mode): Cast the argument rather than
28416 the result of known_alignment.
28417 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28418
28419 2019-04-18 Richard Biener <rguenther@suse.de>
28420
28421 PR debug/90131
28422 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28423 out from ...
28424 (remove_forwarder_block): ... here.
28425 (remove_forwarder_block_with_phi): Also move debug stmts here.
28426
28427 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28428
28429 PR translation/79183
28430 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28431 inform where appropriate.
28432
28433 2019-04-18 Richard Biener <rguenther@suse.de>
28434
28435 * tree.c (get_qualified_type): Put found type variants at the
28436 head of the variant list.
28437
28438 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28439
28440 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28441
28442 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28443
28444 PR target/90125
28445 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28446 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28447 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28448 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28449 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28450
28451 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28452
28453 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28454 even for allocno's with no conflicts.
28455 (print_conflicts): Print an extra newline.
28456
28457 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28458
28459 * auto-inc-dec.c (attempt_change): Set the alignment of the
28460 temporary memory to that of the original.
28461
28462 2019-04-17 Joao Moreira <jmoreira@suse.de>
28463
28464 * targhooks.c (default_print_patchable_function_entry): Emit
28465 __patchable_function_entries section with writable flags to allow
28466 relocation resolution.
28467
28468 2019-04-17 Jonny Grant <jg@jguk.org>
28469
28470 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28471
28472 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28473
28474 PR middle-end/90095
28475 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28476 on lowpart SUBREGs.
28477
28478 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28479
28480 * config/arc/arc.c (arc_init): Format diagnostic string.
28481 (arc_override_options): Likewise.
28482 (check_if_valid_regno_const): Likewise.
28483 (arc_reorg): Likewise.
28484
28485 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28486
28487 PR target/17108
28488 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28489 name.
28490 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28491 name.
28492 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28493 (*movdi_update1): Use Pmode.
28494 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28495 (movdi_<mode>_update_stack): Rename to ...
28496 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28497 use Pmode.
28498 (*movsi_update1): Use Pmode.
28499 (*movsi_update2): Use Pmode.
28500 (movsi_update): Rename to ...
28501 (movsi_<mode>_update): ... this. Use Pmode.
28502 (movsi_update_stack): Fix condition.
28503 (*movhi_update1): Use Pmode. Fix argument to
28504 avoiding_indexed_address_p.
28505 (*movhi_update2): Ditto.
28506 (*movhi_update3): Ditto.
28507 (*movhi_update4): Ditto.
28508 (*movqi_update1): Ditto.
28509 (*movqi_update2): Ditto.
28510 (*movqi_update3): Ditto.
28511 (*movsf_update1, *movdf_update1): Merge, rename to...
28512 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28513 avoiding_indexed_address_p. Add "size" attribute.
28514 (*movsf_update2, *movdf_update2): Merge, rename to...
28515 (*mov<mode>_update2): This. Ditto.
28516 (*movsf_update3): Use Pmode. Fix argument to
28517 avoiding_indexed_address_p.
28518 (*movsf_update4): Ditto.
28519 (allocate_stack): Simplify condition. Adjust pattern names.
28520
28521 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28522
28523 PR target/89093
28524 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28525 whitespace at the start of target attribute string.
28526
28527 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28528
28529 PR target/84369
28530 * config/rs6000/power9.md: Add store forwarding bypass.
28531
28532 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28533
28534 PR debug/89528
28535 * valtrack.c (dead_debug_insert_temp): Reset debug references
28536 to the return value of a call being removed.
28537
28538 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28539
28540 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28541 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28542 implement target hook.
28543 (arc_memory_move_cost): New function.
28544 (TARGET_REGISTER_MOVE_COST): Define.
28545 (TARGET_MEMORY_MOVE_COST): Likewise.
28546 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28547 (MEMORY_MOVE_COST): Likewise.
28548
28549 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28550
28551 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28552 (sibcall_value_insn): Likewise.
28553 * config/arc/constraints.md (Rs5): Remove.
28554
28555 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28556
28557 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28558 for last two fake registers.
28559 (arc_conditional_register_usage): Make sure fake frame and arg
28560 pointer regs are in general regs class.
28561 (FRAME_POINTER_MASK): Remove.
28562 (RETURN_ADDR_MASK): Remove.
28563 (arc_must_save_register): Use hard frame regnum.
28564 (frame_restore_reg): Use hard_frame_pointer_rtx.
28565 (arc_save_callee_saves): Likewise.
28566 (arc_restore_callee_saves): Likewise.
28567 (arc_save_callee_enter): Likewise.
28568 (arc_restore_callee_leave): Likewise.
28569 (arc_save_callee_milli): Likewise.
28570 (arc_eh_return_address_location): Likewise.
28571 (arc_check_multi): Use hard frame regnum.
28572 (arc_can_eliminate): Likewise.
28573 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28574 for register allocator.
28575 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28576 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28577 (FRAME_POINTER_REGNUM): Change it to a fake register.
28578 (HARD_FRAME_POINTER_REGNUM): Defined.
28579 (ARG_POINTER_REGNUM): Change it to a new fake register.
28580 (ELIMINABLE_REGS): Update.
28581 (REGISTER_NAMES): Update names.
28582 * config/arc/arc.md (LP_START): Remove.
28583 (LP_END): Likewise.
28584 (shift_si3_loop): Update pattern.
28585
28586 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28587
28588 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28589 to avoid delay slot scheduling.
28590 (arc_must_save_register): Don't save SP.
28591 * config/arc/arc.md (stack_tie): Remove.
28592 (UNSPEC_ARC_STKTIE): Likewise.
28593
28594 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28595 Shiva Chen <shiva0217@gmail.com>
28596
28597 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28598 code gen with large shift amount.
28599
28600 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28601
28602 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28603 subreg.
28604
28605 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28606
28607 PR target/90096
28608 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28609 print -m64/-mx32/-m32 if it is true.
28610 (ix86_debug_options, ix86_function_specific_print): Pass true as
28611 ADD_ABI_P to ix86_target_string.
28612 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28613 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28614 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28615
28616 PR rtl-optimization/90082
28617 * dce.c (can_delete_call): New function.
28618 (deletable_insn_p, mark_insn): Use it.
28619
28620 PR tree-optimization/90090
28621 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28622 throw internally.
28623 (is_division_by_square): Likewise. Formatting fix.
28624
28625 2019-04-16 Richard Biener <rguenther@suse.de>
28626
28627 PR tree-optimization/56049
28628 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28629 equality check if alias-set zero will prevail.
28630
28631 2019-04-15 Jeff Law <law@redhat.com>
28632
28633 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28634 size and alignment as unsigned.
28635
28636 2019-04-15 Richard Biener <rguenther@suse.de>
28637
28638 PR debug/90074
28639 * tree-loop-distribution.c (destroy_loop): Preserve correct
28640 debug info.
28641
28642 2019-04-15 Richard Biener <rguenther@suse.de>
28643
28644 PR tree-optimization/90071
28645 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28646 abnormal operands from def stmts.
28647
28648 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28649
28650 PR rtl-optimization/89794
28651 * combine.c (count_auto_inc): New function.
28652 (try_combine): Count how many auto_inc expressions there were in the
28653 original instructions. Ensure we have the same number in the new
28654 instructions. Remove the code that tried to ensure auto_inc side
28655 effects on i1 and i0 are not lost.
28656
28657 2019-04-15 Richard Biener <rguenther@suse.de>
28658
28659 PR ipa/88936
28660 * tree.h (auto_var_p): Declare.
28661 * tree.c (auto_var_p): New function, split out from ...
28662 (auto_var_in_fn_p): ... here.
28663 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28664 member.
28665 (new_var_info): Initialize it.
28666 (set_uids_in_ptset): Also set the shadow variable uid if required.
28667 (ipa_pta_execute): Postprocess points-to solutions assigning
28668 shadow variable uids for locals that may reach their containing
28669 function recursively.
28670 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28671 assert but instead check whether the points-to solution is
28672 a singleton.
28673
28674 2019-04-15 Martin Jambor <mjambor@suse.cz>
28675
28676 PR ipa/pr89693
28677 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28678 the thunk chain.
28679
28680 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28681
28682 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28683
28684 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28685 Kito Cheng <kito.cheng@gmail.com>
28686 Shiva Chen <shiva0217@gmail.com>
28687
28688 * config/nds32/nds32-md-auxiliary.c
28689 (nds32_legitimize_pic_address): Use new PIC pattern.
28690 (nds32_legitimize_tls_address): Use new TLS pattern.
28691 (nds32_output_symrel): New.
28692 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28693 (nds32_alloc_relax_group_id): Ditto.
28694 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28695 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28696 relax_group_id.
28697 (nds32_group_tls_insn): Ditto.
28698 (nds32_group_float_insns): Ditto.
28699 * config/nds32/nds32.md (tls_le): New.
28700 (sym_got): Ditto.
28701
28702 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28703
28704 * configure: Add nds32 target for dwarf2 debug_line checking.
28705 * configure.ac: Regenerated.
28706
28707 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28708
28709 PR lto/89358
28710 * ipa-devirt.c (skip_in_fields_list_p): New.
28711 (odr_types_equivalent_p): Use it.
28712
28713 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28714
28715 PR target/89093
28716 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28717 instead of strncmp when checking for thumb and arm. Formatting fixes.
28718
28719 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28720
28721 * doc/install.texi: Document --with-target-system-zlib.
28722
28723 2019-04-12 Martin Sebor <msebor@redhat.com>
28724
28725 PR c/88383
28726 PR c/89288
28727 PR c/89798
28728 PR c/89797
28729 * targhooks.c (default_vector_alignment): Avoid assuming
28730 argument fits in SHWI.
28731 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28732 a shift expression.
28733 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28734
28735 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28736
28737 PR rtl-optimization/89965
28738 * dce.c: Include rtl-iter.h.
28739 (struct check_argument_load_data): New type.
28740 (check_argument_load): New function.
28741 (find_call_stack_args): Check for loads from stack slots still tracked
28742 in sp_bytes and punt if any is found.
28743
28744 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28745
28746 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28747
28748 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28749 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28750
28751 2019-04-12 Martin Liska <mliska@suse.cz>
28752
28753 PR middle-end/89970
28754 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28755 in error message.
28756 (separate_attrs): Handle multiple 'default's.
28757 (expand_target_clones): Rework error handling code.
28758
28759 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28760
28761 PR target/87532
28762 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28763 mode of vector rather than mode of destination for move instruction.
28764 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28765 Use QI inner mode with V16QI vector mode.
28766
28767 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28768
28769 PR target/52726
28770 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28771 "invalid %%t operand" in output_operand_lossage message.
28772
28773 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28774
28775 * config/s390/predicates.md (permute_pattern_operand): New
28776 predicate.
28777 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28778 operand for the permute pattern.
28779 ("*vec_perm<mode>"): New insn definition.
28780 ("bswap<mode>"): Generate the permute pattern operand in the
28781 expander and perform the operand reloads for pre arch13 level
28782 already.
28783 ("*bswap<mode>_emu"): Rename to ...
28784 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28785 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28786 Add the USE operand for the permute pattern.
28787 ("*vec_set_bswap_vec<mode>"): Likewise.
28788
28789 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28790
28791 PR c/89946
28792 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28793 and gcc_unreachable if it fails, just call tree_to_uhwi which
28794 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28795 Start warning message with a lower-case letter. Formatting fixes.
28796
28797 PR rtl-optimization/90026
28798 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28799 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28800 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28801 in cfglayout mode, use emit_barrier_after_bb.
28802
28803 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28804
28805 PR rtl-optimization/87763
28806 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28807 New Instruction.
28808
28809 2019-04-11 Tom de Vries <tdevries@suse.de>
28810
28811 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28812 max macro using statement expression.
28813
28814 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28815
28816 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28817 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28818 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28819 read_only_private_data_section using xcoff_private_rodata_section_name.
28820 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28821
28822 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28823
28824 PR target/90016
28825 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28826
28827 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28828
28829 PR rtl-optimization/89965
28830 * dce.c (sp_based_mem_offset): New function.
28831 (find_call_stack_args): Use sp_based_mem_offset.
28832
28833 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28834
28835 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28836
28837 2019-04-11 Richard Biener <rguenther@suse.de>
28838
28839 PR tree-optimization/90020
28840 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28841 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28842 * tree-ssa-pre.c (compute_avail): Use it to not put
28843 possibly trapping references after a call that might not
28844 return into EXP_GEN.
28845 * gcse.c (compute_hash_table_work): Do not elide
28846 marking a block containing a call if the call might not
28847 return.
28848
28849 2019-04-11 Richard Biener <rguenther@suse.de>
28850
28851 PR tree-optimization/90018
28852 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28853 Test both SLP and interleaving variants.
28854
28855 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28856
28857 * config/s390/8561.md: New file.
28858 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28859 Add arch13 cpu model.
28860 * config/s390/s390-opts.h (enum processor_type): Likewise.
28861 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28862 (s390_get_unit_mask): Likewise.
28863 (s390_is_fpd): Likewise.
28864 (s390_is_fxd): Likewise.
28865 * config/s390/s390.h (s390_tune_attr): Likewise.
28866 * config/s390/s390.md: Include arch13 pipeline description.
28867 * config/s390/s390.opt: Add arch13.
28868
28869 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28870
28871 PR rtl-optimization/87763
28872 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28873 New prototype.
28874 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28875 New function.
28876 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28877 New instruction.
28878 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28879 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28880 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28881 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28882
28883 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28884
28885 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28886 "Although" in -fipa-icf documentation.
28887
28888 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28889 of using multiple -g options.
28890
28891 2019-04-10 Martin Liska <mliska@suse.cz>
28892
28893 PR gcov-profile/89959
28894 * doc/gcov.texi: Make documentation of -x option
28895 more precise.
28896
28897 2019-04-10 Richard Biener <rguenther@suse.de>
28898
28899 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28900 member.
28901 (DR_GROUP_SAME_DR_STMT): Remove.
28902 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28903 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28904 replace with assert.
28905 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28906 (vect_record_grouped_load_vectors): Remove unreachable code.
28907
28908 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28909
28910 PR target/90016
28911 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28912 obsolete reference to N.
28913
28914 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28915
28916 PR middle-end/90025
28917 * expr.c (store_expr): Set properly size on the MEM passed to
28918 clear_storage.
28919
28920 PR c++/90010
28921 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28922 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28923 translation is needed, and when translation is needed, only append
28924 ... if the string length is hostsz or more bytes long. Avoid using
28925 strncpy or strcat.
28926
28927 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28928
28929 PR target/90024
28930 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28931 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28932 into three.
28933 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28934 differences directly.
28935 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28936
28937 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28938
28939 PR translation/90011
28940 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28941 from diagnostics.
28942 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28943 diagnostics.
28944 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28945 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28946 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28947 trailing space from -gsplit-dwarf diagnostics.
28948
28949 PR tree-optimization/89998
28950 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28951 instead of integer_type_node if possible, don't add ranges if return
28952 type is not compatible with int.
28953 * gimple-fold.c (gimple_fold_builtin_sprintf,
28954 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28955 integer_type_node.
28956
28957 2019-04-09 Martin Liska <mliska@suse.cz>
28958
28959 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28960 * doc/install.texi: Document the new config.
28961
28962 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28963
28964 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28965 use gimple_expr_type for load and store calls. Skip over the
28966 condition argument in a conditional internal function.
28967 Protect use of TREE_INT_CST_LOW.
28968
28969 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28970
28971 PR target/90015
28972 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28973 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28974 trailing period from it too.
28975
28976 2019-04-08 wu yuan <wuyuan5@huawei.com>
28977
28978 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28979 * config/aarch64/aarch64.md: Add "tsv110.md".
28980 * config/aarch64/tsv110.md: New file.
28981
28982 2019-04-08 Richard Biener <rguenther@suse.de>
28983
28984 PR tree-optimization/90006
28985 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28986 calls like lrint.
28987
28988 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28989
28990 PR target/83033
28991 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28992 construction.
28993 (fma_root_node): Likewise.
28994 (func_fma_steering): Likewise.
28995
28996 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28997
28998 PR rtl-optimization/89865
28999 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29000
29001 PR rtl-optimization/89865
29002 * config/i386/i386.md
29003 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29004 numbers not to clash with the additional operands[4].
29005 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29006 with extra register copy in the middle.
29007
29008 2019-04-08 Martin Liska <mliska@suse.cz>
29009
29010 PR gcov-profile/89961
29011 * doc/gcov.texi: Document data_file.
29012 * gcov.c (generate_results): Add data_info into JSON output.
29013
29014 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29015
29016 PR tree-optimization/89725
29017 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29018 loop's chrec as invariant symbol.
29019 * tree-chrec.h (chrec_contains_symbols): New parameter.
29020 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29021 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29022 function of loops not in DDR's loop_nest.
29023 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29024
29025 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29026
29027 PR target/89623
29028 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29029 Mask.
29030
29031 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29032
29033 PR target/89945
29034 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29035 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29036
29037 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29038
29039 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29040 targetm.fixed_condition_code_regs.
29041
29042 2019-04-05 Richard Biener <rguenther@suse.de>
29043
29044 PR debug/89892
29045 PR debug/89905
29046 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29047 debug bind stmts but reset them if they are not valid at the
29048 destination.
29049
29050 2019-04-05 Martin Liska <mliska@suse.cz>
29051
29052 PR translation/89936
29053 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29054 order to wrap keywords or arguments.
29055 * collect2.c (main): Likewise.
29056 (scan_prog_file): Likewise.
29057 (scan_libraries): Likewise.
29058 * common/config/riscv/riscv-common.c
29059 (riscv_subset_list::parsing_subset_version): Likewise.
29060 (riscv_subset_list::parse_std_ext): Likewise.
29061 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29062 Likewise.
29063 * config/arm/arm.c (arm_option_override): Likewise.
29064 * config/cris/cris.c (cris_print_operand): Likewise.
29065 * config/darwin-c.c (darwin_pragma_options): Likewise.
29066 (darwin_pragma_unused): Likewise.
29067 (darwin_pragma_ms_struct): Likewise.
29068 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29069 * config/i386/i386.c (print_reg): Likewise.
29070 (ix86_print_operand): Likewise.
29071 * config/i386/xm-djgpp.h: Likewise.
29072 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29073 * config/m32c/m32c.c (m32c_option_override): Likewise.
29074 * config/msp430/msp430.c (msp430_option_override): Likewise.
29075 * config/nds32/nds32.c (nds32_option_override): Likewise.
29076 * config/nvptx/mkoffload.c (main): Likewise.
29077 * config/rx/rx.c (rx_print_operand): Likewise.
29078 (valid_psw_flag): Likewise.
29079 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29080 (vms_pragma_nomember_alignment): Likewise.
29081 (vms_pragma_extern_model): Likewise.
29082 * lto-wrapper.c (compile_offload_image): Likewise.
29083 * omp-offload.c (oacc_parse_default_dims): Likewise.
29084 * symtab.c (symtab_node::verify_base): Likewise.
29085 * tlink.c (recompile_files): Likewise.
29086 (start_tweaking): Likewise.
29087 * tree-profile.c (parse_profile_filter): Likewise.
29088
29089 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29090
29091 PR tree-optimization/89956
29092 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29093 multiple negates of the same value.
29094
29095 2019-04-04 Martin Sebor <msebor@redhat.com>
29096
29097 PR middle-end/89957
29098 PR middle-end/89911
29099 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29100 have the same precision since the function crashes otherwise.
29101 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29102 has non-zero arguments.
29103
29104 2019-04-04 Martin Sebor <msebor@redhat.com>
29105
29106 PR middle-end/89934
29107 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29108 out if the number of arguments is less than expected.
29109
29110 2019-04-04 Jeff Law <law@redhat.com>
29111
29112 PR rtl-optimization/89399
29113 * ree.c (combine_set_extension): Use single_set rather than
29114 digging into PATTERN for items on the candidate list.
29115 (combine_reaching_defs): Likewise.
29116
29117 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29118
29119 PR rtl-optimization/46590
29120 * loop-invariant.c (find_defs): Move df_remove_problem and
29121 df_process_deferred_rescans to move_invariants.
29122 Move df_live_add_problem and df_live_set_all_dirty calls
29123 to move_invariants.
29124 (move_invariants): Likewise.
29125 (move_loop_invariants): Likewise, making the df_live calls
29126 conditional on -O. Remove the problem again if we added it
29127 locally.
29128
29129 2019-04-03 qing zhao <qing.zhao@oracle.com>
29130
29131 PR tree-optimization/89730
29132 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29133 -flive-patching=inline-only-static.
29134 (can_inline_edge_by_limits_p): Add the checking for
29135 -flive-patching=inline-only-static and grant always_inline
29136 even when -flive-patching=inline-only-static is specified.
29137
29138 2019-04-03 Jeff Law <law@redhat.com>
29139
29140 PR rtl-optimization/81025
29141 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29142
29143 2019-04-03 Richard Biener <rguenther@suse.de>
29144
29145 PR tree-optimization/84101
29146 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29147 regs.h for hard_regno_nregs.
29148 (cfun_returns): New helper.
29149 (vect_model_store_cost): When vectorizing a store to a decl
29150 we return and the function ABI returns in a multi-reg location
29151 account for the possible spilling that will happen.
29152
29153 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29154
29155 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29156 displacement addresses for vector mode operands.
29157
29158 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29159
29160 * config/arc/arc.c (GMASK_LEN): Define.
29161 (arc_restore_callee_saves): Restore first blink when
29162 !optimize_size.
29163
29164 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29165
29166 * doc/extend.texi: Add deprecated comment on sign-return-address
29167 function attribute and add mbranch-protection.
29168 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29169
29170 2019-04-03 Richard Biener <rguenther@suse.de>
29171
29172 PR lto/89896
29173 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29174 the all target phony.
29175
29176 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29177
29178 PR target/89902
29179 PR target/89903
29180 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29181 Return false for variable DImode shifts.
29182 (dimode_scalar_chain::compute_convert_gain): Do not handle
29183 register count operand in variable DImode shifts.
29184 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29185 count argument of a variable shift instruction to a vector register.
29186 (dimode_scalar_chain::convert_reg): Remove support to convert
29187 count argument of a variable shift instruction.
29188
29189 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29190
29191 PR rtl-optimization/84206
29192 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29193 iterating over loop headers.
29194
29195 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29196
29197 PR rtl-optimization/85876
29198 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29199 beyond the original fence.
29200
29201 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29202
29203 * config.gcc: Mark spu* targets as deprecated/obsolete.
29204
29205 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29206
29207 * config/s390/s390-builtin-types.def: New builtin function type
29208 definitions. Remove unused types.
29209 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29210 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29211 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29212 overloaded builtins.
29213 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29214 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29215 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29216 (vec_double, vec_signed, vec_unsigned): Define to use the new
29217 overloaded builtins.
29218 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29219 Remove expanders.
29220
29221 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29222
29223 * config/s390/s390-builtin-types.def: New builtin function type
29224 definitions.
29225 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29226 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29227 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29228 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29229 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29230 constant definitions.
29231 * config/s390/vecintrin.h (vec_search_string_cc)
29232 (vec_search_string_until_zero_cc): New builtin name definitions.
29233 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29234 expanders.
29235 ("vec_vstrs<mode>"): New insn definition.
29236
29237 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29238
29239 * config/s390/s390-builtin-types.def: Add new builtin function
29240 types.
29241 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29242 New overloaded builtins.
29243 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29244 s390_vsrd.
29245 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29246 (UNSPEC_VEC_SLDBYTE): ... this.
29247 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29248 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29249 definitions.
29250 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29251 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29252 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29253
29254 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29255
29256 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29257 New insn definition.
29258 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29259 * config/s390/vector.md (V_HW_HSD): ... here.
29260
29261 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29262
29263 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29264 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29265 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29266 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29267 New insn definitions.
29268
29269 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29270
29271 * config/s390/s390-builtin-types.def: Add new builtin function type.
29272 * config/s390/s390-builtins.def: Add overloaded builtin
29273 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29274 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29275 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29276 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29277 ("eltswap<mode>"): New expander.
29278 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29279 insn definitions.
29280
29281 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29282
29283 * config/s390/s390-builtin-types.def: Add new builtin function types.
29284 * config/s390/s390-builtins.def: Add overloaded builtin
29285 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29286 instructions.
29287 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29288 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29289 ("bswap<mode>"): New expander.
29290 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29291
29292 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29293
29294 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29295 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29296 vector builtin version number in __VEC__.
29297
29298 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29299
29300 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29301 iterators.
29302 (SFSI): New mode attribute.
29303 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29304 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29305 rename to ...
29306 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29307 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29308 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29309 ("floatsi<mode>2"): Add wcefb instruction.
29310
29311 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29312
29313 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29314 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29315 mode iterators.
29316 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29317 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29318 support 32 bit fp-int conversions. Rename to ...
29319 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29320 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29321 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29322 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29323 ... to these.
29324
29325 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29326
29327 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29328 if-then-else constructs if we can use the select instruction.
29329 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29330
29331 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29332
29333 * config/s390/s390.md ("*popcountdi_arch13_cc")
29334 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29335 definition.
29336 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29337 Append _z196 to make it ...
29338 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29339 ("popcounthi2_z196"): ... this.
29340 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29341 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29342
29343 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29344
29345 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29346 certain compares for arch13 in order to make use of the condition
29347 code result produced by the new instructions.
29348 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29349 nxrk, and nxgrk instruction patterns.
29350 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29351 (inv_no): Add new code iterator together with some attributes.
29352 ("*andc_split_<mode>"): Disable splitter for arch13.
29353 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29354 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29355 ("*<ANDOR:bitops_name>c<GPR:mode>")
29356 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29357 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29358 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29359 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29360
29361 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29362
29363 * common/config/s390/s390-common.c (processor_flags_table): New
29364 entry for arch13.
29365 * config.gcc: Support arch13 with the --with-arch= configure flag.
29366 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29367 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29368 * config/s390/s390.c (s390_get_sched_attrmask)
29369 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29370 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29371 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29372 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29373 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29374 definitions.
29375 * config/s390/s390.opt: Support arch13 as processor type in
29376 command line options.
29377
29378 2019-04-02 Martin Liska <mliska@suse.cz>
29379
29380 PR translation/89912
29381 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29382 Fix param description of graphite-max-arrays-per-scop.
29383
29384 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29385
29386 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29387 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29388 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29389
29390 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29391
29392 PR rtl-optimization/85412
29393 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29394 sel_sched_region_1, not after.
29395
29396 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29397
29398 PR rtl-optimization/86928
29399 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29400 compute_live if necessary.
29401 (sel_redirect_edge_and_branch): Likewise.
29402
29403 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29404
29405 PR rtl-optimization/89865
29406 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29407 register if it is a part of small class.
29408
29409 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29410
29411 PR rtl-optimization/87273
29412 * sel-sched-ir.c (merge_fences): Remove assert.
29413
29414 2019-04-01 Richard Biener <rguenther@suse.de>
29415
29416 PR tree-optimization/46590
29417 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29418 (dom_walker::m_reachability): Add in place of...
29419 (dom_walker::m_skip_unreachable_blocks): ...this.
29420 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29421 Move complex initialization ...
29422 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29423 lazily and initialize edge flags on each invocation.
29424 (dom_walker::bb_reachable): Use m_reachability.
29425
29426 2019-04-01 Martin Liska <mliska@suse.cz>
29427
29428 PR driver/89861
29429 * opt-suggestions.c (option_proposer::build_option_suggestions):
29430 Add variant without any argument in order to provide better
29431 hints.
29432
29433 2019-04-01 Richard Biener <rguenther@suse.de>
29434
29435 PR c/71598
29436 * gimple.c: Include langhooks.h.
29437 (gimple_get_alias_set): Treat enumeral types as the underlying
29438 integer type.
29439
29440 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29441 Eric Botcazou <ebotcazou@adacore.com>
29442
29443 PR rtl-optimization/89862
29444 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29445 that operates on the full registers for WORD_REGISTER_OPERATIONS
29446 architectures.
29447
29448 2019-03-29 Jim Wilson <jimw@sifive.com>
29449
29450 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29451 Clear MASK_RVC and then set if C subset supported.
29452
29453 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29454
29455 PR c/89872
29456 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29457 non-addressable complit into its initializer if it is volatile.
29458
29459 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29460
29461 * opts-common.c (integral_argument): Set errno properly in one case.
29462
29463 2019-03-29 Martin Liska <mliska@suse.cz>
29464
29465 * doc/invoke.texi: Remove -Wchkp from documentation.
29466
29467 2019-03-29 Martin Liska <mliska@suse.cz>
29468
29469 * dbgcnt.c (print_limit_reach): New function.
29470 (dbg_cnt): Use it.
29471
29472 2019-03-29 Martin Liska <mliska@suse.cz>
29473
29474 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29475 (dbg_cnt_process_opt): Parse first tokens aas
29476 dbg_cnt_process_single_pair is also using strtok.
29477
29478 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29479
29480 PR rtl-optimization/87485
29481 * function.c (expand_function_end): Move stack_protect_epilogue
29482 before loading of return value into hard register(s).
29483
29484 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29485
29486 PR middle-end/89621
29487 * tree-inline.h (struct copy_body_data): Add
29488 dont_remap_vla_if_no_change flag.
29489 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29490 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29491 and remap_type_2 returns false.
29492 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29493 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29494 only from where it is copied to nested contexts.
29495
29496 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29497
29498 PR target/89865
29499 * config/i386/i386.md (RMW operation with LEA peephole):
29500 Use LEAMODE mode attribute instead of SWI mode iterator for
29501 LEA pattern.
29502
29503 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29504
29505 PR target/89848
29506 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29507 Also process XEXP (src, 0) of a shift insn.
29508
29509 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29510
29511 PR middle-end/89725
29512 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29513 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29514
29515 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29516
29517 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29518 test.
29519 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29520 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29521 immediately after first one with df_analyze in between, but rather
29522 process all bbs, queueing ones that need second pass in a worklist,
29523 df_analyze, process queued debug insn changes and if second pass is
29524 needed, process bbs from worklist, df_analyze, process queued debug
29525 insns again.
29526
29527 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29528 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29529 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29530
29531 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29532
29533 PR c/79022
29534 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29535 definition.
29536
29537 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29538
29539 PR target/85667
29540 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29541 function for 32-bit MS_ABI.
29542 (function_value_ms_32): New function.
29543
29544 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29545
29546 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29547 (movdi): Call gen_movdi_symbol_save_scc.
29548 (gen_movdi_symbol_save_scc): New insn and split.
29549
29550 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29551
29552 PR rtl-optimization/89313
29553 * function.c (matching_constraint_num): New static function.
29554 (match_asm_constraints_1): Use it. Fixup white space and comment.
29555 Don't replace inputs with non-matching constraints which conflict
29556 with early clobber outputs.
29557
29558 2019-03-27 Jeff Law <law@redhat.com>
29559
29560 PR rtl-optimization/87761
29561 PR rtl-optimization/89826
29562 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29563 slightly later.
29564 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29565 note problem to get REG_DEAD/REG_UNUSED notes updated.
29566
29567 2019-03-27 Richard Biener <rguenther@suse.de>
29568
29569 PR tree-optimization/89463
29570 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29571 queue edges to remove.
29572 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29573 dead stmts. Delay edge removal until PHIs are removed to
29574 make debug-stmt creation not confused by seemingly degenerate
29575 PHIs.
29576
29577 2019-03-27 Alan Modra <amodra@gmail.com>
29578
29579 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29580 throughout file.
29581 * config/rs6000/darwin.h: Likewise.
29582 * config/rs6000/rs6000.c: Likewise.
29583
29584 2019-03-27 Alan Modra <amodra@gmail.com>
29585
29586 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29587 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29588
29589 2019-03-26 Andrew Waterman <andrew@sifive.com>
29590 Jim Wilson <jimw@sifive.com>
29591
29592 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29593 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29594 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29595 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29596 (generic_alu): Add auipc to type list.
29597 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29598 (riscv_microarchitecture): Declare.
29599 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29600 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29601 field.
29602 (riscv_microarchitecture): New.
29603 (sifive_7_tune_info): New.
29604 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29605 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29606 entries.
29607 (riscv_store_data_bypass_p): New.
29608 (riscv_option_override): Set riscv_microarchitecture from
29609 cpu->microarchitecture.
29610 * config/riscv/riscv.md: Include sifive-7.md.
29611 (type): Add auipc.
29612 (tune): New.
29613 (auipc<mode>): Change type to auipc.
29614 (restore_stack_nonlocal): New.
29615 * config/riscv/sifive-7.md: New.
29616 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29617
29618 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29619
29620 PR target/89827
29621 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29622 Also process XEXP (src, 0) of a shift insn.
29623
29624 2019-03-26 Richard Biener <rguenther@suse.de>
29625
29626 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29627 (copy_debug_stmt): Likewise.
29628 (expand_call_inline): Likewise.
29629 (copy_bb): Avoid redundant lookup & set of gimple_block.
29630 * gimple-low.c (lower_gimple_return): Likewise.
29631 (lower_builtin_setjmp): Likewise.
29632
29633 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29634
29635 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29636 is constant 0, turn into static const data member initialized to false.
29637 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29638 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29639
29640 2019-03-26 Jason Merrill <jason@redhat.com>
29641 Jakub Jelinek <jakub@redhat.com>
29642
29643 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29644 method.
29645 (mem_alloc_description::release_object_overhead): Fix comment typos.
29646 * hash-table.h (hash_table::~hash_table): Call
29647 release_instance_overhead only if m_entries is non-NULL, otherwise
29648 call unregister_descriptor.
29649
29650 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29651
29652 PR tree-optimization/81740
29653 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29654 In case of outer loop vectorization, check for backward dependence
29655 at the inner loop if outer loop dependence is reversed.
29656
29657 2019-03-26 Alan Modra <amodra@gmail.com>
29658
29659 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29660 rs6000_vector_mem init. Correct wI and wJ comment.
29661
29662 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29663
29664 PR rtl-optimization/88347
29665 PR rtl-optimization/88423
29666 * sched-deps.c (sched_analyze_insn): Take into account that for
29667 tablejumps the barrier appears after a label and a jump_table_data.
29668
29669 2019-03-25 Martin Sebor <msebor@redhat.com>
29670
29671 PR c/89812
29672 * c-common.c (check_user_alignment): Rename local. Correct maximum
29673 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29674 convert it to UHWI when it fits.
29675
29676 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29677
29678 PR debug/86964
29679 * dwarf2out.c (premark_used_variables): New function.
29680 (prune_unused_types_walk): Do not mark not premarked external
29681 variables.
29682 (prune_unused_types): Call premark_used_variables.
29683
29684 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29685
29686 PR rtl-optimization/89676
29687 * lra-constraints.c (curr_insn_transform): Do match reload for
29688 early clobbers when the match was successful only for different
29689 registers.
29690
29691 2019-03-25 Martin Sebor <msebor@redhat.com>
29692
29693 * doc/extend.texi (Common Type Attributes): Document vector_size.
29694 (Common Variable Attributes): Mention size constraint. Correct
29695 quoting and typos.
29696 (Vector Extensions): Use @dfn when defining bas type. Clarify
29697 base type and size constraints.
29698
29699 2019-03-25 Richard Biener <rguenther@suse.de>
29700
29701 PR tree-optimization/89789
29702 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29703 changes from non-undefined back to undefined.
29704
29705 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29706
29707 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29708 heap string and a gc string, but since this variable is unknown to
29709 ggc the gc string might get reused and corrupted. Fixed by always
29710 using a heap string.
29711
29712 2019-03-25 Richard Biener <rguenther@suse.de>
29713
29714 PR tree-optimization/89779
29715 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29716 to remove IV defs, delay actual removal.
29717 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29718 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29719 very end, properly also reset loop control IV information.
29720
29721 2019-03-25 Richard Biener <rguenther@suse.de>
29722
29723 PR tree-optimization/89802
29724 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29725 move EH data to folded stmt.
29726
29727 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29728
29729 * config/s390/s390-builtin-types.def: Remove few unused types and
29730 fix sort order for others.
29731
29732 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29733
29734 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29735 expected and found types with -mdebug during builtin matching.
29736
29737 2019-03-25 Richard Biener <rguenther@suse.de>
29738
29739 PR middle-end/89790
29740 * fold-const.c (operand_equal_p): Revert last change with
29741 updated comment.
29742
29743 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29744
29745 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29746 notes for the result of the __tls_get_addr calls.
29747 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29748
29749 2019-03-24 Jeff Law <law@redhat.com>
29750
29751 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29752
29753 PR rtl-optimization/87761
29754 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29755 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29756 as needed.
29757 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29758 rescans. Reprocess blocks as needed, calling df_analyze before
29759 reprocessing. Always call df_analyze before fixing up debug bind
29760 insns.
29761
29762 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29763
29764 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29765 big endian.
29766
29767 2019-03-22 Andrew Pinski <apinski@marvell.com>
29768
29769 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29770 attrribute for uxtw.
29771
29772 2019-03-26 Jeff Law <law@redhat.com>
29773
29774 PR rtl-optimization/87761
29775 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29776 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29777 (mips_split_move): Accept new INSN argument. Try to forward SRC
29778 into the next instruction.
29779 (mips_split_move_insn): Pass INSN through to mips_split_move.
29780
29781 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29782
29783 PR rtl-optimization/89676
29784 * lra-constraints.c (curr_insn_transform): Do match reload for
29785 early clobbers even if the match was successful.
29786
29787 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29788
29789 PR c++/87481
29790 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29791
29792 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29793
29794 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29795
29796 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29797
29798 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29799 <avx512>_fmsub_<mode>_mask3<round_name>,
29800 <avx512>_fnmadd_<mode>_mask3<round_name>,
29801 <avx512>_fnmsub_<mode>_mask3<round_name>,
29802 avx512f_vmfmadd_<mode>_mask3<round_name>,
29803 avx512f_vmfmsub_<mode>_mask3<round_name>,
29804 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29805 instead of register_operand and %v instead of v for match_operand 1.
29806 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29807 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29808 <round_nimm_predicate> instead of register_operand and %v instead of v
29809 for match_operand 1.
29810
29811 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29812 <avx512>_fmadd_<mode>_mask3<round_name>,
29813 <avx512>_fmsub_<mode>_mask<round_name>,
29814 <avx512>_fmsub_<mode>_mask3<round_name>,
29815 <avx512>_fnmadd_<mode>_mask<round_name>,
29816 <avx512>_fnmadd_<mode>_mask3<round_name>,
29817 <avx512>_fnmsub_<mode>_mask<round_name>,
29818 <avx512>_fnmsub_<mode>_mask3<round_name>,
29819 <avx512>_fmaddsub_<mode>_mask<round_name>,
29820 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29821 <avx512>_fmsubadd_<mode>_mask<round_name>,
29822 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29823 <round_nimm_predicate> instead of nonimmediate_operand.
29824 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29825 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29826 Use register_operand instead of <round_nimm_predicate> for the
29827 operand that needs to match output.
29828 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29829 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29830 Likewise. Formatting fixes.
29831
29832 PR target/89784
29833 * config/i386/i386.c (enum ix86_builtins): Remove
29834 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29835 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29836 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29837 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29838 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29839 __builtin_ia32_vfmsubss3_mask3): New builtins.
29840 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29841 avx512f_vmfmadd_<mode>_mask3<round_name>,
29842 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29843 *avx512f_vmfmsub_<mode>_mask<round_name>,
29844 avx512f_vmfmsub_<mode>_mask3<round_name>,
29845 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29846 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29847 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29848 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29849 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29850 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29851 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29852 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29853 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29854 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29855 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29856 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29857 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29858 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29859 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29860 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29861 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29862 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29863 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29864 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29865 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29866 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29867 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29868 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29869 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29870 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29871 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29872 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29873
29874 2019-03-21 Martin Sebor <msebor@redhat.com>
29875
29876 PR tree-optimization/89350
29877 * builtins.c (compute_objsize): Also ignore offsets whose upper
29878 bound is negative.
29879 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29880 (builtin_memref::builtin_memref): Initialize new member.
29881 Allow EXPR to be null.
29882 (builtin_memref::extend_offset_range): Replace local with a member.
29883 Avoid assuming pointer offsets are unsigned.
29884 (builtin_memref::set_base_and_offset): Determine base object
29885 before computing offset range.
29886 (builtin_access::builtin_access): Handle memset.
29887 (builtin_access::generic_overlap): Replace local with a member.
29888 (builtin_access::strcat_overlap): Same.
29889 (builtin_access::overlap): Same.
29890 (maybe_diag_overlap): Same.
29891 (maybe_diag_access_bounds): Same.
29892 (wrestrict_dom_walker::check_call): Handle memset.
29893 (check_bounds_or_overlap): Same.
29894
29895 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29896 Jakub Jelinek <jakub@redhat.com>
29897
29898 PR lto/89692
29899 * tree.c (fld_type_variant, fld_incomplete_type_of,
29900 fld_process_array_type): Call fld->pset.add and don't call
29901 add_tree_to_fld_list if it returns true.
29902 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29903 non-marked types from TYPE_NEXT_VARIANT list.
29904 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29905
29906 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29907
29908 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29909 to false, if true, don't alloc_entries during construction, but defer
29910 it to the first method that needs m_entries allocated.
29911 (hash_table::hash_table, hash_table::~hash_table,
29912 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29913 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29914 hash_table::clear_slot, hash_table::traverse_noresize,
29915 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29916 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29917 false.
29918 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29919 NO_INSERT instead of find_with_hash.
29920 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29921 hash_set::m_table): Add Lazy to template params of hash_table.
29922 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29923 * attribs.c (test_attribute_exclusions): Likewise.
29924 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29925 hash_set. Add tests for hash_set with Lazy = true.
29926
29927 2019-03-21 Richard Biener <rguenther@suse.de>
29928
29929 PR tree-optimization/89779
29930 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29931 checks with respect to released SSA names now having error_mark_node
29932 type.
29933 * fold-const.c (operand_equal_p): Likewise.
29934
29935 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29936
29937 PR target/89775
29938 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29939 available to ...
29940 (s390_optimize_register_info): Use global_not_special_regno_p to
29941 check for global regs.
29942
29943 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29944
29945 PR target/89752
29946 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29947 update this_alternative nor this_alternative_set.
29948
29949 2019-03-19 Jim Wilson <jimw@sifive.com>
29950
29951 PR target/89411
29952 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29953 align, size, offset. Use them to handle a BLKmode reference. Update
29954 comment.
29955 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29956
29957 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29958
29959 PR rtl-optimization/89768
29960 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29961 instead of GEN_INT.
29962 (unroll_loop_runtime_iterations): Likewise.
29963
29964 2019-03-19 Martin Sebor <msebor@redhat.com>
29965
29966 PR tree-optimization/89644
29967 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29968 rather than endptr as an indicator of nul-termination.
29969
29970 PR tree-optimization/89644
29971 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29972 arrays in determining sequence sizes in strncpy and stpncpy.
29973
29974 2019-03-19 Martin Liska <mliska@suse.cz>
29975
29976 PR middle-end/89737
29977 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29978 unlikely_edges if there's an edge that belongs to both these sets.
29979
29980 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29981
29982 PR target/89746
29983 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29984 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29985 go via a stack temporary.
29986
29987 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29988
29989 PR target/89378
29990 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29991 instead of gen_rtx_SUBREG.
29992 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29993
29994 2019-03-19 Richard Biener <rguenther@suse.de>
29995
29996 PR debug/88389
29997 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29998
29999 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30000
30001 PR lto/87809
30002 PR lto/89335
30003 * tree.c (free_lang_data_in_decl): Do not free context of C++
30004 destrutors.
30005
30006 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30007
30008 PR target/89506
30009 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30010 subs for the first alternative except when operands[3] is 1.
30011
30012 PR target/89752
30013 * gimplify.c (gimplify_asm_expr): For output argument with
30014 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30015 diagnose error.
30016
30017 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30018
30019 PR rtl-optimization/89753
30020 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30021 explicit unrolling factor even more robust.
30022
30023 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30024
30025 PR target/89726
30026 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30027 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30028 signed zeros, do another copysign after the compensation.
30029
30030 2019-03-18 Martin Sebor <msebor@redhat.com>
30031
30032 PR tree-optimization/89720
30033 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30034 more conservatively, the same as anti-range.
30035
30036 2019-03-18 Richard Biener <rguenther@suse.de>
30037
30038 PR middle-end/88945
30039 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30040 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30041 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30042 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30043
30044 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30045
30046 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30047 Extend queue to 1024 entries.
30048 Add "consumed" field.
30049 (gomp_print_output): Remove print_index parameter.
30050 Add final parameter.
30051 Change limit to unsigned.
30052 Use consumed field to implement circular buffer.
30053 Detect interrupted print in final pass.
30054 Flush output at the end.
30055 (run): Update gomp_print_output usage.
30056 (main): Initialize kernargs->output_data.consumed.
30057
30058 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30059
30060 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30061 calculation of the minimum number of scalar iterations for
30062 fully-predicated loops.
30063
30064 2019-03-18 Martin Jambor <mjambor@suse.cz>
30065
30066 PR tree-optimization/89546
30067 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30068 any propagation to its children took place.
30069
30070 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30071
30072 PR target/89627
30073 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30074 parameter, and make use of it.
30075 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30076
30077 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30078
30079 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30080 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30081 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30082 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30083 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30084 match what the ops is doing.
30085 (push_multi_fp_blink): Likewise.
30086 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30087 compiling for size and elf target.
30088 (arc_save_callee_enter): Adjust note to match what enter/leave
30089 operation does.
30090
30091 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30092
30093 * config/arc/arc.md (tst_movb): Fix constraint.
30094
30095 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30096
30097 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30098
30099 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30100
30101 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30102 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30103 reg_alloc_order references.
30104 (size_alloc_order): Define.
30105 (arc_adjust_reg_alloc_order): New function.
30106 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30107 order.
30108 (ADJUST_REG_ALLOC_ORDER): Define.
30109 (HONOR_REG_ALLOC_ORDER): Likewise.
30110
30111 2019-03-18 Richard Biener <rguenther@suse.de>
30112
30113 PR target/87561
30114 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30115 loads and stores a bit more.
30116
30117 2019-03-18 Richard Biener <rguenther@suse.de>
30118
30119 PR target/87561
30120 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30121 load pessimization to stores as well.
30122
30123 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30124
30125 PR middle-end/86979
30126 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30127 successor, use NULL as its av set.
30128
30129 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30130
30131 PR rtl-optimization/89721
30132 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30133
30134 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30135
30136 PR target/87532
30137 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30138 When handling vec_extract, use modular arithmetic to allow
30139 constant selectors greater than vector length.
30140 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30141 V1TImode vectors to have constant selector values greater than 0.
30142 Use modular arithmetic to compute vector index.
30143 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30144 index for in-memory vectors. Correct code generation for
30145 in-register vectors.
30146 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30147 compute index.
30148
30149 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30150
30151 PR c++/88534
30152 PR c++/88537
30153 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30154 VAR_DECL args.
30155
30156 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30157
30158 PR c++/89709
30159 * tree.c (inchash::add_expr): Strip any location wrappers.
30160 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30161 after hash verification.
30162
30163 PR debug/89704
30164 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30165 SIGN_EXTEND and ZERO_EXTEND.
30166
30167 2019-03-14 Jason Merrill <jason@redhat.com>
30168 Jakub Jelinek <jakub@redhat.com>
30169
30170 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30171 than if is_empty (*slot).
30172 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30173 existing elt and for elt removal.
30174 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30175 of already removed elt.
30176
30177 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30178
30179 PR target/89650
30180 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30181 REG_EH_REGION note.
30182
30183 2019-03-14 Martin Liska <mliska@suse.cz>
30184
30185 PR other/89712
30186 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30187
30188 2019-03-14 Richard Biener <rguenther@suse.de>
30189
30190 PR target/89711
30191 * config/i386/i386.c (make_resolver_func): Properly set
30192 DECL_CONTEXT on the RESULT_DECL.
30193 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30194
30195 2019-03-14 Richard Biener <rguenther@suse.de>
30196
30197 * gimple-pretty-print.c: Include cfgloop.h.
30198 (dump_gimple_phi): Adjust.
30199 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30200 (pp_cfg_jump): Adjust.
30201 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30202 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30203 (lower_phi_internal_fn): Remove.
30204 (verify_gimple_call): Remove IFN_PHI special-casing.
30205 (dump_function_to_file): Dump IL state.
30206 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30207 done to deal with PHI nodes being present in non-SSA state.
30208
30209 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30210
30211 PR ipa/89684
30212 * multiple_target.c (create_dispatcher_calls): Change
30213 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30214 In the node->iterate_referring loop, push *ref rather than ref, call
30215 ref->remove_reference () and always pass 0 to iterate_referring.
30216
30217 PR rtl-optimization/89679
30218 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30219 would contain a paradoxical SUBREG.
30220
30221 2019-03-14 Richard Biener <rguenther@suse.de>
30222
30223 PR tree-optimization/89710
30224 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30225 safe_dyn_cast.
30226
30227 2019-03-14 Martin Liska <mliska@suse.cz>
30228
30229 * coverage.c (coverage_begin_function): Stream also
30230 end_column.
30231 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30232 documentation about function declaration location.
30233 * gcov-dump.c (tag_function): Print whole range
30234 of function declaration.
30235 * gcov.c (struct function_info): Add end_column field.
30236 (function_info::function_info): Initialize it.
30237 (output_json_intermediate_file): Output {start,end}_column
30238 fields.
30239 (read_graph_file): Read end_column.
30240
30241 2019-03-14 Richard Biener <rguenther@suse.de>
30242
30243 PR middle-end/89698
30244 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30245 that the access types are similar.
30246
30247 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30248
30249 PR tree-optimization/89703
30250 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30251 aren't compatible also with builtin_decl_explicit. Check pure
30252 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30253 and BUILT_IN_STPNCPY{,_CHK}.
30254
30255 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30256
30257 PR target/89523
30258 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30259 addr32 prefix to VSIB address for X32.
30260 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30261 "%M2" to opcode.
30262 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30263 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30264 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30265 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30266 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30267 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30268 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30269 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30270 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30271 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30272 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30273 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30274 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30275 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30276 (*avx512f_scatterdi<mode>): Likewise.
30277
30278 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30279
30280 PR target/85860
30281 * lra-constraints.c (inherit_in_ebb): Update
30282 potential_reload_hard_regs along with live_hard_regs.
30283
30284 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30285
30286 PR debug/89498
30287 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30288 DWARF_OFFSET_SIZE.
30289 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30290
30291 2019-03-13 Martin Sebor <msebor@redhat.com>
30292
30293 PR tree-optimization/89662
30294 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30295 has a size.
30296
30297 2019-03-13 Richard Biener <rguenther@suse.de>
30298
30299 PR middle-end/89677
30300 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30301 throw FP expressions at tree-affine.
30302
30303 2019-03-14 Richard Biener <rguenther@suse.de>
30304
30305 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30306 dump negative integer constants using _Literal (type) -num.
30307
30308 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30309
30310 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30311 nonlocal_value member.
30312
30313 PR middle-end/88588
30314 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30315 (ipa_simd_modify_function_body): Handle PHIs.
30316
30317 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30318
30319 * config/s390/s390.c (s390_option_override_internal): Use more
30320 aggressive inlining parameters.
30321
30322 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30323
30324 * config/s390/3906.md: New file.
30325 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30326 (LONGRUNNING_THRESHOLD): Remove.
30327 (MAX_SCHED_MIX_SCORE): Decrease.
30328 (MAX_SCHED_MIX_DISTANCE): Decrease.
30329 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30330 (struct s390_sched_state): New struct to hold scheduling state.
30331 (S390_SCHED_STATE_NORMAL): Remove.
30332 (S390_SCHED_STATE_CRACKED): Remove.
30333 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30334 (s390_get_sched_attrmask): Use new attribute.
30335 (s390_get_unit_mask): Use new units.
30336 (s390_is_fpd): New function.
30337 (s390_is_fxd): New function.
30338 (s390_is_longrunning): New function.
30339 (s390_sched_score): Use new functions.
30340 (s390_sched_reorder): Likewise.
30341 (s390_sched_variable_issue): Rework and use new functions.
30342 (s390_sched_init): Use new functions.
30343 * config/s390/s390.h (s390_tune_attr): Add z14.
30344 * config/s390/s390.md: Add z14.
30345
30346 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30347
30348 * config/s390/2964.md: Update pipeline description.
30349 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30350 (LONGRUNNING_THRESHOLD): Remove.
30351 (LATENCY_FACTOR): Remove.
30352 (s390_get_unit_mask): Add unit.
30353 (s390_sched_score): Use fxd/fpd.
30354 (s390_sched_variable_issue): Use fxd/fpd.
30355
30356 2019-03-12 Martin Liska <mliska@suse.cz>
30357
30358 * config/i386/i386.c: Reword an error message.
30359
30360 2019-03-12 Martin Jambor <mjambor@suse.cz>
30361
30362 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30363 terminate with newline.
30364
30365 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30366
30367 PR target/52726
30368 * config/s390/s390.md (tabort): Use %wd instead of
30369 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30370 letters and periods.
30371 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30372 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30373 's with %< and %>.
30374
30375 PR middle-end/89663
30376 * builtins.c (expand_builtin_int_roundingfn,
30377 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30378 gcc_unreachable if validate_arglist fails.
30379
30380 2019-03-12 Richard Biener <rguenther@suse.de>
30381
30382 PR tree-optimization/89664
30383 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30384 free the occurance tree after the early out.
30385
30386 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30387
30388 PR middle-end/89655
30389 PR bootstrap/89656
30390 * vr-values.c (vr_values::update_value_range): If
30391 old_vr->varying_p (), don't update it, make new_vr also VARYING
30392 and return false.
30393
30394 2019-03-11 Martin Liska <mliska@suse.cz>
30395
30396 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30397 Fix double string quoting.
30398
30399 2019-03-11 Martin Liska <mliska@suse.cz>
30400
30401 * collect-utils.c (collect_wait): Wrap apostrophes
30402 in gcc internal format with %'.
30403 * collect2.c (main): Likewise.
30404 (scan_prog_file): Likewise.
30405 (scan_libraries): Likewise.
30406 * config/i386/i386.c (ix86_expand_call): Likewise.
30407 (ix86_handle_interrupt_attribute): Likewise.
30408 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30409 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30410 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30411 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30412 * symtab.c (symtab_node::verify_base): Likewise.
30413 * tree-cfg.c (verify_gimple_label): Likewise.
30414 * tree.c (verify_type_variant): Likewise.
30415
30416 2019-03-11 Martin Liska <mliska@suse.cz>
30417
30418 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30419 in a string format message and fix GNU coding style.
30420 (expand_builtin_set_thread_pointer): Likewise.
30421 * common/config/aarch64/aarch64-common.c
30422 (aarch64_rewrite_selected_cpu): Likewise.
30423 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30424 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30425 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30426 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30427 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30428 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30429 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30430 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30431 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30432 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30433 Likewise.
30434 * common/config/riscv/riscv-common.c
30435 (riscv_subset_list::parsing_subset_version): Likewise.
30436 (riscv_subset_list::parse_std_ext): Likewise.
30437 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30438 (riscv_subset_list::parse): Likewise.
30439 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30440 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30441 (aarch64_override_options_internal): Likewise.
30442 (aarch64_validate_mcpu): Likewise.
30443 (aarch64_validate_march): Likewise.
30444 (aarch64_validate_mtune): Likewise.
30445 (aarch64_override_options): Likewise.
30446 * config/alpha/alpha.c (alpha_option_override): Likewise.
30447 * config/arc/arc.c (arc_init): Likewise.
30448 (parse_mrgf_banked_regs_option): Likewise.
30449 (arc_override_options): Likewise.
30450 (arc_expand_builtin_aligned): Likewise.
30451 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30452 (arm_expand_builtin): Likewise.
30453 * config/arm/arm.c (arm_option_check_internal): Likewise.
30454 (arm_configure_build_target): Likewise.
30455 (arm_option_override): Likewise.
30456 (arm_options_perform_arch_sanity_checks): Likewise.
30457 (arm_handle_cmse_nonsecure_entry): Likewise.
30458 (arm_handle_cmse_nonsecure_call): Likewise.
30459 (arm_tls_referenced_p): Likewise.
30460 (thumb1_expand_prologue): Likewise.
30461 * config/avr/avr.c (avr_option_override): Likewise.
30462 * config/bfin/bfin.c (bfin_option_override): Likewise.
30463 * config/c6x/c6x.c (c6x_option_override): Likewise.
30464 * config/cr16/cr16.c (cr16_override_options): Likewise.
30465 * config/cris/cris.c (cris_option_override): Likewise.
30466 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30467 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30468 * config/darwin.c (darwin_override_options): Likewise.
30469 * config/frv/frv.c (frv_expand_builtin): Likewise.
30470 * config/h8300/h8300.c (h8300_option_override): Likewise.
30471 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30472 (ix86_option_override_internal): Likewise.
30473 (warn_once_call_ms2sysv_xlogues): Likewise.
30474 (ix86_expand_prologue): Likewise.
30475 (split_stack_prologue_scratch_regno): Likewise.
30476 (ix86_warn_parameter_passing_abi): Likewise.
30477 * config/ia64/ia64.c (fix_range): Likewise.
30478 * config/m68k/m68k.c (m68k_option_override): Likewise.
30479 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30480 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30481 (mips_set_compression_mode): Likewise.
30482 * config/mmix/mmix.c (mmix_option_override): Likewise.
30483 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30484 * config/msp430/msp430.c (msp430_option_override): Likewise.
30485 * config/nds32/nds32.c (nds32_option_override): Likewise.
30486 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30487 (nios2_option_override): Likewise.
30488 (nios2_expand_custom_builtin): Likewise.
30489 * config/nvptx/mkoffload.c (main): Likewise.
30490 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30491 * config/pa/pa.c (fix_range): Likewise.
30492 (pa_option_override): Likewise.
30493 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30494 (riscv_option_override): Likewise.
30495 * config/rl78/rl78.c (rl78_option_override): Likewise.
30496 * config/rs6000/aix61.h: Likewise.
30497 * config/rs6000/aix71.h: Likewise.
30498 * config/rs6000/aix72.h: Likewise.
30499 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30500 * config/rs6000/freebsd64.h: Likewise.
30501 * config/rs6000/linux64.h: Likewise.
30502 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30503 (rs6000_expand_zeroop_builtin): Likewise.
30504 (rs6000_expand_mtfsb_builtin): Likewise.
30505 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30506 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30507 (rs6000_invalid_builtin): Likewise.
30508 (rs6000_expand_split_stack_prologue): Likewise.
30509 * config/rs6000/rtems.h: Likewise.
30510 * config/rx/rx.c (valid_psw_flag): Likewise.
30511 (rx_expand_builtin): Likewise.
30512 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30513 * config/s390/s390.c (s390_expand_builtin): Likewise.
30514 (s390_function_profiler): Likewise.
30515 (s390_option_override_internal): Likewise.
30516 (s390_option_override): Likewise.
30517 * config/sh/sh.c (sh_option_override): Likewise.
30518 (sh_builtin_saveregs): Likewise.
30519 (sh_fix_range): Likewise.
30520 * config/sh/vxworks.h: Likewise.
30521 * config/sparc/sparc.c (sparc_option_override): Likewise.
30522 * config/spu/spu.c (spu_option_override): Likewise.
30523 (fix_range): Likewise.
30524 * config/visium/visium.c (visium_option_override): Likewise.
30525 (visium_handle_interrupt_attr): Likewise.
30526 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30527 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30528 (dbg_cnt_process_opt): Likewise.
30529 * dwarf2out.c (output_dwarf_version): Likewise.
30530 * except.c (expand_eh_return): Likewise.
30531 * gcc.c (defined): Likewise.
30532 (driver_handle_option): Likewise.
30533 (process_command): Likewise.
30534 (compare_files): Likewise.
30535 (driver::prepare_infiles): Likewise.
30536 (driver::do_spec_on_infiles): Likewise.
30537 (driver::maybe_run_linker): Likewise.
30538 * omp-offload.c (oacc_parse_default_dims): Likewise.
30539 * opts-global.c (handle_common_deferred_options): Likewise.
30540 * opts.c (parse_sanitizer_options): Likewise.
30541 (common_handle_option): Likewise.
30542 (enable_warning_as_error): Likewise.
30543 * passes.c (enable_disable_pass): Likewise.
30544 * plugin.c (parse_plugin_arg_opt): Likewise.
30545 (default_plugin_dir_name): Likewise.
30546 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30547 (default_pch_valid_p): Likewise.
30548 * toplev.c (init_asm_output): Likewise.
30549 (process_options): Likewise.
30550 (toplev::run_self_tests): Likewise.
30551 * tree-cfg.c (verify_gimple_call): Likewise.
30552 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30553 (tree_inlinable_function_p): Likewise.
30554 * var-tracking.c (vt_find_locations): Likewise.
30555
30556 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30557
30558 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30559 only on the else branch.
30560
30561 2019-03-11 Martin Liska <mliska@suse.cz>
30562
30563 * gcov.c (output_intermediate_json_line): Print function
30564 name of each line.
30565 (output_json_intermediate_file): Add new argument.
30566 * doc/gcov.texi: Document the change.
30567
30568 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30569
30570 PR rtl-optimization/89588
30571 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30572 explicit unrolling factor more robust.
30573
30574 2019-03-11 Richard Biener <rguenther@suse.de>
30575
30576 PR tree-optimization/89649
30577 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30578 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30579 on the prolog and epilog loops.
30580 (vect_loop_versioning): Return copy of loop.
30581 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30582 on the non-vectorized version of the loop.
30583
30584 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30585
30586 PR target/68924
30587 * config/i386/sse.md (*vec_extractv2di_0_sse):
30588 Add (=r,x) alternative and corresponding splitter.
30589
30590 2019-03-10 Martin Jambor <mjambor@suse.cz>
30591
30592 PR tree-optimization/85762
30593 PR tree-optimization/87008
30594 PR tree-optimization/85459
30595 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30596 it points to if there is a type changing MEM_REF. Adjust all callers.
30597 (build_accesses_from_assign): Disable total scalarization if
30598 contains_vce_or_bfcref_p returns true through the new parameter, for
30599 both rhs and lhs.
30600
30601 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30602
30603 PR c/88568
30604 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30605 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30606
30607 PR target/79645
30608 * common.opt (fdiagnostics-show-labels,
30609 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30610 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30611 gas-locview-support, ginline-points, ginternal-reset-location-views):
30612 Terminate description text with a dot.
30613 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30614 * config/mcore/mcore.opt (m210, m340): Likewise.
30615 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30616 mnops=): Start description text with a capital letter.
30617 * config/arc/arc.opt (msize-level=): Likewise.
30618 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30619 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30620 mnewlib): Likewise.
30621 * config/ft32/ft32.opt (msim): Likewise.
30622 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30623 (mnodiv, mnopm): Terminate description text with a dot.
30624 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30625 a colon.
30626 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30627 Likewise.
30628 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30629 text.
30630
30631 PR rtl-optimization/89634
30632 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30633 are modified in BB_END (e->src) instruction.
30634
30635 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30636
30637 PR target/79926
30638 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30639 messages more amenable to translation, and improve wording.
30640
30641 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30642
30643 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30644 ud- and du-chains between phases.
30645
30646 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30647
30648 PR debug/89631
30649 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30650 instead of POLY_INT_CST.
30651
30652 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30653
30654 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30655 requirement.
30656
30657 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30658
30659 PR target/68924
30660 PR target/78782
30661 PR target/87558
30662 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30663 (_mm_storeu_si64): Ditto.
30664
30665 2019-03-08 Martin Liska <mliska@suse.cz>
30666
30667 PR target/86952
30668 * config/i386/i386.c (ix86_option_override_internal): Disable
30669 jump tables when retpolines are used.
30670
30671 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30672
30673 PR go/63560
30674 * ipa-split.c (execute_split_functions): Do not split
30675 'noinline' or 'section' function.
30676
30677 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30678
30679 PR target/79846
30680 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30681 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30682 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30683
30684 PR ipa/80000
30685 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30686 from diagnostics. Formatting fixes.
30687
30688 PR target/85665
30689 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30690 warn_odr diagnostics.
30691
30692 PR other/80058
30693 * lra-constraints.c (process_alt_operands): Avoid one space before
30694 " at the end of line and another after " on another line in a string
30695 literal.
30696 * attribs.c (handle_dll_attribute): Likewise.
30697 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30698
30699 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30700 warning_at or inform messages in G_() if there is no ?:.
30701
30702 PR tree-optimization/89550
30703 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30704 returned true. Formatting fixes.
30705 (expand_builtin_strnlen): Formatting fixes.
30706 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30707 if warning_at returned true.
30708 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30709
30710 2019-03-08 Richard Biener <rguenther@suse.de>
30711
30712 PR middle-end/89578
30713 * cfgloop.h (struct loop): Add owned_clique field.
30714 * cfgloopmanip.c (copy_loop_info): Copy it.
30715 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30716 cliques.
30717 * tree-inline.c (copy_loops): Remap owned_clique.
30718 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30719 * lto-streamer-out.c (output_cfg): Likewise.
30720
30721 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30722
30723 PR target/80190
30724 * config/darwin.c: Include intl.h.
30725 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30726 composing the message out of two separate parts.
30727
30728 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30729
30730 PR target/80003
30731 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30732 doesn't start with a capital letter and doesn't end with a dot.
30733 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30734 with a capital letter.
30735 (ix86_mangle_function_version_assembler_name): Likewise.
30736 (ix86_generate_version_dispatcher_body): Likewise.
30737 (fold_builtin_cpu): Likewise.
30738 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30739 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30740 translators, wrap full type name in %qs.
30741
30742 PR translation/79999
30743 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30744 depend clause with source (or sink) modifier.
30745 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30746
30747 PR target/89602
30748 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30749 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30750 (avx512f_load<mode>_mask): New define_expand.
30751 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30752 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30753 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30754 __builtin_ia32_movess_mask): New builtins.
30755 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30756 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30757 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30758 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30759
30760 2019-03-07 Martin Jambor <mjambor@suse.cz>
30761
30762 PR lto/87525
30763 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30764 for extern inline functions.
30765
30766 2019-03-07 Martin Jambor <mjambor@suse.cz>
30767
30768 PR ipa/88235
30769 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30770 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30771 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30772 have multiple callees. At the end check if declarations match as
30773 opposed to cgraph_nodes.
30774
30775 2019-03-07 Martin Liska <mliska@suse.cz>
30776
30777 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30778 which is equivalent to searching for this in clones chain.
30779 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30780 names with a neighbour and special case first node in a chain.
30781
30782 2019-01-25 Jason Merrill <jason@redhat.com>
30783
30784 PR c++/80916 - spurious "static but not defined" warning.
30785 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30786 for an internal symbol with DECL_EXTERNAL.
30787
30788 2019-04-07 Richard Biener <rguenther@suse.de>
30789
30790 PR middle-end/89618
30791 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30792 * tree-inline.c (copy_loops): Simplify.
30793
30794 2019-03-07 Martin Liska <mliska@suse.cz>
30795
30796 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30797
30798 2019-03-07 Richard Biener <rguenther@suse.de>
30799
30800 PR tree-optimization/89595
30801 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30802 stmt iterator as reference, take boolean output parameter to
30803 indicate whether the stmt was removed and thus the iterator
30804 already advanced.
30805 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30806 stmts created by folding.
30807
30808 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30809
30810 PR c++/89585
30811 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30812 at toplevel.
30813
30814 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30815
30816 PR rtl-optimization/88845
30817 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30818 LRA.
30819 * lra.c (remove_scratches_1): New function.
30820 (remove_scratches): Use it.
30821 (lra_emit_move): Likewise.
30822
30823 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30824
30825 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30826 unaligned_access variable.
30827 * config/arc/arc.c (arc_override_options): Set unaligned access
30828 default on for HS CPUs.
30829 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30830
30831 2019-03-06 Martin Liska <mliska@suse.cz>
30832
30833 PR gcov-profile/89577
30834 * doc/gcov.texi: Prefer to use --coverage.
30835 * doc/sourcebuild.texi: Likewise.
30836
30837 2019-03-02 Jason Merrill <jason@redhat.com>
30838
30839 PR c++/86485 - -Wmaybe-unused with empty class ?:
30840 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30841
30842 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30843
30844 PR target/89587
30845 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30846 if_multiarch.
30847
30848 PR middle-end/89590
30849 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30850 exactly one argument.
30851
30852 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30853 Richard Sandiford <richard.sandiford@arm.com>
30854
30855 PR tree-optimization/89570
30856 * match.pd (vec_cond into cond_op simplification): Don't use
30857 get_conditional_internal_fn, use as_internal_fn (cond_op).
30858
30859 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30860
30861 PR target/89222
30862 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30863 to decide when to split off a non-zero offset from a symbol.
30864 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30865 in function symbols.
30866
30867 2019-03-05 Richard Biener <rguenther@suse.de>
30868
30869 PR tree-optimization/89594
30870 * tree-if-conv.c (pass_if_conversion::execute): Handle
30871 case where .LOOP_VECTORIZED_FUNCTION was removed.
30872
30873 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30874
30875 PR bootstrap/89560
30876 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30877 instead alloca it only when needed with the needed size.
30878
30879 PR tree-optimization/89570
30880 * match.pd (vec_cond into cond_op simplification): Guard with
30881 vectorized_internal_fn_supported_p test and #if GIMPLE.
30882
30883 PR tree-optimization/89566
30884 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30885 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30886 Punt if get_user_idx_format succeeds, but idx_format argument is
30887 not provided or doesn't have pointer type, or if idx_args is above
30888 number of provided arguments.
30889
30890 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30891
30892 PR tree-optimization/89437
30893 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30894
30895 2019-03-04 Richard Biener <rguenther@suse.de>
30896
30897 PR middle-end/89572
30898 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30899 safe_dyn_cast.
30900
30901 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30902
30903 PR tree-optimization/89487
30904 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30905 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30906 (distribute_loop): Don't do runtime alias check if there is non-
30907 addressable data reference.
30908 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30909 is a register variable.
30910
30911 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30912
30913 PR target/89506
30914 * config/arm/arm.md (cmpsi2_addneg): Use
30915 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30916 If operands[2] is 0 or INT_MIN, force use of subs.
30917 (*compare_scc splitter): Use gen_int_mode.
30918 (*negscc): Likewise.
30919 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30920
30921 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30922 Monk Chiang <sh.chiang04@gmail.com>
30923
30924 * common/config/riscv/riscv-common.c: Include sstream.
30925 (riscv_subset_list::to_string): New.
30926 (riscv_arch_str): Likewise.
30927 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30928 * config.in: Regen.
30929 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30930 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30931 (riscv_emit_attribute): New.
30932 (riscv_file_start): Emit attribute if needed.
30933 (riscv_option_override): Init riscv_emit_attribute_p.
30934 * config/riscv/riscv.opt (mriscv-attribute): New option.
30935 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30936 * configure: Regen.
30937 * doc/install.texi: Document --with-riscv-attribute.
30938 * doc/invoke.texi: Document -mriscv-attribute.
30939
30940 * common/config/riscv/riscv-common.c:
30941 Include config/riscv/riscv-protos.h.
30942 (INCLUDE_STRING): Defined.
30943 (RISCV_DONT_CARE_VERSION): Defined.
30944 (riscv_subset_t): Declare.
30945 (riscv_subset_t::riscv_subset_t): New.
30946 (riscv_subset_list): Declare.
30947 (riscv_subset_list::riscv_subset_list): New.
30948 (riscv_subset_list::~riscv_subset_list): Likewise.
30949 (riscv_subset_list::parsing_subset_version): Likewise.
30950 (riscv_subset_list::parse_std_ext): Likewise.
30951 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30952 (riscv_subset_list::add): Likewise.
30953 (riscv_subset_list::lookup): Likewise.
30954 (riscv_subset_list::xlen): Likewise.
30955 (riscv_subset_list::parse): Likewise.
30956 (riscv_supported_std_ext): Likewise.
30957 (current_subset_list): Likewise.
30958 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30959 parse.
30960
30961 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30962
30963 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30964 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30965 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30966
30967 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30968
30969 PR rtl-optimization/85899
30970 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30971 fallthru edges leading to the exit block.
30972
30973 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30974
30975 PR target/89517
30976 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30977 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30978
30979 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30980
30981 PR tree-optimization/89535
30982 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30983 for each operand. Calculate the fallback choice for mask operands
30984 and pass it to vect_get_vec_def_for_operand.
30985
30986 2019-03-01 Richard Biener <rguenther@suse.de>
30987
30988 PR middle-end/89541
30989 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30990 get virtual operands.
30991 (get_expr_operands): Handle CONST_DECL like other decls.
30992
30993 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30994
30995 PR middle-end/89503
30996 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30997 on DECL_P and EXPR_P.
30998
30999 2019-03-01 Richard Biener <rguenther@suse.de>
31000
31001 PR middle-end/89497
31002 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31003 argument, defaulted to zero.
31004 * passes.c (execute_function_todo): Pass down SSA update flags
31005 to cleanup_tree_cfg.
31006 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31007 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31008 form if requested.
31009 (cleanup_tree_cfg): Get and pass down SSA update flags.
31010
31011 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31012
31013 PR bootstrap/89539
31014 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31015 early_lto_debug argument.
31016
31017 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31018
31019 PR tree-optimization/89536
31020 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31021 only whether bit #0 of the value is 0 instead of the entire value.
31022
31023 2019-02-28 Marek Polacek <polacek@redhat.com>
31024
31025 PR c++/87068 - missing diagnostic with fallthrough statement.
31026 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31027 at the end of a seq, save its location to walk_stmt_info.
31028 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31029 a switch.
31030
31031 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31032
31033 PR lto/88585
31034 * tree.c (find_atomic_core_type): Move ahead in file.
31035 (check_base_type): Correctly compare alignments of atomic types.
31036
31037 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31038
31039 PR target/89455
31040 * config/i386/i386.c (get_builtin_code_for_version): Identify
31041 Westmere from PCLMUL, instead of AES.
31042
31043 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31044
31045 PR target/89434
31046 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31047 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31048 -UINTVAL (...).
31049
31050 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31051
31052 PR target/88530
31053 * config/aarch64/aarch64-option-extensions.def: Document it.
31054 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31055 if empty hwcaps.
31056
31057 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31058
31059 PR c/89520
31060 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31061 builtins if they don't have a single scalar floating point argument.
31062 Formatting fixes.
31063
31064 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31065
31066 PR rtl-optimization/89490
31067 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31068 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31069 block section is not mergeable.
31070
31071 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31072
31073 PR target/70341
31074 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31075 old define_insn to ...
31076 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31077 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31078 Rename old define_insn to ...
31079 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31080 (thumb2_casesi_internal_pic): New define_expand. Rename old
31081 define_insn to ...
31082 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31083 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31084 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31085
31086 2019-02-27 Richard Biener <rguenther@suse.de>
31087
31088 PR debug/88878
31089 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31090
31091 2019-02-27 Richard Biener <rguenther@suse.de>
31092
31093 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31094 building.
31095
31096 2019-02-27 Richard Biener <rguenther@suse.de>
31097
31098 PR debug/88878
31099 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31100 parameter, prefix section name with .gnu.debuglto_ if true.
31101 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31102 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31103
31104 2019-02-27 Richard Biener <rguenther@suse.de>
31105
31106 PR debug/89514
31107 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31108 rather than on use_debug_types, doing what output_die does.
31109 (value_format): Likewise.
31110
31111 2019-02-27 Martin Jambor <mjambor@suse.cz>
31112 Martin Sebor <msebor@redhat.com>
31113
31114 * doc/invoke.texi (Warning Options): Reword description of
31115 -Wno-absolute-value.
31116
31117 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31118
31119 PR tree-optimization/89280
31120 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31121 builtin_setjmp_setup_bb): New functions.
31122 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31123 When visiting __builtin_setjmp_setup block, queue in special
31124 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31125 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31126 from visited after the loop if they don't have any visited successor
31127 blocks.
31128
31129 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31130
31131 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31132 New function.
31133 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31134
31135 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31136
31137 PR c++/89507
31138 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31139 with types other than sizetype/ssizetype.
31140
31141 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31142
31143 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31144 (enum sparc_processor_type): ...this.
31145 (enum sparc_code_model_type): New enumeration type.
31146 (enum sparc_memory_model_type): Tweak comments.
31147 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31148 (mtune): Likewise.
31149 (mcmodel): Use sparc_code_model enumeration and variable.
31150 (sparc_code_model): New enumeration.
31151 (mdebug): Add Undocumented marker.
31152 * config/sparc/sparc.h (enum cmodel): Delete.
31153 (sparc_cmodel): Likewise.
31154 (TARGET_CM_MEDLOW): Adjust to above renaming.
31155 (TARGET_CM_MEDMID): Likewise.
31156 (TARGET_CM_MEDANY): Likewise.
31157 (TARGET_CM_EMBMEDANY): Likewise.
31158 * config/sparc/sparc.c (sparc_cmodel): Delete.
31159 (sparc_option_override): Remove string/value mapping support for the
31160 code model. Move code and memory model support to after the handling
31161 of target flags. Do private machine setup last.
31162 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31163 (sparc_legitimize_reload_address): Likewise.
31164 (sparc_output_mi_thunk): Likewise.
31165 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31166
31167 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31168
31169 PR tree-optimization/89500
31170 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31171 (handle_builtin_strlen): Remove noncst_bound variable. Always
31172 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31173 cst if the first cst bytes starting at x are known to be non-zero,
31174 even if the string is not zero terminated. Don't try to modify
31175 *si for strnlen. Update strlen_to_stridx only for strlen or if
31176 we can prove strnlen returns the same value as strlen would.
31177
31178 2019-02-26 Martin Liska <mliska@suse.cz>
31179
31180 * alloc-pool.h (struct pool_usage): Remove extra
31181 print_dash_line.
31182 * bitmap.h (struct bitmap_usage): Likewise.
31183 * ggc-common.c (struct ggc_usage): Likewise.
31184 * mem-stats.h (struct mem_usage): Likewise.
31185 (mem_alloc_description::dump): Print dash lines
31186 here and repeat header at the end of a table report.
31187 It's then more readable.
31188 * tree-phinodes.c (phinodes_print_statistics): Make
31189 horizontal alignment.
31190 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31191 * vec.c (struct vec_usage): Remove extra print_dash_line.
31192 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31193
31194 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31195
31196 * doc/extend.texi (__builtin_object_size):
31197 Use @pxref instead of @xref inside parenthesis.
31198 (__builtin_has_attribute): Add missing comma after @xref.
31199 (__builtin_object_size): Ditto.
31200 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31201
31202 2019-02-26 Jeff Law <law@redhat.com>
31203
31204 PR rtl-optimization/87761
31205 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31206 detect obviously dead insns and delete them.
31207
31208 2019-02-26 Richard Biener <rguenther@suse.de>
31209
31210 PR tree-optimization/89505
31211 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31212 to handle restrict pointed-to vars with multiple subvars
31213 correctly.
31214
31215 2019-02-26 Richard Biener <rguenther@suse.de>
31216
31217 PR tree-optimization/89489
31218 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31219
31220 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31221
31222 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31223 and move around comment.
31224 <BIT_AND_EXPR>: Likewise.
31225 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31226
31227 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31228
31229 PR target/89474
31230 * config/i386/i386.c (remove_partial_avx_dependency): Call
31231 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31232 after changing possibly many instructions to use that pseudo. Fix up
31233 insertion of v4sf_const0 setter at the start of bb.
31234
31235 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31236
31237 PR c/80409
31238 * doc/extend.texi (Variadic Pointer Args): New section.
31239
31240 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31241 Martin Sebor <msebor@gmail.com>
31242
31243 * common.opt (Wattribute-alias): Likewise.
31244 * doc/invoke.texi (Option Summary): List general form of
31245 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31246 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31247 Add cross-references.
31248 (-Wattribute-alias): Rewrite and correct default. Mention
31249 considered attributes (same as for -Wmissing-attributes).
31250
31251 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31252
31253 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31254 (_mm_cvtpd_ps): Likewise.
31255 (_mm_cvttpd_epi32): Likewise.
31256
31257 PR target/89338
31258 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31259 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31260
31261 PR target/89339
31262 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31263
31264 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31265
31266 PR target/88530
31267 * common/config/aarch64/aarch64-common.c
31268 (struct aarch64_option_extension): Add is_synthetic.
31269 (all_extensions): Use it.
31270 (TARGET_OPTION_INIT_STRUCT): Define hook.
31271 (struct gcc_targetm_common): Moved to end.
31272 (all_extensions_by_on): New.
31273 (opt_ext_cmp, typedef opt_ext): New.
31274 (aarch64_option_init_struct): New.
31275 (aarch64_contains_opt): New.
31276 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31277 * config/aarch64/aarch64-option-extensions.def
31278 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31279 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31280 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31281 Set is_synthetic to false.
31282 (crypto): Set is_synthetic to true.
31283 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31284 SYNTHETIC.
31285
31286 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31287
31288 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31289 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31290 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31291 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31292 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31293 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31294 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31295 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31296 Rename ...
31297 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31298 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31299 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31300 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31301 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31302 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31303 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31304 vfmlsl_laneq_high_f16): ... To this.
31305 * config/arm/neon.md: Update comments.
31306
31307 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31308
31309 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31310 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31311 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31312 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31313 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31314 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31315 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31316 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31317 Rename ...
31318 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31319 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31320 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31321 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31322 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31323 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31324 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31325 vfmlslq_laneq_high_f16): ... To this.
31326
31327 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31328
31329 PR rtl-optimization/86096
31330 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31331 comparing mw_order values.
31332
31333 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31334
31335 PR target/89434
31336 * config/arm/arm.md (*subsi3_carryin_const): Use
31337 arm_neg_immediate_operand predicate instead of
31338 arm_not_immediate_operand, "L" constraint instead of "K" and
31339 print it using %n2 instead of %B2.
31340 (*subsi3_carryin_const0): New define_insn.
31341 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31342 instead of arm_not_operand and "I" constraint instead of "K" and
31343 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31344 another match_operand and in the condition check that it is negation
31345 of operands[2].
31346 (*subsi3_carryin_compare_const0): New define_ins.
31347 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31348 *subsi3_carryin_const.
31349 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31350 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31351
31352 PR target/89438
31353 * config/arm.vfp.md (*negdf2_vfp): Use
31354 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31355 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31356
31357 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31358
31359 PR rtl-optimization/89445
31360 * simplify-rtx.c (simplify_ternary_operation): Don't use
31361 simplify_merge_mask on operands that may trap.
31362 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31363 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31364 second operand is CONST_VECTOR, check if any element could be zero.
31365 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31366 their operands can trap.
31367
31368 2019-02-23 Martin Sebor <msebor@redhat.com>
31369
31370 * gimple-ssa-sprintf.c (target_strtol): Rename...
31371 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31372 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31373 check for range error.
31374
31375 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31376
31377 PR driver/69471
31378 * opts-common.c (prune_options): Also prune joined switches
31379 with Negative and RejectNegative.
31380 * config/i386/i386.opt (march=): Add Negative(march=).
31381 (mtune=): Add Negative(mtune=).
31382 * doc/options.texi: Document Negative used together with Joined
31383 and RejectNegative.
31384
31385 2019-02-22 Martin Sebor <msebor@redhat.com>
31386
31387 * doc/extend.texi (Other Builtins): Add
31388 __builtin_is_constant_evaluated.
31389
31390 2019-02-22 Richard Biener <rguenther@suse.de>
31391
31392 PR tree-optimization/87609
31393 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31394
31395 2019-02-22 Jeff Law <law@redhat.com>
31396
31397 PR rtl-optimization/87761
31398 * config/mips/mips.md: Add new combiner pattern to recognize
31399 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31400
31401 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31402
31403 PR target/89324
31404 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31405 destination register in peepholes generating patterns for ADDS/SUBS.
31406 (add<mode>3_compare0,
31407 *addsi3_compare0_uxtw, add<mode>3_compareC,
31408 add<mode>3_compareV_imm, add<mode>3_compareV,
31409 *adds_<optab><ALLX:mode>_<GPI:mode>,
31410 *subs_<optab><ALLX:mode>_<GPI:mode>,
31411 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31412 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31413 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31414 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31415 sub<mode>3_compare1): Allow stack pointer for source register.
31416 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31417
31418 2019-02-22 Martin Sebor <msebor@redhat.com>
31419
31420 PR tree-optimization/88993
31421 PR tree-optimization/88853
31422 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31423 New helper.
31424 (sprintf_dom_walker::call_info::is_string_func): New helper.
31425 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31426 for formatted string functions.
31427 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31428
31429 2019-02-22 Martin Sebor <msebor@redhat.com>
31430
31431 PR c/89425
31432 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31433 unreachable subexpressions.
31434
31435 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31436 Hongtao Liu <hongtao.liu@intel.com>
31437 Sunil K Pandey <sunil.k.pandey@intel.com>
31438
31439 PR target/87007
31440 * config/i386/i386-passes.def: Add
31441 pass_remove_partial_avx_dependency.
31442 * config/i386/i386-protos.h
31443 (make_pass_remove_partial_avx_dependency): New.
31444 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31445 New function.
31446 (pass_data_remove_partial_avx_dependency): New.
31447 (pass_remove_partial_avx_dependency): Likewise.
31448 (make_pass_remove_partial_avx_dependency): Likewise.
31449 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31450 (*extendsfdf2): Add avx_partial_xmm_update.
31451 (truncdfsf2): Likewise.
31452 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31453 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31454
31455 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31456
31457 PR middle-end/85598
31458 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31459 analysis for pass.
31460
31461 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31462
31463 PR target/89444
31464 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31465 (PTA_SKYLAKE): Add PTA_AES.
31466 (PTA_GOLDMONT): Likewise.
31467
31468 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31469
31470 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31471 instruction if enabled.
31472 (aarch64_override_options): Remove reference to return address key.
31473
31474 2019-02-22 Richard Biener <rguenther@suse.de>
31475
31476 PR tree-optimization/89440
31477 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31478 not necessary assert.
31479
31480 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31481
31482 PR fortran/72741
31483 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31484 (oacc_replace_fn_attrib_attr): ... this new function.
31485 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31486 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31487
31488 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31489
31490 * config/arm/arm-cpus.in (ares): Rename to...
31491 (neoverse-n1): ... This. Add ares as alias.
31492 * config/arm/arm-tables.opt: Regenerate.
31493 * config/arm/arm-tune.md: Likewise.
31494 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31495
31496 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31497
31498 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31499 * config/aarch64/aarch64-tune.md: Regenerate.
31500 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31501
31502 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31503
31504 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31505 (neoversen1_tunings): ... This.
31506 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31507 (neoverse-n1): New CPU.
31508 * config/aarch64/aarch64-tune.md: Regenerate.
31509 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31510
31511 2019-02-22 Richard Biener <rguenther@suse.de>
31512
31513 PR middle-end/87609
31514 * cfghooks.h (dependence_hash): New typedef.
31515 (struct copy_bb_data): New type.
31516 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31517 (duplicate_block): Likewise.
31518 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31519 (copy_bbs): Create and pass down copy_bb_data.
31520 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31521 (rtl_duplicate_bb): Likewise.
31522 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31523 remap dependence info.
31524
31525 2019-02-22 Richard Biener <rguenther@suse.de>
31526
31527 PR tree-optimization/87609
31528 * tree-core.h (tree_base): Document special clique values.
31529 * tree-inline.c (remap_dependence_clique): Do not use the
31530 special clique value of one.
31531 (maybe_set_dependence_info): Use clique one.
31532 (clear_dependence_clique): New callback.
31533 (compute_dependence_clique): Clear clique one from all refs
31534 before assigning it (again).
31535
31536 2019-02-21 Martin Sebor <msebor@redhat.com>
31537
31538 * doc/extend.texi (__clear_cache): Correct signature.
31539
31540 2019-02-21 Ian Lance Taylor <iant@golang.org>
31541
31542 PR go/89170
31543 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31544 than output_constant_def.
31545 (add_constant_to_table): New static function.
31546 (output_constant_def): Call add_constant_to_table.
31547 (tree_output_constant_def): Likewise.
31548
31549 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31550
31551 PR c++/89285
31552 * builtins.c (fold_builtin_arith_overflow): If first two args are
31553 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31554 to ifn.
31555
31556 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31557
31558 PR target/87412
31559 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31560 error for -mindirect-branch/-mfunction-return with incompatible
31561 -fcf-protection.
31562
31563 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31564
31565 PR bootstrap/88714
31566 * constraints.md (q): Remove.
31567 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31568 instead of q.
31569
31570 2019-02-21 Martin Jambor <mjambor@suse.cz>
31571
31572 PR hsa/89302
31573 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31574 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31575 (omp_adjust_for_condition): ...here. Added necessary parameters.
31576 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31577 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31578 proper values to new parameters of omp_adjust_for_condition.
31579
31580 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31581
31582 PR middle-end/89412
31583 * expr.c (expand_assignment): If result is a MEM, use change_address
31584 instead of simplify_gen_subreg.
31585
31586 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31587 David Malcolm <dmalcolm@redhat.com>
31588
31589 PR middle-end/89091
31590 * fold-const.c (decode_field_reference): Return NULL_TREE if
31591 lang_hooks.types.type_for_size returns NULL. Check it before
31592 overwriting *exp_. Use return NULL_TREE instead of return 0.
31593
31594 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31595
31596 PR middle-end/88074
31597 PR middle-end/89415
31598 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31599 buggy mpc_norm.
31600
31601 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31602
31603 PR target/89397
31604 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31605 TARGET_SSE in addition to TARGET_SSE_MATH.
31606
31607 (ix86_excess_precision): Ditto.
31608 (ix86_float_exceptions_rounding_supported_p): Ditto.
31609 (use_rsqrt_p): Ditto.
31610 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31611
31612 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31613
31614 PR c/89410
31615 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31616 linenum_arith_t when determining if two adjacent line spans are
31617 close enough to merge.
31618 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31619 lines within each line_span.
31620
31621 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31622
31623 PR target/86487
31624 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31625 paradoxical SUBREGS.
31626
31627 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31628
31629 PR target/88100
31630 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31631 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31632 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31633 range checking it.
31634
31635 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31636
31637 * config/gcn/gcn.c (print_operand): Fix typo.
31638
31639 2019-02-19 Richard Biener <rguenther@suse.de>
31640
31641 PR middle-end/88074
31642 * toplev.c (do_compile): Initialize mpfr's exponent range
31643 based on available float modes.
31644
31645 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31646
31647 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31648 as long as the epilogue isn't completed.
31649
31650 2019-02-18 Martin Sebor <msebor@redhat.com>
31651
31652 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31653 __has_cpp_attribute, and __has_include.
31654
31655 2019-02-18 Martin Sebor <msebor@redhat.com>
31656
31657 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31658
31659 2019-02-18 Martin Sebor <msebor@redhat.com>
31660
31661 PR middle-end/89294
31662 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31663 expression.
31664 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31665
31666 2019-02-18 Richard Biener <rguenther@suse.de>
31667
31668 PR tree-optimization/89296
31669 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31670 of no-warning flag to cases that might emit the bogus warning.
31671
31672 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31673
31674 PR bootstrap/88714
31675 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31676 "q" constraint.
31677 * config/arm/vfp.md (*movdi_vfp): Likewise.
31678 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31679 "q" constraint for operands[0].
31680
31681 PR target/89369
31682 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31683 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31684 pattern in a temporary buffer.
31685 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31686 than 64-operands[2].
31687
31688 PR target/89361
31689 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31690 s390_indirect_branch_settings): Define unconditionally.
31691 (s390_set_current_function): Likewise, but guard the whole body except
31692 the s390_indirect_branch_settings call with
31693 #if S390_USE_TARGET_ATTRIBUTE.
31694 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31695
31696 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31697 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31698 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31699 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31700 HOST_WIDE_INT_1U instead of 1ULL.
31701 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31702 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31703 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31704 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31705 instead of 1UL.
31706 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31707 instead of 1ul.
31708
31709 2019-02-18 Martin Jambor <mjambor@suse.cz>
31710
31711 PR tree-optimization/89209
31712 * tree-sra.c (create_access_replacement): New optional parameter
31713 reg_tree. Use it as a type if non-NULL and access type is not of
31714 a register type.
31715 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31716 to create_access_replacement.
31717 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31718 Check lacc is non-NULL before attempting to re-create it on the RHS.
31719
31720 2019-02-18 Martin Liska <mliska@suse.cz>
31721
31722 PR ipa/89306
31723 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31724 by default.
31725 (symbol_table::free_edge): Recycle m_summary_id.
31726 * cgraph.h (get_summary_id): New.
31727 (symbol_table::release_symbol): Set m_summary_id to -1
31728 by default.
31729 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31730 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31731 function_summary to fast_function_summary.
31732 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31733 * ipa-pure-const.c (class funct_state_summary_t):
31734 Switch from function_summary to fast_function_summary.
31735 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31736 (class ipa_ref_opt_summary_t): Switch from function_summary
31737 to fast_function_summary.
31738 * symbol-summary.h (class function_summary_base): New class
31739 that is created from base of former function_summary.
31740 (function_summary_base::unregister_hooks): New.
31741 (class function_summary): Inherit from function_summary_base.
31742 (class call_summary_base): New class
31743 that is created from base of former call_summary.
31744 (class call_summary): Inherit from call_summary_base.
31745 (struct is_same): New.
31746 (class fast_function_summary): New summary class.
31747 (class fast_call_summary): New summary class.
31748 * vec.h (vec_safe_grow_cleared): New function.
31749
31750 2019-02-18 Martin Liska <mliska@suse.cz>
31751
31752 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31753 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31754 * doc/tm.texi: Document new target hook.
31755 * doc/tm.texi.in: Likewise.
31756 * target.def: Add new target macro.
31757 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31758 suffixes.
31759
31760 2019-02-17 Alan Modra <amodra@gmail.com>
31761
31762 PR target/89271
31763 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31764 output reg on add insn.
31765 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31766
31767 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31768
31769 PR target/89372
31770 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31771 (PMULHRSW): Likewise.
31772 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31773 TARGET_AVX2.
31774 (ssse3_pmulhrswv4hi3): New expander.
31775
31776 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31777
31778 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31779 MMX. Add isa attribute.
31780
31781 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31782
31783 PR rtl-optimization/66152
31784 * builtins.h (c_readstr): Declare.
31785 * builtins.c (c_readstr): Remove forward declaration. Add
31786 null_terminated_p argument, if false, read all bytes from the
31787 string instead of stopping after '\0'.
31788 * expr.c (string_cst_read_str): New function.
31789 (store_expr): Use string_cst_read_str instead of
31790 builtin_strncpy_read_str. Try to store by pieces the whole
31791 exp_len first, and only if that fails, split it up into
31792 store by pieces followed by clear_storage. Formatting fix.
31793
31794 * config/i386/i386.md (*movqi_internal): Remove static from
31795 buf variable. Use output_asm_insn (buf, operands); return "";
31796 instead of return buf;.
31797 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31798 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31799 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31800
31801 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31802
31803 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31804 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31805 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31806 (CC1_SPEC): Likewise.
31807 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31808
31809 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31810
31811 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31812 the base address on 64-bit strict-alignment platforms.
31813
31814 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31815
31816 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31817
31818 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31819
31820 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31821
31822 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31823
31824 PR rtl-optimization/88308
31825 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31826 on copied instruction.
31827
31828 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31829
31830 * final.c (insn_current_reference_address): Replace test on JUMP_P
31831 with test on jump_to_label_p.
31832 * config/visium/visium-passes.def: New file.
31833 * config/visium/t-visium (PASSES_EXTRA): Define.
31834 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31835 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31836 (TRAMPOLINE_ALIGNMENT): Define.
31837 * config/visium/visium.c (visium_option_override): Do not register
31838 the machine-specific reorg pass here.
31839 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31840 for the GR6.
31841 (output_branch): Adjust threshold for long branch instruction.
31842 * config/visium/visium.md (cpu): Move around.
31843 (length): Adjust for the GR6.
31844
31845 2019-02-15 Richard Biener <rguenther@suse.de>
31846 Jakub Jelinek <jakub@redhat.com>
31847
31848 PR tree-optimization/89278
31849 * tree-loop-distribution.c: Include tree-eh.h.
31850 (generate_memset_builtin, generate_memcpy_builtin): Call
31851 rewrite_to_non_trapping_overflow on builtin->size before passing it
31852 to force_gimple_operand_gsi.
31853
31854 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31855
31856 PR other/89342
31857 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31858 optimize_debug.
31859 * opth-gen.awk: Likewise.
31860
31861 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31862
31863 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31864 Enable MMX, SSE and SSE2 by default.
31865 * config/i386/i386.c (ix86_option_override_internal): Do not
31866 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31867
31868 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31869
31870 PR rtl-optimization/89354
31871 * combine.c (make_extraction): Punt if extraction_mode is narrower
31872 than len bits.
31873
31874 2019-02-14 Maya Rashish <coypu@sdf.org>
31875
31876 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31877 * config/netbsd-d.c: New file.
31878 * config/t-netbsd: Add netbsd-d.o
31879
31880 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31881
31882 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31883 affects_type_identity to true for aarch64_vector_pcs.
31884 (aarch64_comp_type_attributes): New function.
31885 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31886
31887 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31888
31889 PR target/88850
31890 * config/arm/iterators.md (ANY64): Add V4HF.
31891
31892 2019-02-14 Martin Liska <mliska@suse.cz>
31893
31894 PR rtl-optimization/89242
31895 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31896 process a transformation.
31897
31898 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31899
31900 PR tree-optimization/89314
31901 * fold-const.c (fold_binary_loc): Cast strlen argument to
31902 const char * before dereferencing it. Formatting fixes.
31903
31904 PR middle-end/89284
31905 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31906
31907 2019-02-13 Ian Lance Taylor <iant@golang.org>
31908
31909 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31910 and set current index for other optimizations.
31911
31912 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31913
31914 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31915 nonimmediate_operand as operand 2 predicate.
31916 (vec_set<VF2_512_256:mode>_0): Ditto.
31917 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31918 (*vec_concatv2si): Remove alternative 2.
31919 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31920 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31921 (vec_concatv2di): Split alternatives 4,5,6 to ...
31922 (*vec_concatv2di_0) ... new pattern.
31923
31924 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31925
31926 PR target/89190
31927 * config/arm/arm.c (ldm_stm_operation_p) Set
31928 addr_reg_in_reglist correctly for first register.
31929 (load_multiple_sequence): Remove dead base check.
31930 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31931
31932 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31933
31934 PR target/88847
31935 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31936 Expose as @aarch64_pred_mov.
31937 * config/aarch64/aarch64.c (aarch64_classify_address):
31938 Use expand_insn which legitimizes operands.
31939
31940 2019-02-13 Martin Liska <mliska@suse.cz>
31941
31942 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31943 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31944 and pointer_offset fields.
31945 (initialize_argument_information): Remove usage of dead
31946 fields.
31947 * cgraph.h (struct cgraph_thunk_info): Remove
31948 add_pointer_bounds_args.
31949 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31950 fields.
31951 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31952 fields.
31953 * config/i386/i386.c (ix86_function_arg_advance): Remove
31954 unrelated comment.
31955 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31956 (def_builtin): Remove usage of dead fields.
31957 (ix86_add_new_builtins): Likewise.
31958 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31959 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31960 (sem_function::init): Likewise.
31961 (sem_variable::merge): Likewise.
31962 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31963 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31964 * lto-cgraph.c (lto_output_node): Likewise.
31965 (lto_output_varpool_node): Likewise.
31966 (input_node): Likewise.
31967 (input_varpool_node): Likewise.
31968 * lto-streamer-out.c (lto_output): Likewise.
31969 * tree-inline.c (expand_call_inline): Remove usage of
31970 assign_stmts.
31971 * tree-inline.h (struct copy_body_data): Likewise.
31972 * varpool.c (varpool_node::dump): Likewise.
31973
31974 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31975
31976 PR middle-end/89303
31977 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31978 into pt->vars_contains_escaped_heap instead of setting
31979 pt->vars_contains_escaped_heap to it.
31980
31981 PR middle-end/89281
31982 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31983 INTVAL (size), compare it to GET_MODE_MASK instead of
31984 1 << GET_MODE_BITSIZE.
31985
31986 PR target/89290
31987 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31988 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31989 -mcmodel=large.
31990
31991 2019-02-13 Martin Liska <mliska@suse.cz>
31992
31993 PR lto/88858
31994 * cfgrtl.c (remove_barriers_from_footer): New function.
31995 (try_redirect_by_replacing_jump): Use it.
31996 (cfg_layout_redirect_edge_and_branch): Likewise.
31997
31998 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31999
32000 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32001 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32002 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32003 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32004 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32005 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32006 New BU_CRYPTO_2.
32007 * config/rs6000/rs6000.c (builtin_function_type)
32008 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32009 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32010 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32011 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32012 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32013
32014 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32015
32016 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32017 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32018
32019 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32020
32021 PR target/89229
32022 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32023 268678 and revision 268657.
32024 (*movti_internal): Likewise.
32025
32026 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32027
32028 PR target/89233
32029 * config/s390/s390.c (s390_decompose_address): Update comment.
32030 (s390_check_qrst_address): Reject invalid address forms after
32031 LRA.
32032
32033 2019-02-12 Martin Liska <mliska@suse.cz>
32034
32035 PR lto/88876
32036 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32037 we need default values of funct_state for a function that
32038 is not optimized.
32039
32040 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32041
32042 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32043 the object to pick the size of stores on strict-alignment platforms.
32044
32045 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32046 (*movdi_insn_sp32): Likewise.
32047 (*movdi_insn_sp64): Likewise.
32048
32049 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32050
32051 PR lto/88677
32052 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32053 types that needs constructiong.
32054 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32055
32056 2019-02-12 Richard Biener <rguenther@suse.de>
32057
32058 PR tree-optimization/89253
32059 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32060 duplicate the loop.
32061
32062 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32063
32064 PR lto/88147
32065 * input.c (selftest::test_line_offset_overflow): New selftest.
32066 (selftest::input_c_tests): Call it.
32067
32068 2019-02-11 Martin Sebor <msebor@redhat.com>
32069
32070 PR tree-optimization/88771
32071 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32072 when -Wstringop-overflow is set.
32073 (builtin_memref::builtin_memref): Adjust excessive upper bound
32074 only when lower bound is not excessive.
32075 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32076 -Wstringop-ovefflow.
32077 (maybe_diag_offset_bounds): Rename...
32078 (maybe_diag_access_bounds): ...to this.
32079 (check_bounds_or_overlap): Adjust for name change above.
32080
32081 2019-02-11 Martin Sebor <msebor@redhat.com>
32082
32083 PR c++/87996
32084 * builtins.c (max_object_size): Move from here...
32085 * builtins.h (max_object_size): ...and here...
32086 * tree.c (max_object_size): ...to here...
32087 * tree.h (max_object_size): ...and here.
32088
32089 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32090
32091 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32092 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32093 for correct semantics.
32094
32095 2019-02-11 Alan Modra <amodra@gmail.com>
32096
32097 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32098 -mlongcall and -mpltseq.
32099 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32100 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32101 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32102 * config/rs6000/sysv4.opt (mpltseq): New option.
32103 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32104 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32105 support is lacking. Don't allow -mpltseq with -mbss-plt.
32106 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32107 -mpltseq given for ELFv1.
32108 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32109 Only use UNSPEC_PLTSEQ for inline PLT calls.
32110 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32111 use UNSPEC_PLTSEQ for inline PLT calls.
32112 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32113 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32114 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32115 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32116 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32117 (pltseq_mtctr_<mode>): Likewise.
32118
32119 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32120
32121 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32122 Solaris ld.
32123 * configure: Regenerate.
32124
32125 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32126
32127 PR bootstrap/88714
32128 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32129 instead of r.
32130
32131 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32132
32133 * function.c (assign_parm_setup_block): Use the stored
32134 size, not the passed size, when allocating stack-space,
32135 also for a parameter with alignment larger than
32136 MAX_SUPPORTED_STACK_ALIGNMENT.
32137
32138 2019-02-11 Martin Liska <mliska@suse.cz>
32139
32140 PR ipa/89009
32141 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32142 * ipa-inline.c (inline_small_functions): Likewise.
32143 * ipa-pure-const.c (propagate_pure_const): Likewise.
32144 (propagate_nothrow): Likewise.
32145 * ipa-reference.c (propagate): Likewise.
32146 * ipa-utils.c (struct searchc_env): Remove unused field.
32147 (searchc): Always search across AVAIL_INTERPOSABLE.
32148 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32149 the only called IPA pure const can properly not propagate
32150 across interposable boundary.
32151 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32152
32153 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32154
32155 * config/nds32/nds32.md (call_internal, call_value_internal,
32156 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32157
32158 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32159
32160 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32161 typo.
32162
32163 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32164
32165 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32166 in comments
32167
32168 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32169
32170 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32171
32172 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32173
32174 PR tree-optimization/89268
32175 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32176 if preds is non-NULL.
32177
32178 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32179
32180 PR lto/89272
32181 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32182 polymorphic types.
32183
32184 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32185
32186 * config/nds32/nds32.md (trap): New pattern.
32187
32188 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32189
32190 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32191 dwarf span.
32192
32193 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32194
32195 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32196 to split POST_INC.
32197
32198 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32199
32200 * ipa-visibility.c (localize_node): Also do not localize
32201 LDPR_PREVAILING_DEF_IRONLY_EXP.
32202
32203 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32204
32205 PR lto/87957
32206 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32207 instead of type_with_linkage.
32208
32209 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32210
32211 PR ipa/88755
32212 * params.def (uninlined-function-insns, uninlined-function-time,
32213 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32214 bound so we don't get overflows.
32215
32216 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32217
32218 * config/rs6000/rs6000-string.c (expand_compare_loop,
32219 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32220 memcmp/strncmp.
32221
32222 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32223
32224 PR middle-end/89246
32225 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32226 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32227 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32228
32229 2019-02-09 Alan Modra <amodra@gmail.com>
32230
32231 PR target/88343
32232 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32233 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32234 setup.
32235
32236 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32237
32238 PR middle-end/88560
32239 * lra-constraints.c (process_alt_operands): Don't increase reject
32240 for memory when offset memory is required.
32241
32242 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32243
32244 * config/s390/vector.md: Implement vector copysign.
32245
32246 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32247
32248 * expr.c (expand_constructor): Correct indentations.
32249
32250 2019-02-08 Richard Biener <rguenther@suse.de>
32251
32252 PR tree-optimization/89247
32253 * tree-if-conv.c: Include tree-cfgcleanup.h.
32254 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32255 (tree_if_conversion): Pass through predicate vector.
32256 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32257 inline, see if any if-converted loops we refrece in
32258 LOOP_VECTORIZED calls vanished and fixup.
32259 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32260
32261 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32262
32263 * config/s390/constraints.md (jdd): New constraint.
32264
32265 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32266
32267 PR target/89229
32268 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32269 upper 16 vector registers without TARGET_AVX512VL.
32270 (*movti_internal): Likewise.
32271
32272 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32273
32274 PR rtl-optimization/89234
32275 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32276 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32277 (copy_reg_eh_region_note_backward): Likewise.
32278
32279 2019-02-08 Richard Biener <rguenther@suse.de>
32280
32281 PR middle-end/89223
32282 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32283 doesn't fit in HWI.
32284 (analyze_subscript_affine_affine): Handle failure from
32285 initialize_matrix_A.
32286
32287 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32288
32289 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32290 cfun everywhere.
32291
32292 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32293
32294 PR tree-optimization/86637
32295 PR tree-optimization/89235
32296 * tree-vect-loop.c (optimize_mask_stores): Add an
32297 auto_purge_vect_location sentinel to ensure that vect_location is
32298 purged on exit.
32299 * tree-vectorizer.c
32300 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32301 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32302 to ensure that vect_location is purged on exit.
32303 (pass_slp_vectorize::execute): Likewise, replacing the manual
32304 reset.
32305 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32306
32307 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32308
32309 * config/aarch64/iterators.md (max_opp): New code_attr.
32310 (USMAX): New code iterator.
32311 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32312 (aarch64_smax): Likewise.
32313 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32314 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32315 MINUS (MAX MIN).
32316
32317 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32318
32319 PR target/89229
32320 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32321 for TARGET_AVX512VL.
32322 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32323
32324 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32325
32326 * config/s390/s390-builtin-types.def: Add new types.
32327 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32328 (s390_vec_xlw4): Make the memory operand into a const pointer.
32329 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32330 float.
32331 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32332 a new vector type with the alignment of the scalar memory operand.
32333
32334 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32335 Jakub Jelinek <jakub@redhat.com>
32336
32337 PR bootstrap/88714
32338 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32339 arm_count_ldrdstrd_insns): New declarations.
32340 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32341 MINUS.
32342 (valid_operands_ldrd_strd): New function.
32343 (arm_count_ldrdstrd_insns): New function.
32344 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32345 sets instead of single DImode set and define new insns to match this.
32346
32347 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32348
32349 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32350 Make it a C initializer.
32351
32352 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32353
32354 PR/target 88850
32355 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32356
32357 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32358
32359 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32360 Use neon_dot<q> for type.
32361 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32362
32363 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32364
32365 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32366 Use neon_dot<q> for type.
32367 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32368 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32369
32370 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32371
32372 PR rtl-optimization/89225
32373 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32374 sizes check.
32375
32376 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32377
32378 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32379 after restoring registers saved to allocate the frame on Windows.
32380
32381 2019-02-06 Richard Biener <rguenther@suse.de>
32382
32383 PR tree-optimization/89182
32384 * graphite.h (cached_scalar_evolution_in_region): Declare.
32385 * graphite.c (struct seir_cache_key): New.
32386 (struct sese_scev_hash): Likewise.
32387 (seir_cache): New global.
32388 (cached_scalar_evolution_in_region): New function.
32389 (graphite_transform_loops): Allocate and release seir_cache.
32390 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32391 cached_scalar_evolution_in_region.
32392 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32393 Simplify.
32394 (scop_detection::graphite_can_represent_expr: Use
32395 cached_scalar_evolution_in_region.
32396 (scop_detection::stmt_simple_for_scop_p): Likewise.
32397 (find_params_in_bb): Likewise.
32398 (gather_bbs::before_dom_children): Likewise.
32399 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32400 (add_loop_constraints): Likewise.
32401
32402 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32403
32404 PR middle-end/89210
32405 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32406 operand to new_unary_operation only if both element types are integral
32407 and it isn't a widening conversion. Return NULL_TREE if
32408 new_unary_operation failed.
32409
32410 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32411
32412 PR target/88856
32413 * config/s390/s390.md: Remove load and test FP splitter.
32414
32415 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32416
32417 PR target/89112
32418 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32419 expand_compare_loop, expand_block_compare_gpr,
32420 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32421 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32422 #include "profile-count.h" and "predict.h" for types and functions
32423 needed to work with REG_BR_PROB notes.
32424
32425 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32426
32427 PR target/89112
32428 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32429 for the long branch case.
32430
32431 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32432
32433 PR target/89188
32434 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32435 can throw, non-call exceptions are enabled and we can't delete
32436 dead exceptions or alter cfg. Set must_clean if
32437 delete_insn_and_edges returns true, don't set it blindly for calls.
32438 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32439
32440 PR rtl-optimization/89195
32441 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32442 of the original MEM.
32443
32444 2019-02-05 Martin Liska <mliska@suse.cz>
32445
32446 PR gcov-profile/89000
32447 * gcov.c (function_summary): Remove argument.
32448 (file_summary): New function.
32449 (print_usage): Replace tabs with spaces.
32450 (generate_results): Use new function file_summary.
32451
32452 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32453
32454 PR target/89186
32455 * optabs.c (prepare_cmp_insn): Pass x and y to
32456 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32457
32458 2019-02-05 Richard Biener <rguenther@suse.de>
32459
32460 PR middle-end/89150
32461 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32462 (struct bitmap_element): Drop chain_prev so we properly recurse on
32463 the prev member, supporting tree views.
32464 (struct bitmap_head): GTY skip the obstack member.
32465
32466 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32467
32468 PR c/88698
32469 * doc/extend.texi (Vector Extensions): Add an example of using vector
32470 types together with x86 intrinsics.
32471
32472 2019-02-04 Alan Modra <amodra@gmail.com>
32473
32474 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32475 str[] size to 160, and comment.
32476
32477 2019-02-04 Alan Modra <amodra@gmail.com>
32478
32479 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32480 (rs6000_pltseq_template): Guard output of TLS markers with
32481 TARGET_TLS_MARKERS.
32482 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32483 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32484 to use inline PLT sequences.
32485 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32486 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32487 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32488
32489 2019-02-04 Martin Liska <mliska@suse.cz>
32490
32491 PR ipa/88985
32492 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32493 out when ipa_fn_summaries does not contain entry for callee.
32494
32495 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32496
32497 * config/sparc/sparc.h: Remove superfluous blank lines.
32498 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32499 (got_register_rtx): ...this.
32500 (sparc_got): Adjust to above renaming.
32501 (sparc_tls_got): Likewise.
32502 (sparc_delegitimize_address): Likewise.
32503 (sparc_output_mi_thunk): Likewise.
32504 (sparc_init_pic_reg): Likewise.
32505 (save_local_or_in_reg_p): Fix test on the GOT register.
32506 (USE_HIDDEN_LINKONCE): Move around.
32507 (get_pc_thunk_name): Likewise.
32508 (gen_load_pcrel_sym): Likewise.
32509 (load_got_register): Likewise.
32510
32511 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32512
32513 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32514 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32515
32516 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32517
32518 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32519 into consideration.
32520
32521 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32522
32523 * config.gcc (with_nds32_lib, glibc):
32524 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32525 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32526 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32527
32528 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32529
32530 PR target/89071
32531 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32532 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32533 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32534 (*rcpsf2_sse): Ditto.
32535 (*rsqrtsf2_sse): Ditto.
32536 (sse4_1_round<mode<2): Ditto.
32537
32538 2019-02-03 Richard Biener <rguenther@suse.de>
32539
32540 PR debug/87295
32541 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32542 orig.
32543
32544 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32545
32546 PR middle-end/87887
32547 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32548 Punt with warning on aggregate return or argument types. Ignore
32549 type/mode checking for uniform arguments.
32550
32551 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32552
32553 * combine.c (try_combine): Do not print "Can't combine" messages unless
32554 printing failed combination attempts.
32555
32556 2019-02-01 Martin Jambor <mjambor@suse.cz>
32557
32558 PR hsa/87863
32559 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32560 segment and global segment variables before making them static.
32561
32562 2019-02-01 Martin Jambor <mjambor@suse.cz>
32563
32564 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32565 missed optimization dump with dump_enabled_p.
32566
32567 2019-02-01 Richard Biener <rguenther@suse.de>
32568
32569 PR middle-end/88597
32570 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32571 the instantiate cache.
32572 (instantiate_scev_binary): Elide second operand procesing
32573 if equal to the first.
32574 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32575 (chrec_contains_undetermined): Likewise.
32576 (tree_contains_chrecs): Likewise.
32577
32578 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32579
32580 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32581
32582 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32583
32584 PR tree-optimization/89143
32585 * wide-int-range.h (wide_int_range_absu): Declare.
32586 * wide-int-range.cc (wide_int_range_absu): New function.
32587 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32588
32589 PR tree-optimization/88107
32590 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32591 instead of assertion that eh_region_outermost is non-NULL, if it
32592 is NULL, set *ALL to true and return NULL.
32593 (move_sese_region_to_fn): Adjust caller, if all is set, call
32594 duplicate_eh_regions with NULL region.
32595
32596 2019-02-01 Richard Biener <rguenth@suse.de>
32597
32598 PR rtl-optimization/88593
32599 * mode-switching.c (optimize_mode_switching): Free dominators before
32600 calling cleanup_cfg.
32601
32602 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32603
32604 PR tree-optimization/88932
32605 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32606
32607 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32608
32609 PR middle-end/89137
32610 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32611 bogus clang warning.
32612
32613 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32614
32615 PR target/89071
32616 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32617 alternative to avoid partial SSE register stall for TARGET_AVX.
32618 (truncdfsf2): Ditto.
32619 (sse4_1_round<mode>2): Ditto.
32620
32621 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32622
32623 PR tree-optimization/89008
32624 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32625 process anything of the form X * 0.
32626
32627 2019-01-31 Richard Biener <rguenther@suse.de>
32628
32629 PR tree-optimization/89135
32630 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32631 with abnormal preds.
32632
32633 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32634
32635 PR sanitizer/89124
32636 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32637 always_inline callees into no_sanitize_address callers.
32638
32639 2019-01-31 Richard Biener <rguenther@suse.de>
32640
32641 PR rtl-optimization/89115
32642 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32643
32644 2019-01-30 Martin Sebor <msebor@redhat.com>
32645
32646 PR other/89106
32647 * doc/extend.texi (cast to a union): Correct and expand.
32648
32649 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32650
32651 PR rtl-optimization/87246
32652 * lra-constraints.c (simplify_operand_subreg): Reload memory
32653 in subreg if the address became invalid.
32654
32655 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32656
32657 PR target/87064
32658 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32659 Disable for little-endian.
32660
32661 2019-01-30 Richard Biener <rguenther@suse.de>
32662
32663 PR rtl-optimization/89115
32664 * opts.c (default_options_optimization): Reduce
32665 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32666 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32667 to the default.
32668
32669 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32670
32671 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32672 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32673 type of vector element when vec_extract is implemented by direct
32674 move.
32675
32676 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32677
32678 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32679
32680 2019-01-30 Richard Biener <rguenther@suse.de>
32681
32682 PR tree-optimization/89111
32683 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32684 canonicalization to appropriately sized access types.
32685
32686 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32687
32688 PR c++/89105
32689 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32690 for arguments to functions that are TU-local and shouldn't be
32691 referenced by assembly.
32692
32693 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32694
32695 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32696 after '='.
32697
32698 2019-01-29 Martin Sebor <msebor@redhat.com>
32699
32700 PR c/88956
32701 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32702
32703 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32704
32705 PR c++/66676
32706 PR ipa/89104
32707 * omp-simd-clone.c (simd_clone_clauses_extract)
32708 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32709 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32710
32711 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32712
32713 * config.gcc: Force .init_array for ARC.
32714
32715 2019-01-29 Richard Biener <rguenther@suse.de>
32716
32717 PR debug/87295
32718 * dwarf2out.c (collect_skeleton_dies): New helper.
32719 (copy_decls_for_unworthy_types): Call it.
32720 (build_abbrev_table): Assert we do not try to replace
32721 DW_AT_signature refs with local refs.
32722
32723 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32724
32725 PR middle-end/89002
32726 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32727 for lastprivate/linear IV, push gimplify context around gimplify_assign
32728 and, if it needed any temporaries, pop it into a gimple bind around the
32729 sequence.
32730
32731 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32732
32733 * common.opt (-Wattribute-alias): Remove "no-" from name.
32734 Make -Wattribute-alias command line option and
32735 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32736
32737 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32738
32739 PR target/89073
32740 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32741 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32742 x86 ISA options.
32743 (bmi2): Add missing @opindex.
32744 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32745 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32746 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32747 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32748 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32749 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32750 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32751 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32752 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32753 xsavec, xsaveopt and xsaves options.
32754
32755 2019-01-28 Richard Biener <rguenther@suse.de>
32756
32757 PR debug/89076
32758 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32759 support removal.
32760
32761 2019-01-28 Richard Biener <rguenther@suse.de>
32762
32763 PR tree-optimization/88739
32764 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32765 BIT_FIELD_REFs only are applied to mode-precision operands
32766 when they are integral.
32767 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32768 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32769 BIT_FIELD_REFs of non-mode-precision integral operands.
32770
32771 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32772
32773 PR target/87214
32774 * config/i386/sse.md
32775 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32776 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32777 first constants in pairs are multiples of 2. Formatting fixes.
32778 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32779 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32780 first constants in each quadruple are multiples of 4. Formatting fixes.
32781
32782 2019-01-26 Martin Jambor <mjambor@suse.cz>
32783
32784 PR ipa/88933
32785 * tree-inline.c: Include tree-cfgcleanup.h.
32786 (delete_unreachable_blocks_update_callgraph): Move...
32787 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32788 ...here, make externally visible, make second argument bool, adjust
32789 all callers.
32790 * tree-cfgcleanup.c: Include cgraph.h.
32791 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32792 Declare.
32793 * ipa-prop.c: Include tree-cfgcleanup.h.
32794 (ipcp_transform_function): Call
32795 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32796
32797 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32798
32799 PR rtl-optimization/88846
32800 * ira.c (process_set_for_memref_referenced_p): New.
32801 (memref_referenced_p): Add new param. Use
32802 process_set_for_memref_referenced_p. Add new switch cases.
32803 (memref_used_between_p): Pass new arg to memref_referenced_p.
32804
32805 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32806
32807 PR target/88469
32808 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32809 argument ABI_BREAK. Set to true if the calculated alignment has
32810 changed in gcc-9. Check bit-fields for their base type alignment.
32811 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32812 (aarch64_function_arg_boundary): Likewise.
32813 (aarch64_gimplify_va_arg_expr): Likewise.
32814
32815 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32816
32817 PR middle-end/89037
32818 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32819 instead of accessing TREE_INT_CST_ELT directly.
32820
32821 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32822
32823 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32824 fenv_exceptions description.
32825
32826 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32827
32828 PR rtl-optimization/87763
32829 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32830 Allow SUBREG when matching CC_NZmode compare.
32831
32832 2019-01-25 Richard Biener <rguenther@suse.de>
32833
32834 PR tree-optimization/89049
32835 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32836 Look at the pattern stmt to determine if the stmt is vectorized.
32837
32838 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32839
32840 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32841 (pred_mov<mode>): Handle all-register forms using both a new
32842 alternative and a split.
32843
32844 2019-01-25 Richard Biener <rguenther@suse.de>
32845
32846 PR tree-optimization/86865
32847 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32848 Reject non-do-while loops.
32849
32850 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32851
32852 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32853 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32854 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32855 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32856 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32857 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32858 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32859 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32860 vlogical_operand, gpc_reg_operand, int_reg_operand,
32861 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32862 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32863 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32864 (save_world_operation, restore_world_operation, lmw_operation,
32865 stmw_operation): Use MEM_P and REG_P.
32866 (tie_operand): Use MEM_P.
32867 (vrsave_operation, crsave_operation): Use REG_P.
32868 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32869 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32870 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32871 (call_operand): Use HARD_REGISTER_P.
32872 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32873 Use CONST_INT_P.
32874 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32875 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32876 quad_aligned_load_p, replace_swapped_aligned_store,
32877 recombine_lvx_pattern, replace_swapped_aligned_load,
32878 recombine_stvx_pattern): Use MEM_P.
32879 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32880 Use MEM_P and SYMBOL_REF_P.
32881 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32882 (insn_is_swappable_p): Use REG_P and MEM_P.
32883 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32884 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32885 Use CONST_INT_P.
32886 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32887 Use CONST_DOUBLE_P.
32888 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32889 CONST_WIDE_INT_P.
32890 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32891 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32892 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32893 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32894 reg_or_subregno:
32895 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32896 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32897 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32898 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32899 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32900 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32901 rs6000_split_logical_di): Use CONST_INT_P.
32902 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32903 REG_P and SYMBOL_REF_P.
32904 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32905 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32906 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32907 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32908 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32909 (small_data_operand, print_operand_address): Use CONST_INT_P and
32910 SYMBOL_REF_P.
32911 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32912 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32913 Use HARD_REGISTER_NUM_P.
32914 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32915 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32916 SUBREG_P and SYMBOL_REF_P.
32917 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32918 and HARD_REGISTER_NUM_P.
32919 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32920 reg_or_subregno.
32921 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32922 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32923 MEM_P and REG_P.
32924 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32925 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32926 find_addr_reg): Use REG_P.
32927 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32928 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32929 (offsettable_ok_by_alignment, constant_pool_expr_p,
32930 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32931 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32932 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32933 rs6000_assemble_integer, create_TOC_reference,
32934 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32935 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32936 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32937 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32938 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32939 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32940 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32941 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32942 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32943 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32944 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32945 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32946 and cbranch<mode>4): Use CONST_INT_P.
32947 (multiple define_splits): Use REG_P and SUBREG_P.
32948 (define_expands call, call_value): Use MEM_P.
32949 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32950 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32951 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32952 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32953 and HARD_REGISTER_NUM_P.
32954 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32955
32956 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32957
32958 PR rtl-optimization/88948
32959 * rtl.h (prepare_copy_insn): New prototype.
32960 * gcse.c (prepare_copy_insn): New function, split out from
32961 process_insert_insn.
32962 (process_insert_insn): Use prepare_copy_insn.
32963 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32964 instead of gen_move_insn.
32965
32966 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32967
32968 PR debug/89006
32969 * config/i386/i386.c (ix86_pic_register_p): Return true for
32970 UNSPEC_SET_GOT too.
32971
32972 PR tree-optimization/88964
32973 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32974 punt if HONOR_SNANS (chrec).
32975
32976 PR middle-end/89015
32977 * tree-nested.c (convert_nonlocal_reference_stmt,
32978 convert_local_reference_stmt, convert_tramp_reference_stmt,
32979 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32980 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32981 or GIMPLE_OMP_TASK.
32982
32983 PR tree-optimization/89027
32984 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32985 for "omp simd array" variables.
32986
32987 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32988
32989 PR target/88469
32990 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32991 force the alignment of m_val.
32992
32993 2019-01-24 Richard Biener <rguenther@suse.de>
32994
32995 PR lto/87187
32996 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32997 When in "legacy" debug mode make sure to reset self-origins.
32998
32999 2019-01-24 Martin Liska <mliska@suse.cz>
33000
33001 PR gcov-profile/88994
33002 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33003 result will be always smaller or equal to the original.
33004 * gcov.c (mangle_name): Fix else branch where we should
33005 also copy to PTR and shift the pointer.
33006
33007 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33008
33009 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33010 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33011
33012 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33013
33014 * common/config/i386/i386-common.c
33015 (OPTION_MASK_ISA_ENQCMD_SET,
33016 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33017 (ix86_handle_option): Handle -menqcmd.
33018 * config.gcc (enqcmdintrin.h): New header file.
33019 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33020 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33021 -menqcmd.
33022 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33023 function type.
33024 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33025 __builtin_ia32_enqcmds): New builtins.
33026 * config/i386/i386-c.c (__ENQCMD__): New macro.
33027 * config/i386/i386-option.c (ix86_target_string): Add
33028 -menqcmd.
33029 (ix86_valid_target_attribute_inner_p): Likewise.
33030 * config/i386/i386-expand.c
33031 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33032 IX86_BUILTIN_ENQCMDS.
33033 * config/i386/i386.h (TARGET_ENQCMD): New.
33034 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33035 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33036 (movdir64b_<mode>): Parameterize to enable share expansion code
33037 with ENQCMD in function ix86_expand_builtin.
33038 * config/i386/i386.opt: Add -menqcmd.
33039 * config/i386/immintrin.h: Include enqcmdintrin.h.
33040 * config/i386/enqcmdintrin.h: New intrinsic file.
33041 * doc/invoke.texi: Add -menqcmd.
33042
33043 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33044 Steve Ellcey <sellcey@marvell.com>
33045
33046 PR target/85711
33047 * recog.c (address_operand): Return false on wrong mode for address.
33048 (constrain_operands): Check for mode with 'p' constraint.
33049
33050 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33051
33052 PR target/88998
33053 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33054 Disparage MMX alternative.
33055 (sse2_cvtpd2pi): Ditto.
33056 (sse2_cvttpd2pi): Ditto.
33057
33058 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33059
33060 PR driver/89014
33061 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33062 use-after-free of the result of
33063 aarch64_get_extension_string_for_isa_flags.
33064
33065 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33066
33067 PR c/44715
33068 * doc/extend.texi: Document break and continue behavior in
33069 statement expressions.
33070
33071 2019-01-23 Richard Biener <rguenther@suse.de>
33072
33073 PR tree-optimization/89008
33074 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33075 not leave another stray operand.
33076
33077 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33078
33079 * BASE-VER: Bump to 9.0.1.
33080
33081 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33082
33083 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33084 thunk that returns by reference, use the type of the return object
33085 of the thunk instead of that of the alias to build the dereference.
33086
33087 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33088
33089 * config/arc/atomic.md: Add operand to DMB instruction.
33090
33091 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33092
33093 PR tree-optimization/88964
33094 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33095 build_zero_cst instead of build_int_cst. Return false for loop
33096 invariants which honor signed zeros.
33097
33098 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33099
33100 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33101
33102 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33103
33104 PR target/88965
33105 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33106 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33107 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33108
33109 PR middle-end/88968
33110 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33111 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33112
33113 PR target/87064
33114 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33115 Disable for little endian.
33116
33117 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33118
33119 PR target/88469
33120 * config/arm/arm.c (arm_needs_double_word_align): Check
33121 DECL_BIT_FIELD_TYPE.
33122
33123 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33124 H.J. Lu <hongjiu.lu@intel.com>
33125
33126 PR target/88909
33127 * config/i386/i386-builtin.def: Add mask2 to all builtin
33128 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33129 SPECIAL_ARGS.
33130 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33131 (BDESC_FIRST): Likewise.
33132 (define_builtin): Add an argument for mask2. Updated to handle
33133 both ix86_isa_flags and ix86_isa_flags2.
33134 (define_builtin_const): Likewise.
33135 (define_builtin_pure): Likewise.
33136 (define_builtin2): Deleted.
33137 (define_builtin_const2): Likewise.
33138 (builtin_description): Add a member, mask2.
33139 (bdesc_*): Add mask2 to builtin initializations.
33140 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33141 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33142 support.
33143 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33144
33145 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33146
33147 PR target/88954
33148 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33149 noplt attribute.
33150
33151 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33152
33153 PR target/88469
33154 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33155 alignment is dominated by a bitfield with 64-bit aligned base type.
33156 (arm_function_arg): Emit a warning if the alignment has changed since
33157 earlier GCC releases.
33158 (arm_function_arg_boundary): Likewise.
33159 (arm_setup_incoming_varargs): Likewise.
33160
33161 2019-01-22 Richard Biener <rguenther@suse.de>
33162
33163 PR tree-optimization/88862
33164 * graphite-scop-detection.c
33165 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33166
33167 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33168
33169 * doc/extend.tex (AMD GCN Function Attributes): New section.
33170 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33171 * doc/invoke.texi (AMD GCN Options): New section.
33172 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33173
33174 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33175
33176 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33177 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33178
33179 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33180
33181 PR tree-optimization/88044
33182 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33183 is false in the first iteration, but !every_iteration, return false
33184 instead of true with niter->niter zero.
33185
33186 PR rtl-optimization/88904
33187 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33188 any nonequal registers before processing BB_END (b).
33189
33190 PR target/88905
33191 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33192 GET_MODE (op0).
33193 (expand_binop_directly, expand_doubleword_clz,
33194 expand_doubleword_popcount, expand_ctz, expand_ffs,
33195 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33196
33197 PR rtl-optimization/49429
33198 PR target/49454
33199 PR rtl-optimization/86334
33200 PR target/88906
33201 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33202 addressable from here...
33203 (emit_block_op_via_libcall): ... to here.
33204
33205 2019-01-22 Richard Biener <rguenther@suse.de>
33206
33207 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33208 auto_vec for cost vector to fix memleak.
33209 (vectorize_fold_left_reduction): Properly gather SLP defs.
33210 (vectorizable_comparison): Do not swap operands to properly
33211 gather SLP defs.
33212
33213 2019-01-22 Alan Modra <amodra@gmail.com>
33214
33215 PR target/88614
33216 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33217 stays a reg. Allow a const_int.
33218 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33219 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33220 (IS_NOMARK_TLSGETADDR): Define.
33221 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33222 (rs6000_output_tlsargs): New function.
33223 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33224 __tls_get_addr call takes an arg.
33225 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33226 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33227 delete split..
33228 (call_value_nonlocal_sysv): ..or here, delete split.
33229 (tls_gdld_nomark): Delete.
33230 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33231 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33232 (call_value_nonlocal_sysv): Likewise.
33233 (call_value_nonlocal_sysv_secure): Likewise.
33234 (call_value_nonlocal_aix): Likewise.
33235 (call_value_indirect_aix): Likewise.
33236 (call_value_indirect_elfv2): Likewise.
33237 (call_value_local32, call_value_local64): Disable for no-mark tls.
33238 (call_value_local_aix): Likewise.
33239
33240 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33241
33242 PR target/88938
33243 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33244 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33245
33246 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33247
33248 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33249 string contents as hash_map keys.
33250
33251 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33252
33253 PR c/88928
33254 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33255 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33256 instead of TYPE_ALIGN.
33257 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33258 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33259 pointer from TYPE_STUB_DECL.
33260
33261 2019-01-21 Richard Biener <rguenther@suse.de>
33262
33263 PR tree-optimization/88934
33264 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33265 at the possibly non-constant operand.
33266 (vect_get_constant_vectors): Adjust.
33267
33268 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33269
33270 PR target/71659
33271 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33272 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33273 instead of _X86INTRIN_H_INCLUDED.
33274 * onfig/i386/clwbintrin.h: Likewise.
33275 * config/i386/pkuintrin.h: Likewise.
33276 * config/i386/prfchwintrin.h: Likewise.
33277 * config/i386/rdseedintrin.h: Likewise.
33278 * config/i386/wbnoinvdintrin.h: Likewise.
33279 * config/i386/xsavecintrin.h: Likewise.
33280 * config/i386/xsavesintrin.h: Likewise.
33281 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33282 * config/i386/xsaveintrin.h: Likewise.
33283 * config/i386/xsaveoptintrin.h: Likewise.
33284 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33285 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33286 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33287 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33288 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33289 * config/i386/immintrin.h: Here.
33290
33291 2019-01-20 Martin Jambor <mjambor@suse.cz>
33292
33293 PR ipa/87615
33294 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33295 with aa_walk_budget.
33296 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33297 aa_walk_budget_p parameter.
33298 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33299 walk. Updated all callers.
33300 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33301 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33302 unmodified_parm.
33303 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33304 parameter info. Extract info from fbi. Pass fbi to recursive calls
33305 and to unmodified_parm.
33306 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33307 info, updated call to will_be_nonconstant_expr_predicate.
33308 (param_change_prob): New parameter fbi, limit AA walking.
33309 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33310 calls to various above functions.
33311 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33312 parameter. Use it to limit AA walking.
33313 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33314 fbi, limit AA walk.
33315 (detect_type_change): New parameter fbi, pass it on to
33316 detect_type_change_from_memory_writes.
33317 (detect_type_change_ssa): Likewise.
33318 (aa_overwalked): Removed.
33319 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33320 accordingly, adjust to the neew AA limiting scheme.
33321 (parm_ref_data_preserved_p): Likewise.
33322 (ipa_compute_jump_functions_for_edge): Adjust call to
33323 get_dynamic_type.
33324 (ipa_analyze_call_uses): Likewise.
33325 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33326 (ipa_analyze_node): Initialize aa_walk_budget.
33327 (ipcp_transform_function): Likewise.
33328 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33329 to get_dynamic_type.
33330
33331 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33332
33333 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33334 outside of #if CHECKING_P code.
33335
33336 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33337
33338 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33339 New function, split out from...
33340 (loop_versioning::analyze_stride): ...here.
33341 (loop_versioning::find_per_loop_multiplication): Use gassign.
33342 (loop_versioning::analyze_term_using_scevs): Return a success code.
33343 (loop_versioning::analyze_arbitrary_term): New function.
33344 (loop_versioning::analyze_address_fragment): Use
33345 analyze_arbitrary_term if all else fails.
33346
33347 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33348
33349 PR target/88892
33350 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33351 operands.
33352
33353 2019-01-18 Richard Biener <rguenther@suse.de>
33354
33355 PR tree-optimization/88903
33356 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33357 scalar stmts a SLP shift amount is composed of when detecting
33358 shifts by scalars.
33359
33360 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33361
33362 PR target/88799
33363 * config/arm/arm-cpus.in (mp): New feature.
33364 (sec): New feature.
33365 (fgroup ARMv7ve): Add mp and sec features.
33366 (arch armv7-a): Add options to allow mp and sec extensions.
33367 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33368 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33369 extenstions to the base architecture.
33370 (cpu cortex-a8): Add sec extension to the base architecture.
33371 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33372 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33373 variants down to the base v7-a varaint.
33374 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33375 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33376 of permitted extensions for -march=armv7-a and for
33377 -mcpu=generic-armv7-a.
33378
33379 2019-01-18 Martin Liska <mliska@suse.cz>
33380
33381 * params.def: Fix comment.
33382 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33383 name.
33384 (gimple_gen_ic_func_profiler): Likewise.
33385
33386 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33387
33388 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33389 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33390 and put in error checks for stack protector guard options.
33391 (aarch64_stack_protect_guard): New.
33392 (TARGET_STACK_PROTECT_GUARD): Define.
33393 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33394 (reg_stack_protect_address<mode>): New.
33395 (stack_protect_set): Adjust for SSP_GLOBAL.
33396 (stack_protect_test): Likewise.
33397 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33398 (-mstack-protector-guard): Likewise.
33399 (-mstack-protector-guard-offset): Likewise.
33400
33401 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33402
33403 PR tree-optimization/86214
33404 * tree-inline.h (struct copy_body_data): Add
33405 add_clobbers_to_eh_landing_pads member.
33406 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33407 (copy_edges_for_bb): Call it if EH edge destination is <
33408 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33409 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33410 if flag_stack_reuse != SR_NONE and clear it afterwards.
33411
33412 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33413
33414 PR target/85596
33415 * doc/install.texi (with-multilib-list): Document for aarch64.
33416
33417 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33418
33419 PR target/88734
33420 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33421 (("..."))) with ("...").
33422
33423 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33424
33425 * doc/extend.texi (Built-in Functions for Memory Model Aware
33426 Atomic Operations): Document atomic fetch and nand.
33427
33428 2019-01-18 Martin Liska <mliska@suse.cz>
33429 Richard Biener <rguenther@suse.de>
33430
33431 PR middle-end/88587
33432 * cgraph.h (create_version_clone_with_body): Add new argument
33433 with attributes.
33434 * cgraphclones.c (cgraph_node::create_version_clone): Add
33435 DECL_ATTRIBUTES to a newly created decl. And call
33436 valid_attribute_p so that proper cl_target_optimization_node
33437 is set for the newly created declaration.
33438 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33439 for declaration.
33440 (expand_target_clones): Do not call valid_attribute_p, it must
33441 be already done.
33442 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33443 vector types.
33444
33445 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33446
33447 PR target/88734
33448 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33449 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33450 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33451
33452 2019-01-17 Martin Sebor <msebor@redhat.com>
33453
33454 PR middle-end/88273
33455 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33456 Handle anti-ranges the same as no range at all.
33457
33458 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33459
33460 * config/aarch64/aarch64.c (cgraph.h): New include.
33461 (intl.h): New include.
33462 (supported_simd_type): New function.
33463 (currently_supported_simd_type): Ditto.
33464 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33465 (aarch64_simd_clone_adjust): Ditto.
33466 (aarch64_simd_clone_usable): Ditto.
33467 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33468 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33469 (TARGET_SIMD_CLONE_USABLE): Ditto.
33470 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33471 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33472 call.
33473
33474 2019-01-17 Martin Sebor <msebor@redhat.com>
33475
33476 PR tree-optimization/88800
33477 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33478 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33479 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33480 redundant argument. Add new argument and issue diagnostics under
33481 its control. Detect out-of-bounds access even with warnings
33482 disabled.
33483 (check_bounds_or_overlap): Change return type. Add argument.
33484 (wrestrict_dom_walker::check_call): Adjust.
33485 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33486 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33487 check_bounds_or_overlap's return value.
33488 (handle_builtin_stxncpy): Same.
33489 (handle_builtin_strcat): Same.
33490
33491 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33492 Kwok Cheung Yeung <kcy@codesourcery.com>
33493 Julian Brown <julian@codesourcery.com>
33494 Tom de Vries <tom@codesourcery.com>
33495
33496 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33497
33498 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33499
33500 * doc/sourcebuild.texi: Document dg-require-effective-target
33501 llvm_binutils and offload_gcn.
33502
33503 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33504 Kwok Cheung Yeung <kcy@codesourcery.com>
33505 Julian Brown <julian@codesourcery.com>
33506 Tom de Vries <tom@codesourcery.com>
33507
33508 * doc/sourcebuild.texi: Document dg-required-effective-target
33509 exceptions.
33510
33511 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33512 Kwok Cheung Yeung <kcy@codesourcery.com>
33513 Julian Brown <julian@codesourcery.com>
33514 Tom de Vries <tom@codesourcery.com>
33515 Jan Hubicka <hubicka@ucw.cz>
33516 Martin Jambor <mjambor@suse.cz>
33517
33518 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33519 * configure.ac: Check for dlopen.
33520 * configure: Regenerate.
33521
33522 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33523 Kwok Cheung Yeung <kcy@codesourcery.com>
33524 Julian Brown <julian@codesourcery.com>
33525 Tom de Vries <tom@codesourcery.com>
33526 Jan Hubicka <hubicka@ucw.cz>
33527 Martin Jambor <mjambor@suse.cz>
33528
33529 * common/config/gcn/gcn-common.c: New file.
33530 * config/gcn/driver-gcn.c: New file.
33531 * config/gcn/gcn-builtins.def: New file.
33532 * config/gcn/gcn-hsa.h: New file.
33533 * config/gcn/gcn-modes.def: New file.
33534 * config/gcn/gcn-opts.h: New file.
33535 * config/gcn/gcn-passes.def: New file.
33536 * config/gcn/gcn-protos.h: New file.
33537 * config/gcn/gcn-run.c: New file.
33538 * config/gcn/gcn-tree.c: New file.
33539 * config/gcn/gcn.c: New file.
33540 * config/gcn/gcn.h: New file.
33541 * config/gcn/gcn.opt: New file.
33542 * config/gcn/t-gcn-hsa: New file.
33543
33544 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33545 Kwok Cheung Yeung <kcy@codesourcery.com>
33546 Julian Brown <julian@codesourcery.com>
33547 Tom de Vries <tom@codesourcery.com>
33548 Jan Hubicka <hubicka@ucw.cz>
33549 Martin Jambor <mjambor@suse.cz>
33550
33551 * config/gcn/constraints.md: New file.
33552 * config/gcn/gcn-valu.md: New file.
33553 * config/gcn/gcn.md: New file.
33554 * config/gcn/predicates.md: New file.
33555
33556 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33557
33558 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33559 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33560 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33561 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33562
33563 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33564
33565 PR target/88851
33566 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33567 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33568 it and document registers.
33569
33570 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33571
33572 * config/aarch64/aarch64.c (ares_tunings): Define.
33573 * config/aarch64/aarch64-cores.def (ares): Use the above.
33574
33575 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33576
33577 PR target/88794
33578 Revert:
33579 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33580
33581 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33582 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33583 (_mm512_maskz_fixupimm_round_pd): Ditto.
33584 (_mm512_fixupimm_round_ps): Ditto.
33585 (_mm512_maskz_fixupimm_round_ps): Ditto.
33586 (_mm_fixupimm_round_sd): Ditto.
33587 (_mm_maskz_fixupimm_round_sd): Ditto.
33588 (_mm_fixupimm_round_ss): Ditto.
33589 (_mm_maskz_fixupimm_round_ss): Ditto.
33590 (_mm512_fixupimm_pd): Ditto.
33591 (_mm512_maskz_fixupimm_pd): Ditto.
33592 (_mm512_fixupimm_ps): Ditto.
33593 (_mm512_maskz_fixupimm_ps): Ditto.
33594 (_mm_fixupimm_sd): Ditto.
33595 (_mm_maskz_fixupimm_sd): Ditto.
33596 (_mm_fixupimm_ss): Ditto.
33597 (_mm_maskz_fixupimm_ss): Ditto.
33598 (_mm512_mask_fixupimm_round_pd): Update builtin.
33599 (_mm512_mask_fixupimm_round_ps): Ditto.
33600 (_mm_mask_fixupimm_round_sd): Ditto.
33601 (_mm_mask_fixupimm_round_ss): Ditto.
33602 (_mm512_mask_fixupimm_pd): Ditto.
33603 (_mm512_mask_fixupimm_ps): Ditto.
33604 (_mm_mask_fixupimm_sd): Ditto.
33605 (_mm_mask_fixupimm_ss): Ditto.
33606 * config/i386/avx512vlintrin.h:
33607 (_mm256_fixupimm_pd): Update parameters and builtin.
33608 (_mm256_maskz_fixupimm_pd): Ditto.
33609 (_mm256_fixupimm_ps): Ditto.
33610 (_mm256_maskz_fixupimm_ps): Ditto.
33611 (_mm_fixupimm_pd): Ditto.
33612 (_mm_maskz_fixupimm_pd): Ditto.
33613 (_mm_fixupimm_ps): Ditto.
33614 (_mm_maskz_fixupimm_ps): Ditto.
33615 (_mm256_mask_fixupimm_pd): Update builtin.
33616 (_mm256_mask_fixupimm_ps): Ditto.
33617 (_mm_mask_fixupimm_pd): Ditto.
33618 (_mm_mask_fixupimm_ps): Ditto.
33619 * config/i386/i386-builtin-types.def: Add new types and remove
33620 useless ones.
33621 * config/i386/i386-builtin.def: Update builtin definitions.
33622 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33623 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33624 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33625 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33626 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33627 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33628 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33629 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33630 * config/i386/subst.md:
33631 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33632 (round_saeonly_sd_mask_op4): Ditto.
33633 (round_saeonly_expand_operand5): Ditto.
33634 (round_saeonly_expand): Update.
33635
33636 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33637
33638 PR target/88794
33639 Revert:
33640 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33641
33642 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33643 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33644 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33645 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33646 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33647 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33648 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33649
33650 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33651
33652 PR target/88794
33653 Revert:
33654 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33655
33656 PR target/88489
33657 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33658 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33659 instead of UNSPEC_FIXUPIMM.
33660
33661 2019-01-17 Richard Biener <rguenther@suse.de>
33662
33663 PR lto/86736
33664 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33665 and friends for the LTO part of debug info.
33666
33667 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33668
33669 PR tree-optimization/86214
33670 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33671 if x == y.
33672
33673 PR rtl-optimization/88870
33674 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33675 throw if we can't alter the cfg or delete dead exceptions.
33676 (mark_insn): Don't call find_call_stack_args for such calls.
33677
33678 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33679
33680 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33681 prototypes for vec_st.
33682 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33683 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33684 mainly on signed/unsigned long long and double.
33685
33686 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33687
33688 PR target/88861
33689 * combine.c (delete_noop_moves): Convert to "bool" return,
33690 returning true if any edges are eliminated.
33691 (combine_instructions): Also return true if delete_noop_moves
33692 returns true.
33693
33694 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33695
33696 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33697 correct max nunits for endian swap.
33698 (aarch64_expand_fcmla_builtin): Correct subreg code.
33699 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33700 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33701 lane endianness.
33702
33703 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33704
33705 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33706 Handle split indirect COMPLEX_TYPE arguments.
33707
33708 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33709
33710 PR target/86891
33711 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33712 bit is set by add and compare.
33713 (CC_ADC): New CC_MODE.
33714 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33715 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33716 comparison. Add detection for CC_ADCmode.
33717 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33718 CC_ADCmode.
33719 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33720 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33721 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33722 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33723 to eliminate the need for zero-extending the operands.
33724 (add<mode>3_compareC_imm): Delete. Merge into ...
33725 (add<mode>3_compareC): ... this. Restructure the comparison to
33726 eliminate the need for zero-extending the operands.
33727 (add<mode>3_carryin): Use LTU for the overflow detection.
33728 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33729 Reexpress comparison for overflow.
33730 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33731 (add<mode>3_carryinC): Likewise.
33732 (add<mode>3_carryinV): Use LTU for carry between partials.
33733 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33734 handling of CC_Cmode and add CC_ADCmode.
33735 (aarch64_borrow_operation): Likewise.
33736
33737 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33738
33739 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33740 Remove patternmode.
33741 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33742 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33743 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33744 Remove endianness conversion.
33745
33746 2019-01-16 Martin Liska <mliska@suse.cz>
33747
33748 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33749 for GCC driver.
33750 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33751 a new argument.
33752 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33753 (path_prefix_reset): Move up in the source file.
33754 (find_fortran_preinclude_file): Make complex search for the
33755 fortran header files.
33756
33757 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33758
33759 * godump.c (go_output_typedef): When outputting a typedef, refer
33760 to the underlying type by its name and not its structure.
33761
33762 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33763
33764 PR c++/88795
33765 * tree.c (build_function_type): Assert that arg_types is not
33766 error_mark_node.
33767
33768 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33769
33770 PR inline-asm/52813
33771 * doc/extend.texi: Document that listing the stack pointer in the
33772 clobber list of an asm is a deprecated feature.
33773 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33774 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33775 warning instead of an error for clobbers of the stack pointer.
33776 Add a note explaining why.
33777
33778 2019-01-15 Richard Biener <rguenther@suse.de>
33779
33780 PR debug/88046
33781 * dwarf2out.c (gen_member_die): Do not generate inheritance
33782 DIEs late.
33783
33784 2019-01-15 Richard Biener <rguenther@suse.de>
33785
33786 PR tree-optimization/88855
33787 * tree-if-conv.c (combine_blocks): Collect
33788 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33789
33790 2019-01-15 Tom de Vries <tdevries@suse.de>
33791
33792 PR target/80547
33793 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33794 lhs == NULL_TREE for gang-level reduction.
33795
33796 2019-01-15 Richard Biener <rguenther@suse.de>
33797 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33798
33799 PR ipa/88788
33800 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33801 return true if SSA_NAME is already marked in visited bitmap.
33802 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33803
33804 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33805
33806 PR tree-optimization/88775
33807 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33808 equal == 0 equality pointer comparisons some more if compared in
33809 integral types and either one points to an automatic var and the
33810 other to a global, or we can prove at least one points to the middle
33811 or both point to start or both point to end.
33812
33813 2019-01-14 Andi Kleen <ak@linux.intel.com>
33814
33815 * Makefile.in: Lower autofdo sampling rate by 10x.
33816 * Makefile.tpl: Dito.
33817
33818 2019-01-14 Tom Honermann <tom@honermann.net>
33819
33820 * defaults.h: Define CHAR8_TYPE.
33821
33822 2019-01-14 Martin Sebor <msebor@redhat.com>
33823
33824 PR target/88638
33825 * doc/extend.texi (Darwin Format Checks): Clarify.
33826
33827 2019-01-14 Richard Biener <rguenther@suse.de>
33828
33829 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33830 whether we are in (simplify ...) or (match ...) context.
33831
33832 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33833
33834 PR rtl-optimization/88796
33835 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33836 * cfgexpand.c (stack_protect_prologue): Initialize
33837 crtl->stack_protect_guard_decl.
33838 * function.c (stack_protect_epilogue): Use it instead of calling
33839 targetm.stack_protect_guard again.
33840 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33841 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33842 crtl->stack_protect_guard_decl.
33843 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33844 on the returned MEM_EXPR.
33845
33846 2019-01-12 Tom de Vries <tdevries@suse.de>
33847
33848 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33849 vector length using -fopenacc-dim.
33850
33851 2019-01-12 Tom de Vries <tdevries@suse.de>
33852
33853 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33854 lengths into account.
33855
33856 2019-01-12 Svante Signell <svante.signell@gmail.com>
33857
33858 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33859 (TARGET_CAN_SPLIT_STACK): Define.
33860 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33861
33862 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33863
33864 * params.def (inline-unit-growth): Set to 40.
33865
33866 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33867
33868 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33869
33870 2019-01-12 Tom de Vries <tdevries@suse.de>
33871
33872 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33873 region calling vector-partitionable routine, set default_vector_length
33874 to WARP_SIZE.
33875
33876 2019-01-12 Tom de Vries <tdevries@suse.de>
33877
33878 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33879 variable default_vector_length.
33880
33881 2019-01-12 Tom de Vries <tdevries@suse.de>
33882
33883 PR middle-end/88703
33884 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33885 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33886 dimensions limits.
33887
33888 2019-01-12 Tom de Vries <tdevries@suse.de>
33889
33890 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33891 (nvptx_goacc_validate_dims): Add used parameter.
33892 * doc/tm.texi: Regenerate.
33893 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33894 argument to call to targetm.goacc.validate_dims.
33895 (default_goacc_validate_dims): Add used
33896 parameter.
33897 * target.def (validate_dims): Add used parameter in DEFHOOK.
33898 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33899
33900 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33901
33902 PR middle-end/85956
33903 PR lto/88733
33904 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33905 field.
33906 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33907 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33908 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33909 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33910
33911 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33912
33913 PR rtl-optimization/87305
33914 * lra-assigns.c
33915 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33916 for little endian pseudos used as paradoxical subreg.
33917
33918 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33919
33920 PR tree-optimization/88693
33921 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33922 for STRING_CSTs that don't contain any NUL characters in the first
33923 TREE_STRING_LENGTH bytes.
33924
33925 2019-01-11 Alan Modra <amodra@gmail.com>
33926
33927 PR 88777
33928 PR 88614
33929 * genattrtab.c (min_fn): Don't translate values.
33930 (min_attr_value): Return INT_MAX when the value can't be calculated.
33931 Return minimum among any values that can be calculated.
33932 (max_attr_value): Adjust.
33933
33934 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33935
33936 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33937
33938 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33939
33940 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33941 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33942 (aarch64_return_call_with_max_clobbers): New function.
33943 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33944 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33945 argument.
33946 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33947 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33948 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33949 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33950 * cselib.c (cselib_process_insn): Add argument to
33951 targetm.hard_regno_call_part_clobbered call.
33952 * ira-conflicts.c (ira_build_conflicts): Ditto.
33953 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33954 * lra-constraints.c (inherit_reload_reg): Ditto.
33955 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33956 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33957 argument. Call targetm.return_call_with_max_clobbers.
33958 Add argument to targetm.hard_regno_call_part_clobbered call.
33959 (calls_have_same_clobbers_p): New function.
33960 (process_bb_lives): Add call_insn and last_call_insn variables.
33961 Pass call_insn to check_pseudos_live_through_calls.
33962 Modify if stmt to check targetm.return_call_with_max_clobbers.
33963 Update setting of flush variable.
33964 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33965 to false.
33966 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33967 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33968 targetm.hard_regno_call_part_clobbered call.
33969 * reginfo.c (choose_hard_reg_mode): Ditto.
33970 * regrename.c (check_new_reg_p): Ditto.
33971 * reload.c (find_equiv_reg): Ditto.
33972 * reload1.c (emit_reload_insns): Ditto.
33973 * sched-deps.c (deps_analyze_insn): Ditto.
33974 * sel-sched.c (init_regs_for_mode): Ditto.
33975 (mark_unavailable_hard_regs): Ditto.
33976 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33977 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33978 (return_call_with_max_clobbers): New target function.
33979 * doc/tm.texi: Regenerate.
33980 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33981 * hooks.c (hook_bool_uint_mode_false): Change to
33982 hook_bool_insn_uint_mode_false.
33983 * hooks.h (hook_bool_uint_mode_false): Ditto.
33984
33985 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33986
33987 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33988 (aarch64_remove_extra_call_preserved_regs): New function.
33989 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33990 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33991 * doc/tm.texi: Regenerate.
33992 * final.c (get_call_reg_set_usage): Call new hook.
33993 * target.def (remove_extra_call_preserved_regs): New hook.
33994 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33995 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33996
33997 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33998
33999 PR bootstrap/88714
34000 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34001 inside of pass_combine_1 dump rather than pass_profile_1.
34002
34003 2019-01-11 Tom de Vries <tdevries@suse.de>
34004
34005 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34006 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34007 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34008 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34009 num_workers 16.
34010
34011 2019-01-11 Tom de Vries <tdevries@suse.de>
34012
34013 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34014
34015 2019-01-11 Jan Beulich <jbeulich@suse.com>
34016
34017 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34018 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34019 sse2_cvtsi2sd): Add {l}.
34020 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34021 syntax.
34022
34023 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34024
34025 PR target/88785
34026 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34027 define_expand.
34028 (*float<floatunssuffix>v2div2sf2): New define_insn.
34029 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34030 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34031 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34032 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34033 match_operands with "const0_operand" "C".
34034
34035 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34036
34037 * config/aarch64/aarch64-builtins.c
34038 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34039 (aarch64_init_simd_builtins): ...Here
34040
34041 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34042
34043 PR rtl-optimization/87305
34044 * lra-assigns.c
34045 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34046 allocation for big endian pseudos used as paradoxical subregs and
34047 spill them if it is wrong.
34048 * lra-constraints.c (lra_constraints): Add a comment.
34049
34050 2019-01-10 Richard Biener <rguenther@suse.de>
34051
34052 PR tree-optimization/88792
34053 * tree-ssa-pre.c (get_representative_for): Do not return a
34054 value-number here.
34055
34056 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34057
34058 PR middle-end/84877
34059 PR bootstrap/88450
34060 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34061 (assign_parm_setup_block): Do the argument slot realignment here
34062 instead.
34063
34064 2019-01-10 Stefan Agner <stefan@agner.ch>
34065
34066 PR target/88648
34067 * config/arm/arm.c (arm_option_override_internal): Force
34068 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34069
34070 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34071
34072 PR c/88568
34073 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34074 DECL_EXTERNAL.
34075
34076 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34077
34078 * config/arm/arm-builtins.c
34079 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34080 (MAC_LANE_PAIR_QUALIFIERS): New.
34081 (arm_expand_builtin_args): Use it.
34082 (arm_expand_builtin_1): Likewise.
34083 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34084 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34085 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34086 * config/arm/arm_neon.h:
34087 (vcadd_rot90_f16): New.
34088 (vcaddq_rot90_f16): New.
34089 (vcadd_rot270_f16): New.
34090 (vcaddq_rot270_f16): New.
34091 (vcmla_f16): New.
34092 (vcmlaq_f16): New.
34093 (vcmla_lane_f16): New.
34094 (vcmla_laneq_f16): New.
34095 (vcmlaq_lane_f16): New.
34096 (vcmlaq_laneq_f16): New.
34097 (vcmla_rot90_f16): New.
34098 (vcmlaq_rot90_f16): New.
34099 (vcmla_rot90_lane_f16): New.
34100 (vcmla_rot90_laneq_f16): New.
34101 (vcmlaq_rot90_lane_f16): New.
34102 (vcmlaq_rot90_laneq_f16): New.
34103 (vcmla_rot180_f16): New.
34104 (vcmlaq_rot180_f16): New.
34105 (vcmla_rot180_lane_f16): New.
34106 (vcmla_rot180_laneq_f16): New.
34107 (vcmlaq_rot180_lane_f16): New.
34108 (vcmlaq_rot180_laneq_f16): New.
34109 (vcmla_rot270_f16): New.
34110 (vcmlaq_rot270_f16): New.
34111 (vcmla_rot270_lane_f16): New.
34112 (vcmla_rot270_laneq_f16): New.
34113 (vcmlaq_rot270_lane_f16): New.
34114 (vcmlaq_rot270_laneq_f16): New.
34115 (vcadd_rot90_f32): New.
34116 (vcaddq_rot90_f32): New.
34117 (vcadd_rot270_f32): New.
34118 (vcaddq_rot270_f32): New.
34119 (vcmla_f32): New.
34120 (vcmlaq_f32): New.
34121 (vcmla_lane_f32): New.
34122 (vcmla_laneq_f32): New.
34123 (vcmlaq_lane_f32): New.
34124 (vcmlaq_laneq_f32): New.
34125 (vcmla_rot90_f32): New.
34126 (vcmlaq_rot90_f32): New.
34127 (vcmla_rot90_lane_f32): New.
34128 (vcmla_rot90_laneq_f32): New.
34129 (vcmlaq_rot90_lane_f32): New.
34130 (vcmlaq_rot90_laneq_f32): New.
34131 (vcmla_rot180_f32): New.
34132 (vcmlaq_rot180_f32): New.
34133 (vcmla_rot180_lane_f32): New.
34134 (vcmla_rot180_laneq_f32): New.
34135 (vcmlaq_rot180_lane_f32): New.
34136 (vcmlaq_rot180_laneq_f32): New.
34137 (vcmla_rot270_f32): New.
34138 (vcmlaq_rot270_f32): New.
34139 (vcmla_rot270_lane_f32): New.
34140 (vcmla_rot270_laneq_f32): New.
34141 (vcmlaq_rot270_lane_f32): New.
34142 (vcmlaq_rot270_laneq_f32): New.
34143 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34144 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34145 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34146 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34147 vcmlaq_lane270): New.
34148 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34149 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34150 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34151 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34152 (arm_option_reconfigure_globals): Use them.
34153 * config/arm/iterators.md (VDF, VQ_HSF): New.
34154 (VCADD, VCMLA): New.
34155 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34156 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34157 New.
34158 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34159 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34160
34161 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34162
34163 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34164 Add qualifier_lane_pair_index.
34165 (emit-rtl.h): Include.
34166 (TYPES_QUADOP_LANE_PAIR): New.
34167 (aarch64_simd_expand_args): Use it.
34168 (aarch64_simd_expand_builtin): Likewise.
34169 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34170 New.
34171 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34172 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34173 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34174 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34175 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34176 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34177 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34178 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34179 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34180 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34181 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34182 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34183 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34184 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34185 Add __ARM_FEATURE_COMPLEX.
34186 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34187 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34188 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34189 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34190 fcmlaq_lane270): New.
34191 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34192 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34193 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34194 * config/aarch64/arm_neon.h:
34195 (vcadd_rot90_f16): New.
34196 (vcaddq_rot90_f16): New.
34197 (vcadd_rot270_f16): New.
34198 (vcaddq_rot270_f16): New.
34199 (vcmla_f16): New.
34200 (vcmlaq_f16): New.
34201 (vcmla_lane_f16): New.
34202 (vcmla_laneq_f16): New.
34203 (vcmlaq_lane_f16): New.
34204 (vcmlaq_rot90_lane_f16): New.
34205 (vcmla_rot90_laneq_f16): New.
34206 (vcmla_rot90_lane_f16): New.
34207 (vcmlaq_rot90_f16): New.
34208 (vcmla_rot90_f16): New.
34209 (vcmlaq_laneq_f16): New.
34210 (vcmla_rot180_laneq_f16): New.
34211 (vcmla_rot180_lane_f16): New.
34212 (vcmlaq_rot180_f16): New.
34213 (vcmla_rot180_f16): New.
34214 (vcmlaq_rot90_laneq_f16): New.
34215 (vcmlaq_rot270_laneq_f16): New.
34216 (vcmlaq_rot270_lane_f16): New.
34217 (vcmla_rot270_laneq_f16): New.
34218 (vcmlaq_rot270_f16): New.
34219 (vcmla_rot270_f16): New.
34220 (vcmlaq_rot180_laneq_f16): New.
34221 (vcmlaq_rot180_lane_f16): New.
34222 (vcmla_rot270_lane_f16): New.
34223 (vcadd_rot90_f32): New.
34224 (vcaddq_rot90_f32): New.
34225 (vcaddq_rot90_f64): New.
34226 (vcadd_rot270_f32): New.
34227 (vcaddq_rot270_f32): New.
34228 (vcaddq_rot270_f64): New.
34229 (vcmla_f32): New.
34230 (vcmlaq_f32): New.
34231 (vcmlaq_f64): New.
34232 (vcmla_lane_f32): New.
34233 (vcmla_laneq_f32): New.
34234 (vcmlaq_lane_f32): New.
34235 (vcmlaq_laneq_f32): New.
34236 (vcmla_rot90_f32): New.
34237 (vcmlaq_rot90_f32): New.
34238 (vcmlaq_rot90_f64): New.
34239 (vcmla_rot90_lane_f32): New.
34240 (vcmla_rot90_laneq_f32): New.
34241 (vcmlaq_rot90_lane_f32): New.
34242 (vcmlaq_rot90_laneq_f32): New.
34243 (vcmla_rot180_f32): New.
34244 (vcmlaq_rot180_f32): New.
34245 (vcmlaq_rot180_f64): New.
34246 (vcmla_rot180_lane_f32): New.
34247 (vcmla_rot180_laneq_f32): New.
34248 (vcmlaq_rot180_lane_f32): New.
34249 (vcmlaq_rot180_laneq_f32): New.
34250 (vcmla_rot270_f32): New.
34251 (vcmlaq_rot270_f32): New.
34252 (vcmlaq_rot270_f64): New.
34253 (vcmla_rot270_lane_f32): New.
34254 (vcmla_rot270_laneq_f32): New.
34255 (vcmlaq_rot270_lane_f32): New.
34256 (vcmlaq_rot270_laneq_f32): New.
34257 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34258 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34259 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34260 (FCADD, FCMLA): New.
34261 (rot): New.
34262 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34263
34264 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34265
34266 PR other/16615
34267
34268 * config/pa/pa.c: Change "can not" to "cannot".
34269 * gimple-ssa-evrp-analyze.c: Likewise.
34270 * ipa-icf.c: Likewise.
34271 * ipa-polymorphic-call.c: Likewise.
34272 * ipa-pure-const.c: Likewise.
34273 * lra-constraints.c: Likewise.
34274 * lra-remat.c: Likewise.
34275 * reload1.c: Likewise.
34276 * reorg.c: Likewise.
34277 * tree-ssa-uninit.c: Likewise.
34278
34279 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34280
34281 PR other/16615
34282
34283 * Makefile.in: Mechanically replace "can not" with "cannot".
34284 * alias.c: Likewise.
34285 * builtins.c: Likewise.
34286 * calls.c: Likewise.
34287 * cgraph.c: Likewise.
34288 * cgraph.h: Likewise.
34289 * cgraphclones.c: Likewise.
34290 * cgraphunit.c: Likewise.
34291 * combine-stack-adj.c: Likewise.
34292 * combine.c: Likewise.
34293 * common/config/i386/i386-common.c: Likewise.
34294 * config/aarch64/aarch64.c: Likewise.
34295 * config/alpha/sync.md: Likewise.
34296 * config/arc/arc.c: Likewise.
34297 * config/arc/predicates.md: Likewise.
34298 * config/arm/arm-c.c: Likewise.
34299 * config/arm/arm.c: Likewise.
34300 * config/arm/arm.h: Likewise.
34301 * config/arm/arm.md: Likewise.
34302 * config/arm/cortex-r4f.md: Likewise.
34303 * config/csky/csky.c: Likewise.
34304 * config/csky/csky.h: Likewise.
34305 * config/darwin-f.c: Likewise.
34306 * config/epiphany/epiphany.md: Likewise.
34307 * config/i386/i386.c: Likewise.
34308 * config/i386/sol2.h: Likewise.
34309 * config/m68k/m68k.c: Likewise.
34310 * config/mcore/mcore.h: Likewise.
34311 * config/microblaze/microblaze.md: Likewise.
34312 * config/mips/20kc.md: Likewise.
34313 * config/mips/sb1.md: Likewise.
34314 * config/nds32/nds32.c: Likewise.
34315 * config/nds32/predicates.md: Likewise.
34316 * config/pa/pa.c: Likewise.
34317 * config/rs6000/e300c2c3.md: Likewise.
34318 * config/rs6000/rs6000.c: Likewise.
34319 * config/s390/s390.h: Likewise.
34320 * config/sh/sh.c: Likewise.
34321 * config/sh/sh.md: Likewise.
34322 * config/spu/vmx2spu.h: Likewise.
34323 * cprop.c: Likewise.
34324 * dbxout.c: Likewise.
34325 * df-scan.c: Likewise.
34326 * doc/cfg.texi: Likewise.
34327 * doc/extend.texi: Likewise.
34328 * doc/fragments.texi: Likewise.
34329 * doc/gty.texi: Likewise.
34330 * doc/invoke.texi: Likewise.
34331 * doc/lto.texi: Likewise.
34332 * doc/md.texi: Likewise.
34333 * doc/objc.texi: Likewise.
34334 * doc/rtl.texi: Likewise.
34335 * doc/tm.texi: Likewise.
34336 * dse.c: Likewise.
34337 * emit-rtl.c: Likewise.
34338 * emit-rtl.h: Likewise.
34339 * except.c: Likewise.
34340 * expmed.c: Likewise.
34341 * expr.c: Likewise.
34342 * fold-const.c: Likewise.
34343 * genautomata.c: Likewise.
34344 * gimple-fold.c: Likewise.
34345 * hard-reg-set.h: Likewise.
34346 * ifcvt.c: Likewise.
34347 * ipa-comdats.c: Likewise.
34348 * ipa-cp.c: Likewise.
34349 * ipa-devirt.c: Likewise.
34350 * ipa-fnsummary.c: Likewise.
34351 * ipa-icf.c: Likewise.
34352 * ipa-inline-transform.c: Likewise.
34353 * ipa-inline.c: Likewise.
34354 * ipa-polymorphic-call.c: Likewise.
34355 * ipa-profile.c: Likewise.
34356 * ipa-prop.c: Likewise.
34357 * ipa-pure-const.c: Likewise.
34358 * ipa-reference.c: Likewise.
34359 * ipa-split.c: Likewise.
34360 * ipa-visibility.c: Likewise.
34361 * ipa.c: Likewise.
34362 * ira-build.c: Likewise.
34363 * ira-color.c: Likewise.
34364 * ira-conflicts.c: Likewise.
34365 * ira-costs.c: Likewise.
34366 * ira-int.h: Likewise.
34367 * ira-lives.c: Likewise.
34368 * ira.c: Likewise.
34369 * ira.h: Likewise.
34370 * loop-invariant.c: Likewise.
34371 * loop-unroll.c: Likewise.
34372 * lower-subreg.c: Likewise.
34373 * lra-assigns.c: Likewise.
34374 * lra-constraints.c: Likewise.
34375 * lra-eliminations.c: Likewise.
34376 * lra-lives.c: Likewise.
34377 * lra-remat.c: Likewise.
34378 * lra-spills.c: Likewise.
34379 * lra.c: Likewise.
34380 * lto-cgraph.c: Likewise.
34381 * lto-streamer-out.c: Likewise.
34382 * postreload-gcse.c: Likewise.
34383 * predict.c: Likewise.
34384 * profile-count.h: Likewise.
34385 * profile.c: Likewise.
34386 * recog.c: Likewise.
34387 * ree.c: Likewise.
34388 * reload.c: Likewise.
34389 * reload1.c: Likewise.
34390 * reorg.c: Likewise.
34391 * resource.c: Likewise.
34392 * rtl.def: Likewise.
34393 * rtl.h: Likewise.
34394 * rtlanal.c: Likewise.
34395 * sched-deps.c: Likewise.
34396 * sched-ebb.c: Likewise.
34397 * sched-rgn.c: Likewise.
34398 * sel-sched-ir.c: Likewise.
34399 * sel-sched.c: Likewise.
34400 * shrink-wrap.c: Likewise.
34401 * simplify-rtx.c: Likewise.
34402 * symtab.c: Likewise.
34403 * target.def: Likewise.
34404 * toplev.c: Likewise.
34405 * tree-call-cdce.c: Likewise.
34406 * tree-cfg.c: Likewise.
34407 * tree-complex.c: Likewise.
34408 * tree-core.h: Likewise.
34409 * tree-eh.c: Likewise.
34410 * tree-inline.c: Likewise.
34411 * tree-loop-distribution.c: Likewise.
34412 * tree-nrv.c: Likewise.
34413 * tree-profile.c: Likewise.
34414 * tree-sra.c: Likewise.
34415 * tree-ssa-alias.c: Likewise.
34416 * tree-ssa-dce.c: Likewise.
34417 * tree-ssa-dom.c: Likewise.
34418 * tree-ssa-forwprop.c: Likewise.
34419 * tree-ssa-loop-im.c: Likewise.
34420 * tree-ssa-loop-ivcanon.c: Likewise.
34421 * tree-ssa-loop-ivopts.c: Likewise.
34422 * tree-ssa-loop-niter.c: Likewise.
34423 * tree-ssa-phionlycprop.c: Likewise.
34424 * tree-ssa-phiopt.c: Likewise.
34425 * tree-ssa-propagate.c: Likewise.
34426 * tree-ssa-threadedge.c: Likewise.
34427 * tree-ssa-threadupdate.c: Likewise.
34428 * tree-ssa-uninit.c: Likewise.
34429 * tree-ssanames.c: Likewise.
34430 * tree-streamer-out.c: Likewise.
34431 * tree.c: Likewise.
34432 * tree.h: Likewise.
34433 * vr-values.c: Likewise.
34434
34435 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34436
34437 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34438 (ix86_split_xorsign): Ditto.
34439 * config/i386/i386.c (ix86_expand_xorsign): New function.
34440 (ix86_split_xorsign): Ditto.
34441 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34442 (xorsign<mode>3): New expander.
34443 (xorsign<mode>3_1): New insn_and_split pattern.
34444 * config/i386/sse.md (xorsign<mode>3): New expander.
34445
34446 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34447
34448 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34449 (*tablejump_sp64): Likewise.
34450 (*tablejump<P:mode>): ...this.
34451 (*call_address_sp32): Merge into...
34452 (*call_address_sp64): Likewise.
34453 (*call_address<P:mode>): ...this.
34454 (*call_symbolic_sp32): Merge into...
34455 (*call_symbolic_sp64): Likewise.
34456 (*call_symbolic<P:mode>): ...this.
34457 (call_value): Remove constraint and add predicate.
34458 (*call_value_address_sp32): Merge into...
34459 (*call_value_address_sp64): Likewise.
34460 (*call_value_address<P:mode>): ...this.
34461 (*call_value_symbolic_sp32): Merge into...
34462 (*call_value_symbolic_sp64): Likewise.
34463 (*call_value_symbolic<P:mode>): ...this.
34464 (*sibcall_symbolic_sp32): Merge into...
34465 (*sibcall_symbolic_sp64): Likewise.
34466 (*sibcall_symbolic<P:mode>): ...this.
34467 (sibcall_value): Remove constraint and add predicate.
34468 (*sibcall_value_symbolic_sp32): Merge into...
34469 (*sibcall_value_symbolic_sp64): Likewise.
34470 (*sibcall_value_symbolic<P:mode>): ...this.
34471 (window_save): Minor tweak.
34472 (*branch_sp32): Merge into...
34473 (*branch_sp64): Likewise.
34474 (*branch<P:mode>): ...this.
34475
34476 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34477 James Clarke <jrtc27@jrtc27.com>
34478
34479 PR target/84010
34480 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34481 consistently in TLS address generation and adjust code to the renaming
34482 of patterns. Mark calls to __tls_get_addr as const.
34483 * config/sparc/sparc.md (tgd_hi22): Turn into...
34484 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34485 (tgd_lo10): Turn into...
34486 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34487 (tgd_add32): Merge into...
34488 (tgd_add64): Likewise.
34489 (tgd_add<P:mode>): ...this and use Pmode throughout.
34490 (tldm_hi22): Turn into...
34491 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34492 (tldm_lo10): Turn into...
34493 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34494 (tldm_add32): Merge into...
34495 (tldm_add64): Likewise.
34496 (tldm_add<P:mode>): ...this and use Pmode throughout.
34497 (tldm_call32): Merge into...
34498 (tldm_call64): Likewise.
34499 (tldm_call<P:mode>): ...this and use Pmode throughout.
34500 (tldo_hix22): Turn into...
34501 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34502 (tldo_lox10): Turn into...
34503 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34504 (tldo_add32): Merge into...
34505 (tldo_add64): Likewise.
34506 (tldo_add<P:mode>): ...this and use Pmode throughout.
34507 (tie_hi22): Turn into...
34508 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34509 (tie_lo10): Turn into...
34510 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34511 (tie_ld64): Use DImode throughout.
34512 (tie_add32): Merge into...
34513 (tie_add64): Likewise.
34514 (tie_add<P:mode>): ...this and use Pmode throughout.
34515 (tle_hix22_sp32): Merge into...
34516 (tle_hix22_sp64): Likewise.
34517 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34518 (tle_lox22_sp32): Merge into...
34519 (tle_lox22_sp64): Likewise.
34520 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34521 (*tldo_ldub_sp32): Merge into...
34522 (*tldo_ldub_sp64): Likewise.
34523 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34524 (*tldo_ldub1_sp32): Merge into...
34525 (*tldo_ldub1_sp64): Likewise.
34526 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34527 (*tldo_ldub2_sp32): Merge into...
34528 (*tldo_ldub2_sp64): Likewise.
34529 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34530 (*tldo_ldsb1_sp32): Merge into...
34531 (*tldo_ldsb1_sp64): Likewise.
34532 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34533 (*tldo_ldsb2_sp32): Merge into...
34534 (*tldo_ldsb2_sp64): Likewise.
34535 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34536 (*tldo_ldub3_sp64): Use DImode throughout.
34537 (*tldo_ldsb3_sp64): Likewise.
34538 (*tldo_lduh_sp32): Merge into...
34539 (*tldo_lduh_sp64): Likewise.
34540 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34541 (*tldo_lduh1_sp32): Merge into...
34542 (*tldo_lduh1_sp64): Likewise.
34543 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34544 (*tldo_ldsh1_sp32): Merge into...
34545 (*tldo_ldsh1_sp64): Likewise.
34546 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34547 (*tldo_lduh2_sp64): Use DImode throughout.
34548 (*tldo_ldsh2_sp64): Likewise.
34549 (*tldo_lduw_sp32): Merge into...
34550 (*tldo_lduw_sp64): Likewise.
34551 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34552 (*tldo_lduw1_sp64): Use DImode throughout.
34553 (*tldo_ldsw1_sp64): Likewise.
34554 (*tldo_ldx_sp64): Likewise.
34555 (*tldo_stb_sp32): Merge into...
34556 (*tldo_stb_sp64): Likewise.
34557 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34558 (*tldo_sth_sp32): Merge into...
34559 (*tldo_sth_sp64): Likewise.
34560 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34561 (*tldo_stw_sp32): Merge into...
34562 (*tldo_stw_sp64): Likewise.
34563 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34564 (*tldo_stx_sp64): Use DImode throughout.
34565
34566 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34567
34568 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34569 check configure option to set BTI and Return Address Signing.
34570 * configure.ac: Add --enable-standard-branch-protection and
34571 --disable-standard-branch-protection.
34572 * configure: Regenerated.
34573 * doc/install.texi: Document the same.
34574
34575 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34576 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34577
34578 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34579 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34580 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34581 if bti is enabled.
34582 * config/aarch64/aarch64-bti-insert.c: New file.
34583 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34584 pass.
34585 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34586 new bti pass.
34587 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34588 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34589 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34590 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34591
34592 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34593
34594 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34595 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34596 Disable bti for -mbranch-protection=none.
34597 (aarch64_handle_standard_branch_protection): Enable bti for
34598 -mbranch-protection=standard.
34599 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34600 -mbranch-protection.
34601 (aarch64_bti_enabled): Check if bti is enabled.
34602 * config/aarch64/aarch64.opt: Declare target variable.
34603 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34604
34605 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34606
34607 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34608 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34609 (aarch64_expand_epilogue): Likewise.
34610 (aarch64_output_mi_thunk): Likewise.
34611 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34612 TAILCALL_ADDR_REGS to x16 and x17.
34613 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34614
34615 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34616
34617 * config/aarch64/aarch64-option-extensions.def: Define
34618 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34619 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34620 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34621 (AARCH64_FL_PREDRES): New.
34622 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34623 AARCH64_FL_PREDRES by default.
34624 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34625
34626 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34627
34628 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34629 ARMv8.5-A.
34630 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34631 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34632 * doc/invoke.texi: Document ARMv8.5-A.
34633
34634 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34635
34636 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34637 (xorsign<mode>3): Likewise.
34638
34639 2019-01-09 Jelinek <jakub@redhat.com>
34640
34641 PR middle-end/88758
34642 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34643 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34644
34645 PR rtl-optimization/88331
34646 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34647 not currently_expanding_to_rtl.
34648
34649 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34650
34651 * doc/invoke.texi (-Os): Remove trailing spaces.
34652 (-finline-functions): Remove reference to -O2.
34653
34654 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34655
34656 PR rtl-optimization/79593
34657 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34658
34659 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34660 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34661
34662 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34663
34664 PR bootstrap/88721
34665 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34666 to -1 on entry.
34667
34668 PR debug/88723
34669 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34670 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34671
34672 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34673
34674 PR target/88717
34675 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34676 ix86_avx_u128_mode_entry.
34677
34678 2019-01-08 Martin Liska <mliska@suse.cz>
34679
34680 PR tree-optimization/88753
34681 * tree-switch-conversion.c (switch_conversion::build_one_array):
34682 Come up with local variable constructor. Convert first to
34683 type of constructor values.
34684
34685 2019-01-08 Richard Biener <rguenther@suse.de>
34686
34687 PR tree-optimization/86554
34688 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34689 rpo_avail): Move earlier.
34690 (visit_nary_op): When value-numbering to expressions
34691 with different overflow behavior make sure there's an
34692 available expression on the path.
34693
34694 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34695
34696 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34697 aarch64_parse_branch_protection,
34698 struct aarch64_branch_protect_type,
34699 aarch64_handle_no_branch_protection,
34700 aarch64_handle_standard_branch_protection,
34701 aarch64_validate_mbranch_protection,
34702 aarch64_handle_pac_ret_protection,
34703 aarch64_handle_attr_branch_protection,
34704 accepted_branch_protection_string,
34705 aarch64_pac_ret_subtypes,
34706 aarch64_branch_protect_types,
34707 aarch64_handle_pac_ret_leaf): Define.
34708 (aarch64_override_options_after_change_1, aarch64_override_options):
34709 Add check for accepted_branch_protection_string.
34710 (aarch64_option_save): Save accepted_branch_protection_string.
34711 (aarch64_option_restore): Save accepted_branch_protection_string.
34712 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34713 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34714 msign-return-address.
34715 * doc/invoke.texi: Add mbranch-protection.
34716
34717 2019-01-08 Alan Modra <amodra@gmail.com>
34718
34719 PR target/88614
34720 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34721 Delete "unknownp" parameter. Adjust callers. Handle
34722 CONST_INT, PLUS, MINUS, and MULT.
34723 (attr_value_aligned): Renamed from or_attr_value.
34724 (min_attr_value): Return INT_MIN for unhandled rtl case..
34725 (min_fn): ..and translate to INT_MAX here.
34726 (write_length_unit_log): Modify to cope without "unknown".
34727 (write_attr_value): Handle IF_THEN_ELSE.
34728
34729 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34730
34731 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34732 optimization for masked stores.
34733
34734 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34735
34736 PR middle-end/88567
34737 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34738 output vector directly to duplicate_and_interleave instead of
34739 going through a temporary. Postpone insertion of ctor_seq to
34740 the end of the loop.
34741
34742 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34743
34744 PR target/86891
34745 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34746 unsigned_p. Handle signed and unsigned overflow correction as
34747 required.
34748 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34749 prototype.
34750 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34751 for operand 2.
34752 (add<mode>3_compareV_imm): Make this callable for expanding.
34753 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34754 aarch64_plus_operand for operand 2.
34755 (subv<GPI:mode>_insn): New insn pattern.
34756 (subv<GPI:mode>_imm): Likewise.
34757 (negv<GPI:mode>3): New expand pattern.
34758 (negv<GPI:mode>_insn): New insn pattern.
34759 (negv<GPI:mode>_cmp_only): Likewise.
34760 (cmpv<GPI:mode>_insn): Likewise.
34761 (subvti4): Use register_operand for operand 1. Update call to
34762 aarch64_expand_subvti.
34763 (usubvti4): Likewise.
34764 (negvti3): New expand pattern.
34765 (negdi_carryout): New insn pattern.
34766 (negvdi_carryinV): New insn pattern.
34767 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34768 version the named version.
34769 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34770 operands.
34771 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34772 patterns.
34773 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34774 patterns.
34775 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34776 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34777 (sub<mode>3_carryinCV): Delete.
34778 (sub<GPI:mode>3_carryinV): New expand pattern.
34779 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34780
34781 2019-01-07 Richard Biener <rguenther@suse.de>
34782
34783 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34784 of tree_operand_hash.
34785
34786 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34787
34788 PR tree-optimization/88598
34789 * tree.h (single_nonzero_element): Declare.
34790 * tree.c (single_nonzero_element): New function.
34791 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34792 if I is the only nonzero element of CST.
34793
34794 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34795
34796 PR tree-optimization/88598
34797 * tree.h (initializer_each_zero_or_onep): Declare.
34798 * tree.c (initializer_each_zero_or_onep): New function.
34799 (signed_or_unsigned_type_for): Handle float types too.
34800 (unsigned_type_for, signed_type_for): Update comments accordingly.
34801 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34802 x & { 0 or -1, 0 or -1, ... }.
34803
34804 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34805
34806 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34807 with x86_64-pc-linux-gnu.
34808
34809 2019-01-07 Tom de Vries <tdevries@suse.de>
34810
34811 PR target/85486
34812 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34813 function.
34814 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34815 routines.
34816
34817 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34818
34819 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34820 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34821 TARGET_AVX512F as condition.
34822
34823 PR debug/88723
34824 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34825 const_not_ok_for_debug_p target hook.
34826 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34827 on UNSPEC and subexpressions thereof if all subexpressions of the
34828 UNSPEC are CONSTANT_P.
34829
34830 PR tree-optimization/88676
34831 * tree-ssa-phiopt.c (two_value_replacement): New function.
34832 (tree_ssa_phiopt_worker): Call it.
34833
34834 PR sanitizer/88619
34835 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34836 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34837
34838 PR c++/85052
34839 * tree-vect-generic.c: Include insn-config.h and recog.h.
34840 (expand_vector_piecewise): Add defaulted ret_type argument,
34841 if non-NULL, use that in preference to type for the result type.
34842 (expand_vector_parallel): Formatting fix.
34843 (do_vec_conversion, do_vec_narrowing_conversion,
34844 expand_vector_conversion): New functions.
34845 (expand_vector_operations_1): Call expand_vector_conversion
34846 for VEC_CONVERT ifn calls.
34847 * internal-fn.def (VEC_CONVERT): New internal function.
34848 * internal-fn.c (expand_VEC_CONVERT): New function.
34849 * fold-const-call.c (fold_const_vec_convert): New function.
34850 (fold_const_call): Use it for CFN_VEC_CONVERT.
34851 * doc/extend.texi (__builtin_convertvector): Document.
34852
34853 2019-01-07 Tom de Vries <tdevries@suse.de>
34854
34855 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34856 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34857 vector_red_partition, vector_red_sym): New global variables.
34858 (nvptx_option_override): Initialize vector_red_sym.
34859 (nvptx_declare_function_name): Restore red_partition register.
34860 (nvptx_file_end): Emit code to declare the vector reduction variables.
34861 (nvptx_output_red_partition): New function.
34862 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34863 large vector reductions.
34864 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34865 (nvptx_init_builtins): Add VECTOR_ADDR.
34866 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34867 Handle nvptx_expand_shared_addr.
34868 (nvptx_get_shared_red_addr): Add vector argument and handle large
34869 vectors.
34870 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34871 large vectors.
34872 (nvptx_goacc_reduction_init): Likewise.
34873 (nvptx_goacc_reduction_fini): Likewise.
34874 (nvptx_goacc_reduction_teardown): Likewise.
34875 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34876 init,fini,teardown}.
34877 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34878 (nvptx_set_current_function): Init vector_red_partition.
34879 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34880 (nvptx_red_partition): New insn.
34881 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34882
34883 2019-01-07 Tom de Vries <tdevries@suse.de>
34884
34885 PR target/85381
34886 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34887 empty loops.
34888
34889 2019-01-07 Tom de Vries <tdevries@suse.de>
34890
34891 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34892 (nvptx_option_override): Init oacc_bcast_partition.
34893 (nvptx_init_oacc_workers): New function.
34894 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34895 (nvptx_needs_shared_bcast): New function.
34896 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34897 to propagate state.
34898 (nvptx_shared_propagate): Initialize vector bcast partition and
34899 synchronization state.
34900 (nvptx_single): Generalize to enable vectors to use shared-memory
34901 to propagate state.
34902 (nvptx_process_pars): Likewise.
34903 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34904 * config/nvptx/nvptx.h (struct machine_function): Add
34905 bcast_partition and sync_bar members.
34906
34907 2019-01-07 Tom de Vries <tdevries@suse.de>
34908
34909 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34910 (nvptx_apply_dim_limits): New function.
34911 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34912 PTX_WARP_SIZE.
34913
34914 2019-01-07 Tom de Vries <tdevries@suse.de>
34915
34916 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34917 as late as possible.
34918
34919 2019-01-07 Tom de Vries <tdevries@suse.de>
34920
34921 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34922 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34923 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34924 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34925 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34926
34927 2019-01-07 Tom de Vries <tdevries@suse.de>
34928
34929 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34930
34931 2019-01-07 Tom de Vries <tdevries@suse.de>
34932
34933 * omp-offload.c (oacc_get_min_dim): New function.
34934 * omp-offload.h (oacc_get_min_dim): Declare.
34935
34936 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34937
34938 PR target/88521
34939 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34940 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34941
34942 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34943
34944 PR tree-opt/86020
34945 Revert:
34946 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34947
34948 * ipa-inline.c (edge_badness): Use inlined_time instead of
34949 inline_summaries->get.
34950
34951 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34952
34953 * opts.c (enable_fdo_optimizations): Enable
34954 version-loops-for-strides, loop-interchange, unrol-and-jam
34955 and tree-loop-distribution.
34956 * invoke.texi: Document newly enabled options.
34957
34958 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34959
34960 * doc/invoke.texi (max-inline-insns-small): New parameters.
34961 * ipa-inline.c (want_early_inline_function_p): simplify.
34962 (want_inline_small_function_p): Fix pasto from previous patch;
34963 use max-inline-insns-small bound.
34964 * params.def (max-inline-insns-small): New param.
34965 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34966 variables correctly.
34967
34968 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34969
34970 * doc/invoke.texi: Document max-inline-insns-size,
34971 uninlined-function-insns, uninlined-function-time,
34972 uninlined-thunk-insns and uninlined-thunk-time.
34973 * params.def: Add max-inline-insns-size,
34974 uninlined-function-insns, uninlined-function-time,
34975 uninlined-thunk-insns and uninlined-thunk-time.
34976 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34977 new parameters.
34978 * ipa-inline.c (can_inline_edge_by_limits_p,
34979 want_inline_small_function_p): Use new parameters.
34980
34981 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34982
34983 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34984
34985 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34986
34987 PR middle-end/82564
34988 PR target/88620
34989 * expr.c (expand_assignment): For calls returning VLA structures
34990 if to_rtx is not a MEM, force it into a stack temporary.
34991
34992 PR debug/88635
34993 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34994 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34995 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34996 subexpressions of both operands.
34997 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34998 subrtxes are CONSTANT_P.
34999 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35000 2018-11-09 changes.
35001
35002 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35003
35004 * params.def (hot-bb-count-ws-permille): Set to 990.
35005
35006 2019-01-04 Martin Sebor <msebor@redhat.com>
35007
35008 PR c/88546
35009 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35010 leaf.
35011
35012 2019-01-04 Martin Sebor <msebor@redhat.com>
35013
35014 PR c/88363
35015 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35016
35017 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35018
35019 * gdbinit.in: Turn off pagination for the skip commands, restore
35020 it to previous state afterwards.
35021
35022 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35023
35024 PR target/88594
35025 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35026 of GET_MODE (opN) as modes of the libcall arguments.
35027
35028 2019-01-04 Jan Beulich <jbeulich@suse.com>
35029
35030 * config/i386/sse.md
35031 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35032 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35033 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35034 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35035 avx512f_vmcmp<mode>3<round_saeonly_name>,
35036 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35037 avx512f_maskcmp<mode>3,
35038 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35039 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35040 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35041 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35042 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35043 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35044 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35045 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35046 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35047 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35048 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35049 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35050 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35051 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35052 avx512cd_maskb_vec_dup<mode>,
35053 avx512cd_maskw_vec_dup<mode>,
35054 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35055 avx512dq_vmfpclass<mode>,
35056 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35057 instead of =Yk.
35058
35059 2019-01-03 Martin Sebor <msebor@redhat.com>
35060
35061 PR tree-optimization/88659
35062 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35063
35064 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35065
35066 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35067 unaligned vsx and avoid lxvd2x/stxvd2x.
35068 (gen_lvx_v4si_move): New function.
35069
35070 2019-01-03 Tom de Vries <tdevries@suse.de>
35071
35072 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35073 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35074 function.
35075 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35076
35077 2019-01-03 Tom de Vries <tdevries@suse.de>
35078
35079 * config/nvptx/nvptx.c (struct offload_attrs): New.
35080 (populate_offload_attrs): New function. Factor mask extraction out of
35081 nvptx_reorg. Add extraction of dimensions.
35082 (nvptx_reorg): Use populate_offload_attrs.
35083
35084 2019-01-03 Tom de Vries <tdevries@suse.de>
35085
35086 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35087 cases for oacc_min_dims_p and routine_p. Add asserts for
35088 oacc_default_dims_p and offload_region_p.
35089
35090 2019-01-03 Tom de Vries <tdevries@suse.de>
35091
35092 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35093 factored out of ...
35094 (nvptx_goacc_validate_dims): ... here.
35095
35096 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35097
35098 PR tree-optimization/85574
35099 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35100 structure.
35101 (struct ssa_equip_hash_traits): Declare.
35102 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35103
35104 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35105
35106 PR debug/88644
35107 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35108 change it to qualified_type.
35109
35110 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35111
35112 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35113 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35114
35115 2019-01-02 Martin Sebor <msebor@redhat.com>
35116 Jeff Law <law@redhat.com>
35117
35118 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35119 (get_range_strlen_tree): Update appropriately.
35120 (get_range_strlen)
35121 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35122
35123 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35124 rather than set_range_info.
35125 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35126 maybe_set_strlen_range. Handle potentially boundary crossing
35127 cases more conservatively.
35128 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35129 Call set_strlen_range.
35130 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35131
35132 PR middle-end/88663
35133 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35134 need the flexp argument.
35135 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35136 from calls to get_range_strlen. Update comments. Just update
35137 VAL for an unterminated const char array and let the reset of the
35138 code handle it normally. No longer try to set *flexp. Adjust
35139 return value.
35140 (get_range_strlen): Update for the new get_range_strlen API.
35141 (get_maxval_strlen): Similarly.
35142 (gimple_fold_builtin_strlen): Handle update meaning of return value
35143 from get_range_strlen.
35144 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35145 get_range_strlen API.
35146
35147 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35148
35149 PR lto/88130
35150 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35151 false at WPA time when body was removed.
35152
35153 2019-01-02 Martin Liska <mliska@suse.cz>
35154
35155 PR tree-optimization/88650
35156 * predict.c (set_even_probabilities): Calculate probability
35157 remainer only when really used.
35158
35159 2019-01-02 Richard Biener <rguenther@suse.de>
35160
35161 PR middle-end/88651
35162 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35163 widest_ints when mangling max_stmt_execution results.
35164
35165 2019-01-02 Richard Biener <rguenther@suse.de>
35166
35167 PR tree-optimization/88621
35168 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35169 bitfields when canoncalizing.
35170
35171 2019-01-02 Richard Biener <rguenther@suse.de>
35172
35173 PR target/87545
35174 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35175 cost of cheap SSE instruction.
35176
35177 2019-01-02 Richard Biener <rguenther@suse.de>
35178
35179 PR ipa/85574
35180 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35181 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35182 function.
35183 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35184 set after UIDs before splitting them.
35185
35186 2019-01-01 Martin Sebor <msebor@redhat.com>
35187 Jeff Law <law@redhat.com>
35188
35189 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35190 length is optimistic. If it is, then arrange to compute the
35191 conservative length as well.
35192
35193 * gimple-fold.h (get_range_strlen): Update prototype.
35194 * builtins.c (check_access): Update call to get_range_strlen to use
35195 c_strlen_data pointer. Change various variable accesses to instead
35196 pull data from the c_strlen_data structure.
35197 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35198 * calls.c (maybe_warn_nonstring_arg): Likewise.
35199 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35200 minimum length if maximum lengh is unknown.
35201 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35202 that used c_strlen, it's no longer needed. Restructure slightly.
35203 (format_string): Set unlikely range appropriately.
35204 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35205 formatting issues.
35206 (get_range_strlen): Accept c_strlen_data pointer for external
35207 call sites as well. Pass through to call to internal get_range_strlen.
35208 Adjust minlen, maxlen and maxbound as needed.
35209 (get_maxval_strlen): Update comments.
35210 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35211 to use c_strlen_data pointer. Change variable accesses to instead
35212 use c_strlen_data data members.
35213
35214 * gimple-fold.c (get_range_strlen): Update prototype.
35215 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35216 local variables. Use pdata to return information to caller.
35217 Update calls to get_range_strlen. Update pdata->maxbound.
35218 (get_range_strlen -- static version): Similarly.
35219 (get_range_strlen -- extern version): Update for internal
35220 get_range_strlen API change. Convert to external data format.
35221 (get_maxval_strlen): Similarly.
35222
35223 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35224
35225 * coverage.c (get_coverage_counts): Use current_function_decl.
35226 * profile.c (read_thunk_profile): New function.
35227 (branch_prob): Add THUNK parameter.
35228 * tree-profile.c (tree_profiling): Handle thunks.
35229 * value-prof.c (init_node_map): Handle thunks.
35230 * value-prof.h (branch_prob): Upate prototype.
35231 (read_thunk_profile): Declare.
35232
35233 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35234
35235 Update copyright years.
35236
35237 * gcc.c (process_command): Update copyright notice dates.
35238 * gcov-dump.c (print_version): Ditto.
35239 * gcov.c (print_version): Ditto.
35240 * gcov-tool.c (print_version): Ditto.
35241 * gengtype.c (create_file): Ditto.
35242 * doc/cpp.texi: Bump @copying's copyright year.
35243 * doc/cppinternals.texi: Ditto.
35244 * doc/gcc.texi: Ditto.
35245 * doc/gccint.texi: Ditto.
35246 * doc/gcov.texi: Ditto.
35247 * doc/install.texi: Ditto.
35248 * doc/invoke.texi: Ditto.
35249 \f
35250 Copyright (C) 2019 Free Software Foundation, Inc.
35251
35252 Copying and distribution of this file, with or without modification,
35253 are permitted in any medium without royalty provided the copyright
35254 notice and this notice are preserved.